@maltjoy/core-vue 5.22.2-next → 5.22.2-next.1

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/core-vue.js CHANGED
@@ -4200,27 +4200,30 @@ const Va = /* @__PURE__ */ B({
4200
4200
  },
4201
4201
  setup(e) {
4202
4202
  const t = Y();
4203
- return (n, o) => t.default || e.errors || e.noHtmlErrorText ? (c(), v("div", {
4204
- key: 0,
4205
- "data-joy-form-error": "",
4206
- "aria-hidden": e.visible,
4207
- class: I(["joy-form-error", { "joy-has-error": e.visible, "joy-form-error--no-margin": e.noMargin }]),
4208
- role: "alert"
4209
- }, [
4210
- D(N, {
4211
- class: "joy-icon-error",
4212
- name: "warning-triangle"
4213
- }),
4214
- h("div", null, [
4215
- t.default ? w(n.$slots, "default", { key: 0 }, void 0, !0) : e.errors ? (c(), v("ul", Ia, [
4216
- (c(!0), v(H, null, K(e.errors, (l) => (c(), v("li", { key: l }, J(l), 1))), 128))
4217
- ])) : (c(), v(H, { key: 2 }, [
4218
- R(J(e.noHtmlErrorText), 1)
4219
- ], 64))
4220
- ])
4221
- ], 10, Ta)) : k("", !0);
4203
+ return (n, o) => {
4204
+ var l;
4205
+ return t.default || (l = e.errors) != null && l.length || e.noHtmlErrorText ? (c(), v("div", {
4206
+ key: 0,
4207
+ "data-joy-form-error": "",
4208
+ "aria-hidden": e.visible,
4209
+ class: I(["joy-form-error", { "joy-has-error": e.visible, "joy-form-error--no-margin": e.noMargin }]),
4210
+ role: "alert"
4211
+ }, [
4212
+ D(N, {
4213
+ class: "joy-icon-error",
4214
+ name: "warning-triangle"
4215
+ }),
4216
+ h("div", null, [
4217
+ t.default ? w(n.$slots, "default", { key: 0 }, void 0, !0) : e.errors ? (c(), v("ul", Ia, [
4218
+ (c(!0), v(H, null, K(e.errors, (a) => (c(), v("li", { key: a }, J(a), 1))), 128))
4219
+ ])) : (c(), v(H, { key: 2 }, [
4220
+ R(J(e.noHtmlErrorText), 1)
4221
+ ], 64))
4222
+ ])
4223
+ ], 10, Ta)) : k("", !0);
4224
+ };
4222
4225
  }
4223
- }), _t = /* @__PURE__ */ E(La, [["__scopeId", "data-v-ed0c8568"]]), Ba = { class: "joy-dropzone__icon-wrapper" }, Aa = /* @__PURE__ */ B({
4226
+ }), _t = /* @__PURE__ */ E(La, [["__scopeId", "data-v-cc934fa8"]]), Ba = { class: "joy-dropzone__icon-wrapper" }, Aa = /* @__PURE__ */ B({
4224
4227
  __name: "VJoyDropzoneIcon",
4225
4228
  props: {
4226
4229
  name: { type: String, required: !0 },