@fewangsit/wangsvue-presets 1.0.100 → 1.0.102-alpha.0

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 (65) hide show
  1. package/fixedasset/buttonradio/index.d.ts +6 -4
  2. package/fixedasset/buttonradio/index.js +8 -12
  3. package/fixedasset/calendar/index.js +3 -2
  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 +663 -323
  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/calendar/index.js +3 -2
  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 +538 -193
  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/calendar/index.js +3 -2
  39. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  40. package/supplyasset/fieldwrapper/index.js +4 -1
  41. package/supplyasset/index.d.ts +1 -1
  42. package/supplyasset/index.es.js +547 -201
  43. package/supplyasset/index.js +24 -24
  44. package/supplyasset/index.system.js +2 -2
  45. package/supplyasset/style.css +120 -51
  46. package/supplyasset/tabmenu/index.d.ts +1 -104
  47. package/supplyasset/tabmenu/index.js +50 -28
  48. package/supplyasset/timeline/index.d.ts +22 -0
  49. package/supplyasset/timeline/index.js +19 -0
  50. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  51. package/wangsvue/buttonbulkaction/index.js +2 -1
  52. package/wangsvue/buttonradio/index.d.ts +2 -1
  53. package/wangsvue/buttonradio/index.js +3 -7
  54. package/wangsvue/calendar/index.js +3 -2
  55. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  56. package/wangsvue/fieldwrapper/index.js +4 -1
  57. package/wangsvue/index.d.ts +1 -1
  58. package/wangsvue/index.es.js +593 -259
  59. package/wangsvue/index.js +44 -44
  60. package/wangsvue/index.system.js +2 -2
  61. package/wangsvue/style.css +106 -49
  62. package/wangsvue/tabmenu/index.d.ts +1 -56
  63. package/wangsvue/tabmenu/index.js +20 -13
  64. package/wangsvue/timeline/index.d.ts +20 -0
  65. package/wangsvue/timeline/index.js +16 -0
