@snolui/vue 1.0.3 → 1.0.4
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/dist/components/{checkbox/Checkbox.vue.d.ts → checkbox-group/CheckboxGroup.vue.d.ts} +2 -2
- package/dist/components/{checkbox → checkbox-group}/type.d.ts +4 -5
- package/dist/components/index.d.ts +1 -1
- package/dist/components/radio-group/RadioGroup.vue.d.ts +1 -0
- package/dist/components/radio-group/type.d.ts +1 -0
- package/dist/config/local.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/plugin.d.ts +6 -0
- package/dist/snol-ui.css +1 -1
- package/dist/snol-ui.js +64 -37
- package/dist/snol-ui.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/snol-ui.js
CHANGED
|
@@ -26457,10 +26457,10 @@ var By = { install: function(e) {
|
|
|
26457
26457
|
setup(e) {
|
|
26458
26458
|
return (e, t) => (S(), c("div"));
|
|
26459
26459
|
}
|
|
26460
|
-
}), Rb = ["for"],
|
|
26460
|
+
}), Rb = { class: "snol-radio" }, zb = ["for"], Bb = {
|
|
26461
26461
|
key: 0,
|
|
26462
26462
|
class: "block mt-2 text-gray-500"
|
|
26463
|
-
},
|
|
26463
|
+
}, Vb = /* @__PURE__ */ p({
|
|
26464
26464
|
name: "SnolRadioGroup",
|
|
26465
26465
|
__name: "RadioGroup",
|
|
26466
26466
|
props: {
|
|
@@ -26474,7 +26474,8 @@ var By = { install: function(e) {
|
|
|
26474
26474
|
optionLabel: {},
|
|
26475
26475
|
optionValue: {},
|
|
26476
26476
|
isVertical: { type: Boolean },
|
|
26477
|
-
color: { default: "primary" }
|
|
26477
|
+
color: { default: "primary" },
|
|
26478
|
+
size: { default: "md" }
|
|
26478
26479
|
},
|
|
26479
26480
|
setup(e) {
|
|
26480
26481
|
let n = e, r = N(), i = a(() => ({
|
|
@@ -26485,11 +26486,23 @@ var By = { install: function(e) {
|
|
|
26485
26486
|
warning: "snol-radio-group-warning",
|
|
26486
26487
|
info: "snol-radio-group-info",
|
|
26487
26488
|
error: "snol-radio-group-error"
|
|
26488
|
-
})[n.color] || ""), o = a(() =>
|
|
26489
|
+
})[n.color] || ""), o = a(() => ({
|
|
26490
|
+
sm: "snol-radio-group-size-sm",
|
|
26491
|
+
md: "snol-radio-group-size-md",
|
|
26492
|
+
lg: "snol-radio-group-size-lg"
|
|
26493
|
+
})[n.size] || ""), u = a(() => ({
|
|
26494
|
+
sm: "snol-label-sm",
|
|
26495
|
+
md: "snol-label-md",
|
|
26496
|
+
lg: "snol-label-lg"
|
|
26497
|
+
})[n.size] || ""), p = a(() => [
|
|
26498
|
+
i.value,
|
|
26499
|
+
o.value,
|
|
26500
|
+
u.value
|
|
26501
|
+
].filter(Boolean).join(" "));
|
|
26489
26502
|
return (n, i) => {
|
|
26490
26503
|
let a = D("Message");
|
|
26491
|
-
return S(), c("div",
|
|
26492
|
-
l("label",
|
|
26504
|
+
return S(), c("div", Rb, [
|
|
26505
|
+
l("label", { class: v(u.value) }, A(e.label), 3),
|
|
26493
26506
|
f(M(kv), g({
|
|
26494
26507
|
name: e.groupName,
|
|
26495
26508
|
class: ["flex", e.isVertical ? "flex-col items-start gap-1" : "items-center gap-4 "]
|
|
@@ -26499,11 +26512,19 @@ var By = { install: function(e) {
|
|
|
26499
26512
|
key: n
|
|
26500
26513
|
}, [f(M(e_), {
|
|
26501
26514
|
inputId: `radio-${e.groupName}-${n}`,
|
|
26502
|
-
value: e.optionValue ? [e.optionValue] : t.value
|
|
26503
|
-
|
|
26515
|
+
value: e.optionValue ? [e.optionValue] : t.value,
|
|
26516
|
+
class: v(p.value)
|
|
26517
|
+
}, null, 8, [
|
|
26518
|
+
"inputId",
|
|
26519
|
+
"value",
|
|
26520
|
+
"class"
|
|
26521
|
+
]), l("label", {
|
|
26522
|
+
for: `radio-${e.groupName}-${n}`,
|
|
26523
|
+
class: v(u.value)
|
|
26524
|
+
}, A(e.optionLabel ? [e.optionLabel] : t.label), 11, zb)]))), 128))]),
|
|
26504
26525
|
_: 1
|
|
26505
26526
|
}, 16, ["name", "class"]),
|
|
26506
|
-
e.description ? (S(), c("p",
|
|
26527
|
+
e.description ? (S(), c("p", Bb, A(e.description), 1)) : s("", !0),
|
|
26507
26528
|
ie(f(a, {
|
|
26508
26529
|
severity: "error",
|
|
26509
26530
|
variant: "simple"
|
|
@@ -26511,10 +26532,10 @@ var By = { install: function(e) {
|
|
|
26511
26532
|
default: P(() => [d(A(e.errorMessage || "This field is required."), 1)]),
|
|
26512
26533
|
_: 1
|
|
26513
26534
|
}, 512), [[ne, e.invalid]])
|
|
26514
|
-
]
|
|
26535
|
+
]);
|
|
26515
26536
|
};
|
|
26516
26537
|
}
|
|
26517
|
-
}),
|
|
26538
|
+
}), Hb = {
|
|
26518
26539
|
key: 0,
|
|
26519
26540
|
class: "text-red-500"
|
|
26520
26541
|
}, Ub = ["for"], Wb = {
|
|
@@ -26522,7 +26543,7 @@ var By = { install: function(e) {
|
|
|
26522
26543
|
class: "block mt-2 text-gray-500"
|
|
26523
26544
|
}, Gb = /* @__PURE__ */ p({
|
|
26524
26545
|
name: "SnolCheckbox",
|
|
26525
|
-
__name: "
|
|
26546
|
+
__name: "CheckboxGroup",
|
|
26526
26547
|
props: {
|
|
26527
26548
|
label: {},
|
|
26528
26549
|
required: { type: Boolean },
|
|
@@ -26538,34 +26559,40 @@ var By = { install: function(e) {
|
|
|
26538
26559
|
},
|
|
26539
26560
|
setup(e) {
|
|
26540
26561
|
let n = N(), r = e, i = a(() => ({
|
|
26541
|
-
none: "snol-checkbox-radius-none",
|
|
26542
|
-
sm: "snol-checkbox-radius-sm",
|
|
26543
|
-
md: "snol-checkbox-radius-md",
|
|
26544
|
-
lg: "snol-checkbox-radius-lg",
|
|
26545
|
-
full: "snol-checkbox-radius-full"
|
|
26562
|
+
none: "snol-checkbox-group-radius-none",
|
|
26563
|
+
sm: "snol-checkbox-group-radius-sm",
|
|
26564
|
+
md: "snol-checkbox-group-radius-md",
|
|
26565
|
+
lg: "snol-checkbox-group-radius-lg",
|
|
26566
|
+
full: "snol-checkbox-group-radius-full"
|
|
26546
26567
|
})[r.radius] || ""), o = a(() => ({
|
|
26547
|
-
sm: "snol-checkbox-size-sm",
|
|
26548
|
-
md: "snol-checkbox-size-md",
|
|
26549
|
-
lg: "snol-checkbox-size-lg"
|
|
26568
|
+
sm: "snol-checkbox-group-size-sm",
|
|
26569
|
+
md: "snol-checkbox-group-size-md",
|
|
26570
|
+
lg: "snol-checkbox-group-size-lg"
|
|
26550
26571
|
})[r.size] || ""), u = a(() => ({
|
|
26551
|
-
primary: "snol-checkbox-primary",
|
|
26552
|
-
secondary: "snol-checkbox-secondary",
|
|
26553
|
-
success: "snol-checkbox-success",
|
|
26554
|
-
danger: "snol-checkbox-danger",
|
|
26555
|
-
warning: "snol-checkbox-warning",
|
|
26556
|
-
info: "snol-checkbox-info",
|
|
26557
|
-
error: "snol-checkbox-error"
|
|
26558
|
-
})[r.color] || ""), p = a(() =>
|
|
26572
|
+
primary: "snol-checkbox-group-primary",
|
|
26573
|
+
secondary: "snol-checkbox-group-secondary",
|
|
26574
|
+
success: "snol-checkbox-group-success",
|
|
26575
|
+
danger: "snol-checkbox-group-danger",
|
|
26576
|
+
warning: "snol-checkbox-group-warning",
|
|
26577
|
+
info: "snol-checkbox-group-info",
|
|
26578
|
+
error: "snol-checkbox-group-error"
|
|
26579
|
+
})[r.color] || ""), p = a(() => ({
|
|
26580
|
+
sm: "snol-label-sm",
|
|
26581
|
+
md: "snol-label-md",
|
|
26582
|
+
lg: "snol-label-lg"
|
|
26583
|
+
})[r.size] || ""), m = a(() => [
|
|
26559
26584
|
i.value,
|
|
26560
26585
|
o.value,
|
|
26561
|
-
|
|
26586
|
+
p.value,
|
|
26587
|
+
u.value,
|
|
26588
|
+
r.class
|
|
26562
26589
|
].filter(Boolean).join(" "));
|
|
26563
26590
|
return (i, a) => {
|
|
26564
26591
|
let o = D("Message");
|
|
26565
|
-
return S(), c("div", { class: v(["snol-checkbox",
|
|
26566
|
-
l("label",
|
|
26592
|
+
return S(), c("div", { class: v(["snol-checkbox-group", { "snol-field": e.label }]) }, [
|
|
26593
|
+
l("label", { class: v(p.value) }, [d(A(e.label) + " ", 1), e.required ? (S(), c("span", Hb, "*")) : s("", !0)], 2),
|
|
26567
26594
|
l("div", { class: v(e.isVertical ? "flex flex-col gap-1" : "flex flex-wrap gap-4") }, [(S(!0), c(t, null, T(e.items, (t, i) => (S(), c("div", {
|
|
26568
|
-
class: v(["flex items-center gap-2",
|
|
26595
|
+
class: v(["flex! items-center gap-2", m.value]),
|
|
26569
26596
|
key: i
|
|
26570
26597
|
}, [f(M(ah), g({
|
|
26571
26598
|
"input-id": `checkbox-${i}`,
|
|
@@ -26579,9 +26606,9 @@ var By = { install: function(e) {
|
|
|
26579
26606
|
"invalid"
|
|
26580
26607
|
]), e.label ? (S(), c("label", {
|
|
26581
26608
|
key: 0,
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
}, A(e.label),
|
|
26609
|
+
class: v([p.value, "select-none"]),
|
|
26610
|
+
for: `checkbox-${i}`
|
|
26611
|
+
}, A(e.label), 11, Ub)) : s("", !0)], 2))), 128))], 2),
|
|
26585
26612
|
e.description ? (S(), c("p", Wb, A(e.description), 1)) : s("", !0),
|
|
26586
26613
|
ie(f(o, {
|
|
26587
26614
|
severity: "error",
|
|
@@ -26675,7 +26702,7 @@ var By = { install: function(e) {
|
|
|
26675
26702
|
Ab,
|
|
26676
26703
|
Ib,
|
|
26677
26704
|
Lb,
|
|
26678
|
-
|
|
26705
|
+
Vb,
|
|
26679
26706
|
Gb,
|
|
26680
26707
|
qb
|
|
26681
26708
|
];
|
|
@@ -28779,4 +28806,4 @@ function eO(e, t) {
|
|
|
28779
28806
|
//#region src/index.ts
|
|
28780
28807
|
var tO = Zb;
|
|
28781
28808
|
//#endregion
|
|
28782
|
-
export { Ya as ApiAxios, ve as Md5, Ab as SnolAvatar, fb as SnolButton, bb as SnolCard, Gb as
|
|
28809
|
+
export { Ya as ApiAxios, ve as Md5, Ab as SnolAvatar, fb as SnolButton, bb as SnolCard, Gb as SnolCheckboxGroup, mb as SnolChip, Db as SnolDatePicker, hb as SnolIcon, Jy as SnolInputNumber, sb as SnolInputNumberGroup, Gy as SnolInputText, ib as SnolInputTextGroup, Ib as SnolLoading, ub as SnolMultiSelect, wb as SnolOtp, Ob as SnolPopover, Lb as SnolProgress, Vb as SnolRadioGroup, tb as SnolSelect, pb as SnolTag, Qy as SnolTextarea, jy as SnolToast, gb as SnolTypography, qb as SnolUser, Ui as axios, ca as configureApi, tO as default, ze as helpers, Ve as required, eO as useRowManager, Qa as useSnolLocale, $D as useTableFilter, Vu as useToast, yt as useVuelidate, Qb as useZeroField };
|