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