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