@fewangsit/wangsvue-presets 1.0.99 → 1.0.100-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.
Files changed (61) hide show
  1. package/fixedasset/buttonradio/index.d.ts +6 -4
  2. package/fixedasset/buttonradio/index.js +8 -12
  3. package/fixedasset/fieldwrapper/index.d.ts +5 -2
  4. package/fixedasset/fieldwrapper/index.js +4 -1
  5. package/fixedasset/index.d.ts +2 -2
  6. package/fixedasset/index.es.js +662 -323
  7. package/fixedasset/index.js +94 -94
  8. package/fixedasset/index.system.js +2 -2
  9. package/fixedasset/inputotp/index.d.ts +1 -136
  10. package/fixedasset/inputotp/index.js +50 -53
  11. package/fixedasset/password/index.js +1 -0
  12. package/fixedasset/style.css +137 -53
  13. package/fixedasset/tabmenu/index.d.ts +1 -104
  14. package/fixedasset/tabmenu/index.js +48 -27
  15. package/fixedasset/timeline/index.d.ts +24 -2
  16. package/fixedasset/timeline/index.js +24 -5
  17. package/fixedasset/tree/index.d.ts +10 -5
  18. package/fixedasset/tree/index.js +6 -4
  19. package/fixedasset/username/index.js +1 -1
  20. package/globalsettings/buttonradio/index.d.ts +6 -4
  21. package/globalsettings/buttonradio/index.js +8 -12
  22. package/globalsettings/fieldwrapper/index.d.ts +5 -2
  23. package/globalsettings/fieldwrapper/index.js +4 -1
  24. package/globalsettings/index.d.ts +1 -1
  25. package/globalsettings/index.es.js +519 -175
  26. package/globalsettings/index.js +26 -26
  27. package/globalsettings/index.system.js +2 -2
  28. package/globalsettings/style.css +120 -55
  29. package/globalsettings/tabmenu/index.d.ts +1 -104
  30. package/globalsettings/tabmenu/index.js +48 -27
  31. package/globalsettings/timeline/index.d.ts +22 -0
  32. package/globalsettings/timeline/index.js +19 -0
  33. package/package.json +1 -1
  34. package/supplyasset/buttonradio/index.d.ts +6 -4
  35. package/supplyasset/buttonradio/index.js +8 -12
  36. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  37. package/supplyasset/fieldwrapper/index.js +4 -1
  38. package/supplyasset/index.d.ts +1 -1
  39. package/supplyasset/index.es.js +542 -197
  40. package/supplyasset/index.js +24 -24
  41. package/supplyasset/index.system.js +2 -2
  42. package/supplyasset/style.css +120 -55
  43. package/supplyasset/tabmenu/index.d.ts +1 -104
  44. package/supplyasset/tabmenu/index.js +50 -28
  45. package/supplyasset/timeline/index.d.ts +22 -0
  46. package/supplyasset/timeline/index.js +19 -0
  47. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  48. package/wangsvue/buttonbulkaction/index.js +2 -1
  49. package/wangsvue/buttonradio/index.d.ts +2 -1
  50. package/wangsvue/buttonradio/index.js +3 -7
  51. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  52. package/wangsvue/fieldwrapper/index.js +4 -1
  53. package/wangsvue/index.d.ts +1 -1
  54. package/wangsvue/index.es.js +590 -257
  55. package/wangsvue/index.js +44 -44
  56. package/wangsvue/index.system.js +2 -2
  57. package/wangsvue/style.css +104 -55
  58. package/wangsvue/tabmenu/index.d.ts +1 -56
  59. package/wangsvue/tabmenu/index.js +20 -13
  60. package/wangsvue/timeline/index.d.ts +20 -0
  61. package/wangsvue/timeline/index.js +16 -0
