aq-fe-framework 0.1.435 → 0.1.436

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.
@@ -3,12 +3,12 @@ import {
3
3
  MyFlexColumn,
4
4
  MyFlexRow
5
5
  } from "./chunk-RZBHPPQT.mjs";
6
- import {
7
- enum_daysOfWeek
8
- } from "./chunk-K6S7R6LU.mjs";
9
6
  import {
10
7
  const_object_colors
11
8
  } from "./chunk-OMJJAHOC.mjs";
9
+ import {
10
+ enum_daysOfWeek
11
+ } from "./chunk-K6S7R6LU.mjs";
12
12
  import {
13
13
  useMyReactMutation,
14
14
  useMyReactQuery
@@ -599,7 +599,14 @@ function MyRichTextEditor(props) {
599
599
 
600
600
  // src/core/input/MySelect.tsx
601
601
  import { Loader, Select } from "@mantine/core";
602
+ import React from "react";
602
603
  import { jsx as jsx11 } from "react/jsx-runtime";
604
+ function extractTextFromReactNode(node) {
605
+ if (typeof node === "string" || typeof node === "number") return String(node);
606
+ if (Array.isArray(node)) return node.map(extractTextFromReactNode).join(" ");
607
+ if (React.isValidElement(node)) return extractTextFromReactNode(node.props.children);
608
+ return "";
609
+ }
603
610
  function MySelect(_a) {
604
611
  var _b = _a, { label, data, isLoading, isError } = _b, rest = __objRest(_b, ["label", "data", "isLoading", "isError"]);
605
612
  let placeholder = "";
@@ -608,7 +615,8 @@ function MySelect(_a) {
608
615
  } else if (isLoading) {
609
616
  placeholder = "\u0110ang t\u1EA3i...";
610
617
  } else if (label) {
611
- placeholder = `Ch\u1ECDn ${label.toString().toLowerCase()}`;
618
+ const plainTextLabel = extractTextFromReactNode(label).toLowerCase();
619
+ placeholder = `Ch\u1ECDn ${plainTextLabel}`;
612
620
  }
613
621
  return /* @__PURE__ */ jsx11(
614
622
  Select,
@@ -13,11 +13,11 @@ import {
13
13
  MyStatsCard,
14
14
  MyTextInput,
15
15
  MyWeeklySessionSchedulerPicker
16
- } from "../chunk-Y2IIPFL7.mjs";
16
+ } from "../chunk-QK34DK3N.mjs";
17
17
  import "../chunk-RZBHPPQT.mjs";
18
- import "../chunk-K6S7R6LU.mjs";
19
18
  import "../chunk-GFEMKKFH.mjs";
20
19
  import "../chunk-OMJJAHOC.mjs";
20
+ import "../chunk-K6S7R6LU.mjs";
21
21
  import "../chunk-PRN7KYPD.mjs";
22
22
  import "../chunk-7ZCOFATU.mjs";
23
23
  import "../chunk-FWCSY2DS.mjs";
@@ -42,22 +42,22 @@ import {
42
42
  MyButton as MyButton2,
43
43
  MyDataTableSelectOne,
44
44
  MyTextInput as MyTextInput2
45
- } from "../chunk-Y2IIPFL7.mjs";
45
+ } from "../chunk-QK34DK3N.mjs";
46
46
  import {
47
47
  MyDataTable,
48
48
  MyFlexColumn,
49
49
  MyFlexRow
50
50
  } from "../chunk-RZBHPPQT.mjs";
51
- import {
52
- enum_emailConfigModule
53
- } from "../chunk-VH4ZAD6M.mjs";
54
- import "../chunk-K6S7R6LU.mjs";
55
51
  import {
56
52
  const_object_documentTypes
57
53
  } from "../chunk-GFEMKKFH.mjs";
58
54
  import {
59
55
  const_object_colors
60
56
  } from "../chunk-OMJJAHOC.mjs";
57
+ import {
58
+ enum_emailConfigModule
59
+ } from "../chunk-VH4ZAD6M.mjs";
60
+ import "../chunk-K6S7R6LU.mjs";
61
61
  import {
62
62
  baseAxios_default,
63
63
  createBaseApi,
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/columns/index.d.mts"
43
43
  }
44
44
  },
45
- "version": "0.1.435",
45
+ "version": "0.1.436",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"