@nsshunt/stsuxvue 1.0.73 → 1.0.74
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
|
@@ -10620,10 +10620,13 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10620
10620
|
const LogDebug = (message) => {
|
|
10621
10621
|
stsutils.defaultLogger.debug(baseColour(`stsuxvue:UXModelNavigator:${message}`));
|
|
10622
10622
|
};
|
|
10623
|
+
const LogWarning = (message) => {
|
|
10624
|
+
stsutils.defaultLogger.warn(baseColour(`stsuxvue:UXModelNavigator:${message}`));
|
|
10625
|
+
};
|
|
10623
10626
|
const TransformSubscriptionPayloadCallback = (subscriptionPayload) => {
|
|
10624
10627
|
observabilitySubscriberManager?.TransformSubscriptionPayloadCallback(subscriptionPayload);
|
|
10625
10628
|
};
|
|
10626
|
-
|
|
10629
|
+
const GetRootLevelSubscriptions = () => [{
|
|
10627
10630
|
subscriptionKey: {
|
|
10628
10631
|
id: v4(),
|
|
10629
10632
|
topic: stsobservability.SubscriptionTopic.AllServicesCombined
|
|
@@ -10636,7 +10639,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10636
10639
|
},
|
|
10637
10640
|
cb: TransformSubscriptionPayloadCallback
|
|
10638
10641
|
}];
|
|
10639
|
-
const
|
|
10642
|
+
const GetServicesSubscriptions = () => [{
|
|
10640
10643
|
subscriptionKey: {
|
|
10641
10644
|
id: v4(),
|
|
10642
10645
|
topic: stsobservability.SubscriptionTopic.Services
|
|
@@ -10664,7 +10667,6 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10664
10667
|
cb: TransformSubscriptionPayloadCallback
|
|
10665
10668
|
}];
|
|
10666
10669
|
};
|
|
10667
|
-
let navSubscriptions = rootLevelSubscriptions;
|
|
10668
10670
|
let navigationSubscriptions = {
|
|
10669
10671
|
subscriptions: [],
|
|
10670
10672
|
currentSubscriptions: null
|
|
@@ -10708,7 +10710,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10708
10710
|
if (store._models[props.modelId].serviceModelSubscriptionKey) {
|
|
10709
10711
|
switch (store._models[props.modelId].serviceModelSubscriptionKey?.topic) {
|
|
10710
10712
|
case stsobservability.SubscriptionTopic.AllServicesCombined:
|
|
10711
|
-
navigate(
|
|
10713
|
+
navigate(GetServicesSubscriptions());
|
|
10712
10714
|
break;
|
|
10713
10715
|
case stsobservability.SubscriptionTopic.Services:
|
|
10714
10716
|
navigate(GetServiceInstancesSubscriptions(id));
|
|
@@ -10721,8 +10723,11 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10721
10723
|
}
|
|
10722
10724
|
};
|
|
10723
10725
|
const navigate = function(subscriptions) {
|
|
10724
|
-
obj.
|
|
10725
|
-
|
|
10726
|
+
if (obj.currentSubscriptions) {
|
|
10727
|
+
obj.subscriptions.push(obj.currentSubscriptions);
|
|
10728
|
+
} else {
|
|
10729
|
+
LogWarning(`navigate: obj.currentSubscriptions not defined`);
|
|
10730
|
+
}
|
|
10726
10731
|
obj.currentSubscriptions = subscriptions;
|
|
10727
10732
|
LogDebug(`navigate: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(subscriptions)})`);
|
|
10728
10733
|
observabilitySubscriberManager?.UpdateModelCursor(subscriptions);
|
|
@@ -10731,10 +10736,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10731
10736
|
if (obj.subscriptions.length > 0) {
|
|
10732
10737
|
let key = obj.subscriptions.pop();
|
|
10733
10738
|
if (key) {
|
|
10734
|
-
navSubscriptions = key;
|
|
10735
10739
|
obj.currentSubscriptions = key;
|
|
10736
|
-
LogDebug(`GoBack: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(
|
|
10737
|
-
observabilitySubscriberManager?.UpdateModelCursor(
|
|
10740
|
+
LogDebug(`GoBack: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(obj.currentSubscriptions)})`);
|
|
10741
|
+
observabilitySubscriberManager?.UpdateModelCursor(obj.currentSubscriptions);
|
|
10738
10742
|
} else {
|
|
10739
10743
|
LogDebug(`GoBack: subscriptions key not defined`);
|
|
10740
10744
|
}
|
|
@@ -10744,10 +10748,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10744
10748
|
};
|
|
10745
10749
|
const TopLevel = function() {
|
|
10746
10750
|
obj.subscriptions = [];
|
|
10747
|
-
|
|
10748
|
-
obj.currentSubscriptions
|
|
10749
|
-
|
|
10750
|
-
observabilitySubscriberManager?.UpdateModelCursor(navSubscriptions);
|
|
10751
|
+
obj.currentSubscriptions = GetRootLevelSubscriptions();
|
|
10752
|
+
LogDebug(`TopLevel: observabilitySubscriberManager().UpdateModelCursor(${JSON.stringify(obj.currentSubscriptions)})`);
|
|
10753
|
+
observabilitySubscriberManager?.UpdateModelCursor(obj.currentSubscriptions);
|
|
10751
10754
|
};
|
|
10752
10755
|
vue.onMounted(() => {
|
|
10753
10756
|
LogDebug(`onMounted()`);
|
|
@@ -10776,9 +10779,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
10776
10779
|
store.UpdateObservabilitySubscriberManager(observabilitySubscriberManager.id, observabilitySubscriberManager);
|
|
10777
10780
|
LogDebug(`Start(): observabilitySubscriberManager().Start(): Mode: [${options.consumeInstrumentationMode}]`);
|
|
10778
10781
|
await observabilitySubscriberManager.Start();
|
|
10779
|
-
obj.currentSubscriptions =
|
|
10780
|
-
LogDebug(`Start(): observabilitySubscriberManager().UpdateModelCursor(): Mode: [${options.consumeInstrumentationMode}] rootLevelSubscriptions: [(${JSON.stringify(
|
|
10781
|
-
observabilitySubscriberManager?.UpdateModelCursor(
|
|
10782
|
+
obj.currentSubscriptions = GetRootLevelSubscriptions();
|
|
10783
|
+
LogDebug(`Start(): observabilitySubscriberManager().UpdateModelCursor(): Mode: [${options.consumeInstrumentationMode}] rootLevelSubscriptions: [(${JSON.stringify(obj.currentSubscriptions)}]`);
|
|
10784
|
+
observabilitySubscriberManager?.UpdateModelCursor(obj.currentSubscriptions);
|
|
10782
10785
|
store.UpdateSate(props.modelId, _estate.STARTED);
|
|
10783
10786
|
};
|
|
10784
10787
|
__expose({
|