@fewangsit/wangsvue-presets 1.0.99-rc.1 → 1.0.100-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fixedasset/buttonradio/index.d.ts +6 -4
- package/fixedasset/buttonradio/index.js +8 -12
- package/fixedasset/checkbox/index.js +1 -3
- 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 +664 -326
- 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 -49
- 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 +14 -5
- package/fixedasset/tree/index.js +7 -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/checkbox/index.js +1 -3
- 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 +520 -178
- package/globalsettings/index.js +26 -26
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +120 -51
- 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/checkbox/index.js +1 -3
- 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 +543 -200
- package/supplyasset/index.js +24 -24
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/style.css +120 -51
- 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/checkbox/index.js +1 -3
- 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 +591 -260
- package/wangsvue/index.js +44 -44
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +104 -51
- 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
package/wangsvue/index.es.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var j = Object.defineProperty;
|
|
2
|
+
var A = (e, t, r) => t in e ? j(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var g = (e, t, r) => A(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
const _ = {
|
|
2
5
|
accordiontab: {
|
|
3
6
|
header: ({ props: e }) => ({
|
|
4
7
|
class: [
|
|
@@ -60,7 +63,7 @@ const h = {
|
|
|
60
63
|
leaveToClass: "max-h-0"
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
|
-
},
|
|
66
|
+
}, T = {
|
|
64
67
|
root: ({ props: e }) => ({
|
|
65
68
|
class: [
|
|
66
69
|
"relative",
|
|
@@ -289,9 +292,9 @@ const h = {
|
|
|
289
292
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
290
293
|
leaveToClass: "opacity-0"
|
|
291
294
|
}
|
|
292
|
-
},
|
|
295
|
+
}, I = {
|
|
293
296
|
root: ({ props: e, parent: t }) => {
|
|
294
|
-
var r, s,
|
|
297
|
+
var r, s, n;
|
|
295
298
|
return {
|
|
296
299
|
class: [
|
|
297
300
|
// Font
|
|
@@ -320,7 +323,7 @@ const h = {
|
|
|
320
323
|
// Colors
|
|
321
324
|
"bg-general-300",
|
|
322
325
|
{
|
|
323
|
-
"border-gray-100": ((
|
|
326
|
+
"border-gray-100": ((n = t.instance.$style) == null ? void 0 : n.name) == "avatargroup"
|
|
324
327
|
},
|
|
325
328
|
"text-white"
|
|
326
329
|
]
|
|
@@ -329,13 +332,13 @@ const h = {
|
|
|
329
332
|
image: {
|
|
330
333
|
class: "h-full w-full rounded-full"
|
|
331
334
|
}
|
|
332
|
-
},
|
|
335
|
+
}, F = {
|
|
333
336
|
root: {
|
|
334
337
|
class: "flex items-center ml-4",
|
|
335
338
|
"data-wv-name": "usergroup",
|
|
336
339
|
"data-wv-section": "root"
|
|
337
340
|
}
|
|
338
|
-
},
|
|
341
|
+
}, c = {
|
|
339
342
|
root: ({ props: e }) => ({
|
|
340
343
|
class: [
|
|
341
344
|
// Alignment
|
|
@@ -383,7 +386,7 @@ const h = {
|
|
|
383
386
|
"icon-class": "w-3 h-3",
|
|
384
387
|
"data-wv-section": "removebutton"
|
|
385
388
|
})
|
|
386
|
-
},
|
|
389
|
+
}, S = {
|
|
387
390
|
root: ({ context: e }) => ({
|
|
388
391
|
class: [
|
|
389
392
|
// Font
|
|
@@ -421,7 +424,7 @@ const h = {
|
|
|
421
424
|
}
|
|
422
425
|
]
|
|
423
426
|
})
|
|
424
|
-
},
|
|
427
|
+
}, P = {
|
|
425
428
|
root: ({ props: e, context: t }) => ({
|
|
426
429
|
class: [
|
|
427
430
|
"relative",
|
|
@@ -710,7 +713,7 @@ const h = {
|
|
|
710
713
|
}
|
|
711
714
|
]
|
|
712
715
|
})
|
|
713
|
-
},
|
|
716
|
+
}, N = {
|
|
714
717
|
root: ({ props: e }) => ({
|
|
715
718
|
class: [
|
|
716
719
|
"focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm",
|
|
@@ -725,7 +728,7 @@ const h = {
|
|
|
725
728
|
"data-wv-section": "icon",
|
|
726
729
|
severity: "secondary"
|
|
727
730
|
}
|
|
728
|
-
},
|
|
731
|
+
}, V = {
|
|
729
732
|
root: () => ({
|
|
730
733
|
class: "focus-within:ring-2 focus-within:ring-primary-400 focus-within:outline-none rounded-sm",
|
|
731
734
|
"data-wv-name": "buttonfilter",
|
|
@@ -736,7 +739,7 @@ const h = {
|
|
|
736
739
|
severity: "secondary",
|
|
737
740
|
"data-wv-section": "icon"
|
|
738
741
|
})
|
|
739
|
-
},
|
|
742
|
+
}, $ = {
|
|
740
743
|
buttontrigger: {
|
|
741
744
|
root: ({ context: e }) => ({
|
|
742
745
|
class: [
|
|
@@ -783,7 +786,7 @@ const h = {
|
|
|
783
786
|
inputtext: {
|
|
784
787
|
class: "!h-max"
|
|
785
788
|
}
|
|
786
|
-
},
|
|
789
|
+
}, B = {
|
|
787
790
|
root: ["w-max"],
|
|
788
791
|
button: {
|
|
789
792
|
class: [
|
|
@@ -792,7 +795,7 @@ const h = {
|
|
|
792
795
|
"data-wv-section": "button-split"
|
|
793
796
|
},
|
|
794
797
|
menuButton: "!rounded-ss-none !rounded-es-none"
|
|
795
|
-
},
|
|
798
|
+
}, x = navigator.userAgent.includes("Firefox"), E = {
|
|
796
799
|
root: ({ props: e }) => ({
|
|
797
800
|
class: [
|
|
798
801
|
// Display and Position
|
|
@@ -1249,8 +1252,8 @@ const h = {
|
|
|
1249
1252
|
class: [
|
|
1250
1253
|
"w-[39px] h-[26px] flex justify-center items-center ring-general-200 rounded",
|
|
1251
1254
|
{
|
|
1252
|
-
"ring-1":
|
|
1253
|
-
"ring-[0.5px]": !
|
|
1255
|
+
"ring-1": x,
|
|
1256
|
+
"ring-[0.5px]": !x
|
|
1254
1257
|
}
|
|
1255
1258
|
]
|
|
1256
1259
|
},
|
|
@@ -1375,7 +1378,7 @@ const h = {
|
|
|
1375
1378
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
1376
1379
|
leaveToClass: "opacity-0"
|
|
1377
1380
|
}
|
|
1378
|
-
},
|
|
1381
|
+
}, G = {
|
|
1379
1382
|
root: {
|
|
1380
1383
|
class: [
|
|
1381
1384
|
//Shape
|
|
@@ -1404,7 +1407,7 @@ const h = {
|
|
|
1404
1407
|
footer: {
|
|
1405
1408
|
class: ["inline-flex gap-1 text-xs items-center"]
|
|
1406
1409
|
}
|
|
1407
|
-
},
|
|
1410
|
+
}, U = {
|
|
1408
1411
|
root: {
|
|
1409
1412
|
class: [
|
|
1410
1413
|
// Flexbox
|
|
@@ -1518,7 +1521,7 @@ const h = {
|
|
|
1518
1521
|
}
|
|
1519
1522
|
]
|
|
1520
1523
|
})
|
|
1521
|
-
},
|
|
1524
|
+
}, L = {
|
|
1522
1525
|
root: ({ props: e, state: t }) => ({
|
|
1523
1526
|
class: [
|
|
1524
1527
|
// Display and Position
|
|
@@ -1697,7 +1700,7 @@ const h = {
|
|
|
1697
1700
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
1698
1701
|
leaveToClass: "opacity-0"
|
|
1699
1702
|
}
|
|
1700
|
-
},
|
|
1703
|
+
}, R = {
|
|
1701
1704
|
button: (e) => ({
|
|
1702
1705
|
class: [e, "w-max"],
|
|
1703
1706
|
"data-wv-section": "changelog-button"
|
|
@@ -1725,12 +1728,11 @@ const h = {
|
|
|
1725
1728
|
buttondownload: {
|
|
1726
1729
|
"data-wv-section": "changelog-dialog-button-download"
|
|
1727
1730
|
}
|
|
1728
|
-
},
|
|
1731
|
+
}, d = {
|
|
1729
1732
|
root: {
|
|
1730
1733
|
class: [
|
|
1731
1734
|
"relative",
|
|
1732
1735
|
"w-max items-center cursor-pointer",
|
|
1733
|
-
"w-4 h-4",
|
|
1734
1736
|
"shrink-0",
|
|
1735
1737
|
// Alignment
|
|
1736
1738
|
"inline-flex",
|
|
@@ -1747,8 +1749,7 @@ const h = {
|
|
|
1747
1749
|
"items-center",
|
|
1748
1750
|
"justify-center",
|
|
1749
1751
|
// Size
|
|
1750
|
-
"w-4",
|
|
1751
|
-
"h-full",
|
|
1752
|
+
"w-4 h-4",
|
|
1752
1753
|
// Shape
|
|
1753
1754
|
"rounded",
|
|
1754
1755
|
"border-2",
|
|
@@ -1837,7 +1838,7 @@ const h = {
|
|
|
1837
1838
|
tooltipicon: {
|
|
1838
1839
|
class: "text-grayscale-900 w-[10px] h-[10px]"
|
|
1839
1840
|
}
|
|
1840
|
-
},
|
|
1841
|
+
}, M = {
|
|
1841
1842
|
root: {
|
|
1842
1843
|
class: [
|
|
1843
1844
|
// Flexbox
|
|
@@ -1874,7 +1875,7 @@ const h = {
|
|
|
1874
1875
|
"cursor-pointer"
|
|
1875
1876
|
]
|
|
1876
1877
|
}
|
|
1877
|
-
},
|
|
1878
|
+
}, O = {
|
|
1878
1879
|
root: ({ props: e }) => ({
|
|
1879
1880
|
class: [
|
|
1880
1881
|
"flex",
|
|
@@ -1963,7 +1964,7 @@ const h = {
|
|
|
1963
1964
|
"cursor-pointer"
|
|
1964
1965
|
]
|
|
1965
1966
|
}
|
|
1966
|
-
},
|
|
1967
|
+
}, W = {
|
|
1967
1968
|
menustart: {
|
|
1968
1969
|
class: "border-b-[0.5px] border-solid border-grayscale-900"
|
|
1969
1970
|
},
|
|
@@ -1987,7 +1988,7 @@ const h = {
|
|
|
1987
1988
|
{ invisible: e.dragable === !1 }
|
|
1988
1989
|
]
|
|
1989
1990
|
})
|
|
1990
|
-
},
|
|
1991
|
+
}, D = {
|
|
1991
1992
|
copybutton: {
|
|
1992
1993
|
class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
|
|
1993
1994
|
},
|
|
@@ -2007,7 +2008,7 @@ const h = {
|
|
|
2007
2008
|
"px-2 bg-primary-100 sticky left-0 text-right select-none"
|
|
2008
2009
|
]
|
|
2009
2010
|
}
|
|
2010
|
-
},
|
|
2011
|
+
}, K = {
|
|
2011
2012
|
root: ({ props: e }) => ({
|
|
2012
2013
|
class: [
|
|
2013
2014
|
// Display
|
|
@@ -2116,7 +2117,7 @@ const h = {
|
|
|
2116
2117
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
2117
2118
|
leaveToClass: "opacity-0"
|
|
2118
2119
|
}
|
|
2119
|
-
},
|
|
2120
|
+
}, H = {
|
|
2120
2121
|
root: {
|
|
2121
2122
|
class: [
|
|
2122
2123
|
// Shape
|
|
@@ -2217,7 +2218,7 @@ const h = {
|
|
|
2217
2218
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
2218
2219
|
leaveToClass: "opacity-0"
|
|
2219
2220
|
}
|
|
2220
|
-
},
|
|
2221
|
+
}, Y = {
|
|
2221
2222
|
root: {
|
|
2222
2223
|
class: [
|
|
2223
2224
|
// Sizing and Shape
|
|
@@ -2321,7 +2322,7 @@ const h = {
|
|
|
2321
2322
|
enterFromClass: "opacity-0",
|
|
2322
2323
|
enterActiveClass: "transition-opacity duration-250"
|
|
2323
2324
|
}
|
|
2324
|
-
},
|
|
2325
|
+
}, q = {
|
|
2325
2326
|
root: {
|
|
2326
2327
|
"data-wv-name": "datatable",
|
|
2327
2328
|
"data-wv-section": "root",
|
|
@@ -2533,7 +2534,7 @@ const h = {
|
|
|
2533
2534
|
class: "",
|
|
2534
2535
|
template: "FirstPageLink PrevPageLink PageLinks JumpToPageInput NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown"
|
|
2535
2536
|
})
|
|
2536
|
-
},
|
|
2537
|
+
}, J = {
|
|
2537
2538
|
content: {
|
|
2538
2539
|
class: [
|
|
2539
2540
|
// Spacing
|
|
@@ -2566,7 +2567,7 @@ const h = {
|
|
|
2566
2567
|
"border-surface-200 border-b"
|
|
2567
2568
|
]
|
|
2568
2569
|
}
|
|
2569
|
-
},
|
|
2570
|
+
}, X = {
|
|
2570
2571
|
listbutton: ({ props: e }) => ({
|
|
2571
2572
|
class: [
|
|
2572
2573
|
// Font
|
|
@@ -2611,7 +2612,7 @@ const h = {
|
|
|
2611
2612
|
"cursor-pointer select-none overflow-hidden"
|
|
2612
2613
|
]
|
|
2613
2614
|
})
|
|
2614
|
-
},
|
|
2615
|
+
}, C = {
|
|
2615
2616
|
root: ({ state: e }) => ({
|
|
2616
2617
|
class: [
|
|
2617
2618
|
// Shape
|
|
@@ -2804,7 +2805,7 @@ const h = {
|
|
|
2804
2805
|
leaveActiveClass: "transition-all duration-200 ease-out",
|
|
2805
2806
|
leaveToClass: "opacity-0 scale-75 mask-active"
|
|
2806
2807
|
}
|
|
2807
|
-
},
|
|
2808
|
+
}, Z = {
|
|
2808
2809
|
root: {
|
|
2809
2810
|
class: ["!w-[clamp(360px,75vw,400px)]"],
|
|
2810
2811
|
"data-wv-name": (e) => e ?? "root",
|
|
@@ -2848,7 +2849,7 @@ const h = {
|
|
|
2848
2849
|
class: "flex items-end justify-end gap-1 !mt-0",
|
|
2849
2850
|
"data-wv-section": "dialog-confirm-footer"
|
|
2850
2851
|
}
|
|
2851
|
-
},
|
|
2852
|
+
}, Q = {
|
|
2852
2853
|
root: {
|
|
2853
2854
|
class: ["max-w-[90vw]"],
|
|
2854
2855
|
style: (e) => `width: ${e}`,
|
|
@@ -2913,7 +2914,7 @@ const h = {
|
|
|
2913
2914
|
savesubmitbutton: {
|
|
2914
2915
|
"data-wv-section": "save-submit-button"
|
|
2915
2916
|
}
|
|
2916
|
-
},
|
|
2917
|
+
}, ee = {
|
|
2917
2918
|
root: ({ props: e }) => ({
|
|
2918
2919
|
class: [
|
|
2919
2920
|
// Flex and Position
|
|
@@ -2971,7 +2972,7 @@ const h = {
|
|
|
2971
2972
|
"bg-surface-0"
|
|
2972
2973
|
]
|
|
2973
2974
|
}
|
|
2974
|
-
},
|
|
2975
|
+
}, te = {
|
|
2975
2976
|
root: ({ props: e }) => ({
|
|
2976
2977
|
class: [
|
|
2977
2978
|
// Positioning
|
|
@@ -3091,9 +3092,9 @@ const h = {
|
|
|
3091
3092
|
]
|
|
3092
3093
|
};
|
|
3093
3094
|
},
|
|
3094
|
-
token:
|
|
3095
|
-
tokenLabel:
|
|
3096
|
-
removeTokenIcon:
|
|
3095
|
+
token: c.root({ props: { severity: "dark" } }),
|
|
3096
|
+
tokenLabel: c.input({ props: {}, context: {} }),
|
|
3097
|
+
removeTokenIcon: c.removebutton({
|
|
3097
3098
|
props: { badgeSeverity: "dark" }
|
|
3098
3099
|
}),
|
|
3099
3100
|
loadingplaceholder: {
|
|
@@ -3177,17 +3178,17 @@ const h = {
|
|
|
3177
3178
|
]
|
|
3178
3179
|
},
|
|
3179
3180
|
headerCheckbox: {
|
|
3180
|
-
...
|
|
3181
|
+
...d,
|
|
3181
3182
|
root: {
|
|
3182
3183
|
class: [
|
|
3183
3184
|
"!mx-auto",
|
|
3184
|
-
...
|
|
3185
|
+
...d.root.class,
|
|
3185
3186
|
"[&:not(:has(svg))_[data-pc-section=box]]:!bg-primary-400",
|
|
3186
3187
|
"[&:not(:has(svg))_[data-pc-section=box]]:!border-white"
|
|
3187
3188
|
]
|
|
3188
3189
|
}
|
|
3189
3190
|
},
|
|
3190
|
-
itemCheckbox:
|
|
3191
|
+
itemCheckbox: d,
|
|
3191
3192
|
closeButton: {
|
|
3192
3193
|
class: ["hidden"]
|
|
3193
3194
|
},
|
|
@@ -3338,7 +3339,7 @@ const h = {
|
|
|
3338
3339
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
3339
3340
|
leaveToClass: "opacity-0"
|
|
3340
3341
|
}
|
|
3341
|
-
},
|
|
3342
|
+
}, re = {
|
|
3342
3343
|
root: ({ props: e, state: t }) => ({
|
|
3343
3344
|
class: [
|
|
3344
3345
|
// Display and Position
|
|
@@ -3543,7 +3544,7 @@ const h = {
|
|
|
3543
3544
|
loadingplaceholder: {
|
|
3544
3545
|
class: "text-general-200 font-normal"
|
|
3545
3546
|
}
|
|
3546
|
-
},
|
|
3547
|
+
}, se = {
|
|
3547
3548
|
root: {
|
|
3548
3549
|
class: [
|
|
3549
3550
|
"block",
|
|
@@ -3621,7 +3622,7 @@ const h = {
|
|
|
3621
3622
|
leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
|
|
3622
3623
|
leaveToClass: "max-h-0"
|
|
3623
3624
|
}
|
|
3624
|
-
},
|
|
3625
|
+
}, ie = {
|
|
3625
3626
|
root: {
|
|
3626
3627
|
class: [
|
|
3627
3628
|
"flex flex-col items-start justify-start relative gap-1 w-full shrink-0 overflow-hidden"
|
|
@@ -3629,9 +3630,12 @@ const h = {
|
|
|
3629
3630
|
"data-wv-name": "fieldwrapper",
|
|
3630
3631
|
"data-wv-section": "root"
|
|
3631
3632
|
},
|
|
3632
|
-
label: ({ props: e }) => ({
|
|
3633
|
+
label: ({ props: e, slots: t }) => ({
|
|
3633
3634
|
class: [
|
|
3634
|
-
["text-general-900 text-xs flex gap-[2px] font-normal", e.labelClass]
|
|
3635
|
+
["text-general-900 text-xs flex gap-[2px] font-normal", e.labelClass],
|
|
3636
|
+
{
|
|
3637
|
+
"w-full": t["label-addon"]
|
|
3638
|
+
}
|
|
3635
3639
|
],
|
|
3636
3640
|
"data-wv-section": "fieldlabel"
|
|
3637
3641
|
}),
|
|
@@ -3641,7 +3645,7 @@ const h = {
|
|
|
3641
3645
|
optionaltext: {
|
|
3642
3646
|
class: "text-grayscale-700 text-[10px] font-normal leading-4"
|
|
3643
3647
|
}
|
|
3644
|
-
},
|
|
3648
|
+
}, ne = {
|
|
3645
3649
|
// :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
|
|
3646
3650
|
root: () => ({
|
|
3647
3651
|
class: [
|
|
@@ -3685,14 +3689,14 @@ const h = {
|
|
|
3685
3689
|
"validator-message": {
|
|
3686
3690
|
class: ["static w-max transform-none"]
|
|
3687
3691
|
}
|
|
3688
|
-
},
|
|
3692
|
+
}, oe = [
|
|
3689
3693
|
{
|
|
3690
3694
|
"ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
|
|
3691
3695
|
"ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
3692
3696
|
},
|
|
3693
3697
|
"ring-inset",
|
|
3694
3698
|
"ring-general-400"
|
|
3695
|
-
],
|
|
3699
|
+
], ae = {
|
|
3696
3700
|
css: `
|
|
3697
3701
|
*[data-pd-ripple="true"]{
|
|
3698
3702
|
overflow: hidden;
|
|
@@ -3769,7 +3773,7 @@ const h = {
|
|
|
3769
3773
|
}
|
|
3770
3774
|
}
|
|
3771
3775
|
`
|
|
3772
|
-
},
|
|
3776
|
+
}, le = {
|
|
3773
3777
|
root: ({ props: e }) => ({
|
|
3774
3778
|
class: [
|
|
3775
3779
|
"relative inline-block",
|
|
@@ -3907,7 +3911,7 @@ const h = {
|
|
|
3907
3911
|
leaveActiveClass: "transition-all duration-150 ease-in",
|
|
3908
3912
|
leaveToClass: "opacity-0 scale-75"
|
|
3909
3913
|
}
|
|
3910
|
-
},
|
|
3914
|
+
}, ce = {
|
|
3911
3915
|
root: ({ props: e }) => ({
|
|
3912
3916
|
class: [
|
|
3913
3917
|
"rounded-md p-3",
|
|
@@ -3937,16 +3941,16 @@ const h = {
|
|
|
3937
3941
|
"font-medium"
|
|
3938
3942
|
]
|
|
3939
3943
|
}
|
|
3940
|
-
},
|
|
3944
|
+
}, z = {
|
|
3941
3945
|
root: ({ props: e, context: t, parent: r }) => {
|
|
3942
|
-
var s,
|
|
3946
|
+
var s, n;
|
|
3943
3947
|
return {
|
|
3944
3948
|
class: [
|
|
3945
3949
|
"px-3 py-1 w-full bg-transparent",
|
|
3946
3950
|
// Size
|
|
3947
3951
|
"h-full",
|
|
3948
3952
|
{
|
|
3949
|
-
"max-h-[43px]": (
|
|
3953
|
+
"max-h-[43px]": (n = (s = r.instance) == null ? void 0 : s.placeholder) == null ? void 0 : n.includes("password")
|
|
3950
3954
|
},
|
|
3951
3955
|
// Font
|
|
3952
3956
|
"text-grayscale-900 text-xs font-normal",
|
|
@@ -3961,15 +3965,15 @@ const h = {
|
|
|
3961
3965
|
]
|
|
3962
3966
|
};
|
|
3963
3967
|
}
|
|
3964
|
-
},
|
|
3968
|
+
}, v = navigator.userAgent.includes("Firefox"), de = {
|
|
3965
3969
|
root: ({ context: e }) => ({
|
|
3966
3970
|
class: [
|
|
3967
3971
|
"flex flex-wrap gap-x-0.5 gap-y-[5px] items-center",
|
|
3968
3972
|
"min-h-[26px] h-fit w-full",
|
|
3969
3973
|
"ring-inset rounded px-[12px] py-[2px]",
|
|
3970
3974
|
{
|
|
3971
|
-
"ring-[1px]":
|
|
3972
|
-
"ring-[0.5px]": !
|
|
3975
|
+
"ring-[1px]": v,
|
|
3976
|
+
"ring-[0.5px]": !v
|
|
3973
3977
|
},
|
|
3974
3978
|
{ "!ring-danger-500 !dark:ring-danger-500": e.invalidInput },
|
|
3975
3979
|
{ "!ring-general-200 !dark:ring-general-200": !e.invalidInput },
|
|
@@ -3978,7 +3982,7 @@ const h = {
|
|
|
3978
3982
|
}),
|
|
3979
3983
|
input: ({ context: e, parent: t, props: r }) => ({
|
|
3980
3984
|
class: [
|
|
3981
|
-
...
|
|
3985
|
+
...z.root({
|
|
3982
3986
|
props: r,
|
|
3983
3987
|
context: e,
|
|
3984
3988
|
parent: t
|
|
@@ -3994,7 +3998,7 @@ const h = {
|
|
|
3994
3998
|
erroroverlaypanel: {
|
|
3995
3999
|
class: ["px-3 py-1 text-[12px] text-general-800"]
|
|
3996
4000
|
}
|
|
3997
|
-
},
|
|
4001
|
+
}, h = navigator.userAgent.includes("Firefox"), ue = {
|
|
3998
4002
|
root: ({ props: e }) => ({
|
|
3999
4003
|
class: [
|
|
4000
4004
|
{
|
|
@@ -4006,8 +4010,8 @@ const h = {
|
|
|
4006
4010
|
"[&:has(:focus)]:!ring-primary-400 [&:has(:focus)_.inputgroupaddon]:!ring-primary-400": e.ring !== "none"
|
|
4007
4011
|
},
|
|
4008
4012
|
{
|
|
4009
|
-
"ring-[1px] [&_.inputgroupaddon]:ring-[1px]":
|
|
4010
|
-
"ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !
|
|
4013
|
+
"ring-[1px] [&_.inputgroupaddon]:ring-[1px]": h && e.ring !== "none",
|
|
4014
|
+
"ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]": !h && e.ring !== "none"
|
|
4011
4015
|
},
|
|
4012
4016
|
"[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]",
|
|
4013
4017
|
"[&:has(input)]:cursor-text",
|
|
@@ -4020,7 +4024,7 @@ const h = {
|
|
|
4020
4024
|
],
|
|
4021
4025
|
"data-wv-section": "inputgroup"
|
|
4022
4026
|
})
|
|
4023
|
-
},
|
|
4027
|
+
}, fe = {
|
|
4024
4028
|
root: ({ props: e }) => ({
|
|
4025
4029
|
class: [
|
|
4026
4030
|
"inputgroupaddon",
|
|
@@ -4050,7 +4054,7 @@ const h = {
|
|
|
4050
4054
|
"data-addon-variant": e.addonVariant
|
|
4051
4055
|
// Used in inputgroup to set styling
|
|
4052
4056
|
})
|
|
4053
|
-
},
|
|
4057
|
+
}, ge = {
|
|
4054
4058
|
root: ({ context: e }) => ({
|
|
4055
4059
|
class: [
|
|
4056
4060
|
// Font
|
|
@@ -4073,13 +4077,13 @@ const h = {
|
|
|
4073
4077
|
}
|
|
4074
4078
|
]
|
|
4075
4079
|
})
|
|
4076
|
-
},
|
|
4080
|
+
}, y = "text-xs font-normal leading-[22px]", w = "h-[30px]", me = {
|
|
4077
4081
|
root: ({ props: e, parent: t }) => ({
|
|
4078
4082
|
class: [
|
|
4079
4083
|
// Layout
|
|
4080
4084
|
"flex items-center self-stretch shrink-0 grow",
|
|
4081
4085
|
//Size
|
|
4082
|
-
|
|
4086
|
+
w,
|
|
4083
4087
|
// Spacing
|
|
4084
4088
|
"py-1 px-3",
|
|
4085
4089
|
// Border
|
|
@@ -4092,7 +4096,7 @@ const h = {
|
|
|
4092
4096
|
class: [
|
|
4093
4097
|
"border-0 h-full w-full outline-none",
|
|
4094
4098
|
"bg-inherit",
|
|
4095
|
-
|
|
4099
|
+
y,
|
|
4096
4100
|
"placeholder:text-general-200 placeholder:font-normal",
|
|
4097
4101
|
t.disabled ? "text-general-200" : "text-grayscale-900"
|
|
4098
4102
|
]
|
|
@@ -4100,8 +4104,8 @@ const h = {
|
|
|
4100
4104
|
},
|
|
4101
4105
|
inputresizer: {
|
|
4102
4106
|
class: [
|
|
4103
|
-
|
|
4104
|
-
|
|
4107
|
+
y,
|
|
4108
|
+
w,
|
|
4105
4109
|
"user-select-none py-1 px-3 block min-w-4 text-transparent"
|
|
4106
4110
|
]
|
|
4107
4111
|
},
|
|
@@ -4140,7 +4144,7 @@ const h = {
|
|
|
4140
4144
|
}
|
|
4141
4145
|
]
|
|
4142
4146
|
})
|
|
4143
|
-
},
|
|
4147
|
+
}, be = {
|
|
4144
4148
|
root: {
|
|
4145
4149
|
class: [
|
|
4146
4150
|
// Alignment
|
|
@@ -4199,7 +4203,7 @@ const h = {
|
|
|
4199
4203
|
};
|
|
4200
4204
|
}
|
|
4201
4205
|
}
|
|
4202
|
-
},
|
|
4206
|
+
}, f = ({ isFirefoxBased: e, invalidInput: t }) => [
|
|
4203
4207
|
{ "ring-[1px]": e, "ring-[0.5px]": !e },
|
|
4204
4208
|
{ "!ring-danger-500": t },
|
|
4205
4209
|
"ring-inset",
|
|
@@ -4208,23 +4212,23 @@ const h = {
|
|
|
4208
4212
|
"[&:has(:focus)]:ring-primary-400",
|
|
4209
4213
|
"bg-white",
|
|
4210
4214
|
"z-[0] [&:has(:focus)]:z-[12]"
|
|
4211
|
-
],
|
|
4215
|
+
], pe = {
|
|
4212
4216
|
dialcode: {
|
|
4213
4217
|
root: (e) => ({
|
|
4214
|
-
class: [...
|
|
4218
|
+
class: [...f(e), "rounded-l rounded-r-none"]
|
|
4215
4219
|
}),
|
|
4216
4220
|
dropdownicon: ({ state: e }) => i.dropdownicon({ state: e })
|
|
4217
4221
|
},
|
|
4218
4222
|
input: (e) => ({
|
|
4219
4223
|
class: [
|
|
4220
|
-
...
|
|
4224
|
+
...f(e),
|
|
4221
4225
|
"rounded-r rounded-l-none -ml-[1px]",
|
|
4222
4226
|
"focus:bg-none",
|
|
4223
4227
|
"focus:ring-primary-500",
|
|
4224
4228
|
"focus:ring-1"
|
|
4225
4229
|
]
|
|
4226
4230
|
})
|
|
4227
|
-
},
|
|
4231
|
+
}, xe = {
|
|
4228
4232
|
root: ({ props: e }) => ({
|
|
4229
4233
|
class: [
|
|
4230
4234
|
// Misc
|
|
@@ -4263,7 +4267,7 @@ const h = {
|
|
|
4263
4267
|
"fill-surface-600"
|
|
4264
4268
|
]
|
|
4265
4269
|
}
|
|
4266
|
-
},
|
|
4270
|
+
}, ve = {
|
|
4267
4271
|
root: {
|
|
4268
4272
|
class: [
|
|
4269
4273
|
// Sizing and Shape
|
|
@@ -4395,7 +4399,7 @@ const h = {
|
|
|
4395
4399
|
"bg-transparent"
|
|
4396
4400
|
]
|
|
4397
4401
|
}
|
|
4398
|
-
},
|
|
4402
|
+
}, he = {
|
|
4399
4403
|
root: ({ props: e }) => ({
|
|
4400
4404
|
class: [
|
|
4401
4405
|
"relative",
|
|
@@ -4576,7 +4580,7 @@ const h = {
|
|
|
4576
4580
|
end: {
|
|
4577
4581
|
class: "ml-auto self-center"
|
|
4578
4582
|
}
|
|
4579
|
-
},
|
|
4583
|
+
}, ye = {
|
|
4580
4584
|
root: {
|
|
4581
4585
|
class: [
|
|
4582
4586
|
// Position
|
|
@@ -4677,7 +4681,7 @@ const h = {
|
|
|
4677
4681
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
4678
4682
|
leaveToClass: "opacity-0"
|
|
4679
4683
|
}
|
|
4680
|
-
},
|
|
4684
|
+
}, we = {
|
|
4681
4685
|
root: {
|
|
4682
4686
|
class: [
|
|
4683
4687
|
"relative",
|
|
@@ -4831,7 +4835,7 @@ const h = {
|
|
|
4831
4835
|
end: {
|
|
4832
4836
|
class: "ml-auto self-center"
|
|
4833
4837
|
}
|
|
4834
|
-
},
|
|
4838
|
+
}, ke = {
|
|
4835
4839
|
root: ({ props: e }) => ({
|
|
4836
4840
|
class: [
|
|
4837
4841
|
// Spacing and Shape
|
|
@@ -4907,7 +4911,7 @@ const h = {
|
|
|
4907
4911
|
leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
|
|
4908
4912
|
leaveToClass: "max-h-0 opacity-0 !m-0"
|
|
4909
4913
|
}
|
|
4910
|
-
},
|
|
4914
|
+
}, Ce = {
|
|
4911
4915
|
root: {
|
|
4912
4916
|
class: [
|
|
4913
4917
|
// Flexbox
|
|
@@ -5134,7 +5138,7 @@ const h = {
|
|
|
5134
5138
|
"cursor-pointer overflow-hidden"
|
|
5135
5139
|
]
|
|
5136
5140
|
})
|
|
5137
|
-
},
|
|
5141
|
+
}, ze = {
|
|
5138
5142
|
table: {
|
|
5139
5143
|
class: [
|
|
5140
5144
|
// Spacing & Position
|
|
@@ -5251,7 +5255,7 @@ const h = {
|
|
|
5251
5255
|
"w-4 h-4"
|
|
5252
5256
|
]
|
|
5253
5257
|
}
|
|
5254
|
-
},
|
|
5258
|
+
}, je = {
|
|
5255
5259
|
root: {
|
|
5256
5260
|
class: [
|
|
5257
5261
|
"h-max",
|
|
@@ -5282,7 +5286,7 @@ const h = {
|
|
|
5282
5286
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
5283
5287
|
leaveToClass: "opacity-0"
|
|
5284
5288
|
}
|
|
5285
|
-
},
|
|
5289
|
+
}, Ae = {
|
|
5286
5290
|
root: {
|
|
5287
5291
|
class: [
|
|
5288
5292
|
// Flex & Alignment
|
|
@@ -5726,7 +5730,7 @@ const h = {
|
|
|
5726
5730
|
current: {
|
|
5727
5731
|
class: ["text-xs font-normal leading-6 px-3"]
|
|
5728
5732
|
}
|
|
5729
|
-
},
|
|
5733
|
+
}, _e = {
|
|
5730
5734
|
root: {
|
|
5731
5735
|
class: "shadow-md rounded-lg"
|
|
5732
5736
|
},
|
|
@@ -5805,7 +5809,7 @@ const h = {
|
|
|
5805
5809
|
leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
|
|
5806
5810
|
leaveToClass: "max-h-0"
|
|
5807
5811
|
}
|
|
5808
|
-
},
|
|
5812
|
+
}, Te = {
|
|
5809
5813
|
panel: {
|
|
5810
5814
|
class: "mb-1"
|
|
5811
5815
|
},
|
|
@@ -5922,7 +5926,7 @@ const h = {
|
|
|
5922
5926
|
leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
|
|
5923
5927
|
leaveToClass: "max-h-0"
|
|
5924
5928
|
}
|
|
5925
|
-
},
|
|
5929
|
+
}, Ie = {
|
|
5926
5930
|
root: ({ props: e }) => ({
|
|
5927
5931
|
class: [
|
|
5928
5932
|
"w-full",
|
|
@@ -6011,7 +6015,7 @@ const h = {
|
|
|
6011
6015
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
6012
6016
|
leaveToClass: "opacity-0"
|
|
6013
6017
|
}
|
|
6014
|
-
},
|
|
6018
|
+
}, Fe = {
|
|
6015
6019
|
root: {
|
|
6016
6020
|
class: [
|
|
6017
6021
|
// Flexbox
|
|
@@ -6582,7 +6586,7 @@ const h = {
|
|
|
6582
6586
|
leaveActiveClass: "!transition-none",
|
|
6583
6587
|
leaveToClass: "!transition-none"
|
|
6584
6588
|
}
|
|
6585
|
-
},
|
|
6589
|
+
}, Se = {
|
|
6586
6590
|
root: ({ props: e }) => ({
|
|
6587
6591
|
class: [
|
|
6588
6592
|
{
|
|
@@ -6666,7 +6670,7 @@ const h = {
|
|
|
6666
6670
|
}
|
|
6667
6671
|
]
|
|
6668
6672
|
})
|
|
6669
|
-
},
|
|
6673
|
+
}, k = navigator.userAgent.includes("Firefox"), u = {
|
|
6670
6674
|
root: ({ props: e }) => ({
|
|
6671
6675
|
class: [
|
|
6672
6676
|
// Alignments
|
|
@@ -6706,7 +6710,7 @@ const h = {
|
|
|
6706
6710
|
},
|
|
6707
6711
|
// Colors
|
|
6708
6712
|
"ring-1",
|
|
6709
|
-
{ "ring-1":
|
|
6713
|
+
{ "ring-1": k, "ring-[0.5px]": !k },
|
|
6710
6714
|
{
|
|
6711
6715
|
"before:bg-white": e.modelValue == e.trueValue,
|
|
6712
6716
|
"before:bg-primary-200": e.modelValue !== e.trueValue && !e.disabled,
|
|
@@ -6781,7 +6785,7 @@ const h = {
|
|
|
6781
6785
|
tooltipicon: {
|
|
6782
6786
|
class: "text-grayscale-900 w-[10px] h-[10px]"
|
|
6783
6787
|
}
|
|
6784
|
-
},
|
|
6788
|
+
}, Pe = {
|
|
6785
6789
|
root: ({ props: e }) => ({
|
|
6786
6790
|
class: [
|
|
6787
6791
|
"relative",
|
|
@@ -6807,7 +6811,7 @@ const h = {
|
|
|
6807
6811
|
"data-wv-name": "buttonradio",
|
|
6808
6812
|
"data-wv-section": "root"
|
|
6809
6813
|
}),
|
|
6810
|
-
box: ({ props: e }) => ({
|
|
6814
|
+
box: ({ props: e, state: t }) => ({
|
|
6811
6815
|
class: [
|
|
6812
6816
|
// Size
|
|
6813
6817
|
"w-2 h-2",
|
|
@@ -6822,8 +6826,8 @@ const h = {
|
|
|
6822
6826
|
"transition duration-200 ease-in-out",
|
|
6823
6827
|
// Colors
|
|
6824
6828
|
{
|
|
6825
|
-
"bg-grayscale-900":
|
|
6826
|
-
"bg-general-300":
|
|
6829
|
+
"bg-grayscale-900": t.checked && e.value !== void 0 && !e.disabled,
|
|
6830
|
+
"bg-general-300": t.checked && e.value !== void 0 && e.disabled
|
|
6827
6831
|
},
|
|
6828
6832
|
// States
|
|
6829
6833
|
{
|
|
@@ -6857,10 +6861,10 @@ const h = {
|
|
|
6857
6861
|
icon: {
|
|
6858
6862
|
class: "hidden"
|
|
6859
6863
|
},
|
|
6860
|
-
label:
|
|
6861
|
-
labeltext:
|
|
6862
|
-
tooltipicon:
|
|
6863
|
-
},
|
|
6864
|
+
label: u.label,
|
|
6865
|
+
labeltext: u.labeltext,
|
|
6866
|
+
tooltipicon: u.tooltipicon
|
|
6867
|
+
}, Ne = {
|
|
6864
6868
|
root: ({ props: e }) => ({
|
|
6865
6869
|
class: [
|
|
6866
6870
|
"relative",
|
|
@@ -6930,12 +6934,12 @@ const h = {
|
|
|
6930
6934
|
"transition duration-200 ease-in"
|
|
6931
6935
|
]
|
|
6932
6936
|
})
|
|
6933
|
-
},
|
|
6937
|
+
}, Ve = {
|
|
6934
6938
|
root: {
|
|
6935
6939
|
class: ["block absolute bg-surface-0/50 rounded-full pointer-events-none"],
|
|
6936
6940
|
style: "transform: scale(0)"
|
|
6937
6941
|
}
|
|
6938
|
-
},
|
|
6942
|
+
}, $e = {
|
|
6939
6943
|
wrapper: {
|
|
6940
6944
|
class: [
|
|
6941
6945
|
// Size & Position
|
|
@@ -6994,7 +6998,7 @@ const h = {
|
|
|
6994
6998
|
"relative"
|
|
6995
6999
|
]
|
|
6996
7000
|
}
|
|
6997
|
-
},
|
|
7001
|
+
}, Be = {
|
|
6998
7002
|
root: ({ props: e }) => ({
|
|
6999
7003
|
class: [
|
|
7000
7004
|
// Flex & Alignment
|
|
@@ -7030,7 +7034,7 @@ const h = {
|
|
|
7030
7034
|
leaveActiveClass: "transition-opacity duration-150",
|
|
7031
7035
|
leaveToClass: "opacity-0"
|
|
7032
7036
|
}
|
|
7033
|
-
},
|
|
7037
|
+
}, Ee = {
|
|
7034
7038
|
root: ({ props: e }) => ({
|
|
7035
7039
|
class: [
|
|
7036
7040
|
"shadow-sm flex flex-col min-w-[43px] w-max"
|
|
@@ -7077,7 +7081,7 @@ const h = {
|
|
|
7077
7081
|
label: {
|
|
7078
7082
|
class: "font-normal"
|
|
7079
7083
|
}
|
|
7080
|
-
},
|
|
7084
|
+
}, Ge = {
|
|
7081
7085
|
root: ({ props: e }) => ({
|
|
7082
7086
|
class: [
|
|
7083
7087
|
// Flexbox
|
|
@@ -7202,7 +7206,7 @@ const h = {
|
|
|
7202
7206
|
leaveActiveClass: "transition-opacity duration-400 ease-in",
|
|
7203
7207
|
leaveToClass: "opacity-0 mask-active"
|
|
7204
7208
|
}
|
|
7205
|
-
},
|
|
7209
|
+
}, Ue = {
|
|
7206
7210
|
root: ({ props: e }) => ({
|
|
7207
7211
|
class: [
|
|
7208
7212
|
"overflow-hidden",
|
|
@@ -7218,7 +7222,7 @@ const h = {
|
|
|
7218
7222
|
"bg-general-50"
|
|
7219
7223
|
]
|
|
7220
7224
|
})
|
|
7221
|
-
},
|
|
7225
|
+
}, Le = {
|
|
7222
7226
|
root: ({ props: e }) => ({
|
|
7223
7227
|
class: [
|
|
7224
7228
|
"relative",
|
|
@@ -7326,7 +7330,7 @@ const h = {
|
|
|
7326
7330
|
"touch-action-none"
|
|
7327
7331
|
]
|
|
7328
7332
|
})
|
|
7329
|
-
},
|
|
7333
|
+
}, Re = {
|
|
7330
7334
|
root: ({ props: e }) => ({
|
|
7331
7335
|
class: [
|
|
7332
7336
|
// Flexbox and Position
|
|
@@ -7834,7 +7838,7 @@ const h = {
|
|
|
7834
7838
|
class: ["hidden"]
|
|
7835
7839
|
}
|
|
7836
7840
|
}
|
|
7837
|
-
},
|
|
7841
|
+
}, Me = {
|
|
7838
7842
|
root: {
|
|
7839
7843
|
class: "relative"
|
|
7840
7844
|
},
|
|
@@ -7941,12 +7945,319 @@ const h = {
|
|
|
7941
7945
|
"max-w-full"
|
|
7942
7946
|
]
|
|
7943
7947
|
})
|
|
7944
|
-
}
|
|
7948
|
+
};
|
|
7949
|
+
function p(e, t) {
|
|
7950
|
+
return { [e]: t }[e];
|
|
7951
|
+
}
|
|
7952
|
+
p("WANGS-TAB-MENU", {
|
|
7953
|
+
root: {
|
|
7954
|
+
class: "overflow-x-visible"
|
|
7955
|
+
},
|
|
7956
|
+
menu: ({ props: e }) => ({
|
|
7957
|
+
class: [
|
|
7958
|
+
// Flexbox
|
|
7959
|
+
"flex flex-1",
|
|
7960
|
+
// Spacing
|
|
7961
|
+
"list-none",
|
|
7962
|
+
"p-0 m-0",
|
|
7963
|
+
// Colors
|
|
7964
|
+
"text-general-100",
|
|
7965
|
+
{ "w-max ring-1 ring-inset ring-general-100 rounded": e.type === "segmented" }
|
|
7966
|
+
]
|
|
7967
|
+
}),
|
|
7968
|
+
menuitem: {
|
|
7969
|
+
class: "mr-0"
|
|
7970
|
+
},
|
|
7971
|
+
action: ({ props: e, context: t }) => {
|
|
7972
|
+
var r, s;
|
|
7973
|
+
return {
|
|
7974
|
+
class: [
|
|
7975
|
+
"relative",
|
|
7976
|
+
// Font
|
|
7977
|
+
"font-medium",
|
|
7978
|
+
"text-xs leading-4 tracking-[0.02em]",
|
|
7979
|
+
// Flexbox and Alignment
|
|
7980
|
+
"flex items-center",
|
|
7981
|
+
// Spacing
|
|
7982
|
+
{
|
|
7983
|
+
"rounded-xl py-1 px-3": e.type === "pill",
|
|
7984
|
+
rounded: e.type === "segmented",
|
|
7985
|
+
"p-2 pb-1.5 pt-0.5 !h-6": e.type === "tab",
|
|
7986
|
+
"py-[5px] px-3 !h-6": e.type === "segmented",
|
|
7987
|
+
"ml-1": e.type === "pill" && t.index !== 0,
|
|
7988
|
+
"gap-1": t.item.icon
|
|
7989
|
+
},
|
|
7990
|
+
// Shape
|
|
7991
|
+
{
|
|
7992
|
+
"border-b-2": e.type === "tab",
|
|
7993
|
+
"shadow-[-2px_2px_2px_rgba(0,0,0,0.25)] overflow-visible": e.type === "segmented" && t.active
|
|
7994
|
+
},
|
|
7995
|
+
// Colors and Conditions
|
|
7996
|
+
{
|
|
7997
|
+
"border-primary-700": t.active,
|
|
7998
|
+
"border-grayscale-400": !t.active,
|
|
7999
|
+
"text-grayscale-600": !t.active && e.type === "tab",
|
|
8000
|
+
"text-primary-700": t.active && e.type === "tab",
|
|
8001
|
+
"bg-primary-700 text-white": e.type === "pill" && t.active,
|
|
8002
|
+
"bg-grayscale-100 text-grayscale-800": e.type === "pill" && !t.active,
|
|
8003
|
+
"bg-primary-500 text-white": e.type === "segmented" && t.active,
|
|
8004
|
+
"!text-general-800": e.type === "segmented" && !t.active,
|
|
8005
|
+
"bg-transparent ": e.type !== "pill" && !t.active
|
|
8006
|
+
},
|
|
8007
|
+
// States
|
|
8008
|
+
{ "hover:bg-primary-50": e.type === "tab" },
|
|
8009
|
+
"focus-visible:outline-none focus-visible:outline-offset-0",
|
|
8010
|
+
{
|
|
8011
|
+
"focus-visible:border-primary-200 focus-visible:text-primary-400": !t.active
|
|
8012
|
+
},
|
|
8013
|
+
// Disabled States
|
|
8014
|
+
{
|
|
8015
|
+
"pointer-events-none": (r = t.item) == null ? void 0 : r.disabled,
|
|
8016
|
+
"opacity-60": (s = t.item) == null ? void 0 : s.disabled
|
|
8017
|
+
},
|
|
8018
|
+
// Transitions
|
|
8019
|
+
"transition-all duration-200",
|
|
8020
|
+
// Misc
|
|
8021
|
+
"cursor-pointer select-none text-decoration-none",
|
|
8022
|
+
"overflow-hidden",
|
|
8023
|
+
"user-select-none",
|
|
8024
|
+
"!no-underline",
|
|
8025
|
+
"whitespace-nowrap"
|
|
8026
|
+
]
|
|
8027
|
+
};
|
|
8028
|
+
},
|
|
8029
|
+
icon: {
|
|
8030
|
+
class: "mr-2"
|
|
8031
|
+
},
|
|
8032
|
+
inkbar: ({ props: e }) => ({
|
|
8033
|
+
class: ["grow border-b-2 border-grayscale-400", { hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented" }]
|
|
8034
|
+
})
|
|
8035
|
+
});
|
|
8036
|
+
p("WANGS-INPUT-OTP", {
|
|
8037
|
+
root: {
|
|
8038
|
+
class: [
|
|
8039
|
+
// Alignment
|
|
8040
|
+
"flex items-center",
|
|
8041
|
+
"gap-[6px]",
|
|
8042
|
+
"w-max"
|
|
8043
|
+
]
|
|
8044
|
+
},
|
|
8045
|
+
input: ({ props: e, context: t, parent: r }) => ({
|
|
8046
|
+
class: [
|
|
8047
|
+
// Font
|
|
8048
|
+
"text-[14px] leading-none font-medium",
|
|
8049
|
+
// Flex & Alignment
|
|
8050
|
+
{ "flex-1 w-[1%]": r.tagName == "WANGS-INPUT-GROUP" },
|
|
8051
|
+
"text-center",
|
|
8052
|
+
// Spacing
|
|
8053
|
+
"m-0",
|
|
8054
|
+
// Size
|
|
8055
|
+
"w-[42px] h-[42px]",
|
|
8056
|
+
// Shape
|
|
8057
|
+
{ "rounded-md": r.tagName !== "WANGS-INPUT-GROUP" },
|
|
8058
|
+
{
|
|
8059
|
+
"first:rounded-l-md rounded-none last:rounded-r-md": r.tagName == "WANGS-INPUT-GROUP"
|
|
8060
|
+
},
|
|
8061
|
+
{
|
|
8062
|
+
"border-0 border-y border-l last:border-r": r.tagName == "WANGS-INPUT-GROUP"
|
|
8063
|
+
},
|
|
8064
|
+
// Colors
|
|
8065
|
+
"text-general-800 dark:text-general-800",
|
|
8066
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
8067
|
+
"bg-white dark:bg-white",
|
|
8068
|
+
{
|
|
8069
|
+
"ring-1": navigator.userAgent.includes("Firefox"),
|
|
8070
|
+
"ring-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
8071
|
+
},
|
|
8072
|
+
{ "ring-general-200 dark:ring-general-200": !e.invalid },
|
|
8073
|
+
// Invalid State
|
|
8074
|
+
{ "ring-danger-500 dark:ring-danger-500": e.invalid },
|
|
8075
|
+
// States
|
|
8076
|
+
{
|
|
8077
|
+
"hover:bg-primary-50/50 hover:ring-primary-500 dark:hover:ring-primary-400": !t.disabled && !e.invalid,
|
|
8078
|
+
"focus:bg-primary-50/50 focus:ring-primary-500 dark:focus:ring-primary-400": !t.disabled && !e.invalid,
|
|
8079
|
+
"focus:outline-none focus:outline-offset-0": !t.disabled,
|
|
8080
|
+
"opacity-60 select-none pointer-events-none cursor-default": t.disabled
|
|
8081
|
+
},
|
|
8082
|
+
// Filled State *for FloatLabel
|
|
8083
|
+
{ filled: r.tagName == "WANGS-FLOAT-LABEL" && t.filled },
|
|
8084
|
+
// Misc
|
|
8085
|
+
"appearance-none",
|
|
8086
|
+
"transition-colors duration-200"
|
|
8087
|
+
]
|
|
8088
|
+
})
|
|
8089
|
+
});
|
|
8090
|
+
const o = class o {
|
|
8091
|
+
constructor() {
|
|
8092
|
+
/**
|
|
8093
|
+
* Stores base URLs associated with different app identifiers.
|
|
8094
|
+
*/
|
|
8095
|
+
g(this, "_baseUrl", "");
|
|
8096
|
+
if (globalThis[o.SINGLETON_KEY])
|
|
8097
|
+
return globalThis[o.SINGLETON_KEY];
|
|
8098
|
+
globalThis[o.SINGLETON_KEY] = this;
|
|
8099
|
+
}
|
|
8100
|
+
/**
|
|
8101
|
+
* Registers a base URL for a specific app.
|
|
8102
|
+
*
|
|
8103
|
+
* @param base - The base URL to be used as a prefix for all routes in that app.
|
|
8104
|
+
*/
|
|
8105
|
+
setNavigationBaseUrl(t) {
|
|
8106
|
+
this._baseUrl = this.normalizeBase(t);
|
|
8107
|
+
}
|
|
8108
|
+
/**
|
|
8109
|
+
* Retrieves the base URL for a specific app.
|
|
8110
|
+
*
|
|
8111
|
+
* @returns The base URL registered for the app or an empty string if not set.
|
|
8112
|
+
*/
|
|
8113
|
+
getNavigationBaseUrl() {
|
|
8114
|
+
return this._baseUrl;
|
|
8115
|
+
}
|
|
8116
|
+
/**
|
|
8117
|
+
* Ensures the base URL ends with a single slash and removes trailing slashes.
|
|
8118
|
+
*
|
|
8119
|
+
* @param base - The base URL to normalize.
|
|
8120
|
+
* @returns A clean base URL ending with a single `/`.
|
|
8121
|
+
*/
|
|
8122
|
+
normalizeBase(t) {
|
|
8123
|
+
return t.replace(/\/+$/, "").concat("/");
|
|
8124
|
+
}
|
|
8125
|
+
/**
|
|
8126
|
+
* Prepends the base URL (if any) to the given path.
|
|
8127
|
+
*
|
|
8128
|
+
* @param path - The relative path to normalize.
|
|
8129
|
+
* @returns A fully normalized path prefixed with the base URL if applicable.
|
|
8130
|
+
*/
|
|
8131
|
+
normalizePath(t) {
|
|
8132
|
+
const r = this.getNavigationBaseUrl();
|
|
8133
|
+
if (!r)
|
|
8134
|
+
return t;
|
|
8135
|
+
const s = t.startsWith("/") ? t.slice(1) : t;
|
|
8136
|
+
return `${r}${s}`;
|
|
8137
|
+
}
|
|
8138
|
+
/**
|
|
8139
|
+
* Removes the specified base path from the beginning of a given route path.
|
|
8140
|
+
*
|
|
8141
|
+
* This is useful when your app is deployed under a subdirectory (e.g., `/base`)
|
|
8142
|
+
* and you want to normalize the route path to match menu or route definitions
|
|
8143
|
+
* that don't include the base.
|
|
8144
|
+
*
|
|
8145
|
+
* @param path - The full route path (e.g., `/base/about`).
|
|
8146
|
+
* @param base - The optional base URL to remove (e.g., `/base`).
|
|
8147
|
+
* @returns The normalized path without the base prefix (e.g., `/about`).
|
|
8148
|
+
*
|
|
8149
|
+
* @example
|
|
8150
|
+
* stripBase('/base/home', '/base'); // returns '/home'
|
|
8151
|
+
* stripBase('/about', '/base'); // returns '/about' (base not present)
|
|
8152
|
+
* stripBase('/base', '/base'); // returns '/'
|
|
8153
|
+
*/
|
|
8154
|
+
stripBase(t, r) {
|
|
8155
|
+
return r || (r = this.getNavigationBaseUrl()), r !== "/" && t.startsWith(r) ? "/" + t.slice(r.length).replace(/^\/+/, "") : t;
|
|
8156
|
+
}
|
|
8157
|
+
/**
|
|
8158
|
+
* Pushes a new entry to the browser's history stack.
|
|
8159
|
+
*
|
|
8160
|
+
* @param route - The target URL or path to push. Can be a string, URL object, or null.
|
|
8161
|
+
* @param data - Optional state object associated with the history entry. Accessible via `history.state`.
|
|
8162
|
+
* @param unused - Optional title parameter (currently unused due to limited browser support).
|
|
8163
|
+
*
|
|
8164
|
+
* @example
|
|
8165
|
+
* Router.push('/about', { from: 'home' });
|
|
8166
|
+
*/
|
|
8167
|
+
push(t, r = {}, s = "") {
|
|
8168
|
+
var l;
|
|
8169
|
+
const n = {
|
|
8170
|
+
...r,
|
|
8171
|
+
...history.state ?? {},
|
|
8172
|
+
current: t,
|
|
8173
|
+
back: (l = history.state) == null ? void 0 : l.current,
|
|
8174
|
+
forward: void 0,
|
|
8175
|
+
replaced: !1,
|
|
8176
|
+
position: history.length + 1
|
|
8177
|
+
};
|
|
8178
|
+
window.history.pushState(n, s, t);
|
|
8179
|
+
}
|
|
8180
|
+
/**
|
|
8181
|
+
* Replaces the current entry in the browser's history stack.
|
|
8182
|
+
*
|
|
8183
|
+
* @param route - The target URL or path to replace with. Can be a string, URL object, or null.
|
|
8184
|
+
* @param data - Optional state object associated with the history entry. Accessible via `history.state`.
|
|
8185
|
+
* @param unused - Optional title parameter (currently unused due to limited browser support).
|
|
8186
|
+
*
|
|
8187
|
+
* @example
|
|
8188
|
+
* Router.replace('/login', { reason: 'session expired' });
|
|
8189
|
+
*/
|
|
8190
|
+
replace(t, r = {}, s = "") {
|
|
8191
|
+
const n = {
|
|
8192
|
+
...r,
|
|
8193
|
+
...history.state ?? {},
|
|
8194
|
+
forward: void 0,
|
|
8195
|
+
current: t,
|
|
8196
|
+
replaced: !0
|
|
8197
|
+
};
|
|
8198
|
+
window.history.replaceState(n, s, t);
|
|
8199
|
+
}
|
|
8200
|
+
/**
|
|
8201
|
+
* Dispatches a custom event before navigation occurs.
|
|
8202
|
+
* Used to notify subscribers of an upcoming route change.
|
|
8203
|
+
*
|
|
8204
|
+
* @param route - The route that will be navigated to.
|
|
8205
|
+
* @param mode - The navigation mode ('push' or 'replace').
|
|
8206
|
+
* @param data - Optional state object for the navigation.
|
|
8207
|
+
*/
|
|
8208
|
+
dispatchBeforeNavigationEvent(t, r, s) {
|
|
8209
|
+
window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event", {
|
|
8210
|
+
detail: { route: t, mode: r, state: s }
|
|
8211
|
+
}));
|
|
8212
|
+
}
|
|
8213
|
+
/**
|
|
8214
|
+
* Dispatches a custom event after navigation occurs.
|
|
8215
|
+
* Used to notify subscribers that the route has changed.
|
|
8216
|
+
*
|
|
8217
|
+
* @param route - The route that was navigated to.
|
|
8218
|
+
* @param mode - The navigation mode ('push' or 'replace').
|
|
8219
|
+
* @param data - Optional state object for the navigation.
|
|
8220
|
+
*/
|
|
8221
|
+
dispatchNavigationEvent(t, r, s) {
|
|
8222
|
+
window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event", {
|
|
8223
|
+
detail: { route: t, mode: r, state: s }
|
|
8224
|
+
}));
|
|
8225
|
+
}
|
|
8226
|
+
/**
|
|
8227
|
+
* Navigates to a specified route using the browser's History API.
|
|
8228
|
+
*
|
|
8229
|
+
* This updates the URL in the browser without reloading the page.
|
|
8230
|
+
* It can either push a new entry to the history stack or replace the current one.
|
|
8231
|
+
* Also dispatches custom events before and after the navigation.
|
|
8232
|
+
*
|
|
8233
|
+
* @param route - The target route to navigate to. Can be a string or URL object.
|
|
8234
|
+
* @param navigationMode - Determines how navigation is handled.
|
|
8235
|
+
* - `'push'` (default): Adds a new entry to the browser history.
|
|
8236
|
+
* - `'replace'`: Replaces the current history entry.
|
|
8237
|
+
* @param data - Optional state object associated with the history entry. Can be accessed via `history.state`.
|
|
8238
|
+
* @param unused - Optional title parameter (currently unused due to browser support limitations).
|
|
8239
|
+
*
|
|
8240
|
+
* @example
|
|
8241
|
+
* router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
|
|
8242
|
+
*/
|
|
8243
|
+
navigateToRoute(t, r = "push", s = {}, n = "") {
|
|
8244
|
+
if (!t)
|
|
8245
|
+
return;
|
|
8246
|
+
const l = typeof t == "string" ? t : t.toString(), a = this.normalizePath(l);
|
|
8247
|
+
if (a === location.pathname)
|
|
8248
|
+
return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
|
|
8249
|
+
this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s, n) : this.replace(a, s, n), this.dispatchNavigationEvent(a, r, s);
|
|
8250
|
+
}
|
|
8251
|
+
};
|
|
8252
|
+
g(o, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
|
|
8253
|
+
let m = o;
|
|
8254
|
+
new m();
|
|
8255
|
+
const Oe = p("WANGS-TAB-MENU", {
|
|
7945
8256
|
root: {
|
|
7946
8257
|
class: "overflow-x-auto",
|
|
7947
8258
|
style: "scrollbar-width: none"
|
|
7948
8259
|
},
|
|
7949
|
-
menu: {
|
|
8260
|
+
menu: () => ({
|
|
7950
8261
|
class: [
|
|
7951
8262
|
// Flexbox
|
|
7952
8263
|
"flex flex-1",
|
|
@@ -7957,12 +8268,12 @@ const h = {
|
|
|
7957
8268
|
// Colors
|
|
7958
8269
|
"text-general-100"
|
|
7959
8270
|
]
|
|
7960
|
-
},
|
|
8271
|
+
}),
|
|
7961
8272
|
menuitem: {
|
|
7962
8273
|
class: "mr-0"
|
|
7963
8274
|
},
|
|
7964
|
-
action: ({ context: e
|
|
7965
|
-
var
|
|
8275
|
+
action: ({ context: e }) => {
|
|
8276
|
+
var t, r;
|
|
7966
8277
|
return {
|
|
7967
8278
|
class: [
|
|
7968
8279
|
"relative",
|
|
@@ -7977,23 +8288,23 @@ const h = {
|
|
|
7977
8288
|
"border-b-2",
|
|
7978
8289
|
// Colors and Conditions
|
|
7979
8290
|
{
|
|
7980
|
-
"bg-transparent ":
|
|
7981
|
-
"text-grayscale-900":
|
|
7982
|
-
"border-primary-400":
|
|
7983
|
-
"border-primary-100":
|
|
7984
|
-
"text-primary-500":
|
|
8291
|
+
"bg-transparent ": !e.active,
|
|
8292
|
+
"text-grayscale-900": !e.active,
|
|
8293
|
+
"border-primary-400": e.active,
|
|
8294
|
+
"border-primary-100": !e.active,
|
|
8295
|
+
"text-primary-500": e.active
|
|
7985
8296
|
},
|
|
7986
8297
|
// States
|
|
7987
8298
|
"hover:bg-primary-50",
|
|
7988
8299
|
"focus-visible:outline-none focus-visible:outline-offset-0",
|
|
7989
8300
|
"focus-visible:bg-primary-50",
|
|
7990
8301
|
{
|
|
7991
|
-
"focus-visible:border-primary-200 focus-visible:text-primary-400":
|
|
8302
|
+
"focus-visible:border-primary-200 focus-visible:text-primary-400": !e.active
|
|
7992
8303
|
},
|
|
7993
8304
|
// Disabled States
|
|
7994
8305
|
{
|
|
7995
|
-
"pointer-events-none": (
|
|
7996
|
-
"opacity-60": (
|
|
8306
|
+
"pointer-events-none": (t = e.item) == null ? void 0 : t.disabled,
|
|
8307
|
+
"opacity-60": (r = e.item) == null ? void 0 : r.disabled
|
|
7997
8308
|
},
|
|
7998
8309
|
// Transitions
|
|
7999
8310
|
"transition-all duration-200",
|
|
@@ -8009,10 +8320,13 @@ const h = {
|
|
|
8009
8320
|
icon: {
|
|
8010
8321
|
class: "mr-2"
|
|
8011
8322
|
},
|
|
8012
|
-
inkbar: {
|
|
8013
|
-
class:
|
|
8014
|
-
|
|
8015
|
-
|
|
8323
|
+
inkbar: ({ props: e }) => ({
|
|
8324
|
+
class: [
|
|
8325
|
+
"grow border-b-2 border-primary-100",
|
|
8326
|
+
{ hidden: e.type === "pill" || e.useTrailingLine === !1 }
|
|
8327
|
+
]
|
|
8328
|
+
})
|
|
8329
|
+
}), We = {
|
|
8016
8330
|
navContainer: ({ props: e }) => ({
|
|
8017
8331
|
class: [
|
|
8018
8332
|
// Position
|
|
@@ -8148,7 +8462,7 @@ const h = {
|
|
|
8148
8462
|
]
|
|
8149
8463
|
}
|
|
8150
8464
|
}
|
|
8151
|
-
},
|
|
8465
|
+
}, De = {
|
|
8152
8466
|
root: ({ props: e }) => ({
|
|
8153
8467
|
class: [
|
|
8154
8468
|
//Font
|
|
@@ -8179,7 +8493,7 @@ const h = {
|
|
|
8179
8493
|
icon: {
|
|
8180
8494
|
class: "mr-1 text-sm"
|
|
8181
8495
|
}
|
|
8182
|
-
},
|
|
8496
|
+
}, Ke = {
|
|
8183
8497
|
root: {
|
|
8184
8498
|
class: [
|
|
8185
8499
|
// Spacing
|
|
@@ -8231,7 +8545,7 @@ const h = {
|
|
|
8231
8545
|
"outline-none"
|
|
8232
8546
|
]
|
|
8233
8547
|
}
|
|
8234
|
-
},
|
|
8548
|
+
}, He = {
|
|
8235
8549
|
root: ({ context: e, props: t }) => ({
|
|
8236
8550
|
class: [
|
|
8237
8551
|
// Font
|
|
@@ -8248,7 +8562,7 @@ const h = {
|
|
|
8248
8562
|
// Shape
|
|
8249
8563
|
"rounded",
|
|
8250
8564
|
"appearance-none",
|
|
8251
|
-
...
|
|
8565
|
+
...oe,
|
|
8252
8566
|
{
|
|
8253
8567
|
"!ring-danger-500": e.invalidInput
|
|
8254
8568
|
},
|
|
@@ -8266,7 +8580,7 @@ const h = {
|
|
|
8266
8580
|
"data-wv-name": "textarea",
|
|
8267
8581
|
"data-wv-section": "root"
|
|
8268
8582
|
})
|
|
8269
|
-
},
|
|
8583
|
+
}, Ye = {
|
|
8270
8584
|
root: {
|
|
8271
8585
|
class: [
|
|
8272
8586
|
// Shape
|
|
@@ -8368,16 +8682,16 @@ const h = {
|
|
|
8368
8682
|
separator: {
|
|
8369
8683
|
class: "border-t border-surface-200 my-1"
|
|
8370
8684
|
}
|
|
8371
|
-
},
|
|
8685
|
+
}, b = (e) => {
|
|
8372
8686
|
if (!e) return !0;
|
|
8373
8687
|
const t = Object.keys(e);
|
|
8374
8688
|
return t.length ? t.every((r) => {
|
|
8375
8689
|
const s = e[r];
|
|
8376
8690
|
return typeof s == "object" ? Array.isArray(s) ? !s.length || s.every(
|
|
8377
|
-
(
|
|
8378
|
-
) :
|
|
8691
|
+
(n) => typeof n == "object" ? b(n) : n == null
|
|
8692
|
+
) : b(s) : s == null;
|
|
8379
8693
|
}) : !0;
|
|
8380
|
-
},
|
|
8694
|
+
}, qe = {
|
|
8381
8695
|
root: ({ props: e }) => ({
|
|
8382
8696
|
class: ["flex flex-col grow", "text-xs font-normal text-grayscale-900"]
|
|
8383
8697
|
}),
|
|
@@ -8408,18 +8722,34 @@ const h = {
|
|
|
8408
8722
|
markerArrow: (e) => ({
|
|
8409
8723
|
class: [
|
|
8410
8724
|
"w-4 h-4 invisible transition-transform duration-200 ease-in-out text-grayscale-900",
|
|
8411
|
-
{ "!visible": e.detail && !
|
|
8725
|
+
{ "!visible": e.detail && !b(e.detail) },
|
|
8412
8726
|
{ "rotate-180": e.showDetail }
|
|
8413
8727
|
],
|
|
8414
8728
|
"data-wv-section": "markerArrow"
|
|
8415
8729
|
}),
|
|
8730
|
+
markerDot: (e) => ({
|
|
8731
|
+
class: ["hidden"],
|
|
8732
|
+
"data-wv-section": "markerDot"
|
|
8733
|
+
}),
|
|
8734
|
+
contentHeader: {
|
|
8735
|
+
class: ["leading-5 cursor-pointer truncate !text-xs"]
|
|
8736
|
+
},
|
|
8737
|
+
contentDetailKey: {
|
|
8738
|
+
class: ["font-semibold whitespace-nowrap"]
|
|
8739
|
+
},
|
|
8740
|
+
contentDetailValue: {
|
|
8741
|
+
class: ["text-xs"]
|
|
8742
|
+
},
|
|
8743
|
+
contentDate: {
|
|
8744
|
+
class: [""]
|
|
8745
|
+
},
|
|
8416
8746
|
connector: ({ props: e }) => ({
|
|
8417
8747
|
class: ["w-[2px] grow bg-grayscale-900"]
|
|
8418
8748
|
}),
|
|
8419
8749
|
content: ({ props: e, context: t }) => ({
|
|
8420
8750
|
class: ["grid grid-rows-[max-content,auto] pb-2.5 gap-1"]
|
|
8421
8751
|
})
|
|
8422
|
-
},
|
|
8752
|
+
}, Je = {
|
|
8423
8753
|
root: ({ props: e }) => ({
|
|
8424
8754
|
class: [
|
|
8425
8755
|
//Size and Shape
|
|
@@ -8502,7 +8832,7 @@ const h = {
|
|
|
8502
8832
|
leaveActiveClass: "!transition-[max-height_.45s_cubic-bezier(0,1,0,1),opacity_.3s,margin-bottom_.3s] overflow-hidden",
|
|
8503
8833
|
leaveToClass: "max-h-0 opacity-0 mb-0"
|
|
8504
8834
|
}
|
|
8505
|
-
},
|
|
8835
|
+
}, Xe = {
|
|
8506
8836
|
root: {
|
|
8507
8837
|
class: [
|
|
8508
8838
|
"relative",
|
|
@@ -8573,7 +8903,7 @@ const h = {
|
|
|
8573
8903
|
icon: {
|
|
8574
8904
|
class: [" mr-2", "text-surface-700/80"]
|
|
8575
8905
|
}
|
|
8576
|
-
},
|
|
8906
|
+
}, Ze = {
|
|
8577
8907
|
root: {
|
|
8578
8908
|
class: [
|
|
8579
8909
|
// Flex & Alignment
|
|
@@ -8599,7 +8929,7 @@ const h = {
|
|
|
8599
8929
|
end: {
|
|
8600
8930
|
class: "flex items-center"
|
|
8601
8931
|
}
|
|
8602
|
-
},
|
|
8932
|
+
}, Qe = {
|
|
8603
8933
|
root: ({ context: e, props: t }) => ({
|
|
8604
8934
|
class: [
|
|
8605
8935
|
// Position
|
|
@@ -8635,7 +8965,7 @@ const h = {
|
|
|
8635
8965
|
"break-words"
|
|
8636
8966
|
]
|
|
8637
8967
|
}
|
|
8638
|
-
},
|
|
8968
|
+
}, et = {
|
|
8639
8969
|
root: {
|
|
8640
8970
|
class: [
|
|
8641
8971
|
"relative",
|
|
@@ -8876,7 +9206,7 @@ const h = {
|
|
|
8876
9206
|
"text-xs font-medium text-general-800"
|
|
8877
9207
|
]
|
|
8878
9208
|
})
|
|
8879
|
-
},
|
|
9209
|
+
}, tt = {
|
|
8880
9210
|
root: ({ props: e, state: t }) => ({
|
|
8881
9211
|
class: [
|
|
8882
9212
|
// Display and Position
|
|
@@ -9197,7 +9527,7 @@ const h = {
|
|
|
9197
9527
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
9198
9528
|
leaveToClass: "opacity-0"
|
|
9199
9529
|
}
|
|
9200
|
-
},
|
|
9530
|
+
}, rt = {
|
|
9201
9531
|
root: {
|
|
9202
9532
|
class: [
|
|
9203
9533
|
"relative",
|
|
@@ -9297,13 +9627,14 @@ const h = {
|
|
|
9297
9627
|
"duration-200"
|
|
9298
9628
|
]
|
|
9299
9629
|
}
|
|
9300
|
-
},
|
|
9630
|
+
}, st = {
|
|
9301
9631
|
root: {
|
|
9302
9632
|
class: ["!mt-0 text-danger-500 text-xs font-light"],
|
|
9303
9633
|
"data-wv-name": "validatormessage",
|
|
9304
9634
|
"data-wv-section": "root"
|
|
9305
9635
|
}
|
|
9306
|
-
},
|
|
9636
|
+
}, it = {
|
|
9637
|
+
// Must be a variable to works with Tailwindcss Intellisense
|
|
9307
9638
|
root: {
|
|
9308
9639
|
class: "flex gap-2 items-center",
|
|
9309
9640
|
"data-wv-name": "buttonbulkaction",
|
|
@@ -9332,7 +9663,7 @@ const h = {
|
|
|
9332
9663
|
class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
|
|
9333
9664
|
"data-wv-section": "buttonclearselection"
|
|
9334
9665
|
}
|
|
9335
|
-
},
|
|
9666
|
+
}, nt = {
|
|
9336
9667
|
root: {
|
|
9337
9668
|
class: "flex flex-nowrap items-center gap-1",
|
|
9338
9669
|
"data-wv-name": "badgegroup",
|
|
@@ -9344,7 +9675,7 @@ const h = {
|
|
|
9344
9675
|
},
|
|
9345
9676
|
showmoredialog: {
|
|
9346
9677
|
root: {
|
|
9347
|
-
class: [
|
|
9678
|
+
class: [C.root({ state: {} }).class, "w-[400px] !px-6 !py-3"],
|
|
9348
9679
|
"data-wv-section": "showmoredialog"
|
|
9349
9680
|
},
|
|
9350
9681
|
title: {
|
|
@@ -9357,7 +9688,7 @@ const h = {
|
|
|
9357
9688
|
}
|
|
9358
9689
|
// All section in Dialog Preset can be added here
|
|
9359
9690
|
}
|
|
9360
|
-
},
|
|
9691
|
+
}, ot = {
|
|
9361
9692
|
root: {
|
|
9362
9693
|
class: [
|
|
9363
9694
|
"flex gap-[5px] items-center text-left h-[21px]",
|
|
@@ -9382,16 +9713,16 @@ const h = {
|
|
|
9382
9713
|
content: ">",
|
|
9383
9714
|
"data-wv-section": "separator"
|
|
9384
9715
|
}
|
|
9385
|
-
},
|
|
9716
|
+
}, at = {
|
|
9386
9717
|
currency: (e) => ({
|
|
9387
|
-
class: [...
|
|
9718
|
+
class: [...f(e), "rounded-l rounded-r-none h-[30px]"],
|
|
9388
9719
|
"data-wv-section": "currency"
|
|
9389
9720
|
}),
|
|
9390
9721
|
value: (e) => ({
|
|
9391
|
-
class: [...
|
|
9722
|
+
class: [...f(e), "rounded-r rounded-l-none -ml-[1px]"],
|
|
9392
9723
|
"data-wv-section": "value"
|
|
9393
9724
|
})
|
|
9394
|
-
},
|
|
9725
|
+
}, lt = {
|
|
9395
9726
|
root: {
|
|
9396
9727
|
"data-wv-name": "fileupload",
|
|
9397
9728
|
"data-wv-section": "root"
|
|
@@ -9413,7 +9744,7 @@ const h = {
|
|
|
9413
9744
|
requirements: {
|
|
9414
9745
|
class: "flex justify-start"
|
|
9415
9746
|
}
|
|
9416
|
-
},
|
|
9747
|
+
}, ct = {
|
|
9417
9748
|
next: ({ context: e }) => ({
|
|
9418
9749
|
class: [
|
|
9419
9750
|
"text-2xl text-general-900",
|
|
@@ -9437,14 +9768,14 @@ const h = {
|
|
|
9437
9768
|
}
|
|
9438
9769
|
]
|
|
9439
9770
|
})
|
|
9440
|
-
},
|
|
9771
|
+
}, dt = {
|
|
9441
9772
|
root: {
|
|
9442
9773
|
class: [
|
|
9443
9774
|
"bg-primary-50 rounded-[7px] [&>*]:w-full [&>*]min-w-0",
|
|
9444
9775
|
"grid items-end p-3 gap-4"
|
|
9445
9776
|
]
|
|
9446
9777
|
}
|
|
9447
|
-
},
|
|
9778
|
+
}, ut = {
|
|
9448
9779
|
root: {
|
|
9449
9780
|
class: [
|
|
9450
9781
|
"w-screen h-screen fixed top-0 left-0 z-[9999999]",
|
|
@@ -9456,7 +9787,7 @@ const h = {
|
|
|
9456
9787
|
animation: {
|
|
9457
9788
|
class: ["w-[450px] h-auto"]
|
|
9458
9789
|
}
|
|
9459
|
-
},
|
|
9790
|
+
}, ft = {
|
|
9460
9791
|
root: {
|
|
9461
9792
|
class: "flex items-center gap-1"
|
|
9462
9793
|
},
|
|
@@ -9490,118 +9821,118 @@ const h = {
|
|
|
9490
9821
|
class: "flex flex-col gap-0.5 items-center justify-center"
|
|
9491
9822
|
}
|
|
9492
9823
|
}
|
|
9493
|
-
},
|
|
9494
|
-
badge:
|
|
9495
|
-
ripple:
|
|
9496
|
-
tooltip:
|
|
9497
|
-
},
|
|
9498
|
-
global:
|
|
9499
|
-
directives:
|
|
9824
|
+
}, gt = {
|
|
9825
|
+
badge: S,
|
|
9826
|
+
ripple: Ve,
|
|
9827
|
+
tooltip: Qe
|
|
9828
|
+
}, bt = {
|
|
9829
|
+
global: ae,
|
|
9830
|
+
directives: gt,
|
|
9500
9831
|
// Forms
|
|
9501
|
-
form:
|
|
9502
|
-
filtercontainer:
|
|
9503
|
-
autocomplete:
|
|
9504
|
-
dropdown:
|
|
9505
|
-
inputnumber:
|
|
9506
|
-
inputphonenumber:
|
|
9507
|
-
inputcurrency:
|
|
9508
|
-
inputotp:
|
|
9509
|
-
inputtext:
|
|
9510
|
-
inputbadge:
|
|
9511
|
-
calendar:
|
|
9512
|
-
checkbox:
|
|
9513
|
-
buttonradio:
|
|
9514
|
-
selectbutton:
|
|
9515
|
-
slider:
|
|
9516
|
-
chips:
|
|
9517
|
-
rating:
|
|
9832
|
+
form: ne,
|
|
9833
|
+
filtercontainer: dt,
|
|
9834
|
+
autocomplete: T,
|
|
9835
|
+
dropdown: re,
|
|
9836
|
+
inputnumber: me,
|
|
9837
|
+
inputphonenumber: pe,
|
|
9838
|
+
inputcurrency: at,
|
|
9839
|
+
inputotp: be,
|
|
9840
|
+
inputtext: z,
|
|
9841
|
+
inputbadge: de,
|
|
9842
|
+
calendar: E,
|
|
9843
|
+
checkbox: d,
|
|
9844
|
+
buttonradio: Pe,
|
|
9845
|
+
selectbutton: Ee,
|
|
9846
|
+
slider: Le,
|
|
9847
|
+
chips: O,
|
|
9848
|
+
rating: Ne,
|
|
9518
9849
|
multiselect: i,
|
|
9519
|
-
togglebutton:
|
|
9520
|
-
toggleswitch:
|
|
9521
|
-
cascadeselect:
|
|
9522
|
-
listbox:
|
|
9523
|
-
colorpicker:
|
|
9524
|
-
inputgroup:
|
|
9525
|
-
inputgroupaddon:
|
|
9526
|
-
inputmask:
|
|
9527
|
-
knob:
|
|
9528
|
-
treeselect:
|
|
9529
|
-
tristatecheckbox:
|
|
9530
|
-
textarea:
|
|
9531
|
-
password:
|
|
9532
|
-
validatormessage:
|
|
9533
|
-
fileupload:
|
|
9534
|
-
fieldwrapper:
|
|
9850
|
+
togglebutton: Xe,
|
|
9851
|
+
toggleswitch: u,
|
|
9852
|
+
cascadeselect: L,
|
|
9853
|
+
listbox: ve,
|
|
9854
|
+
colorpicker: K,
|
|
9855
|
+
inputgroup: ue,
|
|
9856
|
+
inputgroupaddon: fe,
|
|
9857
|
+
inputmask: ge,
|
|
9858
|
+
knob: xe,
|
|
9859
|
+
treeselect: tt,
|
|
9860
|
+
tristatecheckbox: rt,
|
|
9861
|
+
textarea: He,
|
|
9862
|
+
password: Ie,
|
|
9863
|
+
validatormessage: st,
|
|
9864
|
+
fileupload: lt,
|
|
9865
|
+
fieldwrapper: ie,
|
|
9535
9866
|
// Buttons
|
|
9536
|
-
button:
|
|
9537
|
-
buttondownload:
|
|
9538
|
-
buttonbulkaction:
|
|
9539
|
-
buttonsearch:
|
|
9540
|
-
buttonsplit:
|
|
9541
|
-
buttonfilter:
|
|
9542
|
-
splitbutton:
|
|
9867
|
+
button: P,
|
|
9868
|
+
buttondownload: N,
|
|
9869
|
+
buttonbulkaction: it,
|
|
9870
|
+
buttonsearch: $,
|
|
9871
|
+
buttonsplit: B,
|
|
9872
|
+
buttonfilter: V,
|
|
9873
|
+
splitbutton: Re,
|
|
9543
9874
|
// Data
|
|
9544
|
-
paginator:
|
|
9545
|
-
datatable:
|
|
9546
|
-
customcolumn:
|
|
9547
|
-
tree:
|
|
9548
|
-
dataview:
|
|
9549
|
-
dataviewlayoutoptions:
|
|
9550
|
-
organizationchart:
|
|
9551
|
-
orderlist:
|
|
9552
|
-
picklist:
|
|
9553
|
-
timeline:
|
|
9554
|
-
changelog:
|
|
9875
|
+
paginator: Ae,
|
|
9876
|
+
datatable: q,
|
|
9877
|
+
customcolumn: W,
|
|
9878
|
+
tree: et,
|
|
9879
|
+
dataview: J,
|
|
9880
|
+
dataviewlayoutoptions: X,
|
|
9881
|
+
organizationchart: ze,
|
|
9882
|
+
orderlist: Ce,
|
|
9883
|
+
picklist: Fe,
|
|
9884
|
+
timeline: qe,
|
|
9885
|
+
changelog: R,
|
|
9555
9886
|
// Panels
|
|
9556
|
-
accordion:
|
|
9557
|
-
panel:
|
|
9558
|
-
fieldset:
|
|
9559
|
-
card:
|
|
9560
|
-
tabview:
|
|
9561
|
-
divider:
|
|
9562
|
-
toolbar:
|
|
9563
|
-
scrollpanel:
|
|
9887
|
+
accordion: _,
|
|
9888
|
+
panel: _e,
|
|
9889
|
+
fieldset: se,
|
|
9890
|
+
card: G,
|
|
9891
|
+
tabview: We,
|
|
9892
|
+
divider: ee,
|
|
9893
|
+
toolbar: Ze,
|
|
9894
|
+
scrollpanel: $e,
|
|
9564
9895
|
// Menu
|
|
9565
|
-
contextmenu:
|
|
9566
|
-
menu:
|
|
9567
|
-
menubar:
|
|
9568
|
-
steps:
|
|
9569
|
-
breadcrumb:
|
|
9570
|
-
tieredmenu:
|
|
9571
|
-
panelmenu:
|
|
9572
|
-
megamenu:
|
|
9573
|
-
dock:
|
|
9574
|
-
tabmenu:
|
|
9896
|
+
contextmenu: Y,
|
|
9897
|
+
menu: ye,
|
|
9898
|
+
menubar: we,
|
|
9899
|
+
steps: Me,
|
|
9900
|
+
breadcrumb: ot,
|
|
9901
|
+
tieredmenu: Ye,
|
|
9902
|
+
panelmenu: Te,
|
|
9903
|
+
megamenu: he,
|
|
9904
|
+
dock: te,
|
|
9905
|
+
tabmenu: Oe,
|
|
9575
9906
|
// Overlays
|
|
9576
|
-
dialog:
|
|
9577
|
-
dialogconfirm:
|
|
9578
|
-
dialogform:
|
|
9579
|
-
overlaypanel:
|
|
9580
|
-
sidebar:
|
|
9581
|
-
confirmpopup:
|
|
9907
|
+
dialog: C,
|
|
9908
|
+
dialogconfirm: Z,
|
|
9909
|
+
dialogform: Q,
|
|
9910
|
+
overlaypanel: je,
|
|
9911
|
+
sidebar: Ge,
|
|
9912
|
+
confirmpopup: H,
|
|
9582
9913
|
// Messages
|
|
9583
|
-
message:
|
|
9584
|
-
inlinemessage:
|
|
9585
|
-
toast:
|
|
9914
|
+
message: ke,
|
|
9915
|
+
inlinemessage: ce,
|
|
9916
|
+
toast: Je,
|
|
9586
9917
|
// Media
|
|
9587
|
-
carousel:
|
|
9918
|
+
carousel: U,
|
|
9588
9919
|
// Misc
|
|
9589
|
-
badge:
|
|
9590
|
-
badgegroup:
|
|
9591
|
-
avatar:
|
|
9592
|
-
avatargroup:
|
|
9593
|
-
tag:
|
|
9594
|
-
chip:
|
|
9595
|
-
progressbar:
|
|
9596
|
-
skeleton:
|
|
9597
|
-
scrolltop:
|
|
9598
|
-
terminal:
|
|
9599
|
-
image:
|
|
9600
|
-
workcalendar:
|
|
9601
|
-
loading:
|
|
9602
|
-
codesnippet:
|
|
9603
|
-
username:
|
|
9920
|
+
badge: c,
|
|
9921
|
+
badgegroup: nt,
|
|
9922
|
+
avatar: I,
|
|
9923
|
+
avatargroup: F,
|
|
9924
|
+
tag: De,
|
|
9925
|
+
chip: M,
|
|
9926
|
+
progressbar: Se,
|
|
9927
|
+
skeleton: Ue,
|
|
9928
|
+
scrolltop: Be,
|
|
9929
|
+
terminal: Ke,
|
|
9930
|
+
image: le,
|
|
9931
|
+
workcalendar: ct,
|
|
9932
|
+
loading: ut,
|
|
9933
|
+
codesnippet: D,
|
|
9934
|
+
username: ft
|
|
9604
9935
|
};
|
|
9605
9936
|
export {
|
|
9606
|
-
|
|
9937
|
+
bt as default
|
|
9607
9938
|
};
|