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