@fewangsit/wangsvue-presets 1.0.104-alpha.5 → 1.0.104-alpha.7
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/image/index.js +1 -5
- package/fixedasset/index.es.js +5 -9
- package/fixedasset/index.system.js +1 -1
- package/fixedasset/inputcurrency/index.js +2 -2
- package/fixedasset/inputphonenumber/index.js +2 -2
- package/fixedasset/style.css +20 -26
- package/globalsettings/image/index.js +1 -5
- package/globalsettings/index.es.js +5 -9
- package/globalsettings/index.system.js +1 -1
- package/globalsettings/inputcurrency/index.js +2 -2
- package/globalsettings/inputphonenumber/index.js +2 -2
- package/globalsettings/style.css +20 -26
- package/package.json +1 -1
- package/supplyasset/image/index.js +1 -5
- package/supplyasset/index.es.js +5 -9
- package/supplyasset/index.system.js +1 -1
- package/supplyasset/inputcurrency/index.js +2 -2
- package/supplyasset/inputphonenumber/index.js +2 -2
- package/supplyasset/style.css +20 -26
- package/wangsvue/image/index.js +1 -5
- package/wangsvue/index.es.js +31 -35
- package/wangsvue/index.system.js +1 -1
- package/wangsvue/inputcurrency/index.js +2 -2
- package/wangsvue/inputphonenumber/index.js +2 -2
- package/wangsvue/style.css +20 -26
package/wangsvue/index.es.js
CHANGED
|
@@ -294,7 +294,7 @@ const _ = {
|
|
|
294
294
|
}
|
|
295
295
|
}, I = {
|
|
296
296
|
root: ({ props: e, parent: t }) => {
|
|
297
|
-
var r, s,
|
|
297
|
+
var r, s, o;
|
|
298
298
|
return {
|
|
299
299
|
class: [
|
|
300
300
|
// Font
|
|
@@ -323,7 +323,7 @@ const _ = {
|
|
|
323
323
|
// Colors
|
|
324
324
|
"bg-general-300",
|
|
325
325
|
{
|
|
326
|
-
"border-gray-100": ((
|
|
326
|
+
"border-gray-100": ((o = t.instance.$style) == null ? void 0 : o.name) == "avatargroup"
|
|
327
327
|
},
|
|
328
328
|
"text-white"
|
|
329
329
|
]
|
|
@@ -3647,7 +3647,7 @@ const _ = {
|
|
|
3647
3647
|
optionaltext: {
|
|
3648
3648
|
class: "text-grayscale-700 text-[10px] font-normal leading-4"
|
|
3649
3649
|
}
|
|
3650
|
-
},
|
|
3650
|
+
}, oe = {
|
|
3651
3651
|
// :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
|
|
3652
3652
|
root: () => ({
|
|
3653
3653
|
class: [
|
|
@@ -3691,7 +3691,7 @@ const _ = {
|
|
|
3691
3691
|
"validator-message": {
|
|
3692
3692
|
class: ["static w-max transform-none"]
|
|
3693
3693
|
}
|
|
3694
|
-
},
|
|
3694
|
+
}, ne = [
|
|
3695
3695
|
{
|
|
3696
3696
|
"ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
|
|
3697
3697
|
"ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
@@ -3780,14 +3780,10 @@ const _ = {
|
|
|
3780
3780
|
class: [
|
|
3781
3781
|
"relative inline-block",
|
|
3782
3782
|
"shrink-0",
|
|
3783
|
+
"w-max h-max",
|
|
3783
3784
|
{ "rounded-full": e.rounded },
|
|
3784
3785
|
{ "rounded-lg": !e.rounded },
|
|
3785
|
-
e.class
|
|
3786
|
-
{
|
|
3787
|
-
"w-[30px] h-[30px]": e.size === "small",
|
|
3788
|
-
"w-[80px] h-[80px]": e.size === "medium",
|
|
3789
|
-
"w-[125px] h-[125px]": !e.size && !e.width
|
|
3790
|
-
}
|
|
3786
|
+
e.class
|
|
3791
3787
|
],
|
|
3792
3788
|
style: !e.size && e.width ? {
|
|
3793
3789
|
width: `${e.width}px`,
|
|
@@ -3945,14 +3941,14 @@ const _ = {
|
|
|
3945
3941
|
}
|
|
3946
3942
|
}, z = {
|
|
3947
3943
|
root: ({ props: e, context: t, parent: r }) => {
|
|
3948
|
-
var s,
|
|
3944
|
+
var s, o;
|
|
3949
3945
|
return {
|
|
3950
3946
|
class: [
|
|
3951
3947
|
"px-3 py-1 w-full bg-transparent",
|
|
3952
3948
|
// Size
|
|
3953
3949
|
"h-full",
|
|
3954
3950
|
{
|
|
3955
|
-
"max-h-[43px]": (
|
|
3951
|
+
"max-h-[43px]": (o = (s = r.instance) == null ? void 0 : s.placeholder) == null ? void 0 : o.includes("password")
|
|
3956
3952
|
},
|
|
3957
3953
|
// Font
|
|
3958
3954
|
"text-grayscale-900 text-xs font-normal",
|
|
@@ -4217,14 +4213,14 @@ const _ = {
|
|
|
4217
4213
|
], pe = {
|
|
4218
4214
|
dialcode: {
|
|
4219
4215
|
root: (e) => ({
|
|
4220
|
-
class: [...f(e), "rounded-l rounded-r-none"]
|
|
4216
|
+
class: [...f(e), "!rounded-l !rounded-r-none"]
|
|
4221
4217
|
}),
|
|
4222
4218
|
dropdownicon: ({ state: e }) => i.dropdownicon({ state: e })
|
|
4223
4219
|
},
|
|
4224
4220
|
input: (e) => ({
|
|
4225
4221
|
class: [
|
|
4226
4222
|
...f(e),
|
|
4227
|
-
"rounded-r rounded-l-none -ml-[1px]",
|
|
4223
|
+
"!rounded-r !rounded-l-none -ml-[1px]",
|
|
4228
4224
|
"focus:bg-none",
|
|
4229
4225
|
"focus:ring-primary-500",
|
|
4230
4226
|
"focus:ring-1"
|
|
@@ -8089,15 +8085,15 @@ p("WANGS-INPUT-OTP", {
|
|
|
8089
8085
|
]
|
|
8090
8086
|
})
|
|
8091
8087
|
});
|
|
8092
|
-
const
|
|
8088
|
+
const n = class n {
|
|
8093
8089
|
constructor() {
|
|
8094
8090
|
/**
|
|
8095
8091
|
* Stores base URLs associated with different app identifiers.
|
|
8096
8092
|
*/
|
|
8097
8093
|
g(this, "_baseUrl", "");
|
|
8098
|
-
if (globalThis[
|
|
8099
|
-
return globalThis[
|
|
8100
|
-
globalThis[
|
|
8094
|
+
if (globalThis[n.SINGLETON_KEY])
|
|
8095
|
+
return globalThis[n.SINGLETON_KEY];
|
|
8096
|
+
globalThis[n.SINGLETON_KEY] = this;
|
|
8101
8097
|
}
|
|
8102
8098
|
/**
|
|
8103
8099
|
* Registers a base URL for a specific app.
|
|
@@ -8170,7 +8166,7 @@ const o = class o {
|
|
|
8170
8166
|
*/
|
|
8171
8167
|
push(t, r = {}, s = "") {
|
|
8172
8168
|
var l;
|
|
8173
|
-
const
|
|
8169
|
+
const o = {
|
|
8174
8170
|
...r,
|
|
8175
8171
|
...history.state ?? {},
|
|
8176
8172
|
current: t,
|
|
@@ -8179,7 +8175,7 @@ const o = class o {
|
|
|
8179
8175
|
replaced: !1,
|
|
8180
8176
|
position: history.length + 1
|
|
8181
8177
|
};
|
|
8182
|
-
window.history.pushState(
|
|
8178
|
+
window.history.pushState(o, s, t);
|
|
8183
8179
|
}
|
|
8184
8180
|
/**
|
|
8185
8181
|
* Replaces the current entry in the browser's history stack.
|
|
@@ -8192,14 +8188,14 @@ const o = class o {
|
|
|
8192
8188
|
* Router.replace('/login', { reason: 'session expired' });
|
|
8193
8189
|
*/
|
|
8194
8190
|
replace(t, r = {}, s = "") {
|
|
8195
|
-
const
|
|
8191
|
+
const o = {
|
|
8196
8192
|
...r,
|
|
8197
8193
|
...history.state ?? {},
|
|
8198
8194
|
forward: void 0,
|
|
8199
8195
|
current: t,
|
|
8200
8196
|
replaced: !0
|
|
8201
8197
|
};
|
|
8202
|
-
window.history.replaceState(
|
|
8198
|
+
window.history.replaceState(o, s, t);
|
|
8203
8199
|
}
|
|
8204
8200
|
/**
|
|
8205
8201
|
* Dispatches a custom event before navigation occurs.
|
|
@@ -8244,17 +8240,17 @@ const o = class o {
|
|
|
8244
8240
|
* @example
|
|
8245
8241
|
* router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
|
|
8246
8242
|
*/
|
|
8247
|
-
navigateToRoute(t, r = "push", s = history.state,
|
|
8243
|
+
navigateToRoute(t, r = "push", s = history.state, o = "") {
|
|
8248
8244
|
if (!t)
|
|
8249
8245
|
return;
|
|
8250
8246
|
const l = typeof t == "string" ? t : t.toString(), a = this.normalizePath(l);
|
|
8251
8247
|
if (a === location.pathname)
|
|
8252
8248
|
return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
|
|
8253
|
-
this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s,
|
|
8249
|
+
this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s, o) : this.replace(a, s, o), this.dispatchNavigationEvent(a, r, s);
|
|
8254
8250
|
}
|
|
8255
8251
|
};
|
|
8256
|
-
g(
|
|
8257
|
-
let m =
|
|
8252
|
+
g(n, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
|
|
8253
|
+
let m = n;
|
|
8258
8254
|
new m();
|
|
8259
8255
|
const Oe = p("WANGS-TAB-MENU", {
|
|
8260
8256
|
root: {
|
|
@@ -8566,7 +8562,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
8566
8562
|
// Shape
|
|
8567
8563
|
"rounded",
|
|
8568
8564
|
"appearance-none",
|
|
8569
|
-
...
|
|
8565
|
+
...ne,
|
|
8570
8566
|
{
|
|
8571
8567
|
"!ring-danger-500": e.invalidInput
|
|
8572
8568
|
},
|
|
@@ -8692,7 +8688,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
8692
8688
|
return t.length ? t.every((r) => {
|
|
8693
8689
|
const s = e[r];
|
|
8694
8690
|
return typeof s == "object" ? Array.isArray(s) ? !s.length || s.every(
|
|
8695
|
-
(
|
|
8691
|
+
(o) => typeof o == "object" ? b(o) : o == null
|
|
8696
8692
|
) : b(s) : s == null;
|
|
8697
8693
|
}) : !0;
|
|
8698
8694
|
}, qe = {
|
|
@@ -9667,7 +9663,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9667
9663
|
class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
|
|
9668
9664
|
"data-wv-section": "buttonclearselection"
|
|
9669
9665
|
}
|
|
9670
|
-
},
|
|
9666
|
+
}, ot = {
|
|
9671
9667
|
root: {
|
|
9672
9668
|
class: "flex flex-nowrap items-center gap-1",
|
|
9673
9669
|
"data-wv-name": "badgegroup",
|
|
@@ -9692,7 +9688,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9692
9688
|
}
|
|
9693
9689
|
// All section in Dialog Preset can be added here
|
|
9694
9690
|
}
|
|
9695
|
-
},
|
|
9691
|
+
}, nt = {
|
|
9696
9692
|
root: {
|
|
9697
9693
|
class: [
|
|
9698
9694
|
"flex gap-[5px] items-center text-left h-[21px]",
|
|
@@ -9719,11 +9715,11 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9719
9715
|
}
|
|
9720
9716
|
}, at = {
|
|
9721
9717
|
currency: (e) => ({
|
|
9722
|
-
class: [...f(e), "rounded-l rounded-r-none h-[30px]"],
|
|
9718
|
+
class: [...f(e), "!rounded-l !rounded-r-none h-[30px]"],
|
|
9723
9719
|
"data-wv-section": "currency"
|
|
9724
9720
|
}),
|
|
9725
9721
|
value: (e) => ({
|
|
9726
|
-
class: [...f(e), "rounded-r rounded-l-none -ml-[1px]"],
|
|
9722
|
+
class: [...f(e), "!rounded-r !rounded-l-none -ml-[1px]"],
|
|
9727
9723
|
"data-wv-section": "value"
|
|
9728
9724
|
})
|
|
9729
9725
|
}, lt = {
|
|
@@ -9833,7 +9829,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9833
9829
|
global: ae,
|
|
9834
9830
|
directives: gt,
|
|
9835
9831
|
// Forms
|
|
9836
|
-
form:
|
|
9832
|
+
form: oe,
|
|
9837
9833
|
filtercontainer: dt,
|
|
9838
9834
|
autocomplete: T,
|
|
9839
9835
|
dropdown: re,
|
|
@@ -9901,7 +9897,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9901
9897
|
menu: ye,
|
|
9902
9898
|
menubar: we,
|
|
9903
9899
|
steps: Me,
|
|
9904
|
-
breadcrumb:
|
|
9900
|
+
breadcrumb: nt,
|
|
9905
9901
|
tieredmenu: Ye,
|
|
9906
9902
|
panelmenu: Te,
|
|
9907
9903
|
megamenu: he,
|
|
@@ -9922,7 +9918,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9922
9918
|
carousel: U,
|
|
9923
9919
|
// Misc
|
|
9924
9920
|
badge: c,
|
|
9925
|
-
badgegroup:
|
|
9921
|
+
badgegroup: ot,
|
|
9926
9922
|
avatar: I,
|
|
9927
9923
|
avatargroup: S,
|
|
9928
9924
|
tag: De,
|