@fewangsit/wangsvue-presets 1.0.107-alpha.0 → 1.0.107-alpha.2
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/colors.config.json +73 -73
- package/fixedasset/style.css +13 -9
- package/globalsettings/colors.config.json +97 -97
- package/globalsettings/index.d.ts +2 -0
- package/globalsettings/index.es.js +102 -48
- package/globalsettings/index.js +2 -0
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/inputotp/index.d.ts +2 -0
- package/globalsettings/inputotp/index.js +60 -0
- package/globalsettings/style.css +14 -10
- package/package.json +13 -13
- package/supplyasset/colors.config.json +97 -97
- package/supplyasset/style.css +14 -10
- package/wangsvue/colors.config.json +76 -76
- package/wangsvue/style.css +17 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var z = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var b = (e, t, a) =>
|
|
4
|
-
const
|
|
2
|
+
var A = (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) => A(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
const _ = {
|
|
5
5
|
accordiontab: {
|
|
6
6
|
header: ({ props: e }) => ({
|
|
7
7
|
class: [
|
|
@@ -112,7 +112,7 @@ const A = {
|
|
|
112
112
|
"icon-class": "w-[10px] h-[10px] !text-[10px]",
|
|
113
113
|
"data-wv-section": "removebutton"
|
|
114
114
|
})
|
|
115
|
-
},
|
|
115
|
+
}, N = {
|
|
116
116
|
root: ({ context: e }) => ({
|
|
117
117
|
class: [
|
|
118
118
|
// Font
|
|
@@ -150,7 +150,7 @@ const A = {
|
|
|
150
150
|
}
|
|
151
151
|
]
|
|
152
152
|
})
|
|
153
|
-
},
|
|
153
|
+
}, S = {
|
|
154
154
|
root: ({ props: e, context: t }) => ({
|
|
155
155
|
class: [
|
|
156
156
|
"relative",
|
|
@@ -467,7 +467,7 @@ const A = {
|
|
|
467
467
|
}
|
|
468
468
|
]
|
|
469
469
|
})
|
|
470
|
-
},
|
|
470
|
+
}, T = {
|
|
471
471
|
root: ({ props: e }) => ({
|
|
472
472
|
class: [
|
|
473
473
|
"rounded ring-1 ring-success-500 p-[5px] ring-inset",
|
|
@@ -501,7 +501,7 @@ const A = {
|
|
|
501
501
|
],
|
|
502
502
|
"data-wv-section": "icon"
|
|
503
503
|
})
|
|
504
|
-
},
|
|
504
|
+
}, I = {
|
|
505
505
|
buttontrigger: {
|
|
506
506
|
root: ({ context: e }) => ({
|
|
507
507
|
class: [
|
|
@@ -550,7 +550,7 @@ const A = {
|
|
|
550
550
|
inputtext: {
|
|
551
551
|
class: "!h-max !py-0 !px-0"
|
|
552
552
|
}
|
|
553
|
-
},
|
|
553
|
+
}, F = {
|
|
554
554
|
root: ["w-max"],
|
|
555
555
|
button: {
|
|
556
556
|
class: [
|
|
@@ -559,7 +559,7 @@ const A = {
|
|
|
559
559
|
"data-sp-section": "button-split"
|
|
560
560
|
},
|
|
561
561
|
menuButton: "!rounded-ss-none !rounded-es-none"
|
|
562
|
-
}, h = navigator.userAgent.includes("Chrome"),
|
|
562
|
+
}, h = navigator.userAgent.includes("Chrome"), U = {
|
|
563
563
|
root: ({ props: e }) => ({
|
|
564
564
|
class: [
|
|
565
565
|
// Display and Position
|
|
@@ -1147,7 +1147,7 @@ const A = {
|
|
|
1147
1147
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
1148
1148
|
leaveToClass: "opacity-0"
|
|
1149
1149
|
}
|
|
1150
|
-
},
|
|
1150
|
+
}, V = {
|
|
1151
1151
|
root: {
|
|
1152
1152
|
class: [
|
|
1153
1153
|
//Shape
|
|
@@ -1176,7 +1176,7 @@ const A = {
|
|
|
1176
1176
|
footer: {
|
|
1177
1177
|
class: ["inline-flex gap-1 text-xs items-center"]
|
|
1178
1178
|
}
|
|
1179
|
-
},
|
|
1179
|
+
}, E = {
|
|
1180
1180
|
root: {
|
|
1181
1181
|
class: [
|
|
1182
1182
|
// Flexbox
|
|
@@ -1290,7 +1290,7 @@ const A = {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
]
|
|
1292
1292
|
})
|
|
1293
|
-
},
|
|
1293
|
+
}, G = {
|
|
1294
1294
|
button: ({ props: e, buttonClass: t }) => ({
|
|
1295
1295
|
class: [
|
|
1296
1296
|
t,
|
|
@@ -1439,7 +1439,7 @@ const A = {
|
|
|
1439
1439
|
tooltipicon: {
|
|
1440
1440
|
class: "text-primary-500 w-[10px] h-[10px]"
|
|
1441
1441
|
}
|
|
1442
|
-
},
|
|
1442
|
+
}, B = {
|
|
1443
1443
|
copybutton: {
|
|
1444
1444
|
class: "peer-hover:visible scale-125 !absolute top-2 right-2 z-50"
|
|
1445
1445
|
},
|
|
@@ -1483,7 +1483,7 @@ const A = {
|
|
|
1483
1483
|
{ invisible: e.dragable === !1 }
|
|
1484
1484
|
]
|
|
1485
1485
|
})
|
|
1486
|
-
},
|
|
1486
|
+
}, O = {
|
|
1487
1487
|
root: {
|
|
1488
1488
|
"data-wv-name": "datatable",
|
|
1489
1489
|
"data-wv-section": "root",
|
|
@@ -1938,7 +1938,7 @@ const A = {
|
|
|
1938
1938
|
class: "flex items-end justify-end gap-1 !mt-0",
|
|
1939
1939
|
"data-wv-section": "dialog-confirm-footer"
|
|
1940
1940
|
}
|
|
1941
|
-
},
|
|
1941
|
+
}, $ = {
|
|
1942
1942
|
root: {
|
|
1943
1943
|
class: ["max-w-[90vw]"],
|
|
1944
1944
|
style: (e) => `width: ${e}`,
|
|
@@ -2274,7 +2274,7 @@ const A = {
|
|
|
2274
2274
|
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
2275
2275
|
leaveToClass: "opacity-0"
|
|
2276
2276
|
}
|
|
2277
|
-
},
|
|
2277
|
+
}, M = {
|
|
2278
2278
|
root: ({ props: e, state: t }) => ({
|
|
2279
2279
|
class: [
|
|
2280
2280
|
// Display and Position
|
|
@@ -2465,7 +2465,7 @@ const A = {
|
|
|
2465
2465
|
loadingplaceholder: {
|
|
2466
2466
|
class: "text-general-200 font-light"
|
|
2467
2467
|
}
|
|
2468
|
-
},
|
|
2468
|
+
}, W = {
|
|
2469
2469
|
// :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
|
|
2470
2470
|
root: () => ({
|
|
2471
2471
|
class: [
|
|
@@ -2506,7 +2506,7 @@ const A = {
|
|
|
2506
2506
|
"validator-message": {
|
|
2507
2507
|
class: ["static w-max transform-none"]
|
|
2508
2508
|
}
|
|
2509
|
-
},
|
|
2509
|
+
}, D = [
|
|
2510
2510
|
{
|
|
2511
2511
|
"ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
|
|
2512
2512
|
"ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
@@ -4008,10 +4008,10 @@ const A = {
|
|
|
4008
4008
|
]
|
|
4009
4009
|
})
|
|
4010
4010
|
};
|
|
4011
|
-
function
|
|
4011
|
+
function m(e, t) {
|
|
4012
4012
|
return { [e]: t }[e];
|
|
4013
4013
|
}
|
|
4014
|
-
|
|
4014
|
+
m("WANGS-TAB-MENU", {
|
|
4015
4015
|
root: {
|
|
4016
4016
|
class: "overflow-x-visible"
|
|
4017
4017
|
},
|
|
@@ -4095,7 +4095,7 @@ x("WANGS-TAB-MENU", {
|
|
|
4095
4095
|
class: ["grow border-b-2 border-grayscale-400", { hidden: e.type === "pill" || e.useTrailingLine === !1 || e.type === "segmented" }]
|
|
4096
4096
|
})
|
|
4097
4097
|
});
|
|
4098
|
-
|
|
4098
|
+
m("WANGS-INPUT-OTP", {
|
|
4099
4099
|
root: {
|
|
4100
4100
|
class: [
|
|
4101
4101
|
// Alignment
|
|
@@ -4314,9 +4314,9 @@ const l = class l {
|
|
|
4314
4314
|
}
|
|
4315
4315
|
};
|
|
4316
4316
|
b(l, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
|
|
4317
|
-
let
|
|
4318
|
-
new
|
|
4319
|
-
const oe =
|
|
4317
|
+
let x = l;
|
|
4318
|
+
new x();
|
|
4319
|
+
const oe = m("WANGS-TAB-MENU", {
|
|
4320
4320
|
root: {
|
|
4321
4321
|
class: "overflow-x-auto",
|
|
4322
4322
|
style: "scrollbar-width: none"
|
|
@@ -4422,7 +4422,7 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
4422
4422
|
// Shape
|
|
4423
4423
|
"rounded",
|
|
4424
4424
|
"appearance-none",
|
|
4425
|
-
...
|
|
4425
|
+
...D,
|
|
4426
4426
|
{
|
|
4427
4427
|
"!ring-danger-500": e.invalidInput
|
|
4428
4428
|
},
|
|
@@ -4700,7 +4700,7 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
4700
4700
|
"break-words"
|
|
4701
4701
|
]
|
|
4702
4702
|
}
|
|
4703
|
-
},
|
|
4703
|
+
}, me = {
|
|
4704
4704
|
root: {
|
|
4705
4705
|
class: [
|
|
4706
4706
|
"relative",
|
|
@@ -4955,7 +4955,7 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
4955
4955
|
}
|
|
4956
4956
|
]
|
|
4957
4957
|
})
|
|
4958
|
-
},
|
|
4958
|
+
}, be = {
|
|
4959
4959
|
root: ({ props: e, state: t }) => ({
|
|
4960
4960
|
class: [
|
|
4961
4961
|
// Display and Position
|
|
@@ -5566,7 +5566,7 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
5566
5566
|
animation: {
|
|
5567
5567
|
class: ["w-[700px] h-auto"]
|
|
5568
5568
|
}
|
|
5569
|
-
},
|
|
5569
|
+
}, Ae = {
|
|
5570
5570
|
root: {
|
|
5571
5571
|
class: "flex items-center gap-1"
|
|
5572
5572
|
},
|
|
@@ -5600,23 +5600,77 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
5600
5600
|
class: "flex flex-col gap-0.5 items-center justify-center"
|
|
5601
5601
|
}
|
|
5602
5602
|
}
|
|
5603
|
-
},
|
|
5604
|
-
|
|
5603
|
+
}, _e = m("WANGS-INPUT-OTP", {
|
|
5604
|
+
root: {
|
|
5605
|
+
class: [
|
|
5606
|
+
// Alignment
|
|
5607
|
+
"flex items-center",
|
|
5608
|
+
"gap-1.5",
|
|
5609
|
+
"w-max"
|
|
5610
|
+
]
|
|
5611
|
+
},
|
|
5612
|
+
input: ({ props: e, context: t, parent: a }) => ({
|
|
5613
|
+
class: [
|
|
5614
|
+
// Font
|
|
5615
|
+
"text-[14px] leading-none font-medium",
|
|
5616
|
+
// Flex & Alignment
|
|
5617
|
+
{ "flex-1 w-[1%]": a.tagName == "WANGS-INPUT-GROUP" },
|
|
5618
|
+
"text-center",
|
|
5619
|
+
// Spacing
|
|
5620
|
+
"m-0",
|
|
5621
|
+
// Size
|
|
5622
|
+
"w-[42px] h-[42px]",
|
|
5623
|
+
// Shape
|
|
5624
|
+
{ "rounded-md": a.tagName !== "WANGS-INPUT-GROUP" },
|
|
5625
|
+
{
|
|
5626
|
+
"first:rounded-l-md rounded-none last:rounded-r-md": a.tagName == "WANGS-INPUT-GROUP"
|
|
5627
|
+
},
|
|
5628
|
+
{
|
|
5629
|
+
"border-0 border-y border-l last:border-r": a.tagName == "WANGS-INPUT-GROUP"
|
|
5630
|
+
},
|
|
5631
|
+
// Colors
|
|
5632
|
+
"text-general-800 dark:text-general-800",
|
|
5633
|
+
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
5634
|
+
"bg-white dark:bg-white",
|
|
5635
|
+
{
|
|
5636
|
+
"ring-1": navigator.userAgent.includes("Firefox"),
|
|
5637
|
+
"ring-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
5638
|
+
},
|
|
5639
|
+
{ "ring-general-200 dark:ring-general-200": !e.invalid },
|
|
5640
|
+
// Invalid State
|
|
5641
|
+
{ "ring-danger-500 dark:ring-danger-500": e.invalid },
|
|
5642
|
+
// States
|
|
5643
|
+
{
|
|
5644
|
+
"hover:bg-primary-50/30 hover:ring-primary-500 dark:hover:ring-primary-400": !t.disabled && !e.invalid,
|
|
5645
|
+
"focus:bg-primary-50/30 focus:ring-primary-500 dark:focus:ring-primary-400": !t.disabled && !e.invalid,
|
|
5646
|
+
"focus:outline-none focus:outline-offset-0": !t.disabled,
|
|
5647
|
+
"opacity-60 select-none pointer-events-none cursor-default": t.disabled
|
|
5648
|
+
},
|
|
5649
|
+
// Filled State *for FloatLabel
|
|
5650
|
+
{ filled: a.tagName == "WANGS-FLOAT-LABEL" && t.filled },
|
|
5651
|
+
// Misc
|
|
5652
|
+
"appearance-none",
|
|
5653
|
+
"transition-colors duration-200"
|
|
5654
|
+
]
|
|
5655
|
+
})
|
|
5656
|
+
}), Ne = {
|
|
5657
|
+
badge: N,
|
|
5605
5658
|
ripple: le,
|
|
5606
5659
|
tooltip: fe
|
|
5607
5660
|
}, Te = {
|
|
5608
5661
|
global: H,
|
|
5609
|
-
directives:
|
|
5662
|
+
directives: Ne,
|
|
5610
5663
|
// Forms
|
|
5611
|
-
form:
|
|
5664
|
+
form: W,
|
|
5612
5665
|
filtercontainer: je,
|
|
5613
|
-
dropdown:
|
|
5666
|
+
dropdown: M,
|
|
5614
5667
|
inputnumber: Q,
|
|
5615
5668
|
inputphonenumber: X,
|
|
5616
5669
|
inputcurrency: pe,
|
|
5617
5670
|
inputtext: j,
|
|
5618
5671
|
inputbadge: q,
|
|
5619
|
-
|
|
5672
|
+
inputotp: _e,
|
|
5673
|
+
calendar: U,
|
|
5620
5674
|
checkbox: c,
|
|
5621
5675
|
buttonradio: ie,
|
|
5622
5676
|
multiselect: n,
|
|
@@ -5624,7 +5678,7 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
5624
5678
|
toggleswitch: u,
|
|
5625
5679
|
inputgroup: J,
|
|
5626
5680
|
inputgroupaddon: Z,
|
|
5627
|
-
treeselect:
|
|
5681
|
+
treeselect: be,
|
|
5628
5682
|
tristatecheckbox: xe,
|
|
5629
5683
|
textarea: de,
|
|
5630
5684
|
password: ne,
|
|
@@ -5632,22 +5686,22 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
5632
5686
|
fileupload: ke,
|
|
5633
5687
|
fieldwrapper: Ce,
|
|
5634
5688
|
// Buttons
|
|
5635
|
-
button:
|
|
5636
|
-
buttondownload:
|
|
5689
|
+
button: S,
|
|
5690
|
+
buttondownload: T,
|
|
5637
5691
|
buttonbulkaction: ve,
|
|
5638
|
-
buttonsearch:
|
|
5639
|
-
buttonsplit:
|
|
5692
|
+
buttonsearch: I,
|
|
5693
|
+
buttonsplit: F,
|
|
5640
5694
|
buttonfilter: P,
|
|
5641
5695
|
// Data
|
|
5642
5696
|
paginator: re,
|
|
5643
|
-
datatable:
|
|
5697
|
+
datatable: O,
|
|
5644
5698
|
customcolumn: L,
|
|
5645
|
-
tree:
|
|
5699
|
+
tree: me,
|
|
5646
5700
|
timeline: ce,
|
|
5647
|
-
changelog:
|
|
5701
|
+
changelog: G,
|
|
5648
5702
|
// Panels
|
|
5649
|
-
accordion:
|
|
5650
|
-
card:
|
|
5703
|
+
accordion: _,
|
|
5704
|
+
card: V,
|
|
5651
5705
|
// Menu
|
|
5652
5706
|
menu: ee,
|
|
5653
5707
|
steps: se,
|
|
@@ -5656,21 +5710,21 @@ const oe = x("WANGS-TAB-MENU", {
|
|
|
5656
5710
|
// Overlays
|
|
5657
5711
|
dialog: C,
|
|
5658
5712
|
dialogconfirm: R,
|
|
5659
|
-
dialogform:
|
|
5713
|
+
dialogform: $,
|
|
5660
5714
|
overlaypanel: ae,
|
|
5661
5715
|
// Messages
|
|
5662
5716
|
message: te,
|
|
5663
5717
|
inlinemessage: Y,
|
|
5664
5718
|
toast: ue,
|
|
5665
5719
|
// Media
|
|
5666
|
-
carousel:
|
|
5720
|
+
carousel: E,
|
|
5667
5721
|
// Misc
|
|
5668
5722
|
badge: d,
|
|
5669
5723
|
badgegroup: ye,
|
|
5670
5724
|
image: K,
|
|
5671
5725
|
loading: ze,
|
|
5672
|
-
codesnippet:
|
|
5673
|
-
username:
|
|
5726
|
+
codesnippet: B,
|
|
5727
|
+
username: Ae
|
|
5674
5728
|
};
|
|
5675
5729
|
export {
|
|
5676
5730
|
Te as default
|
package/globalsettings/index.js
CHANGED
|
@@ -59,6 +59,7 @@ var filtercontainer_1 = require("./filtercontainer");
|
|
|
59
59
|
var toggleswitch_1 = require("./toggleswitch");
|
|
60
60
|
var loading_1 = require("./loading");
|
|
61
61
|
var username_1 = require("./username");
|
|
62
|
+
var inputotp_1 = require("./inputotp");
|
|
62
63
|
var directives = {
|
|
63
64
|
badge: index_js_3.default,
|
|
64
65
|
ripple: index_js_35.default,
|
|
@@ -76,6 +77,7 @@ var globalsettings = {
|
|
|
76
77
|
inputcurrency: inputcurrency_1.default,
|
|
77
78
|
inputtext: index_js_27.default,
|
|
78
79
|
inputbadge: index_js_22.default,
|
|
80
|
+
inputotp: inputotp_1.default,
|
|
79
81
|
calendar: index_1.default,
|
|
80
82
|
checkbox: index_js_12.default,
|
|
81
83
|
buttonradio: index_js_34.default,
|