@@ -1,4 +1,7 @@
1
- const w = {
1
+ var z = Object.defineProperty;
2
+ var _ = (e, t, a) => t in e ? z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var b = (e, t, a) => _(e, typeof t != "symbol" ? t + "" : t, a);
4
+ const A = {
2
5
  accordiontab: {
3
6
  header: ({ props: e }) => ({
4
7
  class: [
@@ -60,7 +63,7 @@ const w = {
60
63
  leaveToClass: "max-h-0"
61
64
  }
62
65
  }
63
- }, s = {
66
+ }, d = {
64
67
  root: ({ props: e }) => ({
65
68
  class: [
66
69
  // Alignment
@@ -108,7 +111,7 @@ const w = {
108
111
  "icon-class": "w-[10px] h-[10px] !text-[10px]",
109
112
  "data-wv-section": "removebutton"
110
113
  })
111
- }, y = {
114
+ }, S = {
112
115
  root: ({ context: e }) => ({
113
116
  class: [
114
117
  // Font
@@ -146,7 +149,7 @@ const w = {
146
149
  }
147
150
  ]
148
151
  })
149
- }, p = {
152
+ }, T = {
150
153
  root: ({ props: e, context: t }) => ({
151
154
  class: [
152
155
  "relative",
@@ -441,7 +444,7 @@ const w = {
441
444
  }
442
445
  ]
443
446
  })
444
- }, k = {
447
+ }, N = {
445
448
  root: ({ props: e }) => ({
446
449
  class: [
447
450
  "rounded ring-1 ring-success-500 p-[5px] ring-inset",
@@ -458,7 +461,7 @@ const w = {
458
461
  "data-wv-section": "icon",
459
462
  severity: "success"
460
463
  }
461
- }, C = {
464
+ }, P = {
462
465
  root: ({ context: e }) => ({
463
466
  class: [
464
467
  "rounded ring-1 ring-general-500 p-[5px] ring-inset",
@@ -475,7 +478,7 @@ const w = {
475
478
  ],
476
479
  "data-wv-section": "icon"
477
480
  })
478
- }, j = {
481
+ }, F = {
479
482
  buttontrigger: {
480
483
  root: ({ context: e }) => ({
481
484
  class: [
@@ -525,7 +528,7 @@ const w = {
525
528
  inputtext: {
526
529
  class: "!h-max !py-0 !px-0"
527
530
  }
528
- }, z = {
531
+ }, I = {
529
532
  root: ["w-max"],
530
533
  button: {
531
534
  class: [
@@ -534,7 +537,7 @@ const w = {
534
537
  "data-sp-section": "button-split"
535
538
  },
536
539
  menuButton: "!rounded-ss-none !rounded-es-none"
537
- }, u = navigator.userAgent.includes("Firefox"), _ = {
540
+ }, h = navigator.userAgent.includes("Firefox"), V = {
538
541
  root: ({ props: e }) => ({
539
542
  class: [
540
543
  // Display and Position
@@ -817,11 +820,12 @@ const w = {
817
820
  daylabel: ({ context: e }) => ({
818
821
  class: [
819
822
  // Flexbox and Alignment
820
- "flex items-center justify-center",
823
+ { flex: !e.date.otherMonth },
824
+ { hidden: e.date.otherMonth },
825
+ "items-center justify-center",
821
826
  // 'mx-auto',
822
827
  // Shape & Size
823
828
  "w-8 h-8",
824
- { hidden: e.date.otherMonth },
825
829
  // Colors
826
830
  {
827
831
  "bg-general-100": e.date.today && !e.selected,
@@ -991,8 +995,8 @@ const w = {
991
995
  class: [
992
996
  "w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded",
993
997
  {
994
- "ring-1": u,
995
- "ring-[0.5px]": !u
998
+ "ring-1": h,
999
+ "ring-[0.5px]": !h
996
1000
  }
997
1001
  ]
998
1002
  },
@@ -1117,7 +1121,7 @@ const w = {
1117
1121
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
1118
1122
  leaveToClass: "opacity-0"
1119
1123
  }
1120
- }, A = {
1124
+ }, E = {
1121
1125
  root: {
1122
1126
  class: [
1123
1127
  //Shape
@@ -1146,7 +1150,7 @@ const w = {
1146
1150
  footer: {
1147
1151
  class: ["inline-flex gap-1 text-xs items-center"]
1148
1152
  }
1149
- }, V = {
1153
+ }, $ = {
1150
1154
  root: {
1151
1155
  class: [
1152
1156
  // Flexbox
@@ -1260,7 +1264,7 @@ const w = {
1260
1264
  }
1261
1265
  ]
1262
1266
  })
1263
- }, S = {
1267
+ }, B = {
1264
1268
  button: ({ props: e, buttonClass: t }) => ({
1265
1269
  class: [
1266
1270
  t,
@@ -1299,7 +1303,7 @@ const w = {
1299
1303
  buttondownload: {
1300
1304
  "data-wv-section": "changelog-dialog-button-download"
1301
1305
  }
1302
- }, l = {
1306
+ }, o = {
1303
1307
  root: {
1304
1308
  class: [
1305
1309
  "relative",
@@ -1409,7 +1413,7 @@ const w = {
1409
1413
  tooltipicon: {
1410
1414
  class: "text-primary-700 w-[10px] h-[10px]"
1411
1415
  }
1412
- }, F = {
1416
+ }, U = {
1413
1417
  copybutton: {
1414
1418
  class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
1415
1419
  },
@@ -1429,7 +1433,7 @@ const w = {
1429
1433
  "px-2 bg-primary-100 sticky left-0 text-right select-none"
1430
1434
  ]
1431
1435
  }
1432
- }, P = {
1436
+ }, G = {
1433
1437
  menustart: {
1434
1438
  class: ""
1435
1439
  },
@@ -1453,7 +1457,7 @@ const w = {
1453
1457
  { invisible: e.dragable === !1 }
1454
1458
  ]
1455
1459
  })
1456
- }, T = {
1460
+ }, L = {
1457
1461
  root: {
1458
1462
  "data-wv-name": "datatable",
1459
1463
  "data-wv-section": "root",
@@ -1669,7 +1673,7 @@ const w = {
1669
1673
  class: "",
1670
1674
  template: "FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown"
1671
1675
  })
1672
- }, h = {
1676
+ }, C = {
1673
1677
  root: ({ state: e }) => ({
1674
1678
  class: [
1675
1679
  // Shape
@@ -1862,7 +1866,7 @@ const w = {
1862
1866
  leaveActiveClass: "transition-all duration-200 ease-out",
1863
1867
  leaveToClass: "opacity-0 scale-75 mask-active"
1864
1868
  }
1865
- }, I = {
1869
+ }, R = {
1866
1870
  root: {
1867
1871
  class: ["!w-[clamp(360px,75vw,400px)]"],
1868
1872
  "data-wv-name": (e) => e ?? "root",
@@ -1903,7 +1907,7 @@ const w = {
1903
1907
  class: "flex items-end justify-end gap-1 !mt-0",
1904
1908
  "data-wv-section": "dialog-confirm-footer"
1905
1909
  }
1906
- }, $ = {
1910
+ }, M = {
1907
1911
  root: {
1908
1912
  class: ["max-w-[90vw]"],
1909
1913
  style: (e) => `width: ${e}`,
@@ -1974,7 +1978,7 @@ const w = {
1974
1978
  savesubmitbutton: {
1975
1979
  "data-wv-section": "save-submit-button"
1976
1980
  }
1977
- }, n = {
1981
+ }, r = {
1978
1982
  root: ({ props: e, state: t }) => ({
1979
1983
  class: [
1980
1984
  // Display and Position
@@ -2013,9 +2017,9 @@ const w = {
2013
2017
  ]
2014
2018
  };
2015
2019
  },
2016
- token: s.root({ props: { severity: "dark" } }),
2017
- tokenLabel: s.input({ props: {}, context: {} }),
2018
- removeTokenIcon: s.removebutton({
2020
+ token: d.root({ props: { severity: "dark" } }),
2021
+ tokenLabel: d.input({ props: {}, context: {} }),
2022
+ removeTokenIcon: d.removebutton({
2019
2023
  props: { badgeSeverity: "dark" }
2020
2024
  }),
2021
2025
  loadingplaceholder: {
@@ -2092,12 +2096,12 @@ const w = {
2092
2096
  ]
2093
2097
  },
2094
2098
  headerCheckbox: {
2095
- ...l,
2099
+ ...o,
2096
2100
  root: {
2097
- class: ["!mx-auto", ...l.root.class]
2101
+ class: ["!mx-auto", ...o.root.class]
2098
2102
  }
2099
2103
  },
2100
- itemCheckbox: l,
2104
+ itemCheckbox: o,
2101
2105
  closeButton: {
2102
2106
  class: ["hidden"]
2103
2107
  },
@@ -2245,7 +2249,7 @@ const w = {
2245
2249
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
2246
2250
  leaveToClass: "opacity-0"
2247
2251
  }
2248
- }, M = {
2252
+ }, O = {
2249
2253
  root: ({ props: e, state: t }) => ({
2250
2254
  class: [
2251
2255
  // Display and Position
@@ -2410,12 +2414,12 @@ const w = {
2410
2414
  "bg-transparent"
2411
2415
  ]
2412
2416
  },
2413
- header: n == null ? void 0 : n.header,
2414
- filtercontainer: n == null ? void 0 : n.filtercontainer,
2415
- filterinput: n == null ? void 0 : n.filterinput,
2416
- filtericon: n == null ? void 0 : n.filtericon,
2417
- loadingicon: n == null ? void 0 : n.loadingicon,
2418
- dropdownicon: ({ state: e }) => n.dropdownicon({ state: e }),
2417
+ header: r == null ? void 0 : r.header,
2418
+ filtercontainer: r == null ? void 0 : r.filtercontainer,
2419
+ filterinput: r == null ? void 0 : r.filterinput,
2420
+ filtericon: r == null ? void 0 : r.filtericon,
2421
+ loadingicon: r == null ? void 0 : r.loadingicon,
2422
+ dropdownicon: ({ state: e }) => r.dropdownicon({ state: e }),
2419
2423
  clearicon: {
2420
2424
  class: [
2421
2425
  // Color
@@ -2437,7 +2441,7 @@ const w = {
2437
2441
  loadingplaceholder: {
2438
2442
  class: "text-general-200 font-light"
2439
2443
  }
2440
- }, R = {
2444
+ }, D = {
2441
2445
  // :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
2442
2446
  root: () => ({
2443
2447
  class: [
@@ -2478,14 +2482,14 @@ const w = {
2478
2482
  "validator-message": {
2479
2483
  class: ["static w-max transform-none"]
2480
2484
  }
2481
- }, B = [
2485
+ }, W = [
2482
2486
  {
2483
2487
  "ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
2484
2488
  "ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
2485
2489
  },
2486
2490
  "ring-inset",
2487
2491
  "ring-general-200"
2488
- ], L = {
2492
+ ], K = {
2489
2493
  css: `
2490
2494
  *[data-pd-ripple="true"]{
2491
2495
  overflow: hidden;
@@ -2562,7 +2566,7 @@ const w = {
2562
2566
  }
2563
2567
  }
2564
2568
  `
2565
- }, D = {
2569
+ }, Y = {
2566
2570
  root: ({ props: e }) => ({
2567
2571
  class: [
2568
2572
  "relative inline-block",
@@ -2700,7 +2704,7 @@ const w = {
2700
2704
  leaveActiveClass: "transition-all duration-150 ease-in",
2701
2705
  leaveToClass: "opacity-0 scale-75"
2702
2706
  }
2703
- }, E = {
2707
+ }, H = {
2704
2708
  root: ({ props: e }) => ({
2705
2709
  class: [
2706
2710
  "rounded-md p-3",
@@ -2730,16 +2734,16 @@ const w = {
2730
2734
  "font-medium"
2731
2735
  ]
2732
2736
  }
2733
- }, v = {
2737
+ }, j = {
2734
2738
  root: ({ props: e, context: t, parent: a }) => {
2735
- var r, i;
2739
+ var n, i;
2736
2740
  return {
2737
2741
  class: [
2738
2742
  "px-3 py-[5px] w-full bg-transparent",
2739
2743
  // Size
2740
2744
  "h-max",
2741
2745
  {
2742
- "max-h-[43px]": (i = (r = a.instance) == null ? void 0 : r.placeholder) == null ? void 0 : i.includes("password")
2746
+ "max-h-[43px]": (i = (n = a.instance) == null ? void 0 : n.placeholder) == null ? void 0 : i.includes("password")
2743
2747
  },
2744
2748
  // Font
2745
2749
  "text-general-800 text-xs tracking-[0.02em] font-medium",
@@ -2754,15 +2758,15 @@ const w = {
2754
2758
  ]
2755
2759
  };
2756
2760
  }
2757
- }, g = navigator.userAgent.includes("Firefox"), O = {
2761
+ }, v = navigator.userAgent.includes("Firefox"), q = {
2758
2762
  root: ({ context: e }) => ({
2759
2763
  class: [
2760
2764
  "flex flex-wrap gap-x-0.5 gap-y-[5px] items-center",
2761
2765
  "min-h-[26px] h-fit w-full",
2762
2766
  "ring-inset rounded px-[12px] py-[3px]",
2763
2767
  {
2764
- "ring-[1px]": g,
2765
- "ring-[0.5px]": !g
2768
+ "ring-[1px]": v,
2769
+ "ring-[0.5px]": !v
2766
2770
  },
2767
2771
  { "!ring-danger-500 !dark:ring-danger-500": e.invalidInput },
2768
2772
  { "!ring-general-200 !dark:ring-general-200": !e.invalidInput },
@@ -2771,7 +2775,7 @@ const w = {
2771
2775
  }),
2772
2776
  input: ({ context: e, parent: t, props: a }) => ({
2773
2777
  class: [
2774
- ...v.root({
2778
+ ...j.root({
2775
2779
  props: a,
2776
2780
  context: e,
2777
2781
  parent: t
@@ -2787,7 +2791,7 @@ const w = {
2787
2791
  erroroverlaypanel: {
2788
2792
  class: ["px-3 py-1 text-[12px] text-general-800"]
2789
2793
  }
2790
- }, f = navigator.userAgent.includes("Firefox"), H = {
2794
+ }, w = navigator.userAgent.includes("Firefox"), J = {
2791
2795
  root: ({ props: e }) => ({
2792
2796
  class: [
2793
2797
  {
@@ -2799,8 +2803,8 @@ const w = {
2799
2803
  "[&:has(:focus)]:!ring-primary-700 [&:has(:focus)_.inputgroupaddon]:!ring-primary-700": e.ring !== "none"
2800
2804
  },
2801
2805
  {
2802
- "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": f && e.ring !== "none",
2803
- "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !f && e.ring !== "none"
2806
+ "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": w && e.ring !== "none",
2807
+ "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !w && e.ring !== "none"
2804
2808
  },
2805
2809
  "[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]",
2806
2810
  "[&:has(input)]:cursor-text",
@@ -2812,7 +2816,7 @@ const w = {
2812
2816
  ],
2813
2817
  "data-wv-section": "inputgroup"
2814
2818
  })
2815
- }, N = {
2819
+ }, Z = {
2816
2820
  root: ({ props: e }) => ({
2817
2821
  class: [
2818
2822
  "inputgroupaddon",
@@ -2842,13 +2846,13 @@ const w = {
2842
2846
  "data-addon-variant": e.addonVariant
2843
2847
  // Used in inputgroup to set styling
2844
2848
  })
2845
- }, b = "text-xs font-medium tracking-[0.02em] leading-[18px]", m = "h-[26px]", q = {
2849
+ }, y = "text-xs font-medium tracking-[0.02em] leading-[18px]", p = "h-[26px]", Q = {
2846
2850
  root: ({ props: e, parent: t }) => ({
2847
2851
  class: [
2848
2852
  // Layout
2849
2853
  "flex items-center self-stretch shrink-0 grow",
2850
2854
  //Size
2851
- m,
2855
+ p,
2852
2856
  // Spacing
2853
2857
  "py-1 px-3",
2854
2858
  // Border
@@ -2861,7 +2865,7 @@ const w = {
2861
2865
  class: [
2862
2866
  "border-0 h-full w-full outline-none",
2863
2867
  "bg-inherit",
2864
- b,
2868
+ y,
2865
2869
  "placeholder:text-general-200 placeholder:font-light",
2866
2870
  t.disabled ? "text-general-200" : "text-general-800"
2867
2871
  ]
@@ -2869,8 +2873,8 @@ const w = {
2869
2873
  },
2870
2874
  inputresizer: {
2871
2875
  class: [
2872
- b,
2873
- m,
2876
+ y,
2877
+ p,
2874
2878
  "user-select-none py-1 px-3 block min-w-4 text-transparent"
2875
2879
  ]
2876
2880
  },
@@ -2909,7 +2913,7 @@ const w = {
2909
2913
  }
2910
2914
  ]
2911
2915
  })
2912
- }, c = ({ isFirefoxBased: e, invalidInput: t }) => [
2916
+ }, g = ({ isFirefoxBased: e, invalidInput: t }) => [
2913
2917
  { "ring-[1px]": e, "ring-[0.5px]": !e },
2914
2918
  { "!ring-danger-500": t },
2915
2919
  "ring-inset",
@@ -2919,23 +2923,23 @@ const w = {
2919
2923
  "[&:has(:focus)]:ring-1",
2920
2924
  "bg-white",
2921
2925
  "z-[0] [&:has(:focus)]:z-[12]"
2922
- ], G = {
2926
+ ], X = {
2923
2927
  dialcode: {
2924
2928
  root: (e) => ({
2925
- class: [...c(e), "rounded-l rounded-r-none"]
2929
+ class: [...g(e), "rounded-l rounded-r-none"]
2926
2930
  }),
2927
- dropdownicon: ({ state: e }) => n.dropdownicon({ state: e })
2931
+ dropdownicon: ({ state: e }) => r.dropdownicon({ state: e })
2928
2932
  },
2929
2933
  input: (e) => ({
2930
2934
  class: [
2931
- ...c(e),
2935
+ ...g(e),
2932
2936
  "rounded-r rounded-l-none -ml-[1px]",
2933
2937
  "focus:bg-none",
2934
2938
  "focus:ring-primary-700",
2935
2939
  "focus:ring-1"
2936
2940
  ]
2937
2941
  })
2938
- }, J = {
2942
+ }, ee = {
2939
2943
  root: {
2940
2944
  class: [
2941
2945
  // Position
@@ -3035,7 +3039,7 @@ const w = {
3035
3039
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3036
3040
  leaveToClass: "opacity-0"
3037
3041
  }
3038
- }, Y = {
3042
+ }, te = {
3039
3043
  root: ({ props: e }) => ({
3040
3044
  class: [
3041
3045
  // Spacing and Shape
@@ -3111,7 +3115,7 @@ const w = {
3111
3115
  leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
3112
3116
  leaveToClass: "max-h-0 opacity-0 !m-0"
3113
3117
  }
3114
- }, Z = {
3118
+ }, ae = {
3115
3119
  root: {
3116
3120
  class: [
3117
3121
  "h-max",
@@ -3142,7 +3146,7 @@ const w = {
3142
3146
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3143
3147
  leaveToClass: "opacity-0"
3144
3148
  }
3145
- }, K = {
3149
+ }, ne = {
3146
3150
  root: {
3147
3151
  class: [
3148
3152
  // Flex & Alignment
@@ -3586,7 +3590,7 @@ const w = {
3586
3590
  current: {
3587
3591
  class: ["text-xs font-normal leading-6 px-3"]
3588
3592
  }
3589
- }, Q = {
3593
+ }, re = {
3590
3594
  root: ({ props: e }) => ({
3591
3595
  class: [
3592
3596
  "w-full",
@@ -3640,7 +3644,7 @@ const w = {
3640
3644
  ]
3641
3645
  },
3642
3646
  meterlabel: ({ instance: e }) => {
3643
- var t, a, r;
3647
+ var t, a, n;
3644
3648
  return {
3645
3649
  class: [
3646
3650
  // Size
@@ -3649,7 +3653,7 @@ const w = {
3649
3653
  {
3650
3654
  "bg-red-500/50": ((t = e == null ? void 0 : e.meter) == null ? void 0 : t.strength) == "weak",
3651
3655
  "bg-orange-500/50": ((a = e == null ? void 0 : e.meter) == null ? void 0 : a.strength) == "medium",
3652
- "bg-green-500/50": ((r = e == null ? void 0 : e.meter) == null ? void 0 : r.strength) == "strong"
3656
+ "bg-green-500/50": ((n = e == null ? void 0 : e.meter) == null ? void 0 : n.strength) == "strong"
3653
3657
  },
3654
3658
  // Transitions
3655
3659
  "transition-all duration-1000 ease-in-out"
@@ -3675,7 +3679,7 @@ const w = {
3675
3679
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3676
3680
  leaveToClass: "opacity-0"
3677
3681
  }
3678
- }, x = navigator.userAgent.includes("Firefox"), o = {
3682
+ }, k = navigator.userAgent.includes("Firefox"), u = {
3679
3683
  root: ({ props: e }) => ({
3680
3684
  class: [
3681
3685
  // Alignments
@@ -3714,7 +3718,7 @@ const w = {
3714
3718
  "before:left-0.5": e.modelValue != e.trueValue
3715
3719
  },
3716
3720
  // Colors
3717
- { "ring-1": x, "ring-[0.5px]": !x },
3721
+ { "ring-1": k, "ring-[0.5px]": !k },
3718
3722
  {
3719
3723
  "before:bg-white": e.modelValue == e.trueValue,
3720
3724
  "before:bg-general-100": e.modelValue !== e.trueValue,
@@ -3788,8 +3792,8 @@ const w = {
3788
3792
  tooltipicon: {
3789
3793
  class: "text-primary-700 w-[10px] h-[10px]"
3790
3794
  }
3791
- }, U = {
3792
- root: ({ props: e }) => ({
3795
+ }, ie = {
3796
+ root: ({ props: e, state: t }) => ({
3793
3797
  class: [
3794
3798
  "relative",
3795
3799
  // Flexbox & Alignment
@@ -3802,10 +3806,10 @@ const w = {
3802
3806
  "rounded-full",
3803
3807
  // Colors
3804
3808
  {
3805
- "bg-white": !e.disabled || e.value == e.modelValue,
3806
- "bg-general-50": e.disabled && e.value != e.modelValue,
3807
- "ring-general-100": !e.disabled && e.value != e.modelValue,
3808
- "ring-primary-700": !e.disabled && e.value == e.modelValue,
3809
+ "bg-white": !e.disabled || t.checked,
3810
+ "bg-general-50": e.disabled && !t.checked,
3811
+ "ring-general-100": !e.disabled && !t.checked,
3812
+ "ring-primary-700": !e.disabled && t.checked,
3809
3813
  "ring-general-200": e.disabled
3810
3814
  },
3811
3815
  {
@@ -3817,7 +3821,7 @@ const w = {
3817
3821
  "data-wv-name": "buttonradio",
3818
3822
  "data-wv-section": "root"
3819
3823
  }),
3820
- box: ({ props: e }) => ({
3824
+ box: ({ props: e, state: t }) => ({
3821
3825
  class: [
3822
3826
  // Size
3823
3827
  "w-2 h-2",
@@ -3832,8 +3836,8 @@ const w = {
3832
3836
  "transition duration-200 ease-in-out",
3833
3837
  // Colors
3834
3838
  {
3835
- "bg-primary-700": e.value == e.modelValue && e.value !== void 0 && !e.disabled,
3836
- "bg-general-200": e.value == e.modelValue && e.value !== void 0 && e.disabled
3839
+ "bg-primary-700": t.checked && e.value !== void 0 && !e.disabled,
3840
+ "bg-general-200": t.checked && e.value !== void 0 && e.disabled
3837
3841
  },
3838
3842
  // States
3839
3843
  {
@@ -3867,15 +3871,15 @@ const w = {
3867
3871
  icon: {
3868
3872
  class: "hidden"
3869
3873
  },
3870
- label: o.label,
3871
- labeltext: o.labeltext,
3872
- tooltipicon: o.tooltipicon
3873
- }, W = {
3874
+ label: u.label,
3875
+ labeltext: u.labeltext,
3876
+ tooltipicon: u.tooltipicon
3877
+ }, le = {
3874
3878
  root: {
3875
3879
  class: ["block absolute bg-surface-0/50 rounded-full pointer-events-none"],
3876
3880
  style: "transform: scale(0)"
3877
3881
  }
3878
- }, X = {
3882
+ }, se = {
3879
3883
  root: {
3880
3884
  class: "relative"
3881
3885
  },
@@ -3982,12 +3986,15 @@ const w = {
3982
3986
  "max-w-full"
3983
3987
  ]
3984
3988
  })
3985
- }, ee = {
3989
+ };
3990
+ function x(e, t) {
3991
+ return { [e]: t }[e];
3992
+ }
3993
+ x("WANGS-TAB-MENU", {
3986
3994
  root: {
3987
- class: "overflow-x-auto",
3988
- style: "scrollbar-width: none"
3995
+ class: "overflow-x-visible"
3989
3996
  },
3990
- menu: {
3997
+ menu: ({ props: e }) => ({
3991
3998
  class: [
3992
3999
  // Flexbox
3993
4000
  "flex flex-1",
@@ -3995,14 +4002,15 @@ const w = {
3995
4002
  "list-none",
3996
4003
  "p-0 m-0",
3997
4004
  // Colors
3998
- "text-general-100"
4005
+ "text-general-100",
4006
+ { "w-max ring-1 ring-inset ring-general-100 rounded": e.type === "segmented" }
3999
4007
  ]
4000
- },
4008
+ }),
4001
4009
  menuitem: {
4002
4010
  class: "mr-0"
4003
4011
  },
4004
- action: ({ context: e, state: t }) => {
4005
- var a, r;
4012
+ action: ({ props: e, context: t }) => {
4013
+ var a, n;
4006
4014
  return {
4007
4015
  class: [
4008
4016
  "relative",
@@ -4014,32 +4022,39 @@ const w = {
4014
4022
  // Spacing
4015
4023
  {
4016
4024
  "rounded-xl py-1 px-3": e.type === "pill",
4017
- "p-2 pb-1.5 pt-0.5 !h-6": e.type !== "pill",
4018
- "ml-1": e.type === "pill" && e.index !== 0
4025
+ rounded: e.type === "segmented",
4026
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
4027
+ "py-[5px] px-3 !h-6": e.type === "segmented",
4028
+ "ml-1": e.type === "pill" && t.index !== 0,
4029
+ "gap-1": t.item.icon
4019
4030
  },
4020
4031
  // Shape
4021
4032
  {
4022
- "border-b-2": e.type !== "pill"
4033
+ "border-b-2": e.type === "tab",
4034
+ "shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": e.type === "segmented" && t.active
4023
4035
  },
4024
4036
  // Colors and Conditions
4025
4037
  {
4026
4038
  "border-primary-700": t.active,
4027
4039
  "border-grayscale-400": !t.active,
4028
- "text-grayscale-600": !t.active,
4029
- "text-primary-700": t.active,
4030
- "bg-primary-50 text-primary-700": e.type === "pill" && t.active,
4031
- "bg-grayscale-200 text-grayscale-800": e.type === "pill" && !t.active,
4040
+ "text-grayscale-600": !t.active && e.type === "tab",
4041
+ "text-primary-700": t.active && e.type === "tab",
4042
+ "bg-primary-700 text-white": e.type === "pill" && t.active,
4043
+ "bg-grayscale-100 text-grayscale-800": e.type === "pill" && !t.active,
4044
+ "bg-primary-500 text-white": e.type === "segmented" && t.active,
4045
+ "!text-general-800": e.type === "segmented" && !t.active,
4032
4046
  "bg-transparent ": e.type !== "pill" && !t.active
4033
4047
  },
4034
4048
  // States
4049
+ { "hover:bg-primary-50": e.type === "tab" },
4035
4050
  "focus-visible:outline-none focus-visible:outline-offset-0",
4036
4051
  {
4037
4052
  "focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
4038
4053
  },
4039
4054
  // Disabled States
4040
4055
  {
4041
- "pointer-events-none": (a = e.item) == null ? void 0 : a.disabled,
4042
- "opacity-60": (r = e.item) == null ? void 0 : r.disabled
4056
+ "pointer-events-none": (a = t.item) == null ? void 0 : a.disabled,
4057
+ "opacity-60": (n = t.item) == null ? void 0 : n.disabled
4043
4058
  },
4044
4059
  // Transitions
4045
4060
  "transition-all duration-200",
@@ -4055,10 +4070,319 @@ const w = {
4055
4070
  icon: {
4056
4071
  class: "mr-2"
4057
4072
  },
4058
- inkbar: {
4059
- class: "grow border-b-2 border-grayscale-400"
4073
+ inkbar: ({ props: e }) => ({
4074
+ class: ["grow border-b-2 border-grayscale-400", { hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented" }]
4075
+ })
4076
+ });
4077
+ x("WANGS-INPUT-OTP", {
4078
+ root: {
4079
+ class: [
4080
+ // Alignment
4081
+ "flex items-center",
4082
+ "gap-[6px]",
4083
+ "w-max"
4084
+ ]
4085
+ },
4086
+ input: ({ props: e, context: t, parent: a }) => ({
4087
+ class: [
4088
+ // Font
4089
+ "text-[14px] leading-none font-medium",
4090
+ // Flex & Alignment
4091
+ { "flex-1 w-[1%]": a.tagName == "WANGS-INPUT-GROUP" },
4092
+ "text-center",
4093
+ // Spacing
4094
+ "m-0",
4095
+ // Size
4096
+ "w-[42px] h-[42px]",
4097
+ // Shape
4098
+ { "rounded-md": a.tagName !== "WANGS-INPUT-GROUP" },
4099
+ {
4100
+ "first:rounded-l-md rounded-none last:rounded-r-md": a.tagName == "WANGS-INPUT-GROUP"
4101
+ },
4102
+ {
4103
+ "border-0 border-y border-l last:border-r": a.tagName == "WANGS-INPUT-GROUP"
4104
+ },
4105
+ // Colors
4106
+ "text-general-800 dark:text-general-800",
4107
+ "placeholder:text-surface-400 dark:placeholder:text-surface-500",
4108
+ "bg-white dark:bg-white",
4109
+ {
4110
+ "ring-1": navigator.userAgent.includes("Firefox"),
4111
+ "ring-[0.5px]": !navigator.userAgent.includes("Firefox")
4112
+ },
4113
+ { "ring-general-200 dark:ring-general-200": !e.invalid },
4114
+ // Invalid State
4115
+ { "ring-danger-500 dark:ring-danger-500": e.invalid },
4116
+ // States
4117
+ {
4118
+ "hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !t.disabled && !e.invalid,
4119
+ "focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !t.disabled && !e.invalid,
4120
+ "focus:outline-none focus:outline-offset-0": !t.disabled,
4121
+ "opacity-60 select-none pointer-events-none cursor-default": t.disabled
4122
+ },
4123
+ // Filled State *for FloatLabel
4124
+ { filled: a.tagName == "WANGS-FLOAT-LABEL" && t.filled },
4125
+ // Misc
4126
+ "appearance-none",
4127
+ "transition-colors duration-200"
4128
+ ]
4129
+ })
4130
+ });
4131
+ const l = class l {
4132
+ constructor() {
4133
+ /**
4134
+ * Stores base URLs associated with different app identifiers.
4135
+ */
4136
+ b(this, "_baseUrl", "");
4137
+ if (globalThis[l.SINGLETON_KEY])
4138
+ return globalThis[l.SINGLETON_KEY];
4139
+ globalThis[l.SINGLETON_KEY] = this;
4060
4140
  }
4061
- }, te = {
4141
+ /**
4142
+ * Registers a base URL for a specific app.
4143
+ *
4144
+ * @param base - The base URL to be used as a prefix for all routes in that app.
4145
+ */
4146
+ setNavigationBaseUrl(t) {
4147
+ this._baseUrl = this.normalizeBase(t);
4148
+ }
4149
+ /**
4150
+ * Retrieves the base URL for a specific app.
4151
+ *
4152
+ * @returns The base URL registered for the app or an empty string if not set.
4153
+ */
4154
+ getNavigationBaseUrl() {
4155
+ return this._baseUrl;
4156
+ }
4157
+ /**
4158
+ * Ensures the base URL ends with a single slash and removes trailing slashes.
4159
+ *
4160
+ * @param base - The base URL to normalize.
4161
+ * @returns A clean base URL ending with a single `/`.
4162
+ */
4163
+ normalizeBase(t) {
4164
+ return t.replace(/\/+$/, "").concat("/");
4165
+ }
4166
+ /**
4167
+ * Prepends the base URL (if any) to the given path.
4168
+ *
4169
+ * @param path - The relative path to normalize.
4170
+ * @returns A fully normalized path prefixed with the base URL if applicable.
4171
+ */
4172
+ normalizePath(t) {
4173
+ const a = this.getNavigationBaseUrl();
4174
+ if (!a)
4175
+ return t;
4176
+ const n = t.startsWith("/") ? t.slice(1) : t;
4177
+ return `${a}${n}`;
4178
+ }
4179
+ /**
4180
+ * Removes the specified base path from the beginning of a given route path.
4181
+ *
4182
+ * This is useful when your app is deployed under a subdirectory (e.g., `/base`)
4183
+ * and you want to normalize the route path to match menu or route definitions
4184
+ * that don't include the base.
4185
+ *
4186
+ * @param path - The full route path (e.g., `/base/about`).
4187
+ * @param base - The optional base URL to remove (e.g., `/base`).
4188
+ * @returns The normalized path without the base prefix (e.g., `/about`).
4189
+ *
4190
+ * @example
4191
+ * stripBase('/base/home', '/base'); // returns '/home'
4192
+ * stripBase('/about', '/base'); // returns '/about' (base not present)
4193
+ * stripBase('/base', '/base'); // returns '/'
4194
+ */
4195
+ stripBase(t, a) {
4196
+ return a || (a = this.getNavigationBaseUrl()), a !== "/" && t.startsWith(a) ? "/" + t.slice(a.length).replace(/^\/+/, "") : t;
4197
+ }
4198
+ /**
4199
+ * Pushes a new entry to the browser's history stack.
4200
+ *
4201
+ * @param route - The target URL or path to push. Can be a string, URL object, or null.
4202
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
4203
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
4204
+ *
4205
+ * @example
4206
+ * Router.push('/about', { from: 'home' });
4207
+ */
4208
+ push(t, a = {}, n = "") {
4209
+ var c;
4210
+ const i = {
4211
+ ...a,
4212
+ ...history.state ?? {},
4213
+ current: t,
4214
+ back: (c = history.state) == null ? void 0 : c.current,
4215
+ forward: void 0,
4216
+ replaced: !1,
4217
+ position: history.length + 1
4218
+ };
4219
+ window.history.pushState(i, n, t);
4220
+ }
4221
+ /**
4222
+ * Replaces the current entry in the browser's history stack.
4223
+ *
4224
+ * @param route - The target URL or path to replace with. Can be a string, URL object, or null.
4225
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
4226
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
4227
+ *
4228
+ * @example
4229
+ * Router.replace('/login', { reason: 'session expired' });
4230
+ */
4231
+ replace(t, a = {}, n = "") {
4232
+ const i = {
4233
+ ...a,
4234
+ ...history.state ?? {},
4235
+ forward: void 0,
4236
+ current: t,
4237
+ replaced: !0
4238
+ };
4239
+ window.history.replaceState(i, n, t);
4240
+ }
4241
+ /**
4242
+ * Dispatches a custom event before navigation occurs.
4243
+ * Used to notify subscribers of an upcoming route change.
4244
+ *
4245
+ * @param route - The route that will be navigated to.
4246
+ * @param mode - The navigation mode ('push' or 'replace').
4247
+ * @param data - Optional state object for the navigation.
4248
+ */
4249
+ dispatchBeforeNavigationEvent(t, a, n) {
4250
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
4251
+ detail: { route: t, mode: a, state: n }
4252
+ }));
4253
+ }
4254
+ /**
4255
+ * Dispatches a custom event after navigation occurs.
4256
+ * Used to notify subscribers that the route has changed.
4257
+ *
4258
+ * @param route - The route that was navigated to.
4259
+ * @param mode - The navigation mode ('push' or 'replace').
4260
+ * @param data - Optional state object for the navigation.
4261
+ */
4262
+ dispatchNavigationEvent(t, a, n) {
4263
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
4264
+ detail: { route: t, mode: a, state: n }
4265
+ }));
4266
+ }
4267
+ /**
4268
+ * Navigates to a specified route using the browser's History API.
4269
+ *
4270
+ * This updates the URL in the browser without reloading the page.
4271
+ * It can either push a new entry to the history stack or replace the current one.
4272
+ * Also dispatches custom events before and after the navigation.
4273
+ *
4274
+ * @param route - The target route to navigate to. Can be a string or URL object.
4275
+ * @param navigationMode - Determines how navigation is handled.
4276
+ * - `'push'` (default): Adds a new entry to the browser history.
4277
+ * - `'replace'`: Replaces the current history entry.
4278
+ * @param data - Optional state object associated with the history entry. Can be accessed via `history.state`.
4279
+ * @param unused - Optional title parameter (currently unused due to browser support limitations).
4280
+ *
4281
+ * @example
4282
+ * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
4283
+ */
4284
+ navigateToRoute(t, a = "push", n = {}, i = "") {
4285
+ if (!t)
4286
+ return;
4287
+ const c = typeof t == "string" ? t : t.toString(), s = this.normalizePath(c);
4288
+ if (s === location.pathname)
4289
+ return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
4290
+ this.dispatchBeforeNavigationEvent(s, a, n), a === "push" ? this.push(s, n, i) : this.replace(s, n, i), this.dispatchNavigationEvent(s, a, n);
4291
+ }
4292
+ };
4293
+ b(l, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
4294
+ let m = l;
4295
+ new m();
4296
+ const oe = x("WANGS-TAB-MENU", {
4297
+ root: {
4298
+ class: "overflow-x-auto"
4299
+ },
4300
+ menu: ({ props: e }) => ({
4301
+ class: [
4302
+ // Flexbox
4303
+ "flex flex-1",
4304
+ // Spacing
4305
+ "list-none",
4306
+ "p-0 m-0",
4307
+ // Colors
4308
+ "text-general-100",
4309
+ {
4310
+ "w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]": e.type === "segmented"
4311
+ }
4312
+ ]
4313
+ }),
4314
+ menuitem: {
4315
+ class: "mr-0"
4316
+ },
4317
+ action: ({ props: e, context: t }) => {
4318
+ var a, n;
4319
+ return {
4320
+ class: [
4321
+ "relative",
4322
+ // Font
4323
+ "font-medium",
4324
+ "text-xs leading-4 tracking-[0.02em]",
4325
+ // Flexbox and Alignment
4326
+ "flex items-center",
4327
+ // Spacing
4328
+ {
4329
+ "rounded-xl py-1 px-3": e.type === "pill",
4330
+ rounded: e.type === "segmented",
4331
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
4332
+ "py-[5px] px-3 !h-[26px]": e.type === "segmented",
4333
+ "ml-1": e.type === "pill" && t.index !== 0,
4334
+ "gap-1": t.item.icon
4335
+ },
4336
+ // Shape
4337
+ {
4338
+ "border-b-2": e.type === "tab"
4339
+ },
4340
+ // Colors and Conditions
4341
+ {
4342
+ "border-primary-700": t.active,
4343
+ "border-grayscale-400": !t.active,
4344
+ "text-grayscale-600": !t.active && e.type === "tab",
4345
+ "text-primary-700": t.active && e.type === "tab",
4346
+ "bg-primary-700 text-white": e.type === "pill" && t.active,
4347
+ "bg-grayscale-100 text-grayscale-800": e.type === "pill" && !t.active,
4348
+ "bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]": e.type === "segmented" && t.active,
4349
+ "!text-general-800": e.type === "segmented" && !t.active,
4350
+ "bg-transparent ": e.type !== "pill" && !t.active
4351
+ },
4352
+ // States
4353
+ { "hover:bg-primary-50": e.type === "tab" },
4354
+ "focus-visible:outline-none focus-visible:outline-offset-0",
4355
+ {
4356
+ "focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
4357
+ },
4358
+ // Disabled States
4359
+ {
4360
+ "pointer-events-none": (a = t.item) == null ? void 0 : a.disabled,
4361
+ "opacity-60": (n = t.item) == null ? void 0 : n.disabled
4362
+ },
4363
+ // Transitions
4364
+ "transition-all duration-200",
4365
+ // Misc
4366
+ "cursor-pointer select-none text-decoration-none",
4367
+ "overflow-hidden",
4368
+ "user-select-none",
4369
+ "!no-underline",
4370
+ "whitespace-nowrap"
4371
+ ]
4372
+ };
4373
+ },
4374
+ icon: {
4375
+ class: "mr-2"
4376
+ },
4377
+ inkbar: ({ props: e }) => ({
4378
+ class: [
4379
+ "grow border-b-2 border-grayscale-400",
4380
+ {
4381
+ hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented"
4382
+ }
4383
+ ]
4384
+ })
4385
+ }), ce = {
4062
4386
  root: ({ context: e, props: t }) => ({
4063
4387
  class: [
4064
4388
  // Font
@@ -4076,7 +4400,7 @@ const w = {
4076
4400
  // Shape
4077
4401
  "rounded",
4078
4402
  "appearance-none",
4079
- ...B,
4403
+ ...W,
4080
4404
  {
4081
4405
  "!ring-danger-500": e.invalidInput
4082
4406
  },
@@ -4094,16 +4418,16 @@ const w = {
4094
4418
  "data-wv-name": "textarea",
4095
4419
  "data-wv-section": "root"
4096
4420
  })
4097
- }, d = (e) => {
4421
+ }, f = (e) => {
4098
4422
  if (!e) return !0;
4099
4423
  const t = Object.keys(e);
4100
4424
  return t.length ? t.every((a) => {
4101
- const r = e[a];
4102
- return typeof r == "object" ? Array.isArray(r) ? !r.length || r.every(
4103
- (i) => typeof i == "object" ? d(i) : i == null
4104
- ) : d(r) : r == null;
4425
+ const n = e[a];
4426
+ return typeof n == "object" ? Array.isArray(n) ? !n.length || n.every(
4427
+ (i) => typeof i == "object" ? f(i) : i == null
4428
+ ) : f(n) : n == null;
4105
4429
  }) : !0;
4106
- }, ae = {
4430
+ }, de = {
4107
4431
  root: ({ props: e }) => ({
4108
4432
  class: ["flex flex-col grow", "text-xs font-normal text-grayscale-900"]
4109
4433
  }),
@@ -4134,18 +4458,37 @@ const w = {
4134
4458
  markerArrow: (e) => ({
4135
4459
  class: [
4136
4460
  "w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",
4137
- { "!visible": e.detail && !d(e.detail) },
4461
+ { "!visible": e.detail && !f(e.detail) },
4138
4462
  { "rotate-180": e.showDetail }
4139
4463
  ],
4140
4464
  "data-wv-section": "markerArrow"
4141
4465
  }),
4466
+ markerDot: (e) => ({
4467
+ class: [
4468
+ "hidden w-[6px] h-[6px] m-[3px] rounded-full bg-black",
4469
+ { "!flex": !e.detail || f(e.detail) }
4470
+ ],
4471
+ "data-wv-section": "markerDot"
4472
+ }),
4473
+ contentHeader: {
4474
+ class: ["leading-5 cursor-pointer truncate !text-xs !font-bold"]
4475
+ },
4476
+ contentDetailKey: {
4477
+ class: ["text-general-400 whitespace-nowrap"]
4478
+ },
4479
+ contentDetailValue: {
4480
+ class: ["text-xs text-general-800"]
4481
+ },
4482
+ contentDate: {
4483
+ class: ["text-xs font-medium"]
4484
+ },
4142
4485
  connector: ({ props: e }) => ({
4143
4486
  class: ["w-[2px] grow bg-grayscale-900"]
4144
4487
  }),
4145
4488
  content: ({ props: e, context: t }) => ({
4146
4489
  class: ["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]
4147
4490
  })
4148
- }, ne = {
4491
+ }, ue = {
4149
4492
  root: ({ props: e }) => ({
4150
4493
  class: [
4151
4494
  //Size and Shape
@@ -4228,7 +4571,7 @@ const w = {
4228
4571
  leaveActiveClass: "!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
4229
4572
  leaveToClass: "max-h-0 opacity-0 mb-0"
4230
4573
  }
4231
- }, re = {
4574
+ }, ge = {
4232
4575
  root: {
4233
4576
  class: [
4234
4577
  "relative",
@@ -4299,7 +4642,7 @@ const w = {
4299
4642
  icon: {
4300
4643
  class: [" mr-2", "text-surface-700/80"]
4301
4644
  }
4302
- }, ie = {
4645
+ }, fe = {
4303
4646
  root: ({ context: e, props: t }) => ({
4304
4647
  class: [
4305
4648
  // Position
@@ -4335,7 +4678,7 @@ const w = {
4335
4678
  "break-words"
4336
4679
  ]
4337
4680
  }
4338
- }, le = {
4681
+ }, be = {
4339
4682
  root: {
4340
4683
  class: [
4341
4684
  "relative",
@@ -4433,7 +4776,7 @@ const w = {
4433
4776
  // Color
4434
4777
  ]
4435
4778
  },
4436
- nodeCheckbox: l,
4779
+ nodeCheckbox: o,
4437
4780
  nodeicon: () => ({
4438
4781
  class: ["!hidden"]
4439
4782
  }),
@@ -4503,7 +4846,7 @@ const w = {
4503
4846
  }
4504
4847
  ]
4505
4848
  })
4506
- }, se = {
4849
+ }, me = {
4507
4850
  root: ({ props: e, state: t }) => ({
4508
4851
  class: [
4509
4852
  // Display and Position
@@ -4824,7 +5167,7 @@ const w = {
4824
5167
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
4825
5168
  leaveToClass: "opacity-0"
4826
5169
  }
4827
- }, oe = {
5170
+ }, xe = {
4828
5171
  root: {
4829
5172
  class: [
4830
5173
  "relative",
@@ -4924,13 +5267,13 @@ const w = {
4924
5267
  "duration-200"
4925
5268
  ]
4926
5269
  }
4927
- }, ce = {
5270
+ }, he = {
4928
5271
  root: {
4929
5272
  class: ["!mt-0 text-danger-500 text-xs font-light tracking-[0.02em]"],
4930
5273
  "data-wv-name": "validatormessage",
4931
5274
  "data-wv-section": "root"
4932
5275
  }
4933
- }, de = {
5276
+ }, ve = {
4934
5277
  root: {
4935
5278
  class: "flex gap-2 items-center shrink-0",
4936
5279
  "data-wv-name": "buttonbulkaction",
@@ -4985,7 +5328,7 @@ const w = {
4985
5328
  class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
4986
5329
  "data-wv-section": "buttonclearselection"
4987
5330
  }
4988
- }, ue = {
5331
+ }, we = {
4989
5332
  root: {
4990
5333
  class: "flex flex-nowrap items-center gap-1",
4991
5334
  "data-wv-name": "badgegroup",
@@ -4997,7 +5340,7 @@ const w = {
4997
5340
  },
4998
5341
  showmoredialog: {
4999
5342
  root: {
5000
- class: [h.root({ state: {} }).class, "w-[400px]"],
5343
+ class: [C.root({ state: {} }).class, "w-[400px]"],
5001
5344
  "data-wv-section": "showmoredialog"
5002
5345
  },
5003
5346
  title: {
@@ -5010,7 +5353,7 @@ const w = {
5010
5353
  }
5011
5354
  // All section in Dialog Preset can be added here
5012
5355
  }
5013
- }, ge = {
5356
+ }, ye = {
5014
5357
  root: {
5015
5358
  class: [
5016
5359
  "flex gap-[5px] items-center text-left h-[26px]",
@@ -5035,16 +5378,16 @@ const w = {
5035
5378
  content: ">",
5036
5379
  "data-wv-section": "separator"
5037
5380
  }
5038
- }, fe = {
5381
+ }, pe = {
5039
5382
  currency: (e) => ({
5040
- class: [...c(e), "rounded-l rounded-r-none"],
5383
+ class: [...g(e), "rounded-l rounded-r-none"],
5041
5384
  "data-wv-section": "currency"
5042
5385
  }),
5043
5386
  value: (e) => ({
5044
- class: [...c(e), "rounded-r rounded-l-none -ml-[1px]"],
5387
+ class: [...g(e), "rounded-r rounded-l-none -ml-[1px]"],
5045
5388
  "data-wv-section": "value"
5046
5389
  })
5047
- }, be = {
5390
+ }, ke = {
5048
5391
  root: {
5049
5392
  "data-wv-name": "fileupload",
5050
5393
  "data-wv-section": "root"
@@ -5066,7 +5409,7 @@ const w = {
5066
5409
  requirements: {
5067
5410
  class: "flex justify-start"
5068
5411
  }
5069
- }, me = {
5412
+ }, Ce = {
5070
5413
  root: {
5071
5414
  class: [
5072
5415
  "flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"
@@ -5074,12 +5417,15 @@ const w = {
5074
5417
  "data-wv-name": "fieldwrapper",
5075
5418
  "data-wv-section": "root"
5076
5419
  },
5077
- label: ({ props: e }) => ({
5420
+ label: ({ props: e, slots: t }) => ({
5078
5421
  class: [
5079
5422
  [
5080
5423
  "text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]",
5081
5424
  e.labelClass
5082
- ]
5425
+ ],
5426
+ {
5427
+ "w-full": t["label-addon"]
5428
+ }
5083
5429
  ],
5084
5430
  "data-wv-section": "fieldlabel"
5085
5431
  }),
@@ -5092,14 +5438,14 @@ const w = {
5092
5438
  arterisksign: {
5093
5439
  class: "text-danger-500"
5094
5440
  }
5095
- }, xe = {
5441
+ }, je = {
5096
5442
  root: {
5097
5443
  class: [
5098
5444
  "bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0",
5099
5445
  "grid items-end p-3 gap-x-3 gap-y-4"
5100
5446
  ]
5101
5447
  }
5102
- }, he = {
5448
+ }, ze = {
5103
5449
  root: {
5104
5450
  class: [
5105
5451
  "w-screen h-screen fixed top-0 left-0 z-[9999999]",
@@ -5111,7 +5457,7 @@ const w = {
5111
5457
  animation: {
5112
5458
  class: ["w-[700px] h-auto"]
5113
5459
  }
5114
- }, ve = {
5460
+ }, _e = {
5115
5461
  root: {
5116
5462
  class: "flex items-center gap-1"
5117
5463
  },
@@ -5145,7 +5491,7 @@ const w = {
5145
5491
  class: "flex flex-col gap-0.5 items-center justify-center"
5146
5492
  }
5147
5493
  }
5148
- }, we = {
5494
+ }, Ae = {
5149
5495
  root: ({ props: e }) => ({
5150
5496
  class: [
5151
5497
  {
@@ -5221,79 +5567,79 @@ const w = {
5221
5567
  }
5222
5568
  ]
5223
5569
  })
5224
- }, ye = {
5225
- badge: y,
5226
- ripple: W,
5227
- tooltip: ie
5228
- }, pe = {
5229
- global: L,
5230
- directives: ye,
5570
+ }, Se = {
5571
+ badge: S,
5572
+ ripple: le,
5573
+ tooltip: fe
5574
+ }, Ne = {
5575
+ global: K,
5576
+ directives: Se,
5231
5577
  // Forms
5232
- form: R,
5233
- filtercontainer: xe,
5234
- dropdown: M,
5235
- inputnumber: q,
5236
- inputphonenumber: G,
5237
- inputcurrency: fe,
5238
- inputtext: v,
5239
- inputbadge: O,
5240
- calendar: _,
5241
- checkbox: l,
5242
- buttonradio: U,
5243
- multiselect: n,
5244
- togglebutton: re,
5245
- toggleswitch: o,
5246
- inputgroup: H,
5247
- inputgroupaddon: N,
5248
- treeselect: se,
5249
- tristatecheckbox: oe,
5250
- textarea: te,
5251
- password: Q,
5252
- validatormessage: ce,
5253
- fileupload: be,
5254
- fieldwrapper: me,
5578
+ form: D,
5579
+ filtercontainer: je,
5580
+ dropdown: O,
5581
+ inputnumber: Q,
5582
+ inputphonenumber: X,
5583
+ inputcurrency: pe,
5584
+ inputtext: j,
5585
+ inputbadge: q,
5586
+ calendar: V,
5587
+ checkbox: o,
5588
+ buttonradio: ie,
5589
+ multiselect: r,
5590
+ togglebutton: ge,
5591
+ toggleswitch: u,
5592
+ inputgroup: J,
5593
+ inputgroupaddon: Z,
5594
+ treeselect: me,
5595
+ tristatecheckbox: xe,
5596
+ textarea: ce,
5597
+ password: re,
5598
+ validatormessage: he,
5599
+ fileupload: ke,
5600
+ fieldwrapper: Ce,
5255
5601
  // Buttons
5256
- button: p,
5257
- buttondownload: k,
5258
- buttonbulkaction: de,
5259
- buttonsearch: j,
5260
- buttonsplit: z,
5261
- buttonfilter: C,
5602
+ button: T,
5603
+ buttondownload: N,
5604
+ buttonbulkaction: ve,
5605
+ buttonsearch: F,
5606
+ buttonsplit: I,
5607
+ buttonfilter: P,
5262
5608
  // Data
5263
- paginator: K,
5264
- datatable: T,
5265
- customcolumn: P,
5266
- tree: le,
5267
- timeline: ae,
5268
- changelog: S,
5609
+ paginator: ne,
5610
+ datatable: L,
5611
+ customcolumn: G,
5612
+ tree: be,
5613
+ timeline: de,
5614
+ changelog: B,
5269
5615
  // Panels
5270
- accordion: w,
5271
- card: A,
5616
+ accordion: A,
5617
+ card: E,
5272
5618
  // Menu
5273
- menu: J,
5274
- steps: X,
5275
- breadcrumb: ge,
5276
- tabmenu: ee,
5619
+ menu: ee,
5620
+ steps: se,
5621
+ breadcrumb: ye,
5622
+ tabmenu: oe,
5277
5623
  // Overlays
5278
- dialog: h,
5279
- dialogconfirm: I,
5280
- dialogform: $,
5281
- overlaypanel: Z,
5624
+ dialog: C,
5625
+ dialogconfirm: R,
5626
+ dialogform: M,
5627
+ overlaypanel: ae,
5282
5628
  // Messages
5283
- message: Y,
5284
- inlinemessage: E,
5285
- toast: ne,
5629
+ message: te,
5630
+ inlinemessage: H,
5631
+ toast: ue,
5286
5632
  // Media
5287
- carousel: V,
5633
+ carousel: $,
5288
5634
  // Misc
5289
- badge: s,
5290
- badgegroup: ue,
5291
- image: D,
5292
- loading: he,
5293
- codesnippet: F,
5294
- username: ve,
5295
- progressbar: we
5635
+ badge: d,
5636
+ badgegroup: we,
5637
+ image: Y,
5638
+ loading: ze,
5639
+ codesnippet: U,
5640
+ username: _e,
5641
+ progressbar: Ae
5296
5642
  };
5297
5643
  export {
5298
- pe as default
5644
+ Ne as default
5299
5645
  };