fds-vue-core 6.0.13 → 6.1.2

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/README.md CHANGED
@@ -136,6 +136,45 @@ import { FdsButtonPrimary, FdsInput, FdsModal } from 'fds-vue-core'
136
136
 
137
137
  All components are fully typed. Type definitions are included in the package.
138
138
 
139
+ ## Commit workflow
140
+
141
+ Use these commands to create commits with the shared Commitizen adapter and security dependency helper.
142
+
143
+ ### In this repo
144
+
145
+ ```bash
146
+ pnpm commit
147
+ pnpm commit:vuln
148
+ ```
149
+
150
+ - `pnpm commit` starts Commitizen prompts (configured via `scripts/cz/cz-adapter.cjs`).
151
+ - `pnpm commit:vuln` runs `scripts/vuln-commit.mjs` and auto-creates a `vuln(...)` commit from staged `package.json` dependency bumps.
152
+
153
+ ### In a consuming repo
154
+
155
+ Install dependencies:
156
+
157
+ ```bash
158
+ pnpm add fds-vue-core
159
+ pnpm add -D commitizen
160
+ ```
161
+
162
+ Add this to the consuming repo `package.json`:
163
+
164
+ ```json
165
+ {
166
+ "scripts": {
167
+ "commit": "cz",
168
+ "commit:vuln": "fds-vuln-commit"
169
+ },
170
+ "config": {
171
+ "commitizen": {
172
+ "path": "fds-vue-core/cz-adapter"
173
+ }
174
+ }
175
+ }
176
+ ```
177
+
139
178
  ## Further Documentation
140
179
 
141
180
  - [Usage Guide](./src/docs/Usage.md) - Detailed usage instructions
@@ -13038,7 +13038,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
13038
13038
  const entries = visibleStepEntries.value ?? [];
13039
13039
  const stepsCount = entries.length;
13040
13040
  if (stepsCount <= 1) return "0%";
13041
- const targetFullIndex = Math.max(internalMaxStep.value, internalCompletedTo.value, currentStepIndex.value);
13041
+ const targetFullIndex = Math.max(currentStepIndex.value, maxCompletedStepIndex.value, 0);
13042
13042
  const targetVisibleEntries = entries.map(({ index }, visibleIndex) => ({ fullIndex: index, visibleIndex })).filter(({ fullIndex }) => fullIndex <= targetFullIndex);
13043
13043
  const lastTargetEntry = targetVisibleEntries.length > 0 ? targetVisibleEntries[targetVisibleEntries.length - 1] : void 0;
13044
13044
  const targetVisibleIndex = lastTargetEntry?.visibleIndex ?? 0;