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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/fixedasset/buttonradio/index.d.ts +6 -4
  2. package/fixedasset/buttonradio/index.js +8 -12
  3. package/fixedasset/calendar/index.js +3 -2
  4. package/fixedasset/fieldwrapper/index.d.ts +5 -2
  5. package/fixedasset/fieldwrapper/index.js +4 -1
  6. package/fixedasset/index.d.ts +2 -2
  7. package/fixedasset/index.es.js +663 -323
  8. package/fixedasset/index.js +94 -94
  9. package/fixedasset/index.system.js +2 -2
  10. package/fixedasset/inputotp/index.d.ts +1 -136
  11. package/fixedasset/inputotp/index.js +50 -53
  12. package/fixedasset/password/index.js +1 -0
  13. package/fixedasset/style.css +137 -49
  14. package/fixedasset/tabmenu/index.d.ts +1 -104
  15. package/fixedasset/tabmenu/index.js +48 -27
  16. package/fixedasset/timeline/index.d.ts +24 -2
  17. package/fixedasset/timeline/index.js +24 -5
  18. package/fixedasset/tree/index.d.ts +10 -5
  19. package/fixedasset/tree/index.js +8 -5
  20. package/fixedasset/username/index.js +1 -1
  21. package/globalsettings/buttonradio/index.d.ts +6 -4
  22. package/globalsettings/buttonradio/index.js +8 -12
  23. package/globalsettings/calendar/index.js +3 -2
  24. package/globalsettings/fieldwrapper/index.d.ts +5 -2
  25. package/globalsettings/fieldwrapper/index.js +4 -1
  26. package/globalsettings/index.d.ts +1 -1
  27. package/globalsettings/index.es.js +538 -193
  28. package/globalsettings/index.js +26 -26
  29. package/globalsettings/index.system.js +2 -2
  30. package/globalsettings/style.css +120 -51
  31. package/globalsettings/tabmenu/index.d.ts +1 -104
  32. package/globalsettings/tabmenu/index.js +48 -27
  33. package/globalsettings/timeline/index.d.ts +22 -0
  34. package/globalsettings/timeline/index.js +19 -0
  35. package/package.json +1 -1
  36. package/supplyasset/buttonradio/index.d.ts +6 -4
  37. package/supplyasset/buttonradio/index.js +8 -12
  38. package/supplyasset/calendar/index.js +3 -2
  39. package/supplyasset/fieldwrapper/index.d.ts +5 -2
  40. package/supplyasset/fieldwrapper/index.js +4 -1
  41. package/supplyasset/index.d.ts +1 -1
  42. package/supplyasset/index.es.js +547 -201
  43. package/supplyasset/index.js +24 -24
  44. package/supplyasset/index.system.js +2 -2
  45. package/supplyasset/style.css +120 -51
  46. package/supplyasset/tabmenu/index.d.ts +1 -104
  47. package/supplyasset/tabmenu/index.js +50 -28
  48. package/supplyasset/timeline/index.d.ts +22 -0
  49. package/supplyasset/timeline/index.js +19 -0
  50. package/wangsvue/buttonbulkaction/index.d.ts +2 -2
  51. package/wangsvue/buttonbulkaction/index.js +2 -1
  52. package/wangsvue/buttonradio/index.d.ts +2 -1
  53. package/wangsvue/buttonradio/index.js +3 -7
  54. package/wangsvue/calendar/index.js +3 -2
  55. package/wangsvue/fieldwrapper/index.d.ts +5 -2
  56. package/wangsvue/fieldwrapper/index.js +4 -1
  57. package/wangsvue/index.d.ts +1 -1
  58. package/wangsvue/index.es.js +593 -259
  59. package/wangsvue/index.js +44 -44
  60. package/wangsvue/index.system.js +2 -2
  61. package/wangsvue/style.css +106 -49
  62. package/wangsvue/tabmenu/index.d.ts +1 -56
  63. package/wangsvue/tabmenu/index.js +20 -13
  64. package/wangsvue/timeline/index.d.ts +20 -0
  65. package/wangsvue/timeline/index.js +16 -0
@@ -1,4 +1,7 @@
1
- const y = {
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 y = {
60
63
  leaveToClass: "max-h-0"
61
64
  }
62
65
  }
