aq-fe-framework 0.1.415 → 0.1.417

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.
@@ -254,7 +254,7 @@ function MyButtonCreateUpdate({
254
254
  color: "yellow",
255
255
  onClick: disclosure[1].open
256
256
  }, actionIconProps), {
257
- children: /* @__PURE__ */ jsx4(IconEdit3, {})
257
+ children: (actionIconProps == null ? void 0 : actionIconProps.children) || /* @__PURE__ */ jsx4(IconEdit3, {})
258
258
  })
259
259
  ) : /* @__PURE__ */ jsx4(
260
260
  Button3,
@@ -630,10 +630,12 @@ import { jsx as jsx12 } from "react/jsx-runtime";
630
630
  function MySelectFromAPI(_a) {
631
631
  var _b = _a, {
632
632
  queryKey,
633
- axiosFn
633
+ axiosFn,
634
+ labelWithCode
634
635
  } = _b, rest = __objRest(_b, [
635
636
  "queryKey",
636
- "axiosFn"
637
+ "axiosFn",
638
+ "labelWithCode"
637
639
  ]);
638
640
  const query = useMyReactQuery({
639
641
  queryKey,
@@ -646,7 +648,7 @@ function MySelectFromAPI(_a) {
646
648
  var _a3, _b2, _c;
647
649
  return {
648
650
  value: (_b2 = (_a3 = item.id) == null ? void 0 : _a3.toString()) != null ? _b2 : "",
649
- label: (_c = item.name) != null ? _c : ""
651
+ label: labelWithCode ? `${item.code}-${item.name}` : (_c = item.name) != null ? _c : ""
650
652
  };
651
653
  })) != null ? _a2 : [];
652
654
  }, [query.data]);
@@ -108,8 +108,9 @@ declare function MySelect({ label, data, isLoading, isError, ...rest }: MySelect
108
108
  interface MySelectFromAPIProps<IRes = IBaseEntity[], IBody = any> extends Omit<MySelectProps, 'isLoading' | 'isError'> {
109
109
  queryKey: QueryKey;
110
110
  axiosFn: () => Promise<AxiosResponse<MyApiResponse<IRes>, IBody>>;
111
+ labelWithCode?: boolean;
111
112
  }
112
- declare function MySelectFromAPI<IRes = IBaseEntity[], IBody = any>({ queryKey, axiosFn, ...rest }: MySelectFromAPIProps<IRes, IBody>): react_jsx_runtime.JSX.Element;
113
+ declare function MySelectFromAPI<IRes = IBaseEntity[], IBody = any>({ queryKey, axiosFn, labelWithCode, ...rest }: MySelectFromAPIProps<IRes, IBody>): react_jsx_runtime.JSX.Element;
113
114
 
114
115
  interface CoreTextInputProps extends TextInputProps {
115
116
  label?: string;
@@ -13,7 +13,7 @@ import {
13
13
  MyStatsCard,
14
14
  MyTextInput,
15
15
  MyWeeklySessionSchedulerPicker
16
- } from "../chunk-WJ5H73YW.mjs";
16
+ } from "../chunk-GKYOZ2TS.mjs";
17
17
  import "../chunk-GEYCGM75.mjs";
18
18
  import "../chunk-GFEMKKFH.mjs";
19
19
  import "../chunk-OMJJAHOC.mjs";
@@ -42,7 +42,7 @@ import {
42
42
  MyButton as MyButton2,
43
43
  MyDataTableSelectOne,
44
44
  MyTextInput as MyTextInput2
45
- } from "../chunk-WJ5H73YW.mjs";
45
+ } from "../chunk-GKYOZ2TS.mjs";
46
46
  import {
47
47
  MyDataTable,
48
48
  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.415",
45
+ "version": "0.1.417",
46
46
  "private": false,
47
47
  "files": [
48
48
  "dist"