@nsshunt/stsuxvue 1.0.68 → 1.0.70

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/dist/stsuxvue.mjs CHANGED
@@ -10433,7 +10433,7 @@ class ObservabilitySubscriberManager extends SocketIoClient {
10433
10433
  this.#state = "stopped";
10434
10434
  setTimeout(() => {
10435
10435
  if (this.#observabilitySubscriptionManager) {
10436
- this.LogDebugMessage(chalk.cyan(`${this.logPrefix}UpdateModelCursor(): observabilitySubscriptionManager.subscriptions: [${subscriptions}]`));
10436
+ this.LogDebugMessage(chalk.cyan(`${this.logPrefix}UpdateModelCursor(): observabilitySubscriptionManager.subscriptions: [${JSON.stringify(subscriptions)}]`));
10437
10437
  this.#observabilitySubscriptionManager.subscriptions = subscriptions;
10438
10438
  this.LogDebugMessage(chalk.cyan(`${this.logPrefix}UpdateModelCursor(): observabilitySubscriptionManager.Start()`));
10439
10439
  this.#observabilitySubscriptionManager.Start();
@@ -10558,6 +10558,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10558
10558
  const props = __props;
10559
10559
  const store = ModelStore();
10560
10560
  let observabilitySubscriberManager = null;
10561
+ const baseColour = chalk.hex("#A85E57");
10562
+ const LogDebug = (message) => {
10563
+ defaultLogger.debug(baseColour(`stsuxvue:UXModelNavigator:${message}`));
10564
+ };
10561
10565
  const TransformSubscriptionPayloadCallback = (subscriptionPayload) => {
10562
10566
  observabilitySubscriberManager?.TransformSubscriptionPayloadCallback(subscriptionPayload);
10563
10567
  };
@@ -10662,6 +10666,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10662
10666
  obj.subscriptions.push(navSubscriptions);
10663
10667
  navSubscriptions = subscriptions;
10664
10668
  obj.currentSubscriptions = subscriptions;
10669
+ LogDebug(`navigate: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(subscriptions)})`);
10665
10670
  observabilitySubscriberManager?.UpdateModelCursor(subscriptions);
10666
10671
  };
10667
10672
  const GoBack = function() {
@@ -10670,27 +10675,35 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10670
10675
  if (key) {
10671
10676
  navSubscriptions = key;
10672
10677
  obj.currentSubscriptions = key;
10678
+ LogDebug(`GoBack: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(navSubscriptions)})`);
10673
10679
  observabilitySubscriberManager?.UpdateModelCursor(navSubscriptions);
10680
+ } else {
10681
+ LogDebug(`GoBack: subscriptions key not defined`);
10674
10682
  }
10683
+ } else {
10684
+ LogDebug(`GoBack: subscriptions empty`);
10675
10685
  }
10676
10686
  };
10677
10687
  const TopLevel = function() {
10678
10688
  obj.subscriptions = [];
10679
10689
  navSubscriptions = rootLevelSubscriptions;
10680
10690
  obj.currentSubscriptions = rootLevelSubscriptions;
10691
+ LogDebug(`TopLevel: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(navSubscriptions)})`);
10681
10692
  observabilitySubscriberManager?.UpdateModelCursor(navSubscriptions);
10682
10693
  };
10683
10694
  onMounted(() => {
10684
- console.log(`UXModelNavigator: onMounted()`);
10695
+ LogDebug(`onMounted()`);
10685
10696
  });
10686
10697
  onBeforeUnmount(() => {
10687
- console.log(`UXModelNavigator: onBeforeUnmount()`);
10698
+ LogDebug(`onBeforeUnmount()`);
10688
10699
  Stop();
10689
10700
  });
10690
10701
  let tab = ref(null);
10691
10702
  const Stop = () => {
10703
+ LogDebug(`Stop()`);
10692
10704
  store.UpdateSate(props.modelId, _estate.STOPPING);
10693
10705
  if (observabilitySubscriberManager) {
10706
+ LogDebug(`Stop(): Unsubscribe()`);
10694
10707
  observabilitySubscriberManager.Unsubscribe();
10695
10708
  store.UpdateObservabilitySubscriberManager(observabilitySubscriberManager.id, null);
10696
10709
  }
@@ -10698,11 +10711,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10698
10711
  store.UpdateSate(props.modelId, _estate.IDLE);
10699
10712
  };
10700
10713
  const Start = async (options) => {
10714
+ LogDebug(`Start()`);
10701
10715
  store.UpdateSate(props.modelId, _estate.STARTING);
10716
+ LogDebug(`Start(): new ObservabilitySubscriberManager()`);
10702
10717
  observabilitySubscriberManager = new ObservabilitySubscriberManager(options);
10703
10718
  store.UpdateObservabilitySubscriberManager(observabilitySubscriberManager.id, observabilitySubscriberManager);
10719
+ LogDebug(`Start(): observabilitySubscriberManager().Start()`);
10704
10720
  await observabilitySubscriberManager.Start();
10705
10721
  obj.currentSubscriptions = rootLevelSubscriptions;
10722
+ LogDebug(`Start(): observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(rootLevelSubscriptions)})`);
10706
10723
  observabilitySubscriberManager?.UpdateModelCursor(rootLevelSubscriptions);
10707
10724
  store.UpdateSate(props.modelId, _estate.STARTED);
10708
10725
  };