@nsshunt/stsuxvue 1.0.69 → 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.cjs
CHANGED
|
@@ -10582,6 +10582,10 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10582
10582
|
const props = __props;
|
|
10583
10583
|
const store = ModelStore();
|
|
10584
10584
|
let observabilitySubscriberManager = null;
|
|
10585
|
+
const baseColour = chalk.hex("#A85E57");
|
|
10586
|
+
const LogDebug = (message) => {
|
|
10587
|
+
stsutils.defaultLogger.debug(baseColour(`stsuxvue:UXModelNavigator:${message}`));
|
|
10588
|
+
};
|
|
10585
10589
|
const TransformSubscriptionPayloadCallback = (subscriptionPayload) => {
|
|
10586
10590
|
observabilitySubscriberManager?.TransformSubscriptionPayloadCallback(subscriptionPayload);
|
|
10587
10591
|
};
|
|
@@ -10686,6 +10690,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10686
10690
|
obj.subscriptions.push(navSubscriptions);
|
|
10687
10691
|
navSubscriptions = subscriptions;
|
|
10688
10692
|
obj.currentSubscriptions = subscriptions;
|
|
10693
|
+
LogDebug(`navigate: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(subscriptions)})`);
|
|
10689
10694
|
observabilitySubscriberManager?.UpdateModelCursor(subscriptions);
|
|
10690
10695
|
};
|
|
10691
10696
|
const GoBack = function() {
|
|
@@ -10694,27 +10699,35 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10694
10699
|
if (key) {
|
|
10695
10700
|
navSubscriptions = key;
|
|
10696
10701
|
obj.currentSubscriptions = key;
|
|
10702
|
+
LogDebug(`GoBack: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(navSubscriptions)})`);
|
|
10697
10703
|
observabilitySubscriberManager?.UpdateModelCursor(navSubscriptions);
|
|
10704
|
+
} else {
|
|
10705
|
+
LogDebug(`GoBack: subscriptions key not defined`);
|
|
10698
10706
|
}
|
|
10707
|
+
} else {
|
|
10708
|
+
LogDebug(`GoBack: subscriptions empty`);
|
|
10699
10709
|
}
|
|
10700
10710
|
};
|
|
10701
10711
|
const TopLevel = function() {
|
|
10702
10712
|
obj.subscriptions = [];
|
|
10703
10713
|
navSubscriptions = rootLevelSubscriptions;
|
|
10704
10714
|
obj.currentSubscriptions = rootLevelSubscriptions;
|
|
10715
|
+
LogDebug(`TopLevel: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(navSubscriptions)})`);
|
|
10705
10716
|
observabilitySubscriberManager?.UpdateModelCursor(navSubscriptions);
|
|
10706
10717
|
};
|
|
10707
10718
|
vue.onMounted(() => {
|
|
10708
|
-
|
|
10719
|
+
LogDebug(`onMounted()`);
|
|
10709
10720
|
});
|
|
10710
10721
|
vue.onBeforeUnmount(() => {
|
|
10711
|
-
|
|
10722
|
+
LogDebug(`onBeforeUnmount()`);
|
|
10712
10723
|
Stop();
|
|
10713
10724
|
});
|
|
10714
10725
|
let tab = vue.ref(null);
|
|
10715
10726
|
const Stop = () => {
|
|
10727
|
+
LogDebug(`Stop()`);
|
|
10716
10728
|
store.UpdateSate(props.modelId, _estate.STOPPING);
|
|
10717
10729
|
if (observabilitySubscriberManager) {
|
|
10730
|
+
LogDebug(`Stop(): Unsubscribe()`);
|
|
10718
10731
|
observabilitySubscriberManager.Unsubscribe();
|
|
10719
10732
|
store.UpdateObservabilitySubscriberManager(observabilitySubscriberManager.id, null);
|
|
10720
10733
|
}
|
|
@@ -10722,11 +10735,15 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10722
10735
|
store.UpdateSate(props.modelId, _estate.IDLE);
|
|
10723
10736
|
};
|
|
10724
10737
|
const Start = async (options) => {
|
|
10738
|
+
LogDebug(`Start()`);
|
|
10725
10739
|
store.UpdateSate(props.modelId, _estate.STARTING);
|
|
10740
|
+
LogDebug(`Start(): new ObservabilitySubscriberManager()`);
|
|
10726
10741
|
observabilitySubscriberManager = new ObservabilitySubscriberManager(options);
|
|
10727
10742
|
store.UpdateObservabilitySubscriberManager(observabilitySubscriberManager.id, observabilitySubscriberManager);
|
|
10743
|
+
LogDebug(`Start(): observabilitySubscriberManager().Start()`);
|
|
10728
10744
|
await observabilitySubscriberManager.Start();
|
|
10729
10745
|
obj.currentSubscriptions = rootLevelSubscriptions;
|
|
10746
|
+
LogDebug(`Start(): observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(rootLevelSubscriptions)})`);
|
|
10730
10747
|
observabilitySubscriberManager?.UpdateModelCursor(rootLevelSubscriptions);
|
|
10731
10748
|
store.UpdateSate(props.modelId, _estate.STARTED);
|
|
10732
10749
|
};
|