@fewangsit/wangsvue-presets 1.0.101 → 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 (61) hide show
  1. package/fixedasset/buttonradio/index.d.ts +6 -4
  2. package/fixedasset/buttonradio/index.js +8 -12
  3. package/fixedasset/fieldwrapper/index.d.ts +5 -2
  4. package/fixedasset/fieldwrapper/index.js +4 -1
  5. package/fixedasset/index.d.ts +2 -2
  6. package/fixedasset/index.es.js +660 -321
  7. package/fixedasset/index.js +94 -94
  8. package/fixedasset/index.system.js +2 -2
  9. package/fixedasset/inputotp/index.d.ts +1 -136
  10. package/fixedasset/inputotp/index.js +50 -53
  11. package/fixedasset/password/index.js +1 -0
  12. package/fixedasset/style.css +137 -49
  13. package/fixedasset/tabmenu/index.d.ts +1 -104
  14. package/fixedasset/tabmenu/index.js +48 -27
  15. package/fixedasset/timeline/index.d.ts +24 -2
  16. package/fixedasset/timeline/index.js +24 -5
  17. package/fixedasset/tree/index.d.ts +10 -5
  18. package/fixedasset/tree/index.js +8 -5
  19. package/fixedasset/username/index.js +1 -1
  20. package/globalsettings/buttonradio/index.d.ts +6 -4
  21. package/globalsettings/buttonradio/index.js +8 -12
  22. package/globalsettings/fieldwrapper/index.d.ts +5 -2
  23. package/globalsettings/fieldwrapper/index.js +4 -1
  24. package/globalsettings/index.d.ts +1 -1
  25. package/globalsettings/index.es.js +535 -191
  26. package/globalsettings/index.js +26 -26
  27. package/globalsettings/index.system.js +2 -2
  28. package/globalsettings/style.css +120 -51
  29. package/globalsettings/tabmenu/index.d.ts +1 -104
  30. package/globalsettings/tabmenu/index.js +48 -27
  31. package/globalsettings/timeline/index.d.ts +22 -0
  32. package/globalsettings/timeline/index.js +19 -0
  33. package/package.json +1 -1
  34. package/supplyasset/buttonradio/index.d.ts +6 -4
  35. package/supplyasset/buttonradio/index.js +8 -12
  36. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  37. package/supplyasset/fieldwrapper/index.js +4 -1
  38. package/supplyasset/index.d.ts +1 -1
  39. package/supplyasset/index.es.js +544 -199
  40. package/supplyasset/index.js +24 -24
  41. package/supplyasset/index.system.js +2 -2
  42. package/supplyasset/style.css +120 -51
  43. package/supplyasset/tabmenu/index.d.ts +1 -104
  44. package/supplyasset/tabmenu/index.js +50 -28
  45. package/supplyasset/timeline/index.d.ts +22 -0
  46. package/supplyasset/timeline/index.js +19 -0
  47. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  48. package/wangsvue/buttonbulkaction/index.js +2 -1
  49. package/wangsvue/buttonradio/index.d.ts +2 -1
  50. package/wangsvue/buttonradio/index.js +3 -7
  51. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  52. package/wangsvue/fieldwrapper/index.js +4 -1
  53. package/wangsvue/index.d.ts +1 -1
  54. package/wangsvue/index.es.js +590 -257
  55. package/wangsvue/index.js +44 -44
  56. package/wangsvue/index.system.js +2 -2
  57. package/wangsvue/style.css +106 -49
  58. package/wangsvue/tabmenu/index.d.ts +1 -56
  59. package/wangsvue/tabmenu/index.js +20 -13
  60. package/wangsvue/timeline/index.d.ts +20 -0
  61. package/wangsvue/timeline/index.js +16 -0
@@ -1,4 +1,7 @@
1
- const 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
@@ -992,8 +995,8 @@ const w = {
992
995
  class: [
993
996
  "w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded",
994
997
  {
995
- "ring-1": u,
996
- "ring-[0.5px]": !u
998
+ "ring-1": h,
999
+ "ring-[0.5px]": !h
997
1000
  }
998
1001
  ]
999
1002
  },
@@ -1118,7 +1121,7 @@ const w = {
1118
1121
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
1119
1122
  leaveToClass: "opacity-0"
1120
1123
  }
