metronics-vue 1.7.24 → 1.7.25

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.
@@ -7161,21 +7161,24 @@ const Da = /* @__PURE__ */ N(Ma, [["render", $a]]), Na = {
7161
7161
  name: "KtPageTitle",
7162
7162
  computed: {
7163
7163
  computedBreadcrumbs() {
7164
- const i = [], s = this.$route.matched.reduce((t, e) => ({ ...t, ...e.params }), { ...this.$route.params });
7164
+ console.log("--- [KT-Debug] Starting Breadcrumb Generation ---");
7165
+ const i = {};
7166
+ this.$route.matched.forEach((t, e) => {
7167
+ console.log(`[KT-Debug] Params found at Level ${e} (${t.path}):`, t.params), Object.assign(i, t.params);
7168
+ }), Object.assign(i, this.$route.params), console.log("[KT-Debug] FINAL MERGED PARAMS:", i);
7169
+ const s = [];
7165
7170
  return this.$route.matched.forEach((t) => {
7166
7171
  var r;
7167
7172
  const e = (r = t.meta) == null ? void 0 : r.breadcrumb;
7168
7173
  if (!e) return;
7169
7174
  (Array.isArray(e) ? e : [e]).forEach((a) => {
7170
- const o = typeof a == "object" ? a.label : a, l = typeof a == "object" ? a.to : null;
7171
- i.push({
7172
- // Resolve Label (e.g., "Client :client_id")
7173
- label: this.resolveDynamicString(o, s, !1),
7174
- // Resolve Link (e.g., "/clients/:client_id")
7175
- to: l ? this.resolveDynamicString(l, s, !0) : null
7175
+ const o = typeof a == "object" ? a.label : a, l = typeof a == "object" ? a.to : null, c = this.resolveDynamicString(o, i, !1), d = l ? this.resolveDynamicString(l, i, !0) : null;
7176
+ l && l.includes(":") && console.log(`[KT-Debug] Resolving Path: "${l}" -> "${d}"`), s.push({
7177
+ label: c,
7178
+ to: d
7176
7179
  });
7177
7180
  });
7178
- }), i;
7181
+ }), console.log("--- [KT-Debug] Generation Complete ---"), s;
7179
7182
  },
7180
7183
  pageTitle() {
7181
7184
  const i = this.computedBreadcrumbs[this.computedBreadcrumbs.length - 1];
@@ -7188,7 +7191,7 @@ const Da = /* @__PURE__ */ N(Ma, [["render", $a]]), Na = {
7188
7191
  const e = /:([a-zA-Z0-9_]+)/g;
7189
7192
  return i.replace(e, (n, r) => {
7190
7193
  const a = s[r];
7191
- return a != null ? t ? a : String(a).replace(/-/g, " ") : n;
7194
+ return a != null ? t ? a : String(a).replace(/-/g, " ") : (console.warn(`[KT-Debug] WARNING: Param "${r}" was not found in the merged params list.`), n);
7192
7195
  });
7193
7196
  }
7194
7197
  }