@fewangsit/wangsvue-presets 1.0.102 → 1.0.103-alpha.1

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.
@@ -1150,7 +1150,7 @@ const A = {
1150
1150
  footer: {
1151
1151
  class: ["inline-flex gap-1 text-xs items-center"]
1152
1152
  }
1153
- }, $ = {
1153
+ }, U = {
1154
1154
  root: {
1155
1155
  class: [
1156
1156
  // Flexbox
@@ -1264,7 +1264,7 @@ const A = {
1264
1264
  }
1265
1265
  ]
1266
1266
  })
1267
- }, B = {
1267
+ }, $ = {
1268
1268
  button: ({ props: e, buttonClass: t }) => ({
1269
1269
  class: [
1270
1270
  t,
@@ -1413,7 +1413,7 @@ const A = {
1413
1413
  tooltipicon: {
1414
1414
  class: "text-primary-700 w-[10px] h-[10px]"
1415
1415
  }
1416
- }, U = {
1416
+ }, B = {
1417
1417
  copybutton: {
1418
1418
  class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
1419
1419
  },
@@ -1433,7 +1433,7 @@ const A = {
1433
1433
  "px-2 bg-primary-100 sticky left-0 text-right select-none"
1434
1434
  ]
1435
1435
  }
1436
- }, G = {
1436
+ }, L = {
1437
1437
  menustart: {
1438
1438
  class: ""
1439
1439
  },
@@ -1457,7 +1457,7 @@ const A = {
1457
1457
  { invisible: e.dragable === !1 }
1458
1458
  ]
1459
1459
  })
1460
- }, L = {
1460
+ }, G = {
1461
1461
  root: {
1462
1462
  "data-wv-name": "datatable",
1463
1463
  "data-wv-section": "root",
@@ -4170,10 +4170,12 @@ const l = class l {
4170
4170
  * @returns A fully normalized path prefixed with the base URL if applicable.
4171
4171
  */
4172
4172
  normalizePath(t) {
4173
+ if (!t.startsWith("/"))
4174
+ return new URL(t, window.location.href).pathname;
4173
4175
  const a = this.getNavigationBaseUrl();
4174
4176
  if (!a)
4175
4177
  return t;
4176
- const n = t.startsWith("/") ? t.slice(1) : t;
4178
+ const n = t.slice(1);
4177
4179
  return `${a}${n}`;
4178
4180
  }
4179
4181
  /**
@@ -4281,7 +4283,7 @@ const l = class l {
4281
4283
  * @example
4282
4284
  * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
4283
4285
  */
4284
- navigateToRoute(t, a = "push", n = {}, i = "") {
4286
+ navigateToRoute(t, a = "push", n = history.state, i = "") {
4285
4287
  if (!t)
4286
4288
  return;
4287
4289
  const c = typeof t == "string" ? t : t.toString(), s = this.normalizePath(c);
@@ -5607,11 +5609,11 @@ const oe = x("WANGS-TAB-MENU", {
5607
5609
  buttonfilter: P,
5608
5610
  // Data
5609
5611
  paginator: ne,
5610
- datatable: L,
5611
- customcolumn: G,
5612
+ datatable: G,
5613
+ customcolumn: L,
5612
5614
  tree: be,
5613
5615
  timeline: de,
5614
- changelog: B,
5616
+ changelog: $,
5615
5617
  // Panels
5616
5618
  accordion: A,
5617
5619
  card: E,
@@ -5630,13 +5632,13 @@ const oe = x("WANGS-TAB-MENU", {
5630
5632
  inlinemessage: H,
5631
5633
  toast: ue,
5632
5634
  // Media
5633
- carousel: $,
5635
+ carousel: U,
5634
5636
  // Misc
5635
5637
  badge: d,
5636
5638
  badgegroup: we,
5637
5639
  image: Y,
5638
5640
  loading: ze,
5639
- codesnippet: U,
5641
+ codesnippet: B,
5640
5642
  username: _e,
5641
5643
  progressbar: Ae
5642
5644
  };