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