aq-fe-framework 0.1.424 → 0.1.425
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.
@@ -673,7 +673,6 @@ function MySelectFromAPI(_a) {
|
|
673
673
|
};
|
674
674
|
useEffect3(() => {
|
675
675
|
var _a2, _b2, _c;
|
676
|
-
if (value) return;
|
677
676
|
if (autoSelectFirstItem && query.data && query.data.length > 0) {
|
678
677
|
const firstItem = query.data[0];
|
679
678
|
const value2 = (_b2 = (_a2 = firstItem.id) == null ? void 0 : _a2.toString()) != null ? _b2 : "";
|
@@ -682,6 +681,15 @@ function MySelectFromAPI(_a) {
|
|
682
681
|
setObjectData == null ? void 0 : setObjectData(firstItem);
|
683
682
|
}
|
684
683
|
}, [query.data, autoSelectFirstItem]);
|
684
|
+
useEffect3(() => {
|
685
|
+
if (value && setObjectData && query.data) {
|
686
|
+
const selected = query.data.find((item) => {
|
687
|
+
var _a2;
|
688
|
+
return ((_a2 = item.id) == null ? void 0 : _a2.toString()) === value;
|
689
|
+
});
|
690
|
+
setObjectData(selected);
|
691
|
+
}
|
692
|
+
}, [value, query.data]);
|
685
693
|
return /* @__PURE__ */ jsx12(
|
686
694
|
MySelect,
|
687
695
|
__spreadValues({
|
@@ -62,7 +62,8 @@ import {
|
|
62
62
|
useS_BasicAppShell,
|
63
63
|
useS_ButtonImport,
|
64
64
|
utils_layout_getItemsWithoutLinks
|
65
|
-
} from "../chunk-
|
65
|
+
} from "../chunk-DZXMICDD.mjs";
|
66
|
+
import "../chunk-Y3YGC5IH.mjs";
|
66
67
|
import "../chunk-5U2JSHSJ.mjs";
|
67
68
|
import {
|
68
69
|
MyDataTable,
|
@@ -72,7 +73,6 @@ import {
|
|
72
73
|
import "../chunk-OMJJAHOC.mjs";
|
73
74
|
import "../chunk-PRN7KYPD.mjs";
|
74
75
|
import "../chunk-7ZCOFATU.mjs";
|
75
|
-
import "../chunk-Y3YGC5IH.mjs";
|
76
76
|
import "../chunk-FWCSY2DS.mjs";
|
77
77
|
export {
|
78
78
|
AQButtonCreateByImportFile,
|
package/dist/core/index.mjs
CHANGED
@@ -33,13 +33,16 @@ import {
|
|
33
33
|
groupToTwoLevels,
|
34
34
|
useS_authenticate,
|
35
35
|
utils_layout_getItemsWithoutLinks
|
36
|
-
} from "../chunk-
|
36
|
+
} from "../chunk-DZXMICDD.mjs";
|
37
|
+
import {
|
38
|
+
createGenericStore
|
39
|
+
} from "../chunk-Y3YGC5IH.mjs";
|
37
40
|
import "../chunk-5U2JSHSJ.mjs";
|
38
41
|
import {
|
39
42
|
MyButton as MyButton2,
|
40
43
|
MyDataTableSelectOne,
|
41
44
|
MyTextInput as MyTextInput2
|
42
|
-
} from "../chunk-
|
45
|
+
} from "../chunk-MAFELZRY.mjs";
|
43
46
|
import {
|
44
47
|
MyDataTable,
|
45
48
|
MyFlexColumn,
|
@@ -68,9 +71,6 @@ import {
|
|
68
71
|
import {
|
69
72
|
utils_notification_show
|
70
73
|
} from "../chunk-7ZCOFATU.mjs";
|
71
|
-
import {
|
72
|
-
createGenericStore
|
73
|
-
} from "../chunk-Y3YGC5IH.mjs";
|
74
74
|
import {
|
75
75
|
__objRest,
|
76
76
|
__spreadProps,
|
package/package.json
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
import {
|
2
|
+
createGenericStore
|
3
|
+
} from "./chunk-Y3YGC5IH.mjs";
|
1
4
|
import {
|
2
5
|
utils_pdf_download
|
3
6
|
} from "./chunk-5U2JSHSJ.mjs";
|
@@ -17,9 +20,6 @@ import {
|
|
17
20
|
import {
|
18
21
|
utils_notification_show
|
19
22
|
} from "./chunk-7ZCOFATU.mjs";
|
20
|
-
import {
|
21
|
-
createGenericStore
|
22
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
23
23
|
import {
|
24
24
|
__objRest,
|
25
25
|
__spreadProps,
|