@maltjoy/core-vue 5.6.0 → 5.7.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.
|
@@ -15,7 +15,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
loading?: "lazy" | "eager" | undefined;
|
|
16
16
|
/** Basic state with no information */
|
|
17
17
|
isEmpty?: boolean | undefined;
|
|
18
|
-
square?: boolean | undefined;
|
|
19
18
|
/** Placeholder icon is no photo is given, and showLetters is set to false */
|
|
20
19
|
placeholder?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
21
20
|
/** If no photo is given and this parameter is set to false, it will directly display the placeholder icon */
|
|
@@ -41,7 +40,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
40
|
loading?: "lazy" | "eager" | undefined;
|
|
42
41
|
/** Basic state with no information */
|
|
43
42
|
isEmpty?: boolean | undefined;
|
|
44
|
-
square?: boolean | undefined;
|
|
45
43
|
/** Placeholder icon is no photo is given, and showLetters is set to false */
|
|
46
44
|
placeholder?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
47
45
|
/** If no photo is given and this parameter is set to false, it will directly display the placeholder icon */
|
|
@@ -53,7 +51,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
53
51
|
loading: "lazy" | "eager";
|
|
54
52
|
profile: "default" | "strategy";
|
|
55
53
|
isEmpty: boolean;
|
|
56
|
-
square: boolean;
|
|
57
54
|
placeholder: import("@maltjoy/icons").JoyIconsId;
|
|
58
55
|
showLetters: boolean;
|
|
59
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* In some cases you'll need to inject the error in the DOM but hide it. Visible by default
|
|
5
|
+
* @deprecated - The property is now ignored.
|
|
6
|
+
*/
|
|
4
7
|
visible: {
|
|
5
8
|
type: BooleanConstructor;
|
|
6
9
|
default: boolean;
|
|
@@ -12,10 +15,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
12
15
|
type: PropType<string[]>;
|
|
13
16
|
required: false;
|
|
14
17
|
};
|
|
15
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Error message to display. If you need a list of errors, use the slot instead
|
|
20
|
+
* @deprecated Use the slot instead, or the errors prop.
|
|
21
|
+
*/
|
|
16
22
|
noHtmlErrorText: StringConstructor;
|
|
17
23
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* In some cases you'll need to inject the error in the DOM but hide it. Visible by default
|
|
26
|
+
* @deprecated - The property is now ignored.
|
|
27
|
+
*/
|
|
19
28
|
visible: {
|
|
20
29
|
type: BooleanConstructor;
|
|
21
30
|
default: boolean;
|
|
@@ -27,7 +36,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
27
36
|
type: PropType<string[]>;
|
|
28
37
|
required: false;
|
|
29
38
|
};
|
|
30
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Error message to display. If you need a list of errors, use the slot instead
|
|
41
|
+
* @deprecated Use the slot instead, or the errors prop.
|
|
42
|
+
*/
|
|
31
43
|
noHtmlErrorText: StringConstructor;
|
|
32
44
|
}>> & Readonly<{}>, {
|
|
33
45
|
visible: boolean;
|
package/dist/core-vue.js
CHANGED
|
@@ -403,7 +403,6 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
|
|
|
403
403
|
profile: { default: "default" },
|
|
404
404
|
loading: { default: "lazy" },
|
|
405
405
|
isEmpty: { type: Boolean, default: !1 },
|
|
406
|
-
square: { type: Boolean, default: !1 },
|
|
407
406
|
placeholder: { default: "user-photo" },
|
|
408
407
|
showLetters: { type: Boolean, default: !0 }
|
|
409
408
|
},
|
|
@@ -436,7 +435,6 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
|
|
|
436
435
|
ref: "avatarEl",
|
|
437
436
|
class: I(["joy-avatar__wrapper", {
|
|
438
437
|
[`joy-avatar__wrapper--${u.size}`]: !0,
|
|
439
|
-
"joy-core-radius-6": !u.square,
|
|
440
438
|
"joy-avatar__wrapper--anonymous": s.value
|
|
441
439
|
}])
|
|
442
440
|
}, [
|
|
@@ -487,7 +485,7 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
|
|
|
487
485
|
])) : w("", !0)
|
|
488
486
|
], 2));
|
|
489
487
|
}
|
|
490
|
-
}), nn = /* @__PURE__ */ x(on, [["__scopeId", "data-v-
|
|
488
|
+
}), nn = /* @__PURE__ */ x(on, [["__scopeId", "data-v-95311575"]]), ln = /* @__PURE__ */ B({
|
|
491
489
|
__name: "VJoyAvatarsList",
|
|
492
490
|
props: {
|
|
493
491
|
/** Renders a compact list of avatars */
|
|
@@ -570,7 +568,7 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
|
|
|
570
568
|
], !0)
|
|
571
569
|
], 2));
|
|
572
570
|
}
|
|
573
|
-
}), un = /* @__PURE__ */ x(sn, [["__scopeId", "data-v-
|
|
571
|
+
}), un = /* @__PURE__ */ x(sn, [["__scopeId", "data-v-0036108b"]]);
|
|
574
572
|
var X = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "highpotential", e.HIGH_POTENTIAL_AUTO = "high-potential-auto", e.MALT_LINKER = "maltlinker", e.NEW = "new", e.SUPER_MALTER = "supermalter", e.VERIFIED = "verified", e))(X || {}), He = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "program_high-potential", e))(He || {});
|
|
575
573
|
const dn = { class: "joy-badge-level" }, cn = {
|
|
576
574
|
key: 1,
|
|
@@ -2654,7 +2652,10 @@ const $l = /* @__PURE__ */ B({
|
|
|
2654
2652
|
}), eu = /* @__PURE__ */ x($l, [["__scopeId", "data-v-8d25933f"]]), Sl = ["aria-hidden"], Cl = { key: 1 }, Vl = /* @__PURE__ */ B({
|
|
2655
2653
|
__name: "VJoyFormError",
|
|
2656
2654
|
props: {
|
|
2657
|
-
/**
|
|
2655
|
+
/**
|
|
2656
|
+
* In some cases you'll need to inject the error in the DOM but hide it. Visible by default
|
|
2657
|
+
* @deprecated - The property is now ignored.
|
|
2658
|
+
*/
|
|
2658
2659
|
visible: {
|
|
2659
2660
|
type: Boolean,
|
|
2660
2661
|
default: !0
|
|
@@ -2666,15 +2667,21 @@ const $l = /* @__PURE__ */ B({
|
|
|
2666
2667
|
type: Array,
|
|
2667
2668
|
required: !1
|
|
2668
2669
|
},
|
|
2669
|
-
/**
|
|
2670
|
+
/**
|
|
2671
|
+
* Error message to display. If you need a list of errors, use the slot instead
|
|
2672
|
+
* @deprecated Use the slot instead, or the errors prop.
|
|
2673
|
+
*/
|
|
2670
2674
|
noHtmlErrorText: String
|
|
2671
2675
|
},
|
|
2672
2676
|
setup(e) {
|
|
2673
|
-
const t = Y()
|
|
2674
|
-
|
|
2677
|
+
const t = Y(), l = e, o = T(() => n.value || i.value || l.noHtmlErrorText !== void 0), n = T(() => l.errors && l.errors.length > 0), i = T(() => {
|
|
2678
|
+
var a;
|
|
2679
|
+
return !!((a = t.default) != null && a.call(t));
|
|
2680
|
+
});
|
|
2681
|
+
return (a, r) => (c(), v("div", {
|
|
2675
2682
|
"data-joy-form-error": "",
|
|
2676
|
-
"aria-hidden":
|
|
2677
|
-
class: I(["joy-form-error", { "joy-has-error":
|
|
2683
|
+
"aria-hidden": o.value,
|
|
2684
|
+
class: I(["joy-form-error", { "joy-has-error": o.value }]),
|
|
2678
2685
|
role: "alert"
|
|
2679
2686
|
}, [
|
|
2680
2687
|
R(q, {
|
|
@@ -2682,15 +2689,15 @@ const $l = /* @__PURE__ */ B({
|
|
|
2682
2689
|
name: "warning-triangle"
|
|
2683
2690
|
}),
|
|
2684
2691
|
h("div", null, [
|
|
2685
|
-
t.default ? _(
|
|
2686
|
-
(c(!0), v(H, null, U(e.errors, (
|
|
2692
|
+
t.default ? _(a.$slots, "default", { key: 0 }, void 0, !0) : e.errors ? (c(), v("ul", Cl, [
|
|
2693
|
+
(c(!0), v(H, null, U(e.errors, (s) => (c(), v("li", { key: s }, J(s), 1))), 128))
|
|
2687
2694
|
])) : (c(), v(H, { key: 2 }, [
|
|
2688
2695
|
F(J(e.noHtmlErrorText), 1)
|
|
2689
2696
|
], 64))
|
|
2690
2697
|
])
|
|
2691
2698
|
], 10, Sl));
|
|
2692
2699
|
}
|
|
2693
|
-
}), yt = /* @__PURE__ */ x(Vl, [["__scopeId", "data-v-
|
|
2700
|
+
}), yt = /* @__PURE__ */ x(Vl, [["__scopeId", "data-v-1aba4256"]]), Tl = { class: "joy-dropzone__icon-wrapper" }, Ll = /* @__PURE__ */ B({
|
|
2694
2701
|
__name: "VJoyDropzoneIcon",
|
|
2695
2702
|
props: {
|
|
2696
2703
|
name: { type: String, required: !0 }
|