fds-vue-core 6.0.7 → 6.0.8

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.
@@ -13003,12 +13003,12 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
13003
13003
  const entries = visibleStepEntries.value ?? [];
13004
13004
  const stepsCount = entries.length;
13005
13005
  if (stepsCount <= 1) return "0%";
13006
- const completedFullIndex = internalCompletedTo.value;
13007
- const completedVisibleEntries = entries.map(({ index }, visibleIndex) => ({ fullIndex: index, visibleIndex })).filter(({ fullIndex }) => fullIndex <= completedFullIndex);
13008
- const lastCompletedEntry = completedVisibleEntries.length > 0 ? completedVisibleEntries[completedVisibleEntries.length - 1] : void 0;
13009
- const completedVisibleIndex = lastCompletedEntry?.visibleIndex ?? 0;
13010
- const completedStep = Math.min(completedVisibleIndex, stepsCount - 1);
13011
- return `${completedStep / (stepsCount - 1) * 100}%`;
13006
+ const targetFullIndex = Math.max(internalMaxStep.value, internalCompletedTo.value, currentStepIndex.value);
13007
+ const targetVisibleEntries = entries.map(({ index }, visibleIndex) => ({ fullIndex: index, visibleIndex })).filter(({ fullIndex }) => fullIndex <= targetFullIndex);
13008
+ const lastTargetEntry = targetVisibleEntries.length > 0 ? targetVisibleEntries[targetVisibleEntries.length - 1] : void 0;
13009
+ const targetVisibleIndex = lastTargetEntry?.visibleIndex ?? 0;
13010
+ const targetStep = Math.min(targetVisibleIndex, stepsCount - 1);
13011
+ return `${targetStep / (stepsCount - 1) * 100}%`;
13012
13012
  });
13013
13013
  const stepWidthStyle = vue.computed(() => props.stepWidth ? `width: ${props.stepWidth}px` : "");
13014
13014
  const isStepperHidden = vue.computed(() => {