@fewangsit/wangsvue-presets 1.0.104-alpha.6 → 1.0.104-alpha.8
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/dropdown/index.d.ts +0 -1
- package/fixedasset/dropdown/index.js +1 -1
- package/fixedasset/image/index.js +1 -5
- package/fixedasset/index.es.js +3 -7
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/style.css +4 -16
- package/globalsettings/dropdown/index.d.ts +0 -1
- package/globalsettings/dropdown/index.js +0 -1
- package/globalsettings/image/index.js +1 -5
- package/globalsettings/index.es.js +2 -7
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/style.css +4 -16
- package/package.json +1 -1
- package/supplyasset/dropdown/index.d.ts +0 -1
- package/supplyasset/dropdown/index.js +1 -1
- package/supplyasset/image/index.js +1 -5
- package/supplyasset/index.es.js +3 -7
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/style.css +4 -16
- package/wangsvue/dropdown/index.d.ts +0 -1
- package/wangsvue/dropdown/index.js +0 -1
- package/wangsvue/image/index.js +1 -5
- package/wangsvue/index.es.js +28 -33
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/style.css +4 -16
package/supplyasset/style.css
CHANGED
|
@@ -1554,10 +1554,6 @@
|
|
|
1554
1554
|
height: 10px;
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
.h-\[125px\]{
|
|
1558
|
-
height: 125px;
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
1557
|
.h-\[13px\]{
|
|
1562
1558
|
height: 13px;
|
|
1563
1559
|
}
|
|
@@ -1598,10 +1594,6 @@
|
|
|
1598
1594
|
height: 6px;
|
|
1599
1595
|
}
|
|
1600
1596
|
|
|
1601
|
-
.h-\[80px\]{
|
|
1602
|
-
height: 80px;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
1597
|
.h-\[calc\(100\%\+12px\)\]{
|
|
1606
1598
|
height: calc(100% + 12px);
|
|
1607
1599
|
}
|
|
@@ -1808,10 +1800,6 @@
|
|
|
1808
1800
|
width: 10px;
|
|
1809
1801
|
}
|
|
1810
1802
|
|
|
1811
|
-
.w-\[125px\]{
|
|
1812
|
-
width: 125px;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
1803
|
.w-\[13px\]{
|
|
1816
1804
|
width: 13px;
|
|
1817
1805
|
}
|
|
@@ -1892,10 +1880,6 @@
|
|
|
1892
1880
|
width: 800px;
|
|
1893
1881
|
}
|
|
1894
1882
|
|
|
1895
|
-
.w-\[80px\]{
|
|
1896
|
-
width: 80px;
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
1883
|
.w-\[calc\(100\%\+12px\)\]{
|
|
1900
1884
|
width: calc(100% + 12px);
|
|
1901
1885
|
}
|
|
@@ -2547,6 +2531,10 @@
|
|
|
2547
2531
|
overflow: hidden;
|
|
2548
2532
|
}
|
|
2549
2533
|
|
|
2534
|
+
.overflow-clip{
|
|
2535
|
+
overflow: clip;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2550
2538
|
.overflow-visible{
|
|
2551
2539
|
overflow: visible;
|
|
2552
2540
|
}
|
package/wangsvue/image/index.js
CHANGED
|
@@ -7,14 +7,10 @@ exports.default = {
|
|
|
7
7
|
class: [
|
|
8
8
|
'relative inline-block',
|
|
9
9
|
'shrink-0',
|
|
10
|
+
'w-max h-max',
|
|
10
11
|
{ 'rounded-full': props.rounded },
|
|
11
12
|
{ 'rounded-lg': !props.rounded },
|
|
12
13
|
props.class,
|
|
13
|
-
{
|
|
14
|
-
'w-[30px] h-[30px]': props.size === 'small',
|
|
15
|
-
'w-[80px] h-[80px]': props.size === 'medium',
|
|
16
|
-
'w-[125px] h-[125px]': !props.size && !props.width,
|
|
17
|
-
},
|
|
18
14
|
],
|
|
19
15
|
style: !props.size && props.width
|
|
20
16
|
? {
|
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
|
]
|
|
@@ -3440,8 +3440,7 @@ const _ = {
|
|
|
3440
3440
|
// Misc
|
|
3441
3441
|
"overflow-auto",
|
|
3442
3442
|
{
|
|
3443
|
-
"rounded-lg": !e.filter
|
|
3444
|
-
"rounded-br-lg rounded-bl-lg": e.filter
|
|
3443
|
+
"rounded-lg": !e.filter
|
|
3445
3444
|
}
|
|
3446
3445
|
]
|
|
3447
3446
|
}),
|
|
@@ -3647,7 +3646,7 @@ const _ = {
|
|
|
3647
3646
|
optionaltext: {
|
|
3648
3647
|
class: "text-grayscale-700 text-[10px] font-normal leading-4"
|
|
3649
3648
|
}
|
|
3650
|
-
},
|
|
3649
|
+
}, oe = {
|
|
3651
3650
|
// :class="['ts-form', { 'sticky-buttons': props.stickyButtons }]"
|
|
3652
3651
|
root: () => ({
|
|
3653
3652
|
class: [
|
|
@@ -3691,7 +3690,7 @@ const _ = {
|
|
|
3691
3690
|
"validator-message": {
|
|
3692
3691
|
class: ["static w-max transform-none"]
|
|
3693
3692
|
}
|
|
3694
|
-
},
|
|
3693
|
+
}, ne = [
|
|
3695
3694
|
{
|
|
3696
3695
|
"ring-1 p-[1px]": navigator.userAgent.includes("Firefox"),
|
|
3697
3696
|
"ring-[0.5px] p-[0.5px]": !navigator.userAgent.includes("Firefox")
|
|
@@ -3780,14 +3779,10 @@ const _ = {
|
|
|
3780
3779
|
class: [
|
|
3781
3780
|
"relative inline-block",
|
|
3782
3781
|
"shrink-0",
|
|
3782
|
+
"w-max h-max",
|
|
3783
3783
|
{ "rounded-full": e.rounded },
|
|
3784
3784
|
{ "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
|
-
}
|
|
3785
|
+
e.class
|
|
3791
3786
|
],
|
|
3792
3787
|
style: !e.size && e.width ? {
|
|
3793
3788
|
width: `${e.width}px`,
|
|
@@ -3945,14 +3940,14 @@ const _ = {
|
|
|
3945
3940
|
}
|
|
3946
3941
|
}, z = {
|
|
3947
3942
|
root: ({ props: e, context: t, parent: r }) => {
|
|
3948
|
-
var s,
|
|
3943
|
+
var s, o;
|
|
3949
3944
|
return {
|
|
3950
3945
|
class: [
|
|
3951
3946
|
"px-3 py-1 w-full bg-transparent",
|
|
3952
3947
|
// Size
|
|
3953
3948
|
"h-full",
|
|
3954
3949
|
{
|
|
3955
|
-
"max-h-[43px]": (
|
|
3950
|
+
"max-h-[43px]": (o = (s = r.instance) == null ? void 0 : s.placeholder) == null ? void 0 : o.includes("password")
|
|
3956
3951
|
},
|
|
3957
3952
|
// Font
|
|
3958
3953
|
"text-grayscale-900 text-xs font-normal",
|
|
@@ -8089,15 +8084,15 @@ p("WANGS-INPUT-OTP", {
|
|
|
8089
8084
|
]
|
|
8090
8085
|
})
|
|
8091
8086
|
});
|
|
8092
|
-
const
|
|
8087
|
+
const n = class n {
|
|
8093
8088
|
constructor() {
|
|
8094
8089
|
/**
|
|
8095
8090
|
* Stores base URLs associated with different app identifiers.
|
|
8096
8091
|
*/
|
|
8097
8092
|
g(this, "_baseUrl", "");
|
|
8098
|
-
if (globalThis[
|
|
8099
|
-
return globalThis[
|
|
8100
|
-
globalThis[
|
|
8093
|
+
if (globalThis[n.SINGLETON_KEY])
|
|
8094
|
+
return globalThis[n.SINGLETON_KEY];
|
|
8095
|
+
globalThis[n.SINGLETON_KEY] = this;
|
|
8101
8096
|
}
|
|
8102
8097
|
/**
|
|
8103
8098
|
* Registers a base URL for a specific app.
|
|
@@ -8170,7 +8165,7 @@ const o = class o {
|
|
|
8170
8165
|
*/
|
|
8171
8166
|
push(t, r = {}, s = "") {
|
|
8172
8167
|
var l;
|
|
8173
|
-
const
|
|
8168
|
+
const o = {
|
|
8174
8169
|
...r,
|
|
8175
8170
|
...history.state ?? {},
|
|
8176
8171
|
current: t,
|
|
@@ -8179,7 +8174,7 @@ const o = class o {
|
|
|
8179
8174
|
replaced: !1,
|
|
8180
8175
|
position: history.length + 1
|
|
8181
8176
|
};
|
|
8182
|
-
window.history.pushState(
|
|
8177
|
+
window.history.pushState(o, s, t);
|
|
8183
8178
|
}
|
|
8184
8179
|
/**
|
|
8185
8180
|
* Replaces the current entry in the browser's history stack.
|
|
@@ -8192,14 +8187,14 @@ const o = class o {
|
|
|
8192
8187
|
* Router.replace('/login', { reason: 'session expired' });
|
|
8193
8188
|
*/
|
|
8194
8189
|
replace(t, r = {}, s = "") {
|
|
8195
|
-
const
|
|
8190
|
+
const o = {
|
|
8196
8191
|
...r,
|
|
8197
8192
|
...history.state ?? {},
|
|
8198
8193
|
forward: void 0,
|
|
8199
8194
|
current: t,
|
|
8200
8195
|
replaced: !0
|
|
8201
8196
|
};
|
|
8202
|
-
window.history.replaceState(
|
|
8197
|
+
window.history.replaceState(o, s, t);
|
|
8203
8198
|
}
|
|
8204
8199
|
/**
|
|
8205
8200
|
* Dispatches a custom event before navigation occurs.
|
|
@@ -8244,17 +8239,17 @@ const o = class o {
|
|
|
8244
8239
|
* @example
|
|
8245
8240
|
* router.navigateToRoute('/about', 'push', { some: 'state' }, '',);
|
|
8246
8241
|
*/
|
|
8247
|
-
navigateToRoute(t, r = "push", s = history.state,
|
|
8242
|
+
navigateToRoute(t, r = "push", s = history.state, o = "") {
|
|
8248
8243
|
if (!t)
|
|
8249
8244
|
return;
|
|
8250
8245
|
const l = typeof t == "string" ? t : t.toString(), a = this.normalizePath(l);
|
|
8251
8246
|
if (a === location.pathname)
|
|
8252
8247
|
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,
|
|
8248
|
+
this.dispatchBeforeNavigationEvent(a, r, s), r === "push" ? this.push(a, s, o) : this.replace(a, s, o), this.dispatchNavigationEvent(a, r, s);
|
|
8254
8249
|
}
|
|
8255
8250
|
};
|
|
8256
|
-
g(
|
|
8257
|
-
let m =
|
|
8251
|
+
g(n, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
|
|
8252
|
+
let m = n;
|
|
8258
8253
|
new m();
|
|
8259
8254
|
const Oe = p("WANGS-TAB-MENU", {
|
|
8260
8255
|
root: {
|
|
@@ -8566,7 +8561,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
8566
8561
|
// Shape
|
|
8567
8562
|
"rounded",
|
|
8568
8563
|
"appearance-none",
|
|
8569
|
-
...
|
|
8564
|
+
...ne,
|
|
8570
8565
|
{
|
|
8571
8566
|
"!ring-danger-500": e.invalidInput
|
|
8572
8567
|
},
|
|
@@ -8692,7 +8687,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
8692
8687
|
return t.length ? t.every((r) => {
|
|
8693
8688
|
const s = e[r];
|
|
8694
8689
|
return typeof s == "object" ? Array.isArray(s) ? !s.length || s.every(
|
|
8695
|
-
(
|
|
8690
|
+
(o) => typeof o == "object" ? b(o) : o == null
|
|
8696
8691
|
) : b(s) : s == null;
|
|
8697
8692
|
}) : !0;
|
|
8698
8693
|
}, qe = {
|
|
@@ -9667,7 +9662,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9667
9662
|
class: "!p-0 !w-6 !h-6 [&_.icon]:!w-5 [&_.icon]:!h-5",
|
|
9668
9663
|
"data-wv-section": "buttonclearselection"
|
|
9669
9664
|
}
|
|
9670
|
-
},
|
|
9665
|
+
}, ot = {
|
|
9671
9666
|
root: {
|
|
9672
9667
|
class: "flex flex-nowrap items-center gap-1",
|
|
9673
9668
|
"data-wv-name": "badgegroup",
|
|
@@ -9692,7 +9687,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9692
9687
|
}
|
|
9693
9688
|
// All section in Dialog Preset can be added here
|
|
9694
9689
|
}
|
|
9695
|
-
},
|
|
9690
|
+
}, nt = {
|
|
9696
9691
|
root: {
|
|
9697
9692
|
class: [
|
|
9698
9693
|
"flex gap-[5px] items-center text-left h-[21px]",
|
|
@@ -9833,7 +9828,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9833
9828
|
global: ae,
|
|
9834
9829
|
directives: gt,
|
|
9835
9830
|
// Forms
|
|
9836
|
-
form:
|
|
9831
|
+
form: oe,
|
|
9837
9832
|
filtercontainer: dt,
|
|
9838
9833
|
autocomplete: T,
|
|
9839
9834
|
dropdown: re,
|
|
@@ -9901,7 +9896,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9901
9896
|
menu: ye,
|
|
9902
9897
|
menubar: we,
|
|
9903
9898
|
steps: Me,
|
|
9904
|
-
breadcrumb:
|
|
9899
|
+
breadcrumb: nt,
|
|
9905
9900
|
tieredmenu: Ye,
|
|
9906
9901
|
panelmenu: Te,
|
|
9907
9902
|
megamenu: he,
|
|
@@ -9922,7 +9917,7 @@ const Oe = p("WANGS-TAB-MENU", {
|
|
|
9922
9917
|
carousel: U,
|
|
9923
9918
|
// Misc
|
|
9924
9919
|
badge: c,
|
|
9925
|
-
badgegroup:
|
|
9920
|
+
badgegroup: ot,
|
|
9926
9921
|
avatar: I,
|
|
9927
9922
|
avatargroup: S,
|
|
9928
9923
|
tag: De,
|