aq-fe-framework 0.1.350 → 0.1.352

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.
@@ -509,7 +509,12 @@ function MyRichTextEditor(props) {
509
509
  ],
510
510
  content: props.value,
511
511
  onUpdate: ({ editor: editor2 }) => {
512
- props.onChange(editor2.getHTML());
512
+ var _a;
513
+ if (props.onBlur) {
514
+ props.onBlur(editor2.getHTML());
515
+ return;
516
+ }
517
+ (_a = props.onChange) == null ? void 0 : _a.call(props, editor2.getHTML());
513
518
  }
514
519
  });
515
520
  return /* @__PURE__ */ jsx9(Input.Wrapper, __spreadProps(__spreadValues({}, props.inputWrapperProps), { children: /* @__PURE__ */ jsxs5(MantineRichTextEditor, __spreadProps(__spreadValues({ editor }, props.richTextEditorProps), { children: [
@@ -79,8 +79,9 @@ interface CoreDayOfWeekPickerProps {
79
79
  declare function MyDayOfWeekPicker({ value, onChange }: CoreDayOfWeekPickerProps): react_jsx_runtime.JSX.Element;
80
80
 
81
81
  interface MyRichTextEditorProps {
82
- value: string;
83
- onChange: (value: string) => void;
82
+ value?: string;
83
+ onChange?: (value: string) => void;
84
+ onBlur?: (value: string) => void;
84
85
  richTextEditorProps?: RichTextEditorProps;
85
86
  richTextEditorToolBarProps?: RichTextEditorToolbarProps;
86
87
  richTextEditorContentProps?: RichTextEditorContentProps;
@@ -12,7 +12,7 @@ import {
12
12
  MyStatsCard,
13
13
  MyTextInput,
14
14
  MyWeeklySessionSchedulerPicker
15
- } from "../chunk-A7SOCM54.mjs";
15
+ } from "../chunk-MVYK7ISQ.mjs";
16
16
  import "../chunk-GEYCGM75.mjs";
17
17
  import "../chunk-NWBLJ3W3.mjs";
18
18
  import "../chunk-K6S7R6LU.mjs";
@@ -45,7 +45,7 @@ import {
45
45
  MyButton as MyButton2,
46
46
  MyDataTableSelectOne,
47
47
  MyTextInput as MyTextInput2
48
- } from "../chunk-A7SOCM54.mjs";
48
+ } from "../chunk-MVYK7ISQ.mjs";
49
49
  import {
50
50
  MyDataTable,
51
51
  MyFlexColumn,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.350",
45
+ "version": "0.1.352",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"