@8wave/ai-elements 0.119.0-beta.63 → 0.119.0-beta.64

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-vue/index.js CHANGED
@@ -15685,12 +15685,13 @@ xC.install = (e) => (e.component(xC.name, xC), e.use(xh).use(rc).use(bh).use(Fc)
15685
15685
  //#endregion
15686
15686
  //#region ../../packages/components/src/PkEditorMarkdown.vue?vue&type=script&setup=true&lang.ts
15687
15687
  var SC = {
15688
- ref: "root",
15689
- class: "pk-editor-markdown"
15690
- }, CC = {
15691
15688
  key: 0,
15692
15689
  class: "pk-editor-markdown__label"
15693
- }, wC = { class: "pk-editor-markdown__wrapper" }, TC = 480, EC = /* @__PURE__ */ L({
15690
+ }, CC = { class: "pk-editor-markdown__wrapper" }, wC = {
15691
+ key: 1,
15692
+ class: "pk-editor-markdown__invalid-label",
15693
+ role: "alert"
15694
+ }, TC = 480, EC = /* @__PURE__ */ L({
15694
15695
  __name: "PkEditorMarkdown",
15695
15696
  props: {
15696
15697
  modelValue: { default: "" },
@@ -15700,6 +15701,11 @@ var SC = {
15700
15701
  type: Boolean,
15701
15702
  default: !1
15702
15703
  },
15704
+ invalid: {
15705
+ type: Boolean,
15706
+ default: !1
15707
+ },
15708
+ invalidLabel: { default: void 0 },
15703
15709
  language: { default: void 0 },
15704
15710
  height: { default: void 0 },
15705
15711
  minHeight: { default: "400px" },
@@ -15790,40 +15796,47 @@ var SC = {
15790
15796
  }, p = `md-editor-${Math.random().toString(36).slice(2, 11)}`, m = ({ index: e }) => `${p}-h${e}`, h = ci("root"), g = ci("editor"), { width: _ } = yi(h), v = G(_, (e) => {
15791
15797
  e && (v(), c.preview && !c.readonly && e < TC && g.value?.togglePreview(!1));
15792
15798
  });
15793
- return (t, n) => (z(), N("div", SC, [e.label ? (z(), N("span", CC, H(e.label), 1)) : M("", !0), P("div", wC, [I(U(xC), {
15794
- id: p,
15795
- ref: "editor",
15796
- class: "wysiwyg",
15797
- "md-heading-id": m,
15798
- "model-value": d.value,
15799
- placeholder: e.placeholder,
15800
- language: e.language ?? s.value,
15801
- preview: e.preview,
15802
- toolbars: e.toolbars,
15803
- "show-code-row-number": e.showCodeRowNumber,
15804
- "auto-focus": e.autoFocus,
15805
- "read-only": e.readonly,
15806
- theme: U(l) ? "dark" : "light",
15807
- "preview-theme": e.previewTheme,
15808
- style: qr({
15809
- height: e.height,
15810
- minHeight: e.minHeight,
15811
- maxHeight: e.maxHeight
15812
- }),
15813
- "onUpdate:modelValue": f
15814
- }, null, 8, [
15815
- "model-value",
15816
- "placeholder",
15817
- "language",
15818
- "preview",
15819
- "toolbars",
15820
- "show-code-row-number",
15821
- "auto-focus",
15822
- "read-only",
15823
- "theme",
15824
- "preview-theme",
15825
- "style"
15826
- ])])], 512));
15799
+ return (t, n) => (z(), N("div", {
15800
+ ref: "root",
15801
+ class: Gr(["pk-editor-markdown", { "pk-editor-markdown--invalid": e.invalid }])
15802
+ }, [
15803
+ e.label ? (z(), N("span", SC, H(e.label), 1)) : M("", !0),
15804
+ P("div", CC, [I(U(xC), {
15805
+ id: p,
15806
+ ref: "editor",
15807
+ class: "wysiwyg",
15808
+ "md-heading-id": m,
15809
+ "model-value": d.value,
15810
+ placeholder: e.placeholder,
15811
+ language: e.language ?? s.value,
15812
+ preview: e.preview,
15813
+ toolbars: e.toolbars,
15814
+ "show-code-row-number": e.showCodeRowNumber,
15815
+ "auto-focus": e.autoFocus,
15816
+ "read-only": e.readonly,
15817
+ theme: U(l) ? "dark" : "light",
15818
+ "preview-theme": e.previewTheme,
15819
+ style: qr({
15820
+ height: e.height,
15821
+ minHeight: e.minHeight,
15822
+ maxHeight: e.maxHeight
15823
+ }),
15824
+ "onUpdate:modelValue": f
15825
+ }, null, 8, [
15826
+ "model-value",
15827
+ "placeholder",
15828
+ "language",
15829
+ "preview",
15830
+ "toolbars",
15831
+ "show-code-row-number",
15832
+ "auto-focus",
15833
+ "read-only",
15834
+ "theme",
15835
+ "preview-theme",
15836
+ "style"
15837
+ ])]),
15838
+ e.invalid && e.invalidLabel?.length ? (z(), N("small", wC, H(Array.isArray(e.invalidLabel) ? e.invalidLabel.join(", ") : e.invalidLabel), 1)) : M("", !0)
15839
+ ], 2));
15827
15840
  }
15828
15841
  }), DC = /* @__PURE__ */ L({
15829
15842
  __name: "PkEditorMedia",