@@ -1,4 +1,7 @@
1
- const h = {
1
+ var j = Object.defineProperty;
2
+ var A = (e, t, r) => t in e ? j(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var g = (e, t, r) => A(e, typeof t != "symbol" ? t + "" : t, r);
4
+ const _ = {
2
5
  accordiontab: {
3
6
  header: ({ props: e }) => ({
4
7
  class: [
@@ -60,7 +63,7 @@ const h = {
60
63
  leaveToClass: "max-h-0"
61
64
  }
62
65
  }
63
- }, y = {
66
+ }, T = {
64
67
  root: ({ props: e }) => ({
65
68
  class: [
66
69
  "relative",
@@ -289,9 +292,9 @@ const h = {
289
292
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
290
293
  leaveToClass: "opacity-0"
291
294
  }
292
- }, w = {
295
+ }, I = {
293
296
  root: ({ props: e, parent: t }) => {
294
- var r, s, o;
297
+ var r, s, n;
295
298
  return {
296
299
  class: [
297
300
  // Font
@@ -320,7 +323,7 @@ const h = {
320
323
  // Colors
321
324
  "bg-general-300",
322
325
  {
323
- "border-gray-100": ((o = t.instance.$style) == null ? void 0 : o.name) == "avatargroup"
326
+ "border-gray-100": ((n = t.instance.$style) == null ? void 0 : n.name) == "avatargroup"
324
327
  },
325
328
  "text-white"
326
329
  ]
@@ -329,13 +332,13 @@ const h = {
329
332
  image: {
330
333
  class: "h-full w-full rounded-full"
331
334
  }
332
- }, k = {
335
+ }, F = {
333
336
  root: {
334
337
  class: "flex items-center ml-4",
335
338
  "data-wv-name": "usergroup",
336
339
  "data-wv-section": "root"
337
340
  }
338
- }, n = {
341
+ }, c = {
339
342
  root: ({ props: e }) => ({
340
343
  class: [
341
344
  // Alignment
@@ -383,7 +386,7 @@ const h = {
383
386
  "icon-class": "w-3 h-3",
384
387
  "data-wv-section": "removebutton"
385
388
  })
386
- }, C = {
389
+ }, S = {
387
390
  root: ({ context: e }) => ({
388
391
  class: [
389
392
  // Font
@@ -421,7 +424,7 @@ const h = {
421
424
  }
422
425
  ]
423
426
  })
424
- }, z = {
427
+ }, P = {
425
428
  root: ({ props: e, context: t }) => ({
426
429
  class: [
427
430
  "relative",
@@ -710,7 +713,7 @@ const h = {
710
713
  }
711
714
  ]
712
715
  })
713
- }, j = {
716
+ }, N = {
714
717
  root: ({ props: e }) => ({
715
718
  class: [
716
719
  "focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm",
@@ -725,7 +728,7 @@ const h = {
725
728
  "data-wv-section": "icon",
726
729
  severity: "secondary"
727
730
  }
728
- }, A = {
731
+ }, V = {
729
732
  root: () => ({
730
733
  class: "focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm",
731
734
  "data-wv-name": "buttonfilter",
@@ -736,7 +739,7 @@ const h = {
736
739
  severity: "secondary",
737
740
  "data-wv-section": "icon"
738
741
  })
739
- }, _ = {
742
+ }, $ = {
740
743
  buttontrigger: {
741
744
  root: ({ context: e }) => ({
742
745
  class: [
@@ -783,7 +786,7 @@ const h = {
783
786
  inputtext: {
784
787
  class: "!h-max"
785
788
  }
786
- }, I = {
789
+ }, B = {
787
790
  root: ["w-max"],
788
791
  button: {
789
792
  class: [
@@ -792,7 +795,7 @@ const h = {
792
795
  "data-wv-section": "button-split"
793
796
  },
794
797
  menuButton: "!rounded-ss-none !rounded-es-none"
795
- }, u = navigator.userAgent.includes("Firefox"), F = {
798
+ }, x = navigator.userAgent.includes("Firefox"), E = {
796
799
  root: ({ props: e }) => ({
797
800
  class: [
798
801
  // Display and Position
@@ -1249,8 +1252,8 @@ const h = {
1249
1252
  class: [
1250
1253
  "w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded",
1251
1254
  {
1252
- "ring-1": u,
1253
- "ring-[0.5px]": !u
1255
+ "ring-1": x,
1256
+ "ring-[0.5px]": !x
1254
1257
  }
1255
1258
  ]
1256
1259
  },
@@ -1375,7 +1378,7 @@ const h = {
1375
1378
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
1376
1379
  leaveToClass: "opacity-0"
1377
1380
  }
1378
- }, T = {
1381
+ }, G = {
1379
1382
  root: {
1380
1383
  class: [
1381
1384
  //Shape
@@ -1404,7 +1407,7 @@ const h = {
1404
1407
  footer: {
1405
1408
  class: ["inline-flex gap-1 text-xs items-center"]
1406
1409
  }
1407
- }, V = {
1410
+ }, U = {
1408
1411
  root: {
1409
1412
  class: [
1410
1413
  // Flexbox
@@ -1518,7 +1521,7 @@ const h = {
1518
1521
  }
1519
1522
  ]
1520
1523
  })
1521
- }, P = {
1524
+ }, L = {
1522
1525
  root: ({ props: e, state: t }) => ({
1523
1526
  class: [
1524
1527
  // Display and Position
@@ -1697,7 +1700,7 @@ const h = {
1697
1700
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
1698
1701
  leaveToClass: "opacity-0"
1699
1702
  }
1700
- }, S = {
1703
+ }, R = {
1701
1704
  button: (e) => ({
1702
1705
  class: [e, "w-max"],
1703
1706
  "data-wv-section": "changelog-button"
@@ -1725,7 +1728,7 @@ const h = {
1725
1728
  buttondownload: {
1726
1729
  "data-wv-section": "changelog-dialog-button-download"
1727
1730
  }
1728
- }, a = {
1731
+ }, d = {
1729
1732
  root: {
1730
1733
  class: [
1731
1734
  "relative",
@@ -1835,7 +1838,7 @@ const h = {
1835
1838
  tooltipicon: {
1836
1839
  class: "text-grayscale-900 w-[10px] h-[10px]"
1837
1840
  }
1838
- }, $ = {
1841
+ }, M = {
1839
1842
  root: {
1840
1843
  class: [
1841
1844
  // Flexbox
@@ -1872,7 +1875,7 @@ const h = {
1872
1875
  "cursor-pointer"
1873
1876
  ]
1874
1877
  }
1875
- }, M = {
1878
+ }, O = {
1876
1879
  root: ({ props: e }) => ({
1877
1880
  class: [
1878
1881
  "flex",
@@ -1961,7 +1964,7 @@ const h = {
1961
1964
  "cursor-pointer"
1962
1965
  ]
1963
1966
  }
1964
- }, B = {
1967
+ }, W = {
1965
1968
  menustart: {
1966
1969
  class: "border-b-[0.5px] border-solid border-grayscale-900"
1967
1970
  },
@@ -1985,7 +1988,7 @@ const h = {
1985
1988
  { invisible: e.dragable === !1 }
1986
1989
  ]
1987
1990
  })
1988
- }, R = {
1991
+ }, D = {
1989
1992
  copybutton: {
1990
1993
  class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
1991
1994
  },
@@ -2005,7 +2008,7 @@ const h = {
2005
2008
  "px-2 bg-primary-100 sticky left-0 text-right select-none"
2006
2009
  ]
2007
2010
  }
2008
- }, L = {
2011
+ }, K = {
2009
2012
  root: ({ props: e }) => ({
2010
2013
  class: [
2011
2014
  // Display
@@ -2114,7 +2117,7 @@ const h = {
2114
2117
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
2115
2118
  leaveToClass: "opacity-0"
2116
2119
  }
2117
- }, E = {
2120
+ }, H = {
2118
2121
  root: {
2119
2122
  class: [
2120
2123
  // Shape
@@ -2215,7 +2218,7 @@ const h = {
2215
2218
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
2216
2219
  leaveToClass: "opacity-0"
2217
2220
  }
2218
- }, G = {
2221
+ }, Y = {
2219
2222
  root: {
2220
2223
  class: [
2221
2224
  // Sizing and Shape
@@ -2319,7 +2322,7 @@ const h = {
2319
2322
  enterFromClass: "opacity-0",
2320
2323
  enterActiveClass: "transition-opacity duration-250"
2321
2324
  }
2322
- }, O = {
2325
+ }, q = {
2323
2326
  root: {
2324
2327
  "data-wv-name": "datatable",
2325
2328
  "data-wv-section": "root",
@@ -2531,7 +2534,7 @@ const h = {
2531
2534
  class: "",
2532
2535
  template: "FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown"
2533
2536
  })
2534
- }, H = {
2537
+ }, J = {
2535
2538
  content: {
2536
2539
  class: [
2537
2540
  // Spacing
@@ -2564,7 +2567,7 @@ const h = {
2564
2567
  "border-surface-200 border-b"
2565
2568
  ]
2566
2569
  }
2567
- }, N = {
2570
+ }, X = {
2568
2571
  listbutton: ({ props: e }) => ({
2569
2572
  class: [
2570
2573
  // Font
@@ -2609,7 +2612,7 @@ const h = {
2609
2612
  "cursor-pointer select-none overflow-hidden"
2610
2613
  ]
2611
2614
  })
2612
- }, x = {
2615
+ }, C = {
2613
2616
  root: ({ state: e }) => ({
2614
2617
  class: [
2615
2618
  // Shape
@@ -2802,7 +2805,7 @@ const h = {
2802
2805
  leaveActiveClass: "transition-all duration-200 ease-out",
2803
2806
  leaveToClass: "opacity-0 scale-75 mask-active"
2804
2807
  }
2805
- }, q = {
2808
+ }, Z = {
2806
2809
  root: {
2807
2810
  class: ["!w-[clamp(360px,75vw,400px)]"],
2808
2811
  "data-wv-name": (e) => e ?? "root",
@@ -2846,7 +2849,7 @@ const h = {
2846
2849
  class: "flex items-end justify-end gap-1 !mt-0",
2847
2850
  "data-wv-section": "dialog-confirm-footer"
2848
2851
  }
2849
- }, D = {
2852
+ }, Q = {
2850
2853
  root: {
2851
2854
  class: ["max-w-[90vw]"],
2852
2855
  style: (e) => `width: ${e}`,
@@ -2911,7 +2914,7 @@ const h = {
2911
2914
  savesubmitbutton: {
2912
2915
  "data-wv-section": "save-submit-button"
2913
2916
  }
2914
- }, J = {
2917
+ }, ee = {
2915
2918
  root: ({ props: e }) => ({
2916
2919
  class: [
2917
2920
  // Flex and Position
@@ -2969,7 +2972,7 @@ const h = {
2969
2972
  "bg-surface-0"
2970
2973
  ]
2971
2974
  }
2972
- }, K = {
2975
+ }, te = {
2973
2976
  root: ({ props: e }) => ({
2974
2977
  class: [
2975
2978
  // Positioning
@@ -3089,9 +3092,9 @@ const h = {
3089
3092
  ]
3090
3093
  };
3091
3094
  },
3092
- token: n.root({ props: { severity: "dark" } }),
3093
- tokenLabel: n.input({ props: {}, context: {} }),
3094
- removeTokenIcon: n.removebutton({
3095
+ token: c.root({ props: { severity: "dark" } }),
3096
+ tokenLabel: c.input({ props: {}, context: {} }),
3097
+ removeTokenIcon: c.removebutton({
3095
3098
  props: { badgeSeverity: "dark" }
3096
3099
  }),
3097
3100
  loadingplaceholder: {
@@ -3175,17 +3178,17 @@ const h = {
3175
3178
  ]
3176
3179
  },
3177
3180
  headerCheckbox: {
3178
- ...a,
3181
+ ...d,
3179
3182
  root: {
3180
3183
  class: [
3181
3184
  "!mx-auto",
3182
- ...a.root.class,
3185
+ ...d.root.class,
3183
3186
  "[&:not(:has(svg))_[data-pc-section=box]]:!bg-primary-400",
3184
3187
  "[&:not(:has(svg))_[data-pc-section=box]]:!border-white"
3185
3188
  ]
3186
3189
  }
3187
3190
  },
3188
- itemCheckbox: a,
3191
+ itemCheckbox: d,
3189
3192
  closeButton: {
3190
3193
  class: ["hidden"]
3191
3194
  },
@@ -3336,7 +3339,7 @@ const h = {
3336
3339
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3337
3340
  leaveToClass: "opacity-0"
3338
3341
  }
3339
- }, W = {
3342
+ }, re = {
3340
3343
  root: ({ props: e, state: t }) => ({
3341
3344
  class: [
3342
3345
  // Display and Position
@@ -3541,7 +3544,7 @@ const h = {
3541
3544
  loadingplaceholder: {
3542
3545
  class: "text-general-200 font-normal"
3543
3546
  }
3544
- }, X = {
3547
+ }, se = {
3545
3548
  root: {
3546
3549
  class: [
3547
3550
  "block",
@@ -3619,7 +3622,7 @@ const h = {
3619
3622
  leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
3620
3623
  leaveToClass: "max-h-0"
3621
3624
  }
3622
- }, Y = {
3625
+ }, ie = {
3623
3626
  root: {
3624
3627
  class: [
3625
3628
  "flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"
@@ -3627,9 +3630,12 @@ const h = {
3627
3630
  "data-wv-name": "fieldwrapper",
3628
3631
  "data-wv-section": "root"
3629
3632
  },
3630
- label: ({ props: e }) => ({
3633
+ label: ({ props: e, slots: t }) => ({
3631
3634
  class: [
3632
- ["text-general-900 text-xs flex gap-[2px] font-normal", e.labelClass]
3635
+ ["text-general-900 text-xs flex gap-[2px] font-normal", e.labelClass],
3636
+ {
3637
+ "w-full": t["label-addon"]
3638
+ }
3633
3639
  ],
3634
3640
  "data-wv-section": "fieldlabel"
3635
3641
  }),
@@ -3639,7 +3645,7 @@ const h = {
3639
3645
  optionaltext: {
3640
3646
  class: "text-grayscale-700 text-[10px] font-normal leading-4"
3641
3647
  }
3642
- }, Z = {
3648
+ }, ne = {
3643
3649
  // :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
3644
3650
  root: () => ({
3645
3651
  class: [
@@ -3683,14 +3689,14 @@ const h = {
3683
3689
  "validator-message": {
3684
3690
  class: ["static w-max transform-none"]
3685
3691
  }
3686
- }, Q = [
3692
+ }, oe = [
3687
3693
  {
3688
3694
  "ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
3689
3695
  "ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
3690
3696
  },
3691
3697
  "ring-inset",
3692
3698
  "ring-general-400"
3693
- ], U = {
3699
+ ], ae = {
3694
3700
  css: `
3695
3701
  *[data-pd-ripple="true"]{
3696
3702
  overflow: hidden;
@@ -3767,7 +3773,7 @@ const h = {
3767
3773
  }
3768
3774
  }
3769
3775
  `
3770
- }, ee = {
3776
+ }, le = {
3771
3777
  root: ({ props: e }) => ({
3772
3778
  class: [
3773
3779
  "relative inline-block",
@@ -3905,7 +3911,7 @@ const h = {
3905
3911
  leaveActiveClass: "transition-all duration-150 ease-in",
3906
3912
  leaveToClass: "opacity-0 scale-75"
3907
3913
  }
3908
- }, te = {
3914
+ }, ce = {
3909
3915
  root: ({ props: e }) => ({
3910
3916
  class: [
3911
3917
  "rounded-md p-3",
@@ -3935,16 +3941,16 @@ const h = {
3935
3941
  "font-medium"
3936
3942
  ]
3937
3943
  }
3938
- }, v = {
3944
+ }, z = {
3939
3945
  root: ({ props: e, context: t, parent: r }) => {
3940
- var s, o;
3946
+ var s, n;
3941
3947
  return {
3942
3948
  class: [
3943
3949
  "px-3 py-1 w-full bg-transparent",
3944
3950
  // Size
3945
3951
  "h-full",
3946
3952
  {
3947
- "max-h-[43px]": (o = (s = r.instance) == null ? void 0 : s.placeholder) == null ? void 0 : o.includes("password")
3953
+ "max-h-[43px]": (n = (s = r.instance) == null ? void 0 : s.placeholder) == null ? void 0 : n.includes("password")
3948
3954
  },
3949
3955
  // Font
3950
3956
  "text-grayscale-900 text-xs font-normal",
@@ -3959,15 +3965,15 @@ const h = {
3959
3965
  ]
3960
3966
  };
3961
3967
  }
3962
- }, f = navigator.userAgent.includes("Firefox"), re = {
3968
+ }, v = navigator.userAgent.includes("Firefox"), de = {
3963
3969
  root: ({ context: e }) => ({
3964
3970
  class: [
3965
3971
  "flex flex-wrap gap-x-0.5 gap-y-[5px] items-center",
3966
3972
  "min-h-[26px] h-fit w-full",
3967
3973
  "ring-inset rounded px-[12px] py-[2px]",
3968
3974
  {
3969
- "ring-[1px]": f,
3970
- "ring-[0.5px]": !f
3975
+ "ring-[1px]": v,
3976
+ "ring-[0.5px]": !v
3971
3977
  },
3972
3978
  { "!ring-danger-500 !dark:ring-danger-500": e.invalidInput },
3973
3979
  { "!ring-general-200 !dark:ring-general-200": !e.invalidInput },
@@ -3976,7 +3982,7 @@ const h = {
3976
3982
  }),
3977
3983
  input: ({ context: e, parent: t, props: r }) => ({
3978
3984
  class: [
3979
- ...v.root({
3985
+ ...z.root({
3980
3986
  props: r,
3981
3987
  context: e,
3982
3988
  parent: t
@@ -3992,7 +3998,7 @@ const h = {
3992
3998
  erroroverlaypanel: {
3993
3999
  class: ["px-3 py-1 text-[12px] text-general-800"]
3994
4000
  }
3995
- }, g = navigator.userAgent.includes("Firefox"), se = {
4001
+ }, h = navigator.userAgent.includes("Firefox"), ue = {
3996
4002
  root: ({ props: e }) => ({
3997
4003
  class: [
3998
4004
  {
@@ -4004,8 +4010,8 @@ const h = {
4004
4010
  "[&:has(:focus)]:!ring-primary-400 [&:has(:focus)_.inputgroupaddon]:!ring-primary-400": e.ring !== "none"
4005
4011
  },
4006
4012
  {
4007
- "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": g && e.ring !== "none",
4008
- "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !g && e.ring !== "none"
4013
+ "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": h && e.ring !== "none",
4014
+ "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !h && e.ring !== "none"
4009
4015
  },
4010
4016
  "[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]",
4011
4017
  "[&:has(input)]:cursor-text",
@@ -4018,7 +4024,7 @@ const h = {
4018
4024
  ],
4019
4025
  "data-wv-section": "inputgroup"
4020
4026
  })
4021
- }, ie = {
4027
+ }, fe = {
4022
4028
  root: ({ props: e }) => ({
4023
4029
  class: [
4024
4030
  "inputgroupaddon",
@@ -4048,7 +4054,7 @@ const h = {
4048
4054
  "data-addon-variant": e.addonVariant
4049
4055
  // Used in inputgroup to set styling
4050
4056
  })
4051
- }, oe = {
4057
+ }, ge = {
4052
4058
  root: ({ context: e }) => ({
4053
4059
  class: [
4054
4060
  // Font
@@ -4071,13 +4077,13 @@ const h = {
4071
4077
  }
4072
4078
  ]
4073
4079
  })
4074
- }, m = "text-xs font-normal leading-[22px]", b = "h-[30px]", ne = {
4080
+ }, y = "text-xs font-normal leading-[22px]", w = "h-[30px]", me = {
4075
4081
  root: ({ props: e, parent: t }) => ({
4076
4082
  class: [
4077
4083
  // Layout
4078
4084
  "flex items-center self-stretch shrink-0 grow",
4079
4085
  //Size
4080
- b,
4086
+ w,
4081
4087
  // Spacing
4082
4088
  "py-1 px-3",
4083
4089
  // Border
@@ -4090,7 +4096,7 @@ const h = {
4090
4096
  class: [
4091
4097
  "border-0 h-full w-full outline-none",
4092
4098
  "bg-inherit",
4093
- m,
4099
+ y,
4094
4100
  "placeholder:text-general-200 placeholder:font-normal",
4095
4101
  t.disabled ? "text-general-200" : "text-grayscale-900"
4096
4102
  ]
@@ -4098,8 +4104,8 @@ const h = {
4098
4104
  },
4099
4105
  inputresizer: {
4100
4106
  class: [
4101
- m,
4102
- b,
4107
+ y,
4108
+ w,
4103
4109
  "user-select-none py-1 px-3 block min-w-4 text-transparent"
4104
4110
  ]
4105
4111
  },
@@ -4138,7 +4144,7 @@ const h = {
4138
4144
  }
4139
4145
  ]
4140
4146
  })
4141
- }, ae = {
4147
+ }, be = {
4142
4148
  root: {
4143
4149
  class: [
4144
4150
  // Alignment
@@ -4197,7 +4203,7 @@ const h = {
4197
4203
  };
4198
4204
  }
4199
4205
  }
4200
- }, c = ({ isFirefoxBased: e, invalidInput: t }) => [
4206
+ }, f = ({ isFirefoxBased: e, invalidInput: t }) => [
4201
4207
  { "ring-[1px]": e, "ring-[0.5px]": !e },
4202
4208
  { "!ring-danger-500": t },
4203
4209
  "ring-inset",
@@ -4206,23 +4212,23 @@ const h = {
4206
4212
  "[&:has(:focus)]:ring-primary-400",
4207
4213
  "bg-white",
4208
4214
  "z-[0] [&:has(:focus)]:z-[12]"
4209
- ], le = {
4215
+ ], pe = {
4210
4216
  dialcode: {
4211
4217
  root: (e) => ({
4212
- class: [...c(e), "rounded-l rounded-r-none"]
4218
+ class: [...f(e), "rounded-l rounded-r-none"]
4213
4219
  }),
4214
4220
  dropdownicon: ({ state: e }) => i.dropdownicon({ state: e })
4215
4221
  },
4216
4222
  input: (e) => ({
4217
4223
  class: [
4218
- ...c(e),
4224
+ ...f(e),
4219
4225
  "rounded-r rounded-l-none -ml-[1px]",
4220
4226
  "focus:bg-none",
4221
4227
  "focus:ring-primary-500",
4222
4228
  "focus:ring-1"
4223
4229
  ]
4224
4230
  })
4225
- }, ce = {
4231
+ }, xe = {
4226
4232
  root: ({ props: e }) => ({
4227
4233
  class: [
4228
4234
  // Misc
@@ -4261,7 +4267,7 @@ const h = {
4261
4267
  "fill-surface-600"
4262
4268
  ]
4263
4269
  }
4264
- }, de = {
4270
+ }, ve = {
4265
4271
  root: {
4266
4272
  class: [
4267
4273
  // Sizing and Shape
@@ -4393,7 +4399,7 @@ const h = {
4393
4399
  "bg-transparent"
4394
4400
  ]
4395
4401
  }
4396
- }, ue = {
4402
+ }, he = {
4397
4403
  root: ({ props: e }) => ({
4398
4404
  class: [
4399
4405
  "relative",
@@ -4574,7 +4580,7 @@ const h = {
4574
4580
  end: {
4575
4581
  class: "ml-auto self-center"
4576
4582
  }
4577
- }, fe = {
4583
+ }, ye = {
4578
4584
  root: {
4579
4585
  class: [
4580
4586
  // Position
@@ -4675,7 +4681,7 @@ const h = {
4675
4681
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
4676
4682
  leaveToClass: "opacity-0"
4677
4683
  }
4678
- }, ge = {
4684
+ }, we = {
4679
4685
  root: {
4680
4686
  class: [
4681
4687
  "relative",
@@ -4829,7 +4835,7 @@ const h = {
4829
4835
  end: {
4830
4836
  class: "ml-auto self-center"
4831
4837
  }
4832
- }, me = {
4838
+ }, ke = {
4833
4839
  root: ({ props: e }) => ({
4834
4840
  class: [
4835
4841
  // Spacing and Shape
@@ -4905,7 +4911,7 @@ const h = {
4905
4911
  leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
4906
4912
  leaveToClass: "max-h-0 opacity-0 !m-0"
4907
4913
  }
4908
- }, be = {
4914
+ }, Ce = {
4909
4915
  root: {
4910
4916
  class: [
4911
4917
  // Flexbox
@@ -5132,7 +5138,7 @@ const h = {
5132
5138
  "cursor-pointer overflow-hidden"
5133
5139
  ]
5134
5140
  })
5135
- }, pe = {
5141
+ }, ze = {
5136
5142
  table: {
5137
5143
  class: [
5138
5144
  // Spacing & Position
@@ -5249,7 +5255,7 @@ const h = {
5249
5255
  "w-4 h-4"
5250
5256
  ]
5251
5257
  }
5252
- }, xe = {
5258
+ }, je = {
5253
5259
  root: {
5254
5260
  class: [
5255
5261
  "h-max",
@@ -5280,7 +5286,7 @@ const h = {
5280
5286
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
5281
5287
  leaveToClass: "opacity-0"
5282
5288
  }
5283
- }, ve = {
5289
+ }, Ae = {
5284
5290
  root: {
5285
5291
  class: [
5286
5292
  // Flex & Alignment
@@ -5724,7 +5730,7 @@ const h = {
5724
5730
  current: {
5725
5731
  class: ["text-xs font-normal leading-6 px-3"]
5726
5732
  }
5727
- }, he = {
5733
+ }, _e = {
5728
5734
  root: {
5729
5735
  class: "shadow-md rounded-lg"
5730
5736
  },
@@ -5803,7 +5809,7 @@ const h = {
5803
5809
  leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
5804
5810
  leaveToClass: "max-h-0"
5805
5811
  }
5806
- }, ye = {
5812
+ }, Te = {
5807
5813
  panel: {
5808
5814
  class: "mb-1"
5809
5815
  },
@@ -5920,7 +5926,7 @@ const h = {
5920
5926
  leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
5921
5927
  leaveToClass: "max-h-0"
5922
5928
  }
5923
- }, we = {
5929
+ }, Ie = {
5924
5930
  root: ({ props: e }) => ({
5925
5931
  class: [
5926
5932
  "w-full",
@@ -6009,7 +6015,7 @@ const h = {
6009
6015
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
6010
6016
  leaveToClass: "opacity-0"
6011
6017
  }
6012
- }, ke = {
6018
+ }, Fe = {
6013
6019
  root: {
6014
6020
  class: [
6015
6021
  // Flexbox
@@ -6580,7 +6586,7 @@ const h = {
6580
6586
  leaveActiveClass: "!transition-none",
6581
6587
  leaveToClass: "!transition-none"
6582
6588
  }
6583
- }, Ce = {
6589
+ }, Se = {
6584
6590
  root: ({ props: e }) => ({
6585
6591
  class: [
6586
6592
  {
@@ -6664,7 +6670,7 @@ const h = {
6664
6670
  }
6665
6671
  ]
6666
6672
  })
6667
- }, p = navigator.userAgent.includes("Firefox"), l = {
6673
+ }, k = navigator.userAgent.includes("Firefox"), u = {
6668
6674
  root: ({ props: e }) => ({
6669
6675
  class: [
6670
6676
  // Alignments
@@ -6704,7 +6710,7 @@ const h = {
6704
6710
  },
6705
6711
  // Colors
6706
6712
  "ring-1",
6707
- { "ring-1": p, "ring-[0.5px]": !p },
6713
+ { "ring-1": k, "ring-[0.5px]": !k },
6708
6714
  {
6709
6715
  "before:bg-white": e.modelValue == e.trueValue,
6710
6716
  "before:bg-primary-200": e.modelValue !== e.trueValue && !e.disabled,
@@ -6779,7 +6785,7 @@ const h = {
6779
6785
  tooltipicon: {
6780
6786
  class: "text-grayscale-900 w-[10px] h-[10px]"
6781
6787
  }
6782
- }, ze = {
6788
+ }, Pe = {
6783
6789
  root: ({ props: e }) => ({
6784
6790
  class: [
6785
6791
  "relative",
@@ -6805,7 +6811,7 @@ const h = {
6805
6811
  "data-wv-name": "buttonradio",
6806
6812
  "data-wv-section": "root"
6807
6813
  }),
6808
- box: ({ props: e }) => ({
6814
+ box: ({ props: e, state: t }) => ({
6809
6815
  class: [
6810
6816
  // Size
6811
6817
  "w-2 h-2",
@@ -6820,8 +6826,8 @@ const h = {
6820
6826
  "transition duration-200 ease-in-out",
6821
6827
  // Colors
6822
6828
  {
6823
- "bg-grayscale-900": e.value == e.modelValue && e.value !== void 0 && !e.disabled,
6824
- "bg-general-300": e.value == e.modelValue && e.value !== void 0 && e.disabled
6829
+ "bg-grayscale-900": t.checked && e.value !== void 0 && !e.disabled,
6830
+ "bg-general-300": t.checked && e.value !== void 0 && e.disabled
6825
6831
  },
6826
6832
  // States
6827
6833
  {
@@ -6855,10 +6861,10 @@ const h = {
6855
6861
  icon: {
6856
6862
  class: "hidden"
6857
6863
  },
6858
- label: l.label,
6859
- labeltext: l.labeltext,
6860
- tooltipicon: l.tooltipicon
6861
- }, je = {
6864
+ label: u.label,
6865
+ labeltext: u.labeltext,
6866
+ tooltipicon: u.tooltipicon
6867
+ }, Ne = {
6862
6868
  root: ({ props: e }) => ({
6863
6869
  class: [
6864
6870
  "relative",
@@ -6928,12 +6934,12 @@ const h = {
6928
6934
  "transition duration-200 ease-in"
6929
6935
  ]
6930
6936
  })
6931
- }, Ae = {
6937
+ }, Ve = {
6932
6938
  root: {
6933
6939
  class: ["block absolute bg-surface-0/50 rounded-full pointer-events-none"],
6934
6940
  style: "transform: scale(0)"
6935
6941
  }
6936
- }, _e = {
6942
+ }, $e = {
6937
6943
  wrapper: {
6938
6944
  class: [
6939
6945
  // Size & Position
@@ -6992,7 +6998,7 @@ const h = {
6992
6998
  "relative"
6993
6999
  ]
6994
7000
  }
6995
- }, Ie = {
7001
+ }, Be = {
6996
7002
  root: ({ props: e }) => ({
6997
7003
  class: [
6998
7004
  // Flex & Alignment
@@ -7028,7 +7034,7 @@ const h = {
7028
7034
  leaveActiveClass: "transition-opacity duration-150",
7029
7035
  leaveToClass: "opacity-0"
7030
7036
  }
7031
- }, Fe = {
7037
+ }, Ee = {
7032
7038
  root: ({ props: e }) => ({
7033
7039
  class: [
7034
7040
  "shadow-sm flex flex-col min-w-[43px] w-max"
@@ -7075,7 +7081,7 @@ const h = {
7075
7081
  label: {
7076
7082
  class: "font-normal"
7077
7083
  }
7078
- }, Te = {
7084
+ }, Ge = {
7079
7085
  root: ({ props: e }) => ({
7080
7086
  class: [
7081
7087
  // Flexbox
@@ -7200,7 +7206,7 @@ const h = {
7200
7206
  leaveActiveClass: "transition-opacity duration-400 ease-in",
7201
7207
  leaveToClass: "opacity-0 mask-active"
7202
7208
  }
7203
- }, Ve = {
7209
+ }, Ue = {
7204
7210
  root: ({ props: e }) => ({
7205
7211
  class: [
7206
7212
  "overflow-hidden",
@@ -7216,7 +7222,7 @@ const h = {
7216
7222
  "bg-general-50"
7217
7223
  ]
7218
7224
  })
7219
- }, Pe = {
7225
+ }, Le = {
7220
7226
  root: ({ props: e }) => ({
7221
7227
  class: [
7222
7228
  "relative",
@@ -7324,7 +7330,7 @@ const h = {
7324
7330
  "touch-action-none"
7325
7331
  ]
7326
7332
  })
7327
- }, Se = {
7333
+ }, Re = {
7328
7334
  root: ({ props: e }) => ({
7329
7335
  class: [
7330
7336
  // Flexbox and Position
@@ -7832,7 +7838,7 @@ const h = {
7832
7838
  class: ["hidden"]
7833
7839
  }
7834
7840
  }
7835
- }, $e = {
7841
+ }, Me = {
7836
7842
  root: {
7837
7843
  class: "relative"
7838
7844
  },
@@ -7939,12 +7945,319 @@ const h = {
7939
7945
  "max-w-full"
7940
7946
  ]
7941
7947
  })
7942
- }, Me = {
7948
+ };
7949
+ function p(e, t) {
7950
+ return { [e]: t }[e];
7951
+ }
7952
+ p("WANGS-TAB-MENU", {
7953
+ root: {
7954
+ class: "overflow-x-visible"
7955
+ },
7956
+ menu: ({ props: e }) => ({
7957
+ class: [
7958
+ // Flexbox
7959
+ "flex flex-1",
7960
+ // Spacing
7961
+ "list-none",
7962
+ "p-0 m-0",
7963
+ // Colors
7964
+ "text-general-100",
7965
+ { "w-max ring-1 ring-inset ring-general-100 rounded": e.type === "segmented" }
7966
+ ]
7967
+ }),
7968
+ menuitem: {
7969
+ class: "mr-0"
7970
+ },
7971
+ action: ({ props: e, context: t }) => {
7972
+ var r, s;
7973
+ return {
7974
+ class: [
7975
+ "relative",
7976
+ // Font
7977
+ "font-medium",
7978
+ "text-xs leading-4 tracking-[0.02em]",
7979
+ // Flexbox and Alignment
7980
+ "flex items-center",
7981
+ // Spacing
7982
+ {
7983
+ "rounded-xl py-1 px-3": e.type === "pill",
7984
+ rounded: e.type === "segmented",
7985
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
7986
+ "py-[5px] px-3 !h-6": e.type === "segmented",
7987
+ "ml-1": e.type === "pill" && t.index !== 0,
7988
+ "gap-1": t.item.icon
7989
+ },
7990
+ // Shape
7991
+ {
7992
+ "border-b-2": e.type === "tab",
7993
+ "shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": e.type === "segmented" && t.active
7994
+ },
7995
+ // Colors and Conditions
7996
+ {
7997
+ "border-primary-700": t.active,
7998
+ "border-grayscale-400": !t.active,
7999
+ "text-grayscale-600": !t.active && e.type === "tab",
8000
+ "text-primary-700": t.active && e.type === "tab",
8001
+ "bg-primary-700 text-white": e.type === "pill" && t.active,
8002
+ "bg-grayscale-100 text-grayscale-800": e.type === "pill" && !t.active,
8003
+ "bg-primary-500 text-white": e.type === "segmented" && t.active,
8004
+ "!text-general-800": e.type === "segmented" && !t.active,
8005
+ "bg-transparent ": e.type !== "pill" && !t.active
8006
+ },
8007
+ // States
8008
+ { "hover:bg-primary-50": e.type === "tab" },
8009
+ "focus-visible:outline-none focus-visible:outline-offset-0",
8010
+ {
8011
+ "focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
8012
+ },
8013
+ // Disabled States
8014
+ {
8015
+ "pointer-events-none": (r = t.item) == null ? void 0 : r.disabled,
8016
+ "opacity-60": (s = t.item) == null ? void 0 : s.disabled
8017
+ },
8018
+ // Transitions
8019
+ "transition-all duration-200",
8020
+ // Misc
8021
+ "cursor-pointer select-none text-decoration-none",
8022
+ "overflow-hidden",
8023
+ "user-select-none",
8024
+ "!no-underline",
8025
+ "whitespace-nowrap"
8026
+ ]
8027
+ };
8028
+ },
8029
+ icon: {
8030
+ class: "mr-2"
8031
+ },
8032
+ inkbar: ({ props: e }) => ({
8033
+ class: ["grow border-b-2 border-grayscale-400", { hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented" }]
8034
+ })
8035
+ });
8036
+ p("WANGS-INPUT-OTP", {
8037
+ root: {
8038
+ class: [
8039
+ // Alignment
8040
+ "flex items-center",
8041
+ "gap-[6px]",
8042
+ "w-max"
8043
+ ]
8044
+ },
8045
+ input: ({ props: e, context: t, parent: r }) => ({
8046
+ class: [
8047
+ // Font
8048
+ "text-[14px] leading-none font-medium",
8049
+ // Flex & Alignment
8050
+ { "flex-1 w-[1%]": r.tagName == "WANGS-INPUT-GROUP" },
8051
+ "text-center",
8052
+ // Spacing
8053
+ "m-0",
8054
+ // Size
8055
+ "w-[42px] h-[42px]",
8056
+ // Shape
8057
+ { "rounded-md": r.tagName !== "WANGS-INPUT-GROUP" },
8058
+ {
8059
+ "first:rounded-l-md rounded-none last:rounded-r-md": r.tagName == "WANGS-INPUT-GROUP"
8060
+ },
8061
+ {
8062
+ "border-0 border-y border-l last:border-r": r.tagName == "WANGS-INPUT-GROUP"
8063
+ },
8064
+ // Colors
8065
+ "text-general-800 dark:text-general-800",
8066
+ "placeholder:text-surface-400 dark:placeholder:text-surface-500",
8067
+ "bg-white dark:bg-white",
8068
+ {
8069
+ "ring-1": navigator.userAgent.includes("Firefox"),
8070
+ "ring-[0.5px]": !navigator.userAgent.includes("Firefox")
8071
+ },
8072
+ { "ring-general-200 dark:ring-general-200": !e.invalid },
8073
+ // Invalid State
8074
+ { "ring-danger-500 dark:ring-danger-500": e.invalid },
8075
+ // States
8076
+ {
8077
+ "hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !t.disabled && !e.invalid,
8078
+ "focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !t.disabled && !e.invalid,
8079
+ "focus:outline-none focus:outline-offset-0": !t.disabled,
8080
+ "opacity-60 select-none pointer-events-none cursor-default": t.disabled
8081
+ },
8082
+ // Filled State *for FloatLabel
8083
+ { filled: r.tagName == "WANGS-FLOAT-LABEL" && t.filled },
8084
+ // Misc
8085
+ "appearance-none",
8086
+ "transition-colors duration-200"
8087
+ ]
8088
+ })
8089
+ });
8090
+ const o = class o {
8091
+ constructor() {
8092
+ /**
8093
+ * Stores base URLs associated with different app identifiers.
8094
+ */
8095
+ g(this, "_baseUrl", "");
8096
+ if (globalThis[o.SINGLETON_KEY])
8097
+ return globalThis[o.SINGLETON_KEY];
8098
+ globalThis[o.SINGLETON_KEY] = this;
8099
+ }
8100
+ /**
8101
+ * Registers a base URL for a specific app.
8102
+ *
8103
+ * @param base - The base URL to be used as a prefix for all routes in that app.
8104
+ */
8105
+ setNavigationBaseUrl(t) {
8106
+ this._baseUrl = this.normalizeBase(t);
8107
+ }
8108
+ /**
8109
+ * Retrieves the base URL for a specific app.
8110
+ *
8111
+ * @returns The base URL registered for the app or an empty string if not set.
8112
+ */
8113
+ getNavigationBaseUrl() {
8114
+ return this._baseUrl;
8115
+ }
8116
+ /**
8117
+ * Ensures the base URL ends with a single slash and removes trailing slashes.
8118
+ *
8119
+ * @param base - The base URL to normalize.
8120
+ * @returns A clean base URL ending with a single `/`.
8121
+ */
8122
+ normalizeBase(t) {
8123
+ return t.replace(/\/+$/, "").concat("/");
8124
+ }
8125
+ /**
8126
+ * Prepends the base URL (if any) to the given path.
8127
+ *
8128
+ * @param path - The relative path to normalize.
8129
+ * @returns A fully normalized path prefixed with the base URL if applicable.
8130
+ */
8131
+ normalizePath(t) {
8132
+ const r = this.getNavigationBaseUrl();
8133
+ if (!r)
8134
+ return t;
8135
+ const s = t.startsWith("/") ? t.slice(1) : t;
8136
+ return `${r}${s}`;
8137
+ }
8138
+ /**
8139
+ * Removes the specified base path from the beginning of a given route path.
8140
+ *
8141
+ * This is useful when your app is deployed under a subdirectory (e.g., `/base`)
8142
+ * and you want to normalize the route path to match menu or route definitions
8143
+ * that don't include the base.
8144
+ *
8145
+ * @param path - The full route path (e.g., `/base/about`).
8146
+ * @param base - The optional base URL to remove (e.g., `/base`).
8147
+ * @returns The normalized path without the base prefix (e.g., `/about`).
8148
+ *
8149
+ * @example
8150
+ * stripBase('/base/home', '/base'); // returns '/home'
8151
+ * stripBase('/about', '/base'); // returns '/about' (base not present)
8152
+ * stripBase('/base', '/base'); // returns '/'
8153
+ */
8154
+ stripBase(t, r) {
8155
+ return r || (r = this.getNavigationBaseUrl()), r !== "/" && t.startsWith(r) ? "/" + t.slice(r.length).replace(/^\/+/, "") : t;
8156
+ }
8157
+ /**
8158
+ * Pushes a new entry to the browser's history stack.
8159
+ *
8160
+ * @param route - The target URL or path to push. Can be a string, URL object, or null.
8161
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
8162
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
8163
+ *
8164
+ * @example
8165
+ * Router.push('/about', { from: 'home' });
8166
+ */
8167
+ push(t, r = {}, s = "") {
8168
+ var l;
8169
+ const n = {
8170
+ ...r,
8171
+ ...history.state ?? {},
8172
+ current: t,
8173
+ back: (l = history.state) == null ? void 0 : l.current,
8174
+ forward: void 0,
8175
+ replaced: !1,
8176
+ position: history.length + 1
8177
+ };
8178
+ window.history.pushState(n, s, t);
8179
+ }
8180
+ /**
8181
+ * Replaces the current entry in the browser's history stack.
8182
+ *
8183
+ * @param route - The target URL or path to replace with. Can be a string, URL object, or null.
8184
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
8185
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
8186
+ *
8187
+ * @example
8188
+ * Router.replace('/login', { reason: 'session expired' });
8189
+ */
8190
+ replace(t, r = {}, s = "") {
8191
+ const n = {
8192
+ ...r,
8193
+ ...history.state ?? {},
8194
+ forward: void 0,
8195
+ current: t,
8196
+ replaced: !0
8197
+ };
8198
+ window.history.replaceState(n, s, t);
8199
+ }
8200
+ /**
8201
+ * Dispatches a custom event before navigation occurs.
8202
+ * Used to notify subscribers of an upcoming route change.
8203
+ *
8204
+ * @param route - The route that will be navigated to.
8205
+ * @param mode - The navigation mode ('push' or 'replace').
8206
+ * @param data - Optional state object for the navigation.
8207
+ */
8208
+ dispatchBeforeNavigationEvent(t, r, s) {
8209
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
8210
+ detail: { route: t, mode: r, state: s }
8211
+ }));
8212
+ }
8213
+ /**
8214
+ * Dispatches a custom event after navigation occurs.
8215
+ * Used to notify subscribers that the route has changed.
8216
+ *
8217
+ * @param route - The route that was navigated to.
8218
+ * @param mode - The navigation mode ('push' or 'replace').
8219
+ * @param data - Optional state object for the navigation.
8220
+ */
8221
+ dispatchNavigationEvent(t, r, s) {
8222
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
8223
+ detail: { route: t, mode: r, state: s }
8224
+ }));
8225
+ }
8226
+ /**
8227
+ * Navigates to a specified route using the browser's History API.
8228
+ *
8229
+ * This updates the URL in the browser without reloading the page.
8230
+ * It can either push a new entry to the history stack or replace the current one.
8231
+ * Also dispatches custom events before and after the navigation.
8232
+ *
8233
+ * @param route - The target route to navigate to. Can be a string or URL object.
8234
+ * @param navigationMode - Determines how navigation is handled.
8235
+ * - `'push'` (default): Adds a new entry to the browser history.
8236
+ * - `'replace'`: Replaces the current history entry.
8237
+ * @param data - Optional state object associated with the history entry. Can be accessed via `history.state`.
8238
+ * @param unused - Optional title parameter (currently unused due to browser support limitations).
8239
+ *
8240
+ * @example
8241
+ * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
8242
+ */
8243
+ navigateToRoute(t, r = "push", s = {}, n = "") {
8244
+ if (!t)
8245
+ return;
8246
+ const l = typeof t == "string" ? t : t.toString(), a = this.normalizePath(l);
8247
+ if (a === location.pathname)
8248
+ return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
8249
+ this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s, n) : this.replace(a, s, n), this.dispatchNavigationEvent(a, r, s);
8250
+ }
8251
+ };
8252
+ g(o, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
8253
+ let m = o;
8254
+ new m();
8255
+ const Oe = p("WANGS-TAB-MENU", {
7943
8256
  root: {
7944
8257
  class: "overflow-x-auto",
7945
8258
  style: "scrollbar-width: none"
7946
8259
  },
7947
- menu: {
8260
+ menu: () => ({
7948
8261
  class: [
7949
8262
  // Flexbox
7950
8263
  "flex flex-1",
@@ -7955,12 +8268,12 @@ const h = {
7955
8268
  // Colors
7956
8269
  "text-general-100"
7957
8270
  ]
7958
- },
8271
+ }),
7959
8272
  menuitem: {
7960
8273
  class: "mr-0"
7961
8274
  },
7962
- action: ({ context: e, state: t }) => {
7963
- var r, s;
8275
+ action: ({ context: e }) => {
8276
+ var t, r;
7964
8277
  return {
7965
8278
  class: [
7966
8279
  "relative",
@@ -7975,23 +8288,23 @@ const h = {
7975
8288
  "border-b-2",
7976
8289
  // Colors and Conditions
7977
8290
  {
7978
- "bg-transparent ": t.d_activeIndex !== e.index,
7979
- "text-grayscale-900": t.d_activeIndex !== e.index,
7980
- "border-primary-400": t.d_activeIndex === e.index,
7981
- "border-primary-100": t.d_activeIndex !== e.index,
7982
- "text-primary-500": t.d_activeIndex === e.index
8291
+ "bg-transparent ": !e.active,
8292
+ "text-grayscale-900": !e.active,
8293
+ "border-primary-400": e.active,
8294
+ "border-primary-100": !e.active,
8295
+ "text-primary-500": e.active
7983
8296
  },
7984
8297
  // States
7985
8298
  "hover:bg-primary-50",
7986
8299
  "focus-visible:outline-none focus-visible:outline-offset-0",
7987
8300
  "focus-visible:bg-primary-50",
7988
8301
  {
7989
- "focus-visible:border-primary-200 focus-visible:text-primary-400": t.d_activeIndex !== e.index
8302
+ "focus-visible:border-primary-200 focus-visible:text-primary-400": !e.active
7990
8303
  },
7991
8304
  // Disabled States
7992
8305
  {
7993
- "pointer-events-none": (r = e.item) == null ? void 0 : r.disabled,
7994
- "opacity-60": (s = e.item) == null ? void 0 : s.disabled
8306
+ "pointer-events-none": (t = e.item) == null ? void 0 : t.disabled,
8307
+ "opacity-60": (r = e.item) == null ? void 0 : r.disabled
7995
8308
  },
7996
8309
  // Transitions
7997
8310
  "transition-all duration-200",
@@ -8007,10 +8320,13 @@ const h = {
8007
8320
  icon: {
8008
8321
  class: "mr-2"
8009
8322
  },
8010
- inkbar: {
8011
- class: "grow border-b-2 border-primary-100"
8012
- }
8013
- }, Be = {
8323
+ inkbar: ({ props: e }) => ({
8324
+ class: [
8325
+ "grow border-b-2 border-primary-100",
8326
+ { hidden: e.type === "pill" || e.useTrailingLine === !1 }
8327
+ ]
8328
+ })
8329
+ }), We = {
8014
8330
  navContainer: ({ props: e }) => ({
8015
8331
  class: [
8016
8332
  // Position
@@ -8146,7 +8462,7 @@ const h = {
8146
8462
  ]
8147
8463
  }
8148
8464
  }
8149
- }, Re = {
8465
+ }, De = {
8150
8466
  root: ({ props: e }) => ({
8151
8467
  class: [
8152
8468
  //Font
@@ -8177,7 +8493,7 @@ const h = {
8177
8493
  icon: {
8178
8494
  class: "mr-1 text-sm"
8179
8495
  }
8180
- }, Le = {
8496
+ }, Ke = {
8181
8497
  root: {
8182
8498
  class: [
8183
8499
  // Spacing
@@ -8229,7 +8545,7 @@ const h = {
8229
8545
  "outline-none"
8230
8546
  ]
8231
8547
  }
8232
- }, Ee = {
8548
+ }, He = {
8233
8549
  root: ({ context: e, props: t }) => ({
8234
8550
  class: [
8235
8551
  // Font
@@ -8246,7 +8562,7 @@ const h = {
8246
8562
  // Shape
8247
8563
  "rounded",
8248
8564
  "appearance-none",
8249
- ...Q,
8565
+ ...oe,
8250
8566
  {
8251
8567
  "!ring-danger-500": e.invalidInput
8252
8568
  },
@@ -8264,7 +8580,7 @@ const h = {
8264
8580
  "data-wv-name": "textarea",
8265
8581
  "data-wv-section": "root"
8266
8582
  })
8267
- }, Ge = {
8583
+ }, Ye = {
8268
8584
  root: {
8269
8585
  class: [
8270
8586
  // Shape
@@ -8366,16 +8682,16 @@ const h = {
8366
8682
  separator: {
8367
8683
  class: "border-t border-surface-200 my-1"
8368
8684
  }
8369
- }, d = (e) => {
8685
+ }, b = (e) => {
8370
8686
  if (!e) return !0;
8371
8687
  const t = Object.keys(e);
8372
8688
  return t.length ? t.every((r) => {
8373
8689
  const s = e[r];
8374
8690
  return typeof s == "object" ? Array.isArray(s) ? !s.length || s.every(
8375
- (o) => typeof o == "object" ? d(o) : o == null
8376
- ) : d(s) : s == null;
8691
+ (n) => typeof n == "object" ? b(n) : n == null
8692
+ ) : b(s) : s == null;
8377
8693
  }) : !0;
8378
- }, Oe = {
8694
+ }, qe = {
8379
8695
  root: ({ props: e }) => ({
8380
8696
  class: ["flex flex-col grow", "text-xs font-normal text-grayscale-900"]
8381
8697
  }),
@@ -8406,18 +8722,34 @@ const h = {
8406
8722
  markerArrow: (e) => ({
8407
8723
  class: [
8408
8724
  "w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",
8409
- { "!visible": e.detail && !d(e.detail) },
8725
+ { "!visible": e.detail && !b(e.detail) },
8410
8726
  { "rotate-180": e.showDetail }
8411
8727
  ],
8412
8728
  "data-wv-section": "markerArrow"
8413
8729
  }),
8730
+ markerDot: (e) => ({
8731
+ class: ["hidden"],
8732
+ "data-wv-section": "markerDot"
8733
+ }),
8734
+ contentHeader: {
8735
+ class: ["leading-5 cursor-pointer truncate !text-xs"]
8736
+ },
8737
+ contentDetailKey: {
8738
+ class: ["font-semibold whitespace-nowrap"]
8739
+ },
8740
+ contentDetailValue: {
8741
+ class: ["text-xs"]
8742
+ },
8743
+ contentDate: {
8744
+ class: [""]
8745
+ },
8414
8746
  connector: ({ props: e }) => ({
8415
8747
  class: ["w-[2px] grow bg-grayscale-900"]
8416
8748
  }),
8417
8749
  content: ({ props: e, context: t }) => ({
8418
8750
  class: ["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]
8419
8751
  })
8420
- }, He = {
8752
+ }, Je = {
8421
8753
  root: ({ props: e }) => ({
8422
8754
  class: [
8423
8755
  //Size and Shape
@@ -8500,7 +8832,7 @@ const h = {
8500
8832
  leaveActiveClass: "!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
8501
8833
  leaveToClass: "max-h-0 opacity-0 mb-0"
8502
8834
  }
8503
- }, Ne = {
8835
+ }, Xe = {
8504
8836
  root: {
8505
8837
  class: [
8506
8838
  "relative",
@@ -8571,7 +8903,7 @@ const h = {
8571
8903
  icon: {
8572
8904
  class: [" mr-2", "text-surface-700/80"]
8573
8905
  }
8574
- }, qe = {
8906
+ }, Ze = {
8575
8907
  root: {
8576
8908
  class: [
8577
8909
  // Flex & Alignment
@@ -8597,7 +8929,7 @@ const h = {
8597
8929
  end: {
8598
8930
  class: "flex items-center"
8599
8931
  }
8600
- }, De = {
8932
+ }, Qe = {
8601
8933
  root: ({ context: e, props: t }) => ({
8602
8934
  class: [
8603
8935
  // Position
@@ -8633,7 +8965,7 @@ const h = {
8633
8965
  "break-words"
8634
8966
  ]
8635
8967
  }
8636
- }, Je = {
8968
+ }, et = {
8637
8969
  root: {
8638
8970
  class: [
8639
8971
  "relative",
@@ -8874,7 +9206,7 @@ const h = {
8874
9206
  "text-xs font-medium text-general-800"
8875
9207
  ]
8876
9208
  })
8877
- }, Ke = {
9209
+ }, tt = {
8878
9210
  root: ({ props: e, state: t }) => ({
8879
9211
  class: [
8880
9212
  // Display and Position
@@ -9195,7 +9527,7 @@ const h = {
9195
9527
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
9196
9528
  leaveToClass: "opacity-0"
9197
9529
  }
9198
- }, We = {
9530
+ }, rt = {
9199
9531
  root: {
9200
9532
  class: [
9201
9533
  "relative",
@@ -9295,13 +9627,14 @@ const h = {
9295
9627
  "duration-200"
9296
9628
  ]
9297
9629
  }
9298
- }, Xe = {
9630
+ }, st = {
9299
9631
  root: {
9300
9632
  class: ["!mt-0 text-danger-500 text-xs font-light"],
9301
9633
  "data-wv-name": "validatormessage",
9302
9634
  "data-wv-section": "root"
9303
9635
  }
9304
- }, Ye = {
9636
+ }, it = {
9637
+ // Must be a variable to works with Tailwindcss Intellisense
9305
9638
  root: {
9306
9639
  class: "flex gap-2 items-center",
9307
9640
  "data-wv-name": "buttonbulkaction",
@@ -9330,7 +9663,7 @@ const h = {
9330
9663
  class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
9331
9664
  "data-wv-section": "buttonclearselection"
9332
9665
  }
9333
- }, Ze = {
9666
+ }, nt = {
9334
9667
  root: {
9335
9668
  class: "flex flex-nowrap items-center gap-1",
9336
9669
  "data-wv-name": "badgegroup",
@@ -9342,7 +9675,7 @@ const h = {
9342
9675
  },
9343
9676
  showmoredialog: {
9344
9677
  root: {
9345
- class: [x.root({ state: {} }).class, "w-[400px] !px-6 !py-3"],
9678
+ class: [C.root({ state: {} }).class, "w-[400px] !px-6 !py-3"],
9346
9679
  "data-wv-section": "showmoredialog"
9347
9680
  },
9348
9681
  title: {
@@ -9355,7 +9688,7 @@ const h = {
9355
9688
  }
9356
9689
  // All section in Dialog Preset can be added here
9357
9690
  }
9358
- }, Qe = {
9691
+ }, ot = {
9359
9692
  root: {
9360
9693
  class: [
9361
9694
  "flex gap-[5px] items-center text-left h-[21px]",
@@ -9380,16 +9713,16 @@ const h = {
9380
9713
  content: ">",
9381
9714
  "data-wv-section": "separator"
9382
9715
  }
9383
- }, Ue = {
9716
+ }, at = {
9384
9717
  currency: (e) => ({
9385
- class: [...c(e), "rounded-l rounded-r-none h-[30px]"],
9718
+ class: [...f(e), "rounded-l rounded-r-none h-[30px]"],
9386
9719
  "data-wv-section": "currency"
9387
9720
  }),
9388
9721
  value: (e) => ({
9389
- class: [...c(e), "rounded-r rounded-l-none -ml-[1px]"],
9722
+ class: [...f(e), "rounded-r rounded-l-none -ml-[1px]"],
9390
9723
  "data-wv-section": "value"
9391
9724
  })
9392
- }, et = {
9725
+ }, lt = {
9393
9726
  root: {
9394
9727
  "data-wv-name": "fileupload",
9395
9728
  "data-wv-section": "root"
@@ -9411,7 +9744,7 @@ const h = {
9411
9744
  requirements: {
9412
9745
  class: "flex justify-start"
9413
9746
  }
9414
- }, tt = {
9747
+ }, ct = {
9415
9748
  next: ({ context: e }) => ({
9416
9749
  class: [
9417
9750
  "text-2xl text-general-900",
@@ -9435,14 +9768,14 @@ const h = {
9435
9768
  }
9436
9769
  ]
9437
9770
  })
9438
- }, rt = {
9771
+ }, dt = {
9439
9772
  root: {
9440
9773
  class: [
9441
9774
  "bg-primary-50 rounded-[7px] [&>*]:w-full [&>*]min-w-0",
9442
9775
  "grid items-end p-3 gap-4"
9443
9776
  ]
9444
9777
  }
9445
- }, st = {
9778
+ }, ut = {
9446
9779
  root: {
9447
9780
  class: [
9448
9781
  "w-screen h-screen fixed top-0 left-0 z-[9999999]",
@@ -9454,7 +9787,7 @@ const h = {
9454
9787
  animation: {
9455
9788
  class: ["w-[450px] h-auto"]
9456
9789
  }
9457
- }, it = {
9790
+ }, ft = {
9458
9791
  root: {
9459
9792
  class: "flex items-center gap-1"
9460
9793
  },
@@ -9488,118 +9821,118 @@ const h = {
9488
9821
  class: "flex flex-col gap-0.5 items-center justify-center"
9489
9822
  }
9490
9823
  }
9491
- }, ot = {
9492
- badge: C,
9493
- ripple: Ae,
9494
- tooltip: De
9495
- }, nt = {
9496
- global: U,
9497
- directives: ot,
9824
+ }, gt = {
9825
+ badge: S,
9826
+ ripple: Ve,
9827
+ tooltip: Qe
9828
+ }, bt = {
9829
+ global: ae,
9830
+ directives: gt,
9498
9831
  // Forms
9499
- form: Z,
9500
- filtercontainer: rt,
9501
- autocomplete: y,
9502
- dropdown: W,
9503
- inputnumber: ne,
9504
- inputphonenumber: le,
9505
- inputcurrency: Ue,
9506
- inputotp: ae,
9507
- inputtext: v,
9508
- inputbadge: re,
9509
- calendar: F,
9510
- checkbox: a,
9511
- buttonradio: ze,
9512
- selectbutton: Fe,
9513
- slider: Pe,
9514
- chips: M,
9515
- rating: je,
9832
+ form: ne,
9833
+ filtercontainer: dt,
9834
+ autocomplete: T,
9835
+ dropdown: re,
9836
+ inputnumber: me,
9837
+ inputphonenumber: pe,
9838
+ inputcurrency: at,
9839
+ inputotp: be,
9840
+ inputtext: z,
9841
+ inputbadge: de,
9842
+ calendar: E,
9843
+ checkbox: d,
9844
+ buttonradio: Pe,
9845
+ selectbutton: Ee,
9846
+ slider: Le,
9847
+ chips: O,
9848
+ rating: Ne,
9516
9849
  multiselect: i,
9517
- togglebutton: Ne,
9518
- toggleswitch: l,
9519
- cascadeselect: P,
9520
- listbox: de,
9521
- colorpicker: L,
9522
- inputgroup: se,
9523
- inputgroupaddon: ie,
9524
- inputmask: oe,
9525
- knob: ce,
9526
- treeselect: Ke,
9527
- tristatecheckbox: We,
9528
- textarea: Ee,
9529
- password: we,
9530
- validatormessage: Xe,
9531
- fileupload: et,
9532
- fieldwrapper: Y,
9850
+ togglebutton: Xe,
9851
+ toggleswitch: u,
9852
+ cascadeselect: L,
9853
+ listbox: ve,
9854
+ colorpicker: K,
9855
+ inputgroup: ue,
9856
+ inputgroupaddon: fe,
9857
+ inputmask: ge,
9858
+ knob: xe,
9859
+ treeselect: tt,
9860
+ tristatecheckbox: rt,
9861
+ textarea: He,
9862
+ password: Ie,
9863
+ validatormessage: st,
9864
+ fileupload: lt,
9865
+ fieldwrapper: ie,
9533
9866
  // Buttons
9534
- button: z,
9535
- buttondownload: j,
9536
- buttonbulkaction: Ye,
9537
- buttonsearch: _,
9538
- buttonsplit: I,
9539
- buttonfilter: A,
9540
- splitbutton: Se,
9867
+ button: P,
9868
+ buttondownload: N,
9869
+ buttonbulkaction: it,
9870
+ buttonsearch: $,
9871
+ buttonsplit: B,
9872
+ buttonfilter: V,
9873
+ splitbutton: Re,
9541
9874
  // Data
9542
- paginator: ve,
9543
- datatable: O,
9544
- customcolumn: B,
9545
- tree: Je,
9546
- dataview: H,
9547
- dataviewlayoutoptions: N,
9548
- organizationchart: pe,
9549
- orderlist: be,
9550
- picklist: ke,
9551
- timeline: Oe,
9552
- changelog: S,
9875
+ paginator: Ae,
9876
+ datatable: q,
9877
+ customcolumn: W,
9878
+ tree: et,
9879
+ dataview: J,
9880
+ dataviewlayoutoptions: X,
9881
+ organizationchart: ze,
9882
+ orderlist: Ce,
9883
+ picklist: Fe,
9884
+ timeline: qe,
9885
+ changelog: R,
9553
9886
  // Panels
9554
- accordion: h,
9555
- panel: he,
9556
- fieldset: X,
9557
- card: T,
9558
- tabview: Be,
9559
- divider: J,
9560
- toolbar: qe,
9561
- scrollpanel: _e,
9887
+ accordion: _,
9888
+ panel: _e,
9889
+ fieldset: se,
9890
+ card: G,
9891
+ tabview: We,
9892
+ divider: ee,
9893
+ toolbar: Ze,
9894
+ scrollpanel: $e,
9562
9895
  // Menu
9563
- contextmenu: G,
9564
- menu: fe,
9565
- menubar: ge,
9566
- steps: $e,
9567
- breadcrumb: Qe,
9568
- tieredmenu: Ge,
9569
- panelmenu: ye,
9570
- megamenu: ue,
9571
- dock: K,
9572
- tabmenu: Me,
9896
+ contextmenu: Y,
9897
+ menu: ye,
9898
+ menubar: we,
9899
+ steps: Me,
9900
+ breadcrumb: ot,
9901
+ tieredmenu: Ye,
9902
+ panelmenu: Te,
9903
+ megamenu: he,
9904
+ dock: te,
9905
+ tabmenu: Oe,
9573
9906
  // Overlays
9574
- dialog: x,
9575
- dialogconfirm: q,
9576
- dialogform: D,
9577
- overlaypanel: xe,
9578
- sidebar: Te,
9579
- confirmpopup: E,
9907
+ dialog: C,
9908
+ dialogconfirm: Z,
9909
+ dialogform: Q,
9910
+ overlaypanel: je,
9911
+ sidebar: Ge,
9912
+ confirmpopup: H,
9580
9913
  // Messages
9581
- message: me,
9582
- inlinemessage: te,
9583
- toast: He,
9914
+ message: ke,
9915
+ inlinemessage: ce,
9916
+ toast: Je,
9584
9917
  // Media
9585
- carousel: V,
9918
+ carousel: U,
9586
9919
  // Misc
9587
- badge: n,
9588
- badgegroup: Ze,
9589
- avatar: w,
9590
- avatargroup: k,
9591
- tag: Re,
9592
- chip: $,
9593
- progressbar: Ce,
9594
- skeleton: Ve,
9595
- scrolltop: Ie,
9596
- terminal: Le,
9597
- image: ee,
9598
- workcalendar: tt,
9599
- loading: st,
9600
- codesnippet: R,
9601
- username: it
9920
+ badge: c,
9921
+ badgegroup: nt,
9922
+ avatar: I,
9923
+ avatargroup: F,
9924
+ tag: De,
9925
+ chip: M,
9926
+ progressbar: Se,
9927
+ skeleton: Ue,
9928
+ scrolltop: Be,
9929
+ terminal: Ke,
9930
+ image: le,
9931
+ workcalendar: ct,
9932
+ loading: ut,
9933
+ codesnippet: D,
9934
+ username: ft
9602
9935
  };
9603
9936
  export {
9604
- nt as default
9937
+ bt as default
9605
9938
  };