63
- }, l = {
66
+ }, d = {
64
67
  root: ({ props: e }) => ({
65
68
  class: [
66
69
  // Alignment
@@ -109,7 +112,7 @@ const y = {
109
112
  "icon-class": "w-[10px] h-[10px] !text-[10px]",
110
113
  "data-wv-section": "removebutton"
111
114
  })
112
- }, w = {
115
+ }, S = {
113
116
  root: ({ context: e }) => ({
114
117
  class: [
115
118
  // Font
@@ -147,7 +150,7 @@ const y = {
147
150
  }
148
151
  ]
149
152
  })
150
- }, p = {
153
+ }, T = {
151
154
  root: ({ props: e, context: t }) => ({
152
155
  class: [
153
156
  "relative",
@@ -464,7 +467,7 @@ const y = {
464
467
  }
465
468
  ]
466
469
  })
467
- }, k = {
470
+ }, N = {
468
471
  root: ({ props: e }) => ({
469
472
  class: [
470
473
  "rounded ring-1 ring-success-500 p-[5px] ring-inset",
@@ -481,7 +484,7 @@ const y = {
481
484
  "data-wv-section": "icon",
482
485
  severity: "success"
483
486
  }
484
- }, C = {
487
+ }, F = {
485
488
  root: ({ context: e }) => ({
486
489
  class: [
487
490
  "rounded ring-1 ring-general-500 p-[5px] ring-inset",
@@ -498,7 +501,7 @@ const y = {
498
501
  ],
499
502
  "data-wv-section": "icon"
500
503
  })
501
- }, j = {
504
+ }, P = {
502
505
  buttontrigger: {
503
506
  root: ({ context: e }) => ({
504
507
  class: [
@@ -547,7 +550,7 @@ const y = {
547
550
  inputtext: {
548
551
  class: "!h-max !py-0 !px-0"
549
552
  }
550
- }, z = {
553
+ }, V = {
551
554
  root: ["w-max"],
552
555
  button: {
553
556
  class: [
@@ -556,7 +559,7 @@ const y = {
556
559
  "data-sp-section": "button-split"
557
560
  },
558
561
  menuButton: "!rounded-ss-none !rounded-es-none"
559
- }, u = navigator.userAgent.includes("Firefox"), _ = {
562
+ }, h = navigator.userAgent.includes("Firefox"), I = {
560
563
  root: ({ props: e }) => ({
561
564
  class: [
562
565
  // Display and Position
@@ -839,11 +842,12 @@ const y = {
839
842
  daylabel: ({ context: e }) => ({
840
843
  class: [
841
844
  // Flexbox and Alignment
842
- "flex items-center justify-center",
845
+ { flex: !e.date.otherMonth },
846
+ { hidden: e.date.otherMonth },
847
+ "items-center justify-center",
843
848
  // 'mx-auto',
844
849
  // Shape & Size
845
850
  "w-8 h-8",
846
- { hidden: e.date.otherMonth },
847
851
  // Colors
848
852
  {
849
853
  "bg-general-100": e.date.today && !e.selected,
@@ -1017,8 +1021,8 @@ const y = {
1017
1021
  class: [
1018
1022
  "w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded",
1019
1023
  {
1020
- "ring-1": u,
1021
- "ring-[0.5px]": !u
1024
+ "ring-1": h,
1025
+ "ring-[0.5px]": !h
1022
1026
  }
1023
1027
  ]
1024
1028
  },
@@ -1143,7 +1147,7 @@ const y = {
1143
1147
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
1144
1148
  leaveToClass: "opacity-0"
1145
1149
  }
1146
- }, A = {
1150
+ }, E = {
1147
1151
  root: {
1148
1152
  class: [
1149
1153
  //Shape
@@ -1172,7 +1176,7 @@ const y = {
1172
1176
  footer: {
1173
1177
  class: ["inline-flex gap-1 text-xs items-center"]
1174
1178
  }
1175
- }, V = {
1179
+ }, B = {
1176
1180
  root: {
1177
1181
  class: [
1178
1182
  // Flexbox
@@ -1286,7 +1290,7 @@ const y = {
1286
1290
  }
1287
1291
  ]
1288
1292
  })
1289
- }, S = {
1293
+ }, U = {
1290
1294
  button: ({ props: e, buttonClass: t }) => ({
1291
1295
  class: [
1292
1296
  t,
@@ -1325,7 +1329,7 @@ const y = {
1325
1329
  buttondownload: {
1326
1330
  "data-wv-section": "changelog-dialog-button-download"
1327
1331
  }
1328
- }, s = {
1332
+ }, c = {
1329
1333
  root: {
1330
1334
  class: [
1331
1335
  "relative",
@@ -1435,7 +1439,7 @@ const y = {
1435
1439
  tooltipicon: {
1436
1440
  class: "text-primary-500 w-[10px] h-[10px]"
1437
1441
  }
1438
- }, F = {
1442
+ }, $ = {
1439
1443
  copybutton: {
1440
1444
  class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
1441
1445
  },
@@ -1455,7 +1459,7 @@ const y = {
1455
1459
  "px-2 bg-primary-100 sticky left-0 text-right select-none"
1456
1460
  ]
1457
1461
  }
1458
- }, T = {
1462
+ }, G = {
1459
1463
  menustart: {
1460
1464
  class: ""
1461
1465
  },
@@ -1479,7 +1483,7 @@ const y = {
1479
1483
  { invisible: e.dragable === !1 }
1480
1484
  ]
1481
1485
  })
1482
- }, P = {
1486
+ }, L = {
1483
1487
  root: {
1484
1488
  "data-wv-name": "datatable",
1485
1489
  "data-wv-section": "root",
@@ -1695,7 +1699,7 @@ const y = {
1695
1699
  class: "",
1696
1700
  template: "FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown"
1697
1701
  })
1698
- }, h = {
1702
+ }, C = {
1699
1703
  root: ({ state: e }) => ({
1700
1704
  class: [
1701
1705
  // Shape
@@ -1888,7 +1892,7 @@ const y = {
1888
1892
  leaveActiveClass: "transition-all duration-200 ease-out",
1889
1893
  leaveToClass: "opacity-0 scale-75 mask-active"
1890
1894
  }
1891
- }, I = {
1895
+ }, M = {
1892
1896
  root: {
1893
1897
  class: ["!w-[clamp(360px,75vw,400px)]"],
1894
1898
  "data-wv-name": (e) => e ?? "root",
@@ -1930,7 +1934,7 @@ const y = {
1930
1934
  class: "flex items-end justify-end gap-1 !mt-0",
1931
1935
  "data-wv-section": "dialog-confirm-footer"
1932
1936
  }
1933
- }, $ = {
1937
+ }, R = {
1934
1938
  root: {
1935
1939
  class: ["max-w-[90vw]"],
1936
1940
  style: (e) => `width: ${e}`,
@@ -1995,7 +1999,7 @@ const y = {
1995
1999
  savesubmitbutton: {
1996
2000
  "data-wv-section": "save-submit-button"
1997
2001
  }
1998
- }, r = {
2002
+ }, n = {
1999
2003
  root: ({ props: e, state: t }) => ({
2000
2004
  class: [
2001
2005
  // Display and Position
@@ -2034,9 +2038,9 @@ const y = {
2034
2038
  ]
2035
2039
  };
2036
2040
  },
2037
- token: l.root({ props: { severity: "dark" } }),
2038
- tokenLabel: l.input({ props: {}, context: {} }),
2039
- removeTokenIcon: l.removebutton({
2041
+ token: d.root({ props: { severity: "dark" } }),
2042
+ tokenLabel: d.input({ props: {}, context: {} }),
2043
+ removeTokenIcon: d.removebutton({
2040
2044
  props: { badgeSeverity: "dark" }
2041
2045
  }),
2042
2046
  loadingplaceholder: {
@@ -2113,12 +2117,12 @@ const y = {
2113
2117
  ]
2114
2118
  },
2115
2119
  headerCheckbox: {
2116
- ...s,
2120
+ ...c,
2117
2121
  root: {
2118
- class: ["!mx-auto", ...s.root.class]
2122
+ class: ["!mx-auto", ...c.root.class]
2119
2123
  }
2120
2124
  },
2121
- itemCheckbox: s,
2125
+ itemCheckbox: c,
2122
2126
  closeButton: {
2123
2127
  class: ["hidden"]
2124
2128
  },
@@ -2266,7 +2270,7 @@ const y = {
2266
2270
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
2267
2271
  leaveToClass: "opacity-0"
2268
2272
  }
2269
- }, M = {
2273
+ }, O = {
2270
2274
  root: ({ props: e, state: t }) => ({
2271
2275
  class: [
2272
2276
  // Display and Position
@@ -2431,12 +2435,12 @@ const y = {
2431
2435
  "bg-transparent"
2432
2436
  ]
2433
2437
  },
2434
- header: r == null ? void 0 : r.header,
2435
- filtercontainer: r == null ? void 0 : r.filtercontainer,
2436
- filterinput: r == null ? void 0 : r.filterinput,
2437
- filtericon: r == null ? void 0 : r.filtericon,
2438
- loadingicon: r == null ? void 0 : r.loadingicon,
2439
- dropdownicon: ({ state: e }) => r.dropdownicon({ state: e }),
2438
+ header: n == null ? void 0 : n.header,
2439
+ filtercontainer: n == null ? void 0 : n.filtercontainer,
2440
+ filterinput: n == null ? void 0 : n.filterinput,
2441
+ filtericon: n == null ? void 0 : n.filtericon,
2442
+ loadingicon: n == null ? void 0 : n.loadingicon,
2443
+ dropdownicon: ({ state: e }) => n.dropdownicon({ state: e }),
2440
2444
  clearicon: {
2441
2445
  class: [
2442
2446
  // Color
@@ -2458,7 +2462,7 @@ const y = {
2458
2462
  loadingplaceholder: {
2459
2463
  class: "text-general-200 font-light"
2460
2464
  }
2461
- }, R = {
2465
+ }, D = {
2462
2466
  // :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
2463
2467
  root: () => ({
2464
2468
  class: [
@@ -2499,14 +2503,14 @@ const y = {
2499
2503
  "validator-message": {
2500
2504
  class: ["static w-max transform-none"]
2501
2505
  }
2502
- }, B = [
2506
+ }, W = [
2503
2507
  {
2504
2508
  "ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
2505
2509
  "ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
2506
2510
  },
2507
2511
  "ring-inset",
2508
2512
  "ring-general-200"
2509
- ], L = {
2513
+ ], K = {
2510
2514
  css: `
2511
2515
  *[data-pd-ripple="true"]{
2512
2516
  overflow: hidden;
@@ -2583,7 +2587,7 @@ const y = {
2583
2587
  }
2584
2588
  }
2585
2589
  `
2586
- }, D = {
2590
+ }, Y = {
2587
2591
  root: ({ props: e }) => ({
2588
2592
  class: [
2589
2593
  "relative inline-block",
@@ -2721,7 +2725,7 @@ const y = {
2721
2725
  leaveActiveClass: "transition-all duration-150 ease-in",
2722
2726
  leaveToClass: "opacity-0 scale-75"
2723
2727
  }
2724
- }, E = {
2728
+ }, H = {
2725
2729
  root: ({ props: e }) => ({
2726
2730
  class: [
2727
2731
  "rounded-md p-3",
@@ -2751,16 +2755,16 @@ const y = {
2751
2755
  "font-medium"
2752
2756
  ]
2753
2757
  }
2754
- }, v = {
2758
+ }, j = {
2755
2759
  root: ({ props: e, context: t, parent: a }) => {
2756
- var n, i;
2760
+ var r, i;
2757
2761
  return {
2758
2762
  class: [
2759
2763
  "px-3 py-[5px] w-full bg-transparent",
2760
2764
  // Size
2761
2765
  "h-max",
2762
2766
  {
2763
- "max-h-[43px]": (i = (n = a.instance) == null ? void 0 : n.placeholder) == null ? void 0 : i.includes("password")
2767
+ "max-h-[43px]": (i = (r = a.instance) == null ? void 0 : r.placeholder) == null ? void 0 : i.includes("password")
2764
2768
  },
2765
2769
  // Font
2766
2770
  "text-general-800 text-xs tracking-[0.02em] font-medium",
@@ -2775,15 +2779,15 @@ const y = {
2775
2779
  ]
2776
2780
  };
2777
2781
  }
2778
- }, g = navigator.userAgent.includes("Firefox"), O = {
2782
+ }, v = navigator.userAgent.includes("Firefox"), q = {
2779
2783
  root: ({ context: e }) => ({
2780
2784
  class: [
2781
2785
  "flex flex-wrap gap-x-0.5 gap-y-[5px] items-center",
2782
2786
  "min-h-[26px] h-fit w-full",
2783
2787
  "ring-inset rounded px-[12px] py-[3px]",
2784
2788
  {
2785
- "ring-[1px]": g,
2786
- "ring-[0.5px]": !g
2789
+ "ring-[1px]": v,
2790
+ "ring-[0.5px]": !v
2787
2791
  },
2788
2792
  { "!ring-danger-500 !dark:ring-danger-500": e.invalidInput },
2789
2793
  { "!ring-general-200 !dark:ring-general-200": !e.invalidInput },
@@ -2792,7 +2796,7 @@ const y = {
2792
2796
  }),
2793
2797
  input: ({ context: e, parent: t, props: a }) => ({
2794
2798
  class: [
2795
- ...v.root({
2799
+ ...j.root({
2796
2800
  props: a,
2797
2801
  context: e,
2798
2802
  parent: t
@@ -2808,7 +2812,7 @@ const y = {
2808
2812
  erroroverlaypanel: {
2809
2813
  class: ["px-3 py-1 text-[12px] text-general-800"]
2810
2814
  }
2811
- }, f = navigator.userAgent.includes("Firefox"), H = {
2815
+ }, y = navigator.userAgent.includes("Firefox"), J = {
2812
2816
  root: ({ props: e }) => ({
2813
2817
  class: [
2814
2818
  {
@@ -2820,8 +2824,8 @@ const y = {
2820
2824
  "[&:has(:focus)]:!ring-primary-500 [&:has(:focus)_.inputgroupaddon]:!ring-primary-500": e.ring !== "none"
2821
2825
  },
2822
2826
  {
2823
- "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": f && e.ring !== "none",
2824
- "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !f && e.ring !== "none"
2827
+ "ring-[1px] [&_.inputgroupaddon]:ring-[1px]": y && e.ring !== "none",
2828
+ "ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !y && e.ring !== "none"
2825
2829
  },
2826
2830
  "[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]",
2827
2831
  "[&:has(input)]:cursor-text",
@@ -2833,7 +2837,7 @@ const y = {
2833
2837
  ],
2834
2838
  "data-wv-section": "inputgroup"
2835
2839
  })
2836
- }, q = {
2840
+ }, Z = {
2837
2841
  root: ({ props: e }) => ({
2838
2842
  class: [
2839
2843
  "inputgroupaddon",
@@ -2863,13 +2867,13 @@ const y = {
2863
2867
  "data-addon-variant": e.addonVariant
2864
2868
  // Used in inputgroup to set styling
2865
2869
  })
2866
- }, b = "text-xs font-medium tracking-[0.02em] leading-[18px]", m = "h-[26px]", N = {
2870
+ }, w = "text-xs font-medium tracking-[0.02em] leading-[18px]", p = "h-[26px]", Q = {
2867
2871
  root: ({ props: e, parent: t }) => ({
2868
2872
  class: [
2869
2873
  // Layout
2870
2874
  "flex items-center self-stretch shrink-0 grow",
2871
2875
  //Size
2872
- m,
2876
+ p,
2873
2877
  // Spacing
2874
2878
  "py-1 px-3",
2875
2879
  // Border
@@ -2882,7 +2886,7 @@ const y = {
2882
2886
  class: [
2883
2887
  "border-0 h-full w-full outline-none",
2884
2888
  "bg-inherit",
2885
- b,
2889
+ w,
2886
2890
  "placeholder:text-general-200 placeholder:font-light",
2887
2891
  t.disabled ? "text-general-200" : "text-general-800"
2888
2892
  ]
@@ -2890,8 +2894,8 @@ const y = {
2890
2894
  },
2891
2895
  inputresizer: {
2892
2896
  class: [
2893
- b,
2894
- m,
2897
+ w,
2898
+ p,
2895
2899
  "user-select-none py-1 px-3 block min-w-4 text-transparent"
2896
2900
  ]
2897
2901
  },
@@ -2930,7 +2934,7 @@ const y = {
2930
2934
  }
2931
2935
  ]
2932
2936
  })
2933
- }, c = ({ isFirefoxBased: e, invalidInput: t }) => [
2937
+ }, g = ({ isFirefoxBased: e, invalidInput: t }) => [
2934
2938
  { "ring-[1px]": e, "ring-[0.5px]": !e },
2935
2939
  { "!ring-danger-500": t },
2936
2940
  "ring-inset",
@@ -2940,23 +2944,23 @@ const y = {
2940
2944
  "[&:has(:focus)]:ring-1",
2941
2945
  "bg-white",
2942
2946
  "z-[0] [&:has(:focus)]:z-[12]"
2943
- ], G = {
2947
+ ], X = {
2944
2948
  dialcode: {
2945
2949
  root: (e) => ({
2946
- class: [...c(e), "rounded-l rounded-r-none"]
2950
+ class: [...g(e), "rounded-l rounded-r-none"]
2947
2951
  }),
2948
- dropdownicon: ({ state: e }) => r.dropdownicon({ state: e })
2952
+ dropdownicon: ({ state: e }) => n.dropdownicon({ state: e })
2949
2953
  },
2950
2954
  input: (e) => ({
2951
2955
  class: [
2952
- ...c(e),
2956
+ ...g(e),
2953
2957
  "rounded-r rounded-l-none -ml-[1px]",
2954
2958
  "focus:bg-none",
2955
2959
  "focus:ring-primary-500",
2956
2960
  "focus:ring-1"
2957
2961
  ]
2958
2962
  })
2959
- }, J = {
2963
+ }, ee = {
2960
2964
  root: {
2961
2965
  class: [
2962
2966
  // Position
@@ -3056,7 +3060,7 @@ const y = {
3056
3060
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3057
3061
  leaveToClass: "opacity-0"
3058
3062
  }
3059
- }, Y = {
3063
+ }, te = {
3060
3064
  root: ({ props: e }) => ({
3061
3065
  class: [
3062
3066
  // Spacing and Shape
@@ -3132,7 +3136,7 @@ const y = {
3132
3136
  leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
3133
3137
  leaveToClass: "max-h-0 opacity-0 !m-0"
3134
3138
  }
3135
- }, Z = {
3139
+ }, ae = {
3136
3140
  root: {
3137
3141
  class: [
3138
3142
  "h-max",
@@ -3163,7 +3167,7 @@ const y = {
3163
3167
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3164
3168
  leaveToClass: "opacity-0"
3165
3169
  }
3166
- }, K = {
3170
+ }, re = {
3167
3171
  root: {
3168
3172
  class: [
3169
3173
  // Flex & Alignment
@@ -3607,7 +3611,7 @@ const y = {
3607
3611
  current: {
3608
3612
  class: ["text-xs font-normal leading-6 px-3"]
3609
3613
  }
3610
- }, Q = {
3614
+ }, ne = {
3611
3615
  root: ({ props: e }) => ({
3612
3616
  class: [
3613
3617
  "w-full",
@@ -3661,7 +3665,7 @@ const y = {
3661
3665
  ]
3662
3666
  },
3663
3667
  meterlabel: ({ instance: e }) => {
3664
- var t, a, n;
3668
+ var t, a, r;
3665
3669
  return {
3666
3670
  class: [
3667
3671
  // Size
@@ -3670,7 +3674,7 @@ const y = {
3670
3674
  {
3671
3675
  "bg-red-500/50": ((t = e == null ? void 0 : e.meter) == null ? void 0 : t.strength) == "weak",
3672
3676
  "bg-orange-500/50": ((a = e == null ? void 0 : e.meter) == null ? void 0 : a.strength) == "medium",
3673
- "bg-green-500/50": ((n = e == null ? void 0 : e.meter) == null ? void 0 : n.strength) == "strong"
3677
+ "bg-green-500/50": ((r = e == null ? void 0 : e.meter) == null ? void 0 : r.strength) == "strong"
3674
3678
  },
3675
3679
  // Transitions
3676
3680
  "transition-all duration-1000 ease-in-out"
@@ -3696,7 +3700,7 @@ const y = {
3696
3700
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
3697
3701
  leaveToClass: "opacity-0"
3698
3702
  }
3699
- }, x = navigator.userAgent.includes("Firefox"), o = {
3703
+ }, k = navigator.userAgent.includes("Firefox"), u = {
3700
3704
  root: ({ props: e }) => ({
3701
3705
  class: [
3702
3706
  // Alignments
@@ -3736,7 +3740,7 @@ const y = {
3736
3740
  },
3737
3741
  // Colors
3738
3742
  "ring-1",
3739
- { "ring-1": x, "ring-[0.5px]": !x },
3743
+ { "ring-1": k, "ring-[0.5px]": !k },
3740
3744
  {
3741
3745
  "before:bg-white": e.modelValue == e.trueValue,
3742
3746
  "before:bg-general-100": e.modelValue !== e.trueValue,
@@ -3810,8 +3814,8 @@ const y = {
3810
3814
  tooltipicon: {
3811
3815
  class: "text-primary-500 w-[10px] h-[10px]"
3812
3816
  }
3813
- }, U = {
3814
- root: ({ props: e }) => ({
3817
+ }, ie = {
3818
+ root: ({ props: e, state: t }) => ({
3815
3819
  class: [
3816
3820
  "relative",
3817
3821
  // Flexbox & Alignment
@@ -3824,10 +3828,10 @@ const y = {
3824
3828
  "rounded-full",
3825
3829
  // Colors
3826
3830
  {
3827
- "bg-white": !e.disabled || e.value == e.modelValue,
3828
- "bg-general-50": e.disabled && e.value != e.modelValue,
3829
- "ring-general-100": !e.disabled && e.value != e.modelValue,
3830
- "ring-primary-500": !e.disabled && e.value == e.modelValue,
3831
+ "bg-white": !e.disabled || t.checked,
3832
+ "bg-general-50": e.disabled && !t.checked,
3833
+ "ring-general-100": !e.disabled && !t.checked,
3834
+ "ring-primary-500": !e.disabled && t.checked,
3831
3835
  "ring-general-200": e.disabled
3832
3836
  },
3833
3837
  {
@@ -3839,7 +3843,7 @@ const y = {
3839
3843
  "data-wv-name": "buttonradio",
3840
3844
  "data-wv-section": "root"
3841
3845
  }),
3842
- box: ({ props: e }) => ({
3846
+ box: ({ props: e, state: t }) => ({
3843
3847
  class: [
3844
3848
  // Size
3845
3849
  "w-2 h-2",
@@ -3854,8 +3858,8 @@ const y = {
3854
3858
  "transition duration-200 ease-in-out",
3855
3859
  // Colors
3856
3860
  {
3857
- "bg-primary-500": e.value == e.modelValue && e.value !== void 0 && !e.disabled,
3858
- "bg-general-200": e.value == e.modelValue && e.value !== void 0 && e.disabled
3861
+ "bg-primary-500": t.checked && e.value !== void 0 && !e.disabled,
3862
+ "bg-general-200": t.checked && e.value !== void 0 && e.disabled
3859
3863
  },
3860
3864
  // States
3861
3865
  {
@@ -3889,15 +3893,15 @@ const y = {
3889
3893
  icon: {
3890
3894
  class: "hidden"
3891
3895
  },
3892
- label: o.label,
3893
- labeltext: o.labeltext,
3894
- tooltipicon: o.tooltipicon
3895
- }, W = {
3896
+ label: u.label,
3897
+ labeltext: u.labeltext,
3898
+ tooltipicon: u.tooltipicon
3899
+ }, le = {
3896
3900
  root: {
3897
3901
  class: ["block absolute bg-surface-0/50 rounded-full pointer-events-none"],
3898
3902
  style: "transform: scale(0)"
3899
3903
  }
3900
- }, X = {
3904
+ }, se = {
3901
3905
  root: {
3902
3906
  class: "relative"
3903
3907
  },
@@ -4004,12 +4008,319 @@ const y = {
4004
4008
  "max-w-full"
4005
4009
  ]
4006
4010
  })
4007
- }, ee = {
4011
+ };
4012
+ function x(e, t) {
4013
+ return { [e]: t }[e];
4014
+ }
4015
+ x("WANGS-TAB-MENU", {
4016
+ root: {
4017
+ class: "overflow-x-visible"
4018
+ },
4019
+ menu: ({ props: e }) => ({
4020
+ class: [
4021
+ // Flexbox
4022
+ "flex flex-1",
4023
+ // Spacing
4024
+ "list-none",
4025
+ "p-0 m-0",
4026
+ // Colors
4027
+ "text-general-100",
4028
+ { "w-max ring-1 ring-inset ring-general-100 rounded": e.type === "segmented" }
4029
+ ]
4030
+ }),
4031
+ menuitem: {
4032
+ class: "mr-0"
4033
+ },
4034
+ action: ({ props: e, context: t }) => {
4035
+ var a, r;
4036
+ return {
4037
+ class: [
4038
+ "relative",
4039
+ // Font
4040
+ "font-medium",
4041
+ "text-xs leading-4 tracking-[0.02em]",
4042
+ // Flexbox and Alignment
4043
+ "flex items-center",
4044
+ // Spacing
4045
+ {
4046
+ "rounded-xl py-1 px-3": e.type === "pill",
4047
+ rounded: e.type === "segmented",
4048
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
4049
+ "py-[5px] px-3 !h-6": e.type === "segmented",
4050
+ "ml-1": e.type === "pill" && t.index !== 0,
4051
+ "gap-1": t.item.icon
4052
+ },
4053
+ // Shape
4054
+ {
4055
+ "border-b-2": e.type === "tab",
4056
+ "shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": e.type === "segmented" && t.active
4057
+ },
4058
+ // Colors and Conditions
4059
+ {
4060
+ "border-primary-700": t.active,
4061
+ "border-grayscale-400": !t.active,
4062
+ "text-grayscale-600": !t.active && e.type === "tab",
4063
+ "text-primary-700": t.active && e.type === "tab",
4064
+ "bg-primary-700 text-white": e.type === "pill" && t.active,
4065
+ "bg-grayscale-100 text-grayscale-800": e.type === "pill" && !t.active,
4066
+ "bg-primary-500 text-white": e.type === "segmented" && t.active,
4067
+ "!text-general-800": e.type === "segmented" && !t.active,
4068
+ "bg-transparent ": e.type !== "pill" && !t.active
4069
+ },
4070
+ // States
4071
+ { "hover:bg-primary-50": e.type === "tab" },
4072
+ "focus-visible:outline-none focus-visible:outline-offset-0",
4073
+ {
4074
+ "focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
4075
+ },
4076
+ // Disabled States
4077
+ {
4078
+ "pointer-events-none": (a = t.item) == null ? void 0 : a.disabled,
4079
+ "opacity-60": (r = t.item) == null ? void 0 : r.disabled
4080
+ },
4081
+ // Transitions
4082
+ "transition-all duration-200",
4083
+ // Misc
4084
+ "cursor-pointer select-none text-decoration-none",
4085
+ "overflow-hidden",
4086
+ "user-select-none",
4087
+ "!no-underline",
4088
+ "whitespace-nowrap"
4089
+ ]
4090
+ };
4091
+ },
4092
+ icon: {
4093
+ class: "mr-2"
4094
+ },
4095
+ inkbar: ({ props: e }) => ({
4096
+ class: ["grow border-b-2 border-grayscale-400", { hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented" }]
4097
+ })
4098
+ });
4099
+ x("WANGS-INPUT-OTP", {
4100
+ root: {
4101
+ class: [
4102
+ // Alignment
4103
+ "flex items-center",
4104
+ "gap-[6px]",
4105
+ "w-max"
4106
+ ]
4107
+ },
4108
+ input: ({ props: e, context: t, parent: a }) => ({
4109
+ class: [
4110
+ // Font
4111
+ "text-[14px] leading-none font-medium",
4112
+ // Flex & Alignment
4113
+ { "flex-1 w-[1%]": a.tagName == "WANGS-INPUT-GROUP" },
4114
+ "text-center",
4115
+ // Spacing
4116
+ "m-0",
4117
+ // Size
4118
+ "w-[42px] h-[42px]",
4119
+ // Shape
4120
+ { "rounded-md": a.tagName !== "WANGS-INPUT-GROUP" },
4121
+ {
4122
+ "first:rounded-l-md rounded-none last:rounded-r-md": a.tagName == "WANGS-INPUT-GROUP"
4123
+ },
4124
+ {
4125
+ "border-0 border-y border-l last:border-r": a.tagName == "WANGS-INPUT-GROUP"
4126
+ },
4127
+ // Colors
4128
+ "text-general-800 dark:text-general-800",
4129
+ "placeholder:text-surface-400 dark:placeholder:text-surface-500",
4130
+ "bg-white dark:bg-white",
4131
+ {
4132
+ "ring-1": navigator.userAgent.includes("Firefox"),
4133
+ "ring-[0.5px]": !navigator.userAgent.includes("Firefox")
4134
+ },
4135
+ { "ring-general-200 dark:ring-general-200": !e.invalid },
4136
+ // Invalid State
4137
+ { "ring-danger-500 dark:ring-danger-500": e.invalid },
4138
+ // States
4139
+ {
4140
+ "hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !t.disabled && !e.invalid,
4141
+ "focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !t.disabled && !e.invalid,
4142
+ "focus:outline-none focus:outline-offset-0": !t.disabled,
4143
+ "opacity-60 select-none pointer-events-none cursor-default": t.disabled
4144
+ },
4145
+ // Filled State *for FloatLabel
4146
+ { filled: a.tagName == "WANGS-FLOAT-LABEL" && t.filled },
4147
+ // Misc
4148
+ "appearance-none",
4149
+ "transition-colors duration-200"
4150
+ ]
4151
+ })
4152
+ });
4153
+ const l = class l {
4154
+ constructor() {
4155
+ /**
4156
+ * Stores base URLs associated with different app identifiers.
4157
+ */
4158
+ b(this, "_baseUrl", "");
4159
+ if (globalThis[l.SINGLETON_KEY])
4160
+ return globalThis[l.SINGLETON_KEY];
4161
+ globalThis[l.SINGLETON_KEY] = this;
4162
+ }
4163
+ /**
4164
+ * Registers a base URL for a specific app.
4165
+ *
4166
+ * @param base - The base URL to be used as a prefix for all routes in that app.
4167
+ */
4168
+ setNavigationBaseUrl(t) {
4169
+ this._baseUrl = this.normalizeBase(t);
4170
+ }
4171
+ /**
4172
+ * Retrieves the base URL for a specific app.
4173
+ *
4174
+ * @returns The base URL registered for the app or an empty string if not set.
4175
+ */
4176
+ getNavigationBaseUrl() {
4177
+ return this._baseUrl;
4178
+ }
4179
+ /**
4180
+ * Ensures the base URL ends with a single slash and removes trailing slashes.
4181
+ *
4182
+ * @param base - The base URL to normalize.
4183
+ * @returns A clean base URL ending with a single `/`.
4184
+ */
4185
+ normalizeBase(t) {
4186
+ return t.replace(/\/+$/, "").concat("/");
4187
+ }
4188
+ /**
4189
+ * Prepends the base URL (if any) to the given path.
4190
+ *
4191
+ * @param path - The relative path to normalize.
4192
+ * @returns A fully normalized path prefixed with the base URL if applicable.
4193
+ */
4194
+ normalizePath(t) {
4195
+ const a = this.getNavigationBaseUrl();
4196
+ if (!a)
4197
+ return t;
4198
+ const r = t.startsWith("/") ? t.slice(1) : t;
4199
+ return `${a}${r}`;
4200
+ }
4201
+ /**
4202
+ * Removes the specified base path from the beginning of a given route path.
4203
+ *
4204
+ * This is useful when your app is deployed under a subdirectory (e.g., `/base`)
4205
+ * and you want to normalize the route path to match menu or route definitions
4206
+ * that don't include the base.
4207
+ *
4208
+ * @param path - The full route path (e.g., `/base/about`).
4209
+ * @param base - The optional base URL to remove (e.g., `/base`).
4210
+ * @returns The normalized path without the base prefix (e.g., `/about`).
4211
+ *
4212
+ * @example
4213
+ * stripBase('/base/home', '/base'); // returns '/home'
4214
+ * stripBase('/about', '/base'); // returns '/about' (base not present)
4215
+ * stripBase('/base', '/base'); // returns '/'
4216
+ */
4217
+ stripBase(t, a) {
4218
+ return a || (a = this.getNavigationBaseUrl()), a !== "/" && t.startsWith(a) ? "/" + t.slice(a.length).replace(/^\/+/, "") : t;
4219
+ }
4220
+ /**
4221
+ * Pushes a new entry to the browser's history stack.
4222
+ *
4223
+ * @param route - The target URL or path to push. 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.push('/about', { from: 'home' });
4229
+ */
4230
+ push(t, a = {}, r = "") {
4231
+ var o;
4232
+ const i = {
4233
+ ...a,
4234
+ ...history.state ?? {},
4235
+ current: t,
4236
+ back: (o = history.state) == null ? void 0 : o.current,
4237
+ forward: void 0,
4238
+ replaced: !1,
4239
+ position: history.length + 1
4240
+ };
4241
+ window.history.pushState(i, r, t);
4242
+ }
4243
+ /**
4244
+ * Replaces the current entry in the browser's history stack.
4245
+ *
4246
+ * @param route - The target URL or path to replace with. Can be a string, URL object, or null.
4247
+ * @param data - Optional state object associated with the history entry. Accessible via `history.state`.
4248
+ * @param unused - Optional title parameter (currently unused due to limited browser support).
4249
+ *
4250
+ * @example
4251
+ * Router.replace('/login', { reason: 'session expired' });
4252
+ */
4253
+ replace(t, a = {}, r = "") {
4254
+ const i = {
4255
+ ...a,
4256
+ ...history.state ?? {},
4257
+ forward: void 0,
4258
+ current: t,
4259
+ replaced: !0
4260
+ };
4261
+ window.history.replaceState(i, r, t);
4262
+ }
4263
+ /**
4264
+ * Dispatches a custom event before navigation occurs.
4265
+ * Used to notify subscribers of an upcoming route change.
4266
+ *
4267
+ * @param route - The route that will be navigated to.
4268
+ * @param mode - The navigation mode ('push' or 'replace').
4269
+ * @param data - Optional state object for the navigation.
4270
+ */
4271
+ dispatchBeforeNavigationEvent(t, a, r) {
4272
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
4273
+ detail: { route: t, mode: a, state: r }
4274
+ }));
4275
+ }
4276
+ /**
4277
+ * Dispatches a custom event after navigation occurs.
4278
+ * Used to notify subscribers that the route has changed.
4279
+ *
4280
+ * @param route - The route that was navigated to.
4281
+ * @param mode - The navigation mode ('push' or 'replace').
4282
+ * @param data - Optional state object for the navigation.
4283
+ */
4284
+ dispatchNavigationEvent(t, a, r) {
4285
+ window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
4286
+ detail: { route: t, mode: a, state: r }
4287
+ }));
4288
+ }
4289
+ /**
4290
+ * Navigates to a specified route using the browser's History API.
4291
+ *
4292
+ * This updates the URL in the browser without reloading the page.
4293
+ * It can either push a new entry to the history stack or replace the current one.
4294
+ * Also dispatches custom events before and after the navigation.
4295
+ *
4296
+ * @param route - The target route to navigate to. Can be a string or URL object.
4297
+ * @param navigationMode - Determines how navigation is handled.
4298
+ * - `'push'` (default): Adds a new entry to the browser history.
4299
+ * - `'replace'`: Replaces the current history entry.
4300
+ * @param data - Optional state object associated with the history entry. Can be accessed via `history.state`.
4301
+ * @param unused - Optional title parameter (currently unused due to browser support limitations).
4302
+ *
4303
+ * @example
4304
+ * router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
4305
+ */
4306
+ navigateToRoute(t, a = "push", r = {}, i = "") {
4307
+ if (!t)
4308
+ return;
4309
+ const o = typeof t == "string" ? t : t.toString(), s = this.normalizePath(o);
4310
+ if (s === location.pathname)
4311
+ return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
4312
+ this.dispatchBeforeNavigationEvent(s, a, r), a === "push" ? this.push(s, r, i) : this.replace(s, r, i), this.dispatchNavigationEvent(s, a, r);
4313
+ }
4314
+ };
4315
+ b(l, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
4316
+ let m = l;
4317
+ new m();
4318
+ const oe = x("WANGS-TAB-MENU", {
4008
4319
  root: {
4009
4320
  class: "overflow-x-auto",
4010
4321
  style: "scrollbar-width: none"
4011
4322
  },
4012
- menu: {
4323
+ menu: ({ props: e }) => ({
4013
4324
  class: [
4014
4325
  // Flexbox
4015
4326
  "flex flex-1",
@@ -4017,14 +4328,17 @@ const y = {
4017
4328
  "list-none",
4018
4329
  "p-0 m-0",
4019
4330
  // Colors
4020
- "text-general-100"
4331
+ "text-general-100",
4332
+ {
4333
+ "w-max ring-1 ring-inset ring-general-100 rounded !m-[2px]": e.type === "segmented"
4334
+ }
4021
4335
  ]
4022
- },
4336
+ }),
4023
4337
  menuitem: {
4024
4338
  class: "mr-0"
4025
4339
  },
4026
- action: ({ context: e, state: t }) => {
4027
- var a, n;
4340
+ action: ({ props: e, context: t }) => {
4341
+ var a, r;
4028
4342
  return {
4029
4343
  class: [
4030
4344
  "relative",
@@ -4036,12 +4350,14 @@ const y = {
4036
4350
  // Spacing
4037
4351
  {
4038
4352
  "rounded-xl py-1 px-3": e.type === "pill",
4039
- "p-2 pb-1.5 pt-0.5 !h-6": e.type !== "pill",
4040
- "ml-1": e.type === "pill" && e.index !== 0
4353
+ rounded: e.type === "segmented",
4354
+ "p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
4355
+ "py-[5px] px-3 !h-[26px]": e.type === "segmented",
4356
+ "ml-1": e.type === "pill" && t.index !== 0
4041
4357
  },
4042
4358
  // Shape
4043
4359
  {
4044
- "border-b-2": e.type !== "pill"
4360
+ "border-b-2": e.type === "tab"
4045
4361
  },
4046
4362
  // Colors and Conditions
4047
4363
  {
@@ -4051,6 +4367,8 @@ const y = {
4051
4367
  "text-primary-500": t.active,
4052
4368
  "bg-primary-500 text-white": e.type === "pill" && t.active,
4053
4369
  "bg-grayscale-200 text-grayscale-800": e.type === "pill" && !t.active,
4370
+ "bg-primary-500 text-white shadow-[-2px_2px_2px_rgba(0,0,0,0.25)]": e.type === "segmented" && t.active,
4371
+ "!text-general-800": e.type === "segmented" && !t.active,
4054
4372
  "bg-transparent ": e.type !== "pill" && !t.active
4055
4373
  },
4056
4374
  // States
@@ -4060,8 +4378,8 @@ const y = {
4060
4378
  },
4061
4379
  // Disabled States
4062
4380
  {
4063
- "pointer-events-none": (a = e.item) == null ? void 0 : a.disabled,
4064
- "opacity-60": (n = e.item) == null ? void 0 : n.disabled
4381
+ "pointer-events-none": (a = t.item) == null ? void 0 : a.disabled,
4382
+ "opacity-60": (r = t.item) == null ? void 0 : r.disabled
4065
4383
  },
4066
4384
  // Transitions
4067
4385
  "transition-all duration-200",
@@ -4077,10 +4395,15 @@ const y = {
4077
4395
  icon: {
4078
4396
  class: "mr-2"
4079
4397
  },
4080
- inkbar: {
4081
- class: "grow border-b-2 border-primary-100"
4082
- }
4083
- }, te = {
4398
+ inkbar: ({ props: e }) => ({
4399
+ class: [
4400
+ "grow border-b-2 border-primary-100",
4401
+ {
4402
+ hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented"
4403
+ }
4404
+ ]
4405
+ })
4406
+ }), de = {
4084
4407
  root: ({ context: e, props: t }) => ({
4085
4408
  class: [
4086
4409
  // Font
@@ -4098,7 +4421,7 @@ const y = {
4098
4421
  // Shape
4099
4422
  "rounded",
4100
4423
  "appearance-none",
4101
- ...B,
4424
+ ...W,
4102
4425
  {
4103
4426
  "!ring-danger-500": e.invalidInput
4104
4427
  },
@@ -4116,16 +4439,16 @@ const y = {
4116
4439
  "data-wv-name": "textarea",
4117
4440
  "data-wv-section": "root"
4118
4441
  })
4119
- }, d = (e) => {
4442
+ }, f = (e) => {
4120
4443
  if (!e) return !0;
4121
4444
  const t = Object.keys(e);
4122
4445
  return t.length ? t.every((a) => {
4123
- const n = e[a];
4124
- return typeof n == "object" ? Array.isArray(n) ? !n.length || n.every(
4125
- (i) => typeof i == "object" ? d(i) : i == null
4126
- ) : d(n) : n == null;
4446
+ const r = e[a];
4447
+ return typeof r == "object" ? Array.isArray(r) ? !r.length || r.every(
4448
+ (i) => typeof i == "object" ? f(i) : i == null
4449
+ ) : f(r) : r == null;
4127
4450
  }) : !0;
4128
- }, ae = {
4451
+ }, ce = {
4129
4452
  root: ({ props: e }) => ({
4130
4453
  class: ["flex flex-col grow", "text-xs font-normal text-grayscale-900"]
4131
4454
  }),
@@ -4156,18 +4479,37 @@ const y = {
4156
4479
  markerArrow: (e) => ({
4157
4480
  class: [
4158
4481
  "w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",
4159
- { "!visible": e.detail && !d(e.detail) },
4482
+ { "!visible": e.detail && !f(e.detail) },
4160
4483
  { "rotate-180": e.showDetail }
4161
4484
  ],
4162
4485
  "data-wv-section": "markerArrow"
4163
4486
  }),
4487
+ markerDot: (e) => ({
4488
+ class: [
4489
+ "hidden w-[6px] h-[6px] m-[3px] rounded-full bg-black",
4490
+ { "!flex": !e.detail || f(e.detail) }
4491
+ ],
4492
+ "data-wv-section": "markerDot"
4493
+ }),
4494
+ contentHeader: {
4495
+ class: ["leading-5 cursor-pointer truncate !text-xs !font-bold"]
4496
+ },
4497
+ contentDetailKey: {
4498
+ class: ["text-general-400 whitespace-nowrap"]
4499
+ },
4500
+ contentDetailValue: {
4501
+ class: ["text-xs text-general-800"]
4502
+ },
4503
+ contentDate: {
4504
+ class: ["text-xs font-medium"]
4505
+ },
4164
4506
  connector: ({ props: e }) => ({
4165
4507
  class: ["w-[2px] grow bg-grayscale-900"]
4166
4508
  }),
4167
4509
  content: ({ props: e, context: t }) => ({
4168
4510
  class: ["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]
4169
4511
  })
4170
- }, re = {
4512
+ }, ue = {
4171
4513
  root: ({ props: e }) => ({
4172
4514
  class: [
4173
4515
  //Size and Shape
@@ -4250,7 +4592,7 @@ const y = {
4250
4592
  leaveActiveClass: "!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
4251
4593
  leaveToClass: "max-h-0 opacity-0 mb-0"
4252
4594
  }
4253
- }, ne = {
4595
+ }, ge = {
4254
4596
  root: {
4255
4597
  class: [
4256
4598
  "relative",
@@ -4321,7 +4663,7 @@ const y = {
4321
4663
  icon: {
4322
4664
  class: [" mr-2", "text-surface-700/80"]
4323
4665
  }
4324
- }, ie = {
4666
+ }, fe = {
4325
4667
  root: ({ context: e, props: t }) => ({
4326
4668
  class: [
4327
4669
  // Position
@@ -4357,7 +4699,7 @@ const y = {
4357
4699
  "break-words"
4358
4700
  ]
4359
4701
  }
4360
- }, le = {
4702
+ }, be = {
4361
4703
  root: {
4362
4704
  class: [
4363
4705
  "relative",
@@ -4612,7 +4954,7 @@ const y = {
4612
4954
  }
4613
4955
  ]
4614
4956
  })
4615
- }, se = {
4957
+ }, me = {
4616
4958
  root: ({ props: e, state: t }) => ({
4617
4959
  class: [
4618
4960
  // Display and Position
@@ -4933,7 +5275,7 @@ const y = {
4933
5275
  leaveActiveClass: "transition-opacity duration-100 ease-linear",
4934
5276
  leaveToClass: "opacity-0"
4935
5277
  }
4936
- }, oe = {
5278
+ }, xe = {
4937
5279
  root: {
4938
5280
  class: [
4939
5281
  "relative",
@@ -5033,13 +5375,13 @@ const y = {
5033
5375
  "duration-200"
5034
5376
  ]
5035
5377
  }
5036
- }, ce = {
5378
+ }, he = {
5037
5379
  root: {
5038
5380
  class: ["!mt-0 text-danger-500 text-xs font-light tracking-[0.02em]"],
5039
5381
  "data-wv-name": "validatormessage",
5040
5382
  "data-wv-section": "root"
5041
5383
  }
5042
- }, de = {
5384
+ }, ve = {
5043
5385
  root: {
5044
5386
  class: "flex gap-2 items-center shrink-0",
5045
5387
  "data-wv-name": "buttonbulkaction",
@@ -5094,7 +5436,7 @@ const y = {
5094
5436
  class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
5095
5437
  "data-wv-section": "buttonclearselection"
5096
5438
  }
5097
- }, ue = {
5439
+ }, ye = {
5098
5440
  root: {
5099
5441
  class: "flex flex-nowrap items-center gap-1",
5100
5442
  "data-wv-name": "badgegroup",
@@ -5106,7 +5448,7 @@ const y = {
5106
5448
  },
5107
5449
  showmoredialog: {
5108
5450
  root: {
5109
- class: [h.root({ state: {} }).class, "w-[400px]"],
5451
+ class: [C.root({ state: {} }).class, "w-[400px]"],
5110
5452
  "data-wv-section": "showmoredialog"
5111
5453
  },
5112
5454
  title: {
@@ -5119,7 +5461,7 @@ const y = {
5119
5461
  }
5120
5462
  // All section in Dialog Preset can be added here
5121
5463
  }
5122
- }, ge = {
5464
+ }, we = {
5123
5465
  root: {
5124
5466
  class: [
5125
5467
  "flex gap-[5px] items-center text-left h-[26px]",
@@ -5144,16 +5486,16 @@ const y = {
5144
5486
  content: ">",
5145
5487
  "data-wv-section": "separator"
5146
5488
  }
5147
- }, fe = {
5489
+ }, pe = {
5148
5490
  currency: (e) => ({
5149
- class: [...c(e), "rounded-l rounded-r-none"],
5491
+ class: [...g(e), "rounded-l rounded-r-none"],
5150
5492
  "data-wv-section": "currency"
5151
5493
  }),
5152
5494
  value: (e) => ({
5153
- class: [...c(e), "rounded-r rounded-l-none -ml-[1px]"],
5495
+ class: [...g(e), "rounded-r rounded-l-none -ml-[1px]"],
5154
5496
  "data-wv-section": "value"
5155
5497
  })
5156
- }, be = {
5498
+ }, ke = {
5157
5499
  root: {
5158
5500
  "data-wv-name": "fileupload",
5159
5501
  "data-wv-section": "root"
@@ -5175,7 +5517,7 @@ const y = {
5175
5517
  requirements: {
5176
5518
  class: "flex justify-start"
5177
5519
  }
5178
- }, me = {
5520
+ }, Ce = {
5179
5521
  root: {
5180
5522
  class: [
5181
5523
  "flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"
@@ -5183,12 +5525,15 @@ const y = {
5183
5525
  "data-wv-name": "fieldwrapper",
5184
5526
  "data-wv-section": "root"
5185
5527
  },
5186
- label: ({ props: e }) => ({
5528
+ label: ({ props: e, slots: t }) => ({
5187
5529
  class: [
5188
5530
  [
5189
5531
  "text-general-900 text-xs flex gap-[2px] font-medium tracking-[0.02em]",
5190
5532
  e.labelClass
5191
- ]
5533
+ ],
5534
+ {
5535
+ "w-full": t["label-addon"]
5536
+ }
5192
5537
  ],
5193
5538
  "data-wv-section": "fieldlabel"
5194
5539
  }),
@@ -5201,14 +5546,14 @@ const y = {
5201
5546
  arterisksign: {
5202
5547
  class: "text-danger-500"
5203
5548
  }
5204
- }, xe = {
5549
+ }, je = {
5205
5550
  root: {
5206
5551
  class: [
5207
5552
  "bg-general-50 rounded-lg [&>*]:w-full [&>*]min-w-0",
5208
5553
  "grid items-end p-3 gap-x-3 gap-y-4"
5209
5554
  ]
5210
5555
  }
5211
- }, he = {
5556
+ }, ze = {
5212
5557
  root: {
5213
5558
  class: [
5214
5559
  "w-screen h-screen fixed top-0 left-0 z-[9999999]",
@@ -5220,7 +5565,7 @@ const y = {
5220
5565
  animation: {
5221
5566
  class: ["w-[700px] h-auto"]
5222
5567
  }
5223
- }, ve = {
5568
+ }, _e = {
5224
5569
  root: {
5225
5570
  class: "flex items-center gap-1"
5226
5571
  },
@@ -5254,78 +5599,78 @@ const y = {
5254
5599
  class: "flex flex-col gap-0.5 items-center justify-center"
5255
5600
  }
5256
5601
  }
5257
- }, ye = {
5258
- badge: w,
5259
- ripple: W,
5260
- tooltip: ie
5261
- }, we = {
5262
- global: L,
5263
- directives: ye,
5602
+ }, Ae = {
5603
+ badge: S,
5604
+ ripple: le,
5605
+ tooltip: fe
5606
+ }, Te = {
5607
+ global: K,
5608
+ directives: Ae,
5264
5609
  // Forms
5265
- form: R,
5266
- filtercontainer: xe,
5267
- dropdown: M,
5268
- inputnumber: N,
5269
- inputphonenumber: G,
5270
- inputcurrency: fe,
5271
- inputtext: v,
5272
- inputbadge: O,
5273
- calendar: _,
5274
- checkbox: s,
5275
- buttonradio: U,
5276
- multiselect: r,
5277
- togglebutton: ne,
5278
- toggleswitch: o,
5279
- inputgroup: H,
5280
- inputgroupaddon: q,
5281
- treeselect: se,
5282
- tristatecheckbox: oe,
5283
- textarea: te,
5284
- password: Q,
5285
- validatormessage: ce,
5286
- fileupload: be,
5287
- fieldwrapper: me,
5610
+ form: D,
5611
+ filtercontainer: je,
5612
+ dropdown: O,
5613
+ inputnumber: Q,
5614
+ inputphonenumber: X,
5615
+ inputcurrency: pe,
5616
+ inputtext: j,
5617
+ inputbadge: q,
5618
+ calendar: I,
5619
+ checkbox: c,
5620
+ buttonradio: ie,
5621
+ multiselect: n,
5622
+ togglebutton: ge,
5623
+ toggleswitch: u,
5624
+ inputgroup: J,
5625
+ inputgroupaddon: Z,
5626
+ treeselect: me,
5627
+ tristatecheckbox: xe,
5628
+ textarea: de,
5629
+ password: ne,
5630
+ validatormessage: he,
5631
+ fileupload: ke,
5632
+ fieldwrapper: Ce,
5288
5633
  // Buttons
5289
- button: p,
5290
- buttondownload: k,
5291
- buttonbulkaction: de,
5292
- buttonsearch: j,
5293
- buttonsplit: z,
5294
- buttonfilter: C,
5634
+ button: T,
5635
+ buttondownload: N,
5636
+ buttonbulkaction: ve,
5637
+ buttonsearch: P,
5638
+ buttonsplit: V,
5639
+ buttonfilter: F,
5295
5640
  // Data
5296
- paginator: K,
5297
- datatable: P,
5298
- customcolumn: T,
5299
- tree: le,
5300
- timeline: ae,
5301
- changelog: S,
5641
+ paginator: re,
5642
+ datatable: L,
5643
+ customcolumn: G,
5644
+ tree: be,
5645
+ timeline: ce,
5646
+ changelog: U,
5302
5647
  // Panels
5303
- accordion: y,
5304
- card: A,
5648
+ accordion: A,
5649
+ card: E,
5305
5650
  // Menu
5306
- menu: J,
5307
- steps: X,
5308
- breadcrumb: ge,
5309
- tabmenu: ee,
5651
+ menu: ee,
5652
+ steps: se,
5653
+ breadcrumb: we,
5654
+ tabmenu: oe,
5310
5655
  // Overlays
5311
- dialog: h,
5312
- dialogconfirm: I,
5313
- dialogform: $,
5314
- overlaypanel: Z,
5656
+ dialog: C,
5657
+ dialogconfirm: M,
5658
+ dialogform: R,
5659
+ overlaypanel: ae,
5315
5660
  // Messages
5316
- message: Y,
5317
- inlinemessage: E,
5318
- toast: re,
5661
+ message: te,
5662
+ inlinemessage: H,
5663
+ toast: ue,
5319
5664
  // Media
5320
- carousel: V,
5665
+ carousel: B,
5321
5666
  // Misc
5322
- badge: l,
5323
- badgegroup: ue,
5324
- image: D,
5325
- loading: he,
5326
- codesnippet: F,
5327
- username: ve
5667
+ badge: d,
5668
+ badgegroup: ye,
5669
+ image: Y,
5670
+ loading: ze,
5671
+ codesnippet: $,
5672
+ username: _e
5328
5673
  };
5329
5674
  export {
5330
- we as default
5675
+ Te as default
5331
5676
  };