1121
- }, A = {
1124
+ }, E = {
1122
1125
  root: {
1123
1126
  class: [
1124
1127
  //Shape
@@ -1147,7 +1150,7 @@ const w = {
1147
1150
  footer: {
1148
1151
  class: ["inline-flex gap-1 text-xs items-center"]
1149
1152
  }
1150
- }, V = {
1153
+ }, $ = {
1151
1154
  root: {
1152
1155
  class: [
1153
1156
  // Flexbox
@@ -1261,7 +1264,7 @@ const w = {
1261
1264
  }
1262
1265
  ]
1263
1266
  })
1264
- }, S = {
1267
+ }, B = {
1265
1268
  button: ({ props: e, buttonClass: t }) => ({
1266
1269
  class: [
1267
1270
  t,
@@ -1300,7 +1303,7 @@ const w = {
1300
1303
  buttondownload: {
1301
1304
  "data-wv-section": "changelog-dialog-button-download"
1302
1305
  }
1303
- }, l = {
1306
+ }, o = {
1304
1307
  root: {
1305
1308
  class: [
1306
1309
  "relative",
@@ -1410,7 +1413,7 @@ const w = {
1410
1413
  tooltipicon: {
1411
1414
  class: "text-primary-700 w-[10px] h-[10px]"
1412
1415
  }
1413
- }, F = {
1416
+ }, U = {
1414
1417
  copybutton: {
1415
1418
  class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
1416
1419
  },
@@ -1430,7 +1433,7 @@ const w = {
1430
1433
  "px-2 bg-primary-100 sticky left-0 text-right select-none"
1431
1434
  ]
1432
1435
  }
1433
- }, P = {
1436
+ }, G = {
1434
1437
  menustart: {
1435
1438
  class: ""
1436
1439
  },
@@ -1454,7 +1457,7 @@ const w = {
1454
1457
  { invisible: e.dragable === !1 }
1455
1458
  ]
1456
1459
  })
1457
- }, T = {
1460
+ }, L = {
1458
1461
  root: {
1459
1462
  "data-wv-name": "datatable",
1460
1463
  "data-wv-section": "root",
@@ -1670,7 +1673,7 @@ const w = {
1670
1673
  class: "",
1671
1674
  template: "FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown"
1672
1675
  })
1673
- }, h = {
1676
+ }, C = {
1674
1677
  root: ({ state: e }) => ({
1675
1678
  class: [
1676
1679
  // Shape
@@ -1863,7 +1866,7 @@ const w = {
1863
1866
  leaveActiveClass: "transition-all duration-200 ease-out",
1864
1867
  leaveToClass: "opacity-0 scale-75 mask-active"
1865
1868
  }
1866
- }, I = {
1869
+ }, R = {
1867
1870
  root: {
1868
1871
  class: ["!w-[clamp(360px,75vw,400px)]"],
1869
1872
  "data-wv-name": (e) => e ?? "root",
@@ -1904,7 +1907,7 @@ const w = {
1904
1907
  class: "flex items-end justify-end gap-1 !mt-0",
1905
1908
  "data-wv-section": "dialog-confirm-footer"
1906
1909
  }
1907
- }, $ = {
1910
+ }, M = {
1908
1911
  root: {
1909
1912
  class: ["max-w-[90vw]"],
1910
1913
  style: (e) => `width: ${e}`,
@@ -1975,7 +1978,7 @@ const w = {
1975
1978
  savesubmitbutton: {
1976
1979
  "data-wv-section": "save-submit-button"
1977
1980
  }
1978
- }, n = {
1981
+ }, r = {
1979
1982
  root: ({ props: e, state: t }) => ({
1980
1983
  class: [
1981
1984
  // Display and Position
@@ -2014,9 +2017,9 @@ const w = {
2014
2017
  ]
2015
2018
  };
2016
2019
  },
2017
- token: s.root({ props: { severity: "dark" } }),
2018
- tokenLabel: s.input({ props: {}, context: {} }),
2019
- removeTokenIcon: s.removebutton({
2020
+ token: d.root({ props: { severity: "dark" } }),
2021
+ tokenLabel: d.input({ props: {}, context: {} }),
2022
+ removeTokenIcon: d.removebutton({
2020
2023
  props: { badgeSeverity: "dark" }
2021
2024
  }),
2022
2025
  loadingplaceholder: {
@@ -2093,12 +2096,12 @@ const w = {
2093
2096
  ]
2094
2097
  },
2095
2098
  headerCheckbox: {
2096
- ...l,
2099
+ ...o,
2097
2100
  root: {
2098
- class: ["!mx-auto", ...l.root.class]
2101
+ class: ["!mx-auto", ...o.root.class]
2099
2102
  }
2100
2103
  },
2101
- itemCheckbox: l,
2104
+ itemCheckbox: o,
2102
2105
  closeButton: {
2103
2106
  class: ["hidden"]
2104
2107
  },
@@ -2246,7 +2249,7 @@ const w = {
2246
2249
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
2247
2250
  leaveToClass: "opacity-0"
2248
2251
  }
2249
- }, M = {
2252
+ }, O = {
2250
2253
  root: ({ props: e, state: t }) => ({
2251
2254
  class: [
2252
2255
  // Display and Position
@@ -2411,12 +2414,12 @@ const w = {
2411
2414
  "bg-transparent"
2412
2415
  ]
2413
2416
  },
2414
- header: n == null ? void 0 : n.header,
2415
- filtercontainer: n == null ? void 0 : n.filtercontainer,
2416
- filterinput: n == null ? void 0 : n.filterinput,
2417
- filtericon: n == null ? void 0 : n.filtericon,
2418
- loadingicon: n == null ? void 0 : n.loadingicon,
2419
- 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 }),
2420
2423
  clearicon: {
2421
2424
  class: [
2422
2425
  // Color
@@ -2438,7 +2441,7 @@ const w = {
2438
2441
  loadingplaceholder: {
2439
2442
  class: "text-general-200 font-light"
2440
2443
  }
2441
- }, R = {
2444
+ }, D = {
2442
2445
  // :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
2443
2446
  root: () => ({
2444
2447
  class: [
@@ -2479,14 +2482,14 @@ const w = {
2479
2482
  "validator-message": {
2480
2483
  class: ["static w-max transform-none"]
2481
2484
  }
2482
- }, B = [
2485
+ }, W = [
2483
2486
  {
2484
2487
  "ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
2485
2488
  "ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
2486
2489
  },
2487
2490
  "ring-inset",
2488
2491
  "ring-general-200"
2489
- ], L = {
2492
+ ], K = {
2490
2493
  css: `
2491
2494
  *[data-pd-ripple="true"]{
2492
2495
  overflow: hidden;
@@ -2563,7 +2566,7 @@ const w = {
2563
2566
  }
2564
2567
  }
2565
2568
  `
2566
- }, D = {
2569
+ }, Y = {
2567
2570
  root: ({ props: e }) => ({
2568
2571
  class: [
2569
2572
  "relative inline-block",
@@ -2701,7 +2704,7 @@ const w = {
2701
2704
  leaveActiveClass: "transition-all duration-150 ease-in",
2702
2705
  leaveToClass: "opacity-0 scale-75"
2703
2706
  }
2704
- }, E = {
2707
+ }, H = {
2705
2708
  root: ({ props: e }) => ({
2706
2709
  class: [
2707
2710
  "rounded-md p-3",
@@ -2731,16 +2734,16 @@ const w = {
2731
2734
  "font-medium"
2732
2735
  ]
2733
2736
  }
2734
- }, v = {
2737
+ }, j = {
2735
2738
  root: ({ props: e, context: t, parent: a }) => {
2736
- var r, i;
2739
+ var n, i;
2737
2740
  return {
2738
2741
  class: [
2739
2742
  "px-3 py-[5px] w-full bg-transparent",
2740
2743
  // Size
2741
2744
  "h-max",
2742
2745
  {
2743
- "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")
2744
2747
  },
2745
2748
  // Font
2746
2749
  "text-general-800 text-xs tracking-[0.02em] font-medium",
@@ -2755,15 +2758,15 @@ const w = {
2755
2758
  ]
2756
2759
  };
2757
2760
  }
2758
- }, g = navigator.userAgent.includes("Firefox"), O = {
2761
+ }, v = navigator.userAgent.includes("Firefox"), q = {
2759
2762
  root: ({ context: e }) => ({
2760
2763
  class: [
2761
2764
  "flex flex-wrap gap-x-0.5 gap-y-[5px] items-center",
2762
2765
  "min-h-[26px] h-fit w-full",
2763
2766
  "ring-inset rounded px-[12px] py-[3px]",
2764
2767
  {
2765
- "ring-[1px]": g,
2766
- "ring-[0.5px]": !g
2768
+ "ring-[1px]": v,
2769
+ "ring-[0.5px]": !v
2767
2770
  },
2768
2771
  { "!ring-danger-500 !dark:ring-danger-500": e.invalidInput },
2769
2772
  { "!ring-general-200 !dark:ring-general-200": !e.invalidInput },
@@ -2772,7 +2775,7 @@ const w = {
2772
2775
  }),
2773
2776
  input: ({ context: e, parent: t, props: a }) => ({
2774
2777
  class: [
2775
- ...v.root({
2778
+ ...j.root({
2776
2779
  props: a,
2777
2780
  context: e,
2778
2781
  parent: t
@@ -2788,7 +2791,7 @@ const w = {
2788
2791
  erroroverlaypanel: {
2789
2792
  class: ["px-3 py-1 text-[12px] text-general-800"]
2790
2793
  }
2791
- }, f = navigator.userAgent.includes("Firefox"), H = {
2794
+ }, w = navigator.userAgent.includes("Firefox"), J = {
2792
2795
  root: ({ props: e }) => ({
2793
2796
  class: [
2794
2797
  {
@@ -2800,8 +2803,8 @@ const w = {
2800
2803
  "[&:has(:focus)]:!ring-primary-700 [&:has(:focus)_.inputgroupaddon]:!ring-primary-700": e.ring !== "none"
2801
2804
  },
2802
2805
  {
2803
- "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": f && e.ring !== "none",
2804
- "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"
2805
2808
  },
2806
2809
  "[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]",
2807
2810
  "[&:has(input)]:cursor-text",
@@ -2813,7 +2816,7 @@ const w = {
2813
2816
  ],
2814
2817
  "data-wv-section": "inputgroup"
2815
2818
  })
2816
- }, N = {
2819
+ }, Z = {
2817
2820
  root: ({ props: e }) => ({
2818
2821
  class: [
2819
2822
  "inputgroupaddon",
@@ -2843,13 +2846,13 @@ const w = {
2843
2846
  "data-addon-variant": e.addonVariant
2844
2847
  // Used in inputgroup to set styling
2845
2848
  })
2846
- }, 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 = {
2847
2850
  root: ({ props: e, parent: t }) => ({
2848
2851
  class: [
2849
2852
  // Layout
2850
2853
  "flex items-center self-stretch shrink-0 grow",
2851
2854
  //Size
2852
- m,
2855
+ p,
2853
2856
  // Spacing
2854
2857
  "py-1 px-3",
2855
2858
  // Border
@@ -2862,7 +2865,7 @@ const w = {
2862
2865
  class: [
2863
2866
  "border-0 h-full w-full outline-none",
2864
2867
  "bg-inherit",
2865
- b,
2868
+ y,
2866
2869
  "placeholder:text-general-200 placeholder:font-light",
2867
2870
  t.disabled ? "text-general-200" : "text-general-800"
2868
2871
  ]
@@ -2870,8 +2873,8 @@ const w = {
2870
2873
  },
2871
2874
  inputresizer: {
2872
2875
  class: [
2873
- b,
2874
- m,
2876
+ y,
2877
+ p,
2875
2878
  "user-select-none py-1 px-3 block min-w-4 text-transparent"
2876
2879
  ]
2877
2880
  },
@@ -2910,7 +2913,7 @@ const w = {
2910
2913
  }
2911
2914
  ]
2912
2915
  })
2913
- }, c = ({ isFirefoxBased: e, invalidInput: t }) => [
2916
+ }, g = ({ isFirefoxBased: e, invalidInput: t }) => [
2914
2917
  { "ring-[1px]": e, "ring-[0.5px]": !e },
2915
2918
  { "!ring-danger-500": t },
2916
2919
  "ring-inset",
@@ -2920,23 +2923,23 @@ const w = {
2920
2923
  "[&:has(:focus)]:ring-1",
2921
2924
  "bg-white",
2922
2925
  "z-[0] [&:has(:focus)]:z-[12]"
2923
- ], G = {
2926
+ ], X = {
2924
2927
  dialcode: {
2925
2928
  root: (e) => ({
2926
- class: [...c(e), "rounded-l rounded-r-none"]
2929
+ class: [...g(e), "rounded-l rounded-r-none"]
2927
2930
  }),
2928
- dropdownicon: ({ state: e }) => n.dropdownicon({ state: e })
2931
+ dropdownicon: ({ state: e }) => r.dropdownicon({ state: e })
2929
2932
  },
2930
2933
  input: (e) => ({
2931
2934
  class: [
2932
- ...c(e),
2935
+ ...g(e),
2933
2936
  "rounded-r rounded-l-none -ml-[1px]",
2934
2937
  "focus:bg-none",
2935
2938
  "focus:ring-primary-700",
2936
2939
  "focus:ring-1"
2937
2940
  ]
2938
2941
  })
2939
- }, J = {
2942
+ }, ee = {
2940
2943
  root: {
2941
2944
  class: [
2942
2945
  // Position
@@ -3036,7 +3039,7 @@ const w = {
3036
3039
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3037
3040
  leaveToClass: "opacity-0"
3038
3041
  }
3039
- }, Y = {
3042
+ }, te = {
3040
3043
  root: ({ props: e }) => ({
3041
3044
  class: [
3042
3045
  // Spacing and Shape
@@ -3112,7 +3115,7 @@ const w = {
3112
3115
  leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
3113
3116
  leaveToClass: "max-h-0 opacity-0 !m-0"
3114
3117
  }
3115
- }, Z = {
3118
+ }, ae = {
3116
3119
  root: {
3117
3120
  class: [
3118
3121
  "h-max",
@@ -3143,7 +3146,7 @@ const w = {
3143
3146
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3144
3147
  leaveToClass: "opacity-0"
3145
3148
  }
3146
- }, K = {
3149
+ }, ne = {
3147
3150
  root: {
3148
3151
  class: [
3149
3152
  // Flex & Alignment
@@ -3587,7 +3590,7 @@ const w = {
3587
3590
  current: {
3588
3591
  class: ["text-xs font-normal leading-6 px-3"]
3589
3592
  }
3590
- }, Q = {
3593
+ }, re = {
3591
3594
  root: ({ props: e }) => ({
3592
3595
  class: [
3593
3596
  "w-full",
@@ -3641,7 +3644,7 @@ const w = {
3641
3644
  ]
3642
3645
  },
3643
3646
  meterlabel: ({ instance: e }) => {
3644
- var t, a, r;
3647
+ var t, a, n;
3645
3648
  return {
3646
3649
  class: [
3647
3650
  // Size
@@ -3650,7 +3653,7 @@ const w = {
3650
3653
  {
3651
3654
  "bg-red-500/50": ((t = e == null ? void 0 : e.meter) == null ? void 0 : t.strength) == "weak",
3652
3655
  "bg-orange-500/50": ((a = e == null ? void 0 : e.meter) == null ? void 0 : a.strength) == "medium",
3653
- "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"
3654
3657
  },
3655
3658
  // Transitions
3656
3659
  "transition-all duration-1000 ease-in-out"
@@ -3676,7 +3679,7 @@ const w = {
3676
3679
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3677
3680
  leaveToClass: "opacity-0"
3678
3681
  }
3679
- }, x = navigator.userAgent.includes("Firefox"), o = {
3682
+ }, k = navigator.userAgent.includes("Firefox"), u = {
3680
3683
  root: ({ props: e }) => ({
3681
3684
  class: [
3682
3685
  // Alignments
@@ -3715,7 +3718,7 @@ const w = {
3715
3718
  "before:left-0.5": e.modelValue != e.trueValue
3716
3719
  },
3717
3720
  // Colors
3718
- { "ring-1": x, "ring-[0.5px]": !x },
3721
+ { "ring-1": k, "ring-[0.5px]": !k },
3719
3722
  {
3720
3723
  "before:bg-white": e.modelValue == e.trueValue,
3721
3724
  "before:bg-general-100": e.modelValue !== e.trueValue,
@@ -3789,8 +3792,8 @@ const w = {
3789
3792
  tooltipicon: {
3790
3793
  class: "text-primary-700 w-[10px] h-[10px]"
3791
3794
  }
3792
- }, U = {
3793
- root: ({ props: e }) => ({
3795
+ }, ie = {
3796
+ root: ({ props: e, state: t }) => ({
3794
3797
  class: [
3795
3798
  "relative",
3796
3799
  // Flexbox & Alignment
@@ -3803,10 +3806,10 @@ const w = {
3803
3806
  "rounded-full",
3804
3807
  // Colors
3805
3808
  {
3806
- "bg-white": !e.disabled || e.value == e.modelValue,
3807
- "bg-general-50": e.disabled && e.value != e.modelValue,
3808
- "ring-general-100": !e.disabled && e.value != e.modelValue,
3809
- "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,
3810
3813
  "ring-general-200": e.disabled
3811
3814
  },
3812
3815
  {
@@ -3818,7 +3821,7 @@ const w = {
3818
3821
  "data-wv-name": "buttonradio",
3819
3822
  "data-wv-section": "root"
3820
3823
  }),
3821
- box: ({ props: e }) => ({
3824
+ box: ({ props: e, state: t }) => ({
3822
3825
  class: [
3823
3826
  // Size
3824
3827
  "w-2 h-2",
@@ -3833,8 +3836,8 @@ const w = {
3833
3836
  "transition duration-200 ease-in-out",
3834
3837
  // Colors
3835
3838
  {
3836
- "bg-primary-700": e.value == e.modelValue && e.value !== void 0 && !e.disabled,
3837
- "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
3838
3841
  },
3839
3842
  // States
3840
3843
  {
@@ -3868,15 +3871,15 @@ const w = {
3868
3871
  icon: {
3869
3872
  class: "hidden"
3870
3873
  },
3871
- label: o.label,
3872
- labeltext: o.labeltext,
3873
- tooltipicon: o.tooltipicon
3874
- }, W = {
3874
+ label: u.label,
3875
+ labeltext: u.labeltext,
3876
+ tooltipicon: u.tooltipicon
3877
+ }, le = {
3875
3878
  root: {
3876
3879
  class: ["block absolute bg-surface-0/50 rounded-full pointer-events-none"],
3877
3880
  style: "transform: scale(0)"
3878
3881
  }
3879
- }, X = {
3882
+ }, se = {
3880
3883
  root: {
3881
3884
  class: "relative"
3882
3885
  },
@@ -3983,12 +3986,15 @@ const w = {
3983
3986
  "max-w-full"
3984
3987
  ]
3985
3988
  })
3986
- }, ee = {
3989
+ };
3990
+ function x(e, t) {
3991
+ return { [e]: t }[e];
3992
+ }
3993
+ x("WANGS-TAB-MENU", {
3987
3994
  root: {
3988
- class: "overflow-x-auto",
3989
- style: "scrollbar-width: none"
3995
+ class: "overflow-x-visible"
3990
3996
  },
3991
- menu: {
3997
+ menu: ({ props: e }) => ({
3992
3998
  class: [
3993
3999
  // Flexbox
3994
4000
  "flex flex-1",
@@ -3996,14 +4002,15 @@ const w = {
3996
4002
  "list-none",
3997
4003
  "p-0 m-0",
3998
4004
  // Colors
3999
- "text-general-100"
4005
+ "text-general-100",
4006
+ { "w-max ring-1 ring-inset ring-general-100 rounded": e.type === "segmented" }
4000
4007
  ]
4001
- },
4008
+ }),
4002
4009
  menuitem: {
4003
4010
  class: "mr-0"
4004
4011
  },
4005
- action: ({ context: e, state: t }) => {
4006
- var a, r;
4012
+ action: ({ props: e, context: t }) => {
4013
+ var a, n;
4007
4014
  return {
4008
4015
  class: [
4009
4016
  "relative",
@@ -4015,32 +4022,39 @@ const w = {
4015
4022
  // Spacing
4016
4023
  {
4017
4024
  "rounded-xl py-1 px-3": e.type === "pill",
4018
- "p-2 pb-1.5 pt-0.5 !h-6": e.type !== "pill",
4019
- "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
4020
4030
  },
4021
4031
  // Shape
4022
4032
  {
4023
- "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
4024
4035
  },
4025
4036
  // Colors and Conditions
4026
4037
  {
4027
4038
  "border-primary-700": t.active,
4028
4039
  "border-grayscale-400": !t.active,
4029
- "text-grayscale-600": !t.active,
4030
- "text-primary-700": t.active,
4031
- "bg-primary-50 text-primary-700": e.type === "pill" && t.active,
4032
- "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,
4033
4046
  "bg-transparent ": e.type !== "pill" && !t.active
4034
4047
  },
4035
4048
  // States
4049
+ { "hover:bg-primary-50": e.type === "tab" },
4036
4050
  "focus-visible:outline-none focus-visible:outline-offset-0",
4037
4051
  {
4038
4052
  "focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
4039
4053
  },
4040
4054
  // Disabled States
4041
4055
  {
4042
- "pointer-events-none": (a = e.item) == null ? void 0 : a.disabled,
4043
- "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
4044
4058
  },
4045
4059
  // Transitions
4046
4060
  "transition-all duration-200",
@@ -4056,10 +4070,319 @@ const w = {
4056
4070
  icon: {
4057
4071
  class: "mr-2"
4058
4072
  },
4059
- inkbar: {
4060
- 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;
4061
4140
  }
4062
- }, 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 = {
4063
4386
  root: ({ context: e, props: t }) => ({
4064
4387
  class: [
4065
4388
  // Font
@@ -4077,7 +4400,7 @@ const w = {
4077
4400
  // Shape
4078
4401
  "rounded",
4079
4402
  "appearance-none",
4080
- ...B,
4403
+ ...W,
4081
4404
  {
4082
4405
  "!ring-danger-500": e.invalidInput
4083
4406
  },
@@ -4095,16 +4418,16 @@ const w = {
4095
4418
  "data-wv-name": "textarea",
4096
4419
  "data-wv-section": "root"
4097
4420
  })
4098
- }, d = (e) => {
4421
+ }, f = (e) => {
4099
4422
  if (!e) return !0;
4100
4423
  const t = Object.keys(e);
4101
4424
  return t.length ? t.every((a) => {
4102
- const r = e[a];
4103
- return typeof r == "object" ? Array.isArray(r) ? !r.length || r.every(
4104
- (i) => typeof i == "object" ? d(i) : i == null
4105
- ) : 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;
4106
4429
  }) : !0;
4107
- }, ae = {
4430
+ }, de = {
4108
4431
  root: ({ props: e }) => ({
4109
4432
  class: ["flex flex-col grow", "text-xs font-normal text-grayscale-900"]
4110
4433
  }),
@@ -4135,18 +4458,37 @@ const w = {
4135
4458
  markerArrow: (e) => ({
4136
4459
  class: [
4137
4460
  "w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",
4138
- { "!visible": e.detail && !d(e.detail) },
4461
+ { "!visible": e.detail && !f(e.detail) },
4139
4462
  { "rotate-180": e.showDetail }
4140
4463
  ],
4141
4464
  "data-wv-section": "markerArrow"
4142
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
+ },
4143
4485
  connector: ({ props: e }) => ({
4144
4486
  class: ["w-[2px] grow bg-grayscale-900"]
4145
4487
  }),
4146
4488
  content: ({ props: e, context: t }) => ({
4147
4489
  class: ["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]
4148
4490
  })
4149
- }, ne = {
4491
+ }, ue = {
4150
4492
  root: ({ props: e }) => ({
4151
4493
  class: [
4152
4494
  //Size and Shape
@@ -4229,7 +4571,7 @@ const w = {
4229
4571
  leaveActiveClass: "!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
4230
4572
  leaveToClass: "max-h-0 opacity-0 mb-0"
4231
4573
  }
4232
- }, re = {
4574
+ }, ge = {
4233
4575
  root: {
4234
4576
  class: [
4235
4577
  "relative",
@@ -4300,7 +4642,7 @@ const w = {
4300
4642
  icon: {
4301
4643
  class: [" mr-2", "text-surface-700/80"]
4302
4644
  }
4303
- }, ie = {
4645
+ }, fe = {
4304
4646
  root: ({ context: e, props: t }) => ({
4305
4647
  class: [
4306
4648
  // Position
@@ -4336,7 +4678,7 @@ const w = {
4336
4678
  "break-words"
4337
4679
  ]
4338
4680
  }
4339
- }, le = {
4681
+ }, be = {
4340
4682
  root: {
4341
4683
  class: [
4342
4684
  "relative",
@@ -4434,7 +4776,7 @@ const w = {
4434
4776
  // Color
4435
4777
  ]
4436
4778
  },
4437
- nodeCheckbox: l,
4779
+ nodeCheckbox: o,
4438
4780
  nodeicon: () => ({
4439
4781
  class: ["!hidden"]
4440
4782
  }),
@@ -4504,7 +4846,7 @@ const w = {
4504
4846
  }
4505
4847
  ]
4506
4848
  })
4507
- }, se = {
4849
+ }, me = {
4508
4850
  root: ({ props: e, state: t }) => ({
4509
4851
  class: [
4510
4852
  // Display and Position
@@ -4825,7 +5167,7 @@ const w = {
4825
5167
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
4826
5168
  leaveToClass: "opacity-0"
4827
5169
  }
4828
- }, oe = {
5170
+ }, xe = {
4829
5171
  root: {
4830
5172
  class: [
4831
5173
  "relative",
@@ -4925,13 +5267,13 @@ const w = {
4925
5267
  "duration-200"
4926
5268
  ]
4927
5269
  }
4928
- }, ce = {
5270
+ }, he = {
4929
5271
  root: {
4930
5272
  class: ["!mt-0 text-danger-500 text-xs font-light tracking-[0.02em]"],
4931
5273
  "data-wv-name": "validatormessage",
4932
5274
  "data-wv-section": "root"
4933
5275
  }
4934
- }, de = {
5276
+ }, ve = {
4935
5277
  root: {
4936
5278
  class: "flex gap-2 items-center shrink-0",
4937
5279
  "data-wv-name": "buttonbulkaction",
@@ -4986,7 +5328,7 @@ const w = {
4986
5328
  class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
4987
5329
  "data-wv-section": "buttonclearselection"
4988
5330
  }
4989
- }, ue = {
5331
+ }, we = {
4990
5332
  root: {
4991
5333
  class: "flex flex-nowrap items-center gap-1",
4992
5334
  "data-wv-name": "badgegroup",
@@ -4998,7 +5340,7 @@ const w = {
4998
5340
  },
4999
5341
  showmoredialog: {
5000
5342
  root: {
5001
- class: [h.root({ state: {} }).class, "w-[400px]"],
5343
+ class: [C.root({ state: {} }).class, "w-[400px]"],
5002
5344
  "data-wv-section": "showmoredialog"
5003
5345
  },
5004
5346
  title: {
@@ -5011,7 +5353,7 @@ const w = {
5011
5353
  }
5012
5354
  // All section in Dialog Preset can be added here
5013
5355
  }
5014
- }, ge = {
5356
+ }, ye = {
5015
5357
  root: {
5016
5358
  class: [
5017
5359
  "flex gap-[5px] items-center text-left h-[26px]",
@@ -5036,16 +5378,16 @@ const w = {
5036
5378
  content: ">",
5037
5379
  "data-wv-section": "separator"
5038
5380
  }
5039
- }, fe = {
5381
+ }, pe = {
5040
5382
  currency: (e) => ({
5041
- class: [...c(e), "rounded-l rounded-r-none"],
5383
+ class: [...g(e), "rounded-l rounded-r-none"],
5042
5384
  "data-wv-section": "currency"
5043
5385
  }),
5044
5386
  value: (e) => ({
5045
- class: [...c(e), "rounded-r rounded-l-none -ml-[1px]"],
5387
+ class: [...g(e), "rounded-r rounded-l-none -ml-[1px]"],
5046
5388
  "data-wv-section": "value"
5047
5389
  })
5048
- }, be = {
5390
+ }, ke = {
5049
5391
  root: {
5050
5392
  "data-wv-name": "fileupload",
5051
5393
  "data-wv-section": "root"
@@ -5067,7 +5409,7 @@ const w = {
5067
5409
  requirements: {
5068
5410
  class: "flex justify-start"
5069
5411
  }
5070
- }, me = {
5412
+ }, Ce = {
5071
5413
  root: {
5072
5414
  class: [
5073
5415
  "flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"
@@ -5075,12 +5417,15 @@ const w = {
5075
5417
  "data-wv-name": "fieldwrapper",
5076
5418
  "data-wv-section": "root"
5077
5419
  },
5078
- label: ({ props: e }) => ({
5420
+ label: ({ props: e, slots: t }) => ({
5079
5421
  class: [
5080
5422
  [
5081
5423
  "text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]",
5082
5424
  e.labelClass
5083
- ]
5425
+ ],
5426
+ {
5427
+ "w-full": t["label-addon"]
5428
+ }
5084
5429
  ],
5085
5430
  "data-wv-section": "fieldlabel"
5086
5431
  }),
@@ -5093,14 +5438,14 @@ const w = {
5093
5438
  arterisksign: {
5094
5439
  class: "text-danger-500"
5095
5440
  }
5096
- }, xe = {
5441
+ }, je = {
5097
5442
  root: {
5098
5443
  class: [
5099
5444
  "bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0",
5100
5445
  "grid items-end p-3 gap-x-3 gap-y-4"
5101
5446
  ]
5102
5447
  }
5103
- }, he = {
5448
+ }, ze = {
5104
5449
  root: {
5105
5450
  class: [
5106
5451
  "w-screen h-screen fixed top-0 left-0 z-[9999999]",
@@ -5112,7 +5457,7 @@ const w = {
5112
5457
  animation: {
5113
5458
  class: ["w-[700px] h-auto"]
5114
5459
  }
5115
- }, ve = {
5460
+ }, _e = {
5116
5461
  root: {
5117
5462
  class: "flex items-center gap-1"
5118
5463
  },
@@ -5146,7 +5491,7 @@ const w = {
5146
5491
  class: "flex flex-col gap-0.5 items-center justify-center"
5147
5492
  }
5148
5493
  }
5149
- }, we = {
5494
+ }, Ae = {
5150
5495
  root: ({ props: e }) => ({
5151
5496
  class: [
5152
5497
  {
@@ -5222,79 +5567,79 @@ const w = {
5222
5567
  }
5223
5568
  ]
5224
5569
  })
5225
- }, ye = {
5226
- badge: y,
5227
- ripple: W,
5228
- tooltip: ie
5229
- }, pe = {
5230
- global: L,
5231
- directives: ye,
5570
+ }, Se = {
5571
+ badge: S,
5572
+ ripple: le,
5573
+ tooltip: fe
5574
+ }, Ne = {
5575
+ global: K,
5576
+ directives: Se,
5232
5577
  // Forms
5233
- form: R,
5234
- filtercontainer: xe,
5235
- dropdown: M,
5236
- inputnumber: q,
5237
- inputphonenumber: G,
5238
- inputcurrency: fe,
5239
- inputtext: v,
5240
- inputbadge: O,
5241
- calendar: _,
5242
- checkbox: l,
5243
- buttonradio: U,
5244
- multiselect: n,
5245
- togglebutton: re,
5246
- toggleswitch: o,
5247
- inputgroup: H,
5248
- inputgroupaddon: N,
5249
- treeselect: se,
5250
- tristatecheckbox: oe,
5251
- textarea: te,
5252
- password: Q,
5253
- validatormessage: ce,
5254
- fileupload: be,
5255
- 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,
5256
5601
  // Buttons
5257
- button: p,
5258
- buttondownload: k,
5259
- buttonbulkaction: de,
5260
- buttonsearch: j,
5261
- buttonsplit: z,
5262
- buttonfilter: C,
5602
+ button: T,
5603
+ buttondownload: N,
5604
+ buttonbulkaction: ve,
5605
+ buttonsearch: F,
5606
+ buttonsplit: I,
5607
+ buttonfilter: P,
5263
5608
  // Data
5264
- paginator: K,
5265
- datatable: T,
5266
- customcolumn: P,
5267
- tree: le,
5268
- timeline: ae,
5269
- changelog: S,
5609
+ paginator: ne,
5610
+ datatable: L,
5611
+ customcolumn: G,
5612
+ tree: be,
5613
+ timeline: de,
5614
+ changelog: B,
5270
5615
  // Panels
5271
- accordion: w,
5272
- card: A,
5616
+ accordion: A,
5617
+ card: E,
5273
5618
  // Menu
5274
- menu: J,
5275
- steps: X,
5276
- breadcrumb: ge,
5277
- tabmenu: ee,
5619
+ menu: ee,
5620
+ steps: se,
5621
+ breadcrumb: ye,
5622
+ tabmenu: oe,
5278
5623
  // Overlays
5279
- dialog: h,
5280
- dialogconfirm: I,
5281
- dialogform: $,
5282
- overlaypanel: Z,
5624
+ dialog: C,
5625
+ dialogconfirm: R,
5626
+ dialogform: M,
5627
+ overlaypanel: ae,
5283
5628
  // Messages
5284
- message: Y,
5285
- inlinemessage: E,
5286
- toast: ne,
5629
+ message: te,
5630
+ inlinemessage: H,
5631
+ toast: ue,
5287
5632
  // Media
5288
- carousel: V,
5633
+ carousel: $,
5289
5634
  // Misc
5290
- badge: s,
5291
- badgegroup: ue,
5292
- image: D,
5293
- loading: he,
5294
- codesnippet: F,
5295
- username: ve,
5296
- progressbar: we
5635
+ badge: d,
5636
+ badgegroup: we,
5637
+ image: Y,
5638
+ loading: ze,
5639
+ codesnippet: U,
5640
+ username: _e,
5641
+ progressbar: Ae
5297
5642
  };
5298
5643
  export {
5299
- pe as default
5644
+ Ne as default
5300
5645
  };