aq-fe-framework 0.1.1113 → 0.1.1115
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.
|
@@ -4,14 +4,6 @@ import {
|
|
|
4
4
|
useStore_Permission,
|
|
5
5
|
useStore_ProjectInfo
|
|
6
6
|
} from "./chunk-WW55EZ4B.mjs";
|
|
7
|
-
import {
|
|
8
|
-
utils_currency,
|
|
9
|
-
utils_date,
|
|
10
|
-
utils_excel,
|
|
11
|
-
utils_file,
|
|
12
|
-
utils_mantineReactTable,
|
|
13
|
-
utils_text
|
|
14
|
-
} from "./chunk-7ZI7IOEP.mjs";
|
|
15
7
|
import {
|
|
16
8
|
utils_aq_mapBaseEntityToDomain,
|
|
17
9
|
utils_aq_mapDomainToEntity,
|
|
@@ -25,6 +17,14 @@ import {
|
|
|
25
17
|
utils_notification_show,
|
|
26
18
|
utils_pdf_download
|
|
27
19
|
} from "./chunk-KGBXMHKR.mjs";
|
|
20
|
+
import {
|
|
21
|
+
utils_currency,
|
|
22
|
+
utils_date,
|
|
23
|
+
utils_excel,
|
|
24
|
+
utils_file,
|
|
25
|
+
utils_mantineReactTable,
|
|
26
|
+
utils_text
|
|
27
|
+
} from "./chunk-7ZI7IOEP.mjs";
|
|
28
28
|
import {
|
|
29
29
|
createGenericStore
|
|
30
30
|
} from "./chunk-BTITP4TN.mjs";
|
|
@@ -1981,6 +1981,7 @@ function MyDataTable(_a) {
|
|
|
1981
1981
|
case "list":
|
|
1982
1982
|
col.Cell = ({ cell }) => {
|
|
1983
1983
|
const value = cell.getValue();
|
|
1984
|
+
if (!value) return;
|
|
1984
1985
|
if (value.length == 0) return;
|
|
1985
1986
|
return /* @__PURE__ */ jsx33(List, { children: value.map((item, idx) => /* @__PURE__ */ jsx33(List.Item, { children: item }, idx)) });
|
|
1986
1987
|
};
|
|
@@ -16791,11 +16792,13 @@ function CustomSelectAPI(_a) {
|
|
|
16791
16792
|
}
|
|
16792
16793
|
}, [autoSelectFirst, query.data, value, onChange]);
|
|
16793
16794
|
const handleChange = (selectedId) => {
|
|
16794
|
-
var _a3
|
|
16795
|
-
const selectedItem = (
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16795
|
+
var _a3;
|
|
16796
|
+
const selectedItem = (_a3 = query.data) == null ? void 0 : _a3.find(
|
|
16797
|
+
(item) => {
|
|
16798
|
+
var _a4;
|
|
16799
|
+
return ((_a4 = item.id) == null ? void 0 : _a4.toString()) === selectedId;
|
|
16800
|
+
}
|
|
16801
|
+
);
|
|
16799
16802
|
onChange == null ? void 0 : onChange(selectedItem);
|
|
16800
16803
|
};
|
|
16801
16804
|
return /* @__PURE__ */ jsx210(
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
getReadablePageIdSet,
|
|
66
66
|
useHeaderMegaMenuStore,
|
|
67
67
|
useStore_BasicAppShell
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-ZUMDEQT3.mjs";
|
|
69
69
|
import "../chunk-WW55EZ4B.mjs";
|
|
70
|
-
import "../chunk-7ZI7IOEP.mjs";
|
|
71
70
|
import "../chunk-KGBXMHKR.mjs";
|
|
71
|
+
import "../chunk-7ZI7IOEP.mjs";
|
|
72
72
|
import "../chunk-NYAWQRB7.mjs";
|
|
73
73
|
import "../chunk-BTITP4TN.mjs";
|
|
74
74
|
import "../chunk-S5NCYRRY.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -326,8 +326,8 @@ declare function CustomButtonDeleteListAPI<TData extends MRT_RowData>({ deleteLi
|
|
|
326
326
|
|
|
327
327
|
interface CustomSelectAPIProps<IRes extends IBaseEntity> extends Omit<MySelectProps, "onChange" | "data" | "value"> {
|
|
328
328
|
query: ReturnType<typeof useMyReactQuery<IRes[], any>>;
|
|
329
|
-
value?: IRes
|
|
330
|
-
onChange?: (item
|
|
329
|
+
value?: IRes;
|
|
330
|
+
onChange?: (item?: IRes) => void;
|
|
331
331
|
autoSelectFirst?: boolean;
|
|
332
332
|
}
|
|
333
333
|
declare function CustomSelectAPI<IRes extends IBaseEntity>({ query, value, onChange, autoSelectFirst, ...rest }: CustomSelectAPIProps<IRes>): react_jsx_runtime.JSX.Element;
|
package/dist/core/index.mjs
CHANGED
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
MyStatsCard,
|
|
36
36
|
MyTextInput2 as MyTextInput,
|
|
37
37
|
MyWeeklySessionSchedulerPicker
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-ZUMDEQT3.mjs";
|
|
39
39
|
import "../chunk-WW55EZ4B.mjs";
|
|
40
|
-
import "../chunk-7ZI7IOEP.mjs";
|
|
41
40
|
import "../chunk-KGBXMHKR.mjs";
|
|
41
|
+
import "../chunk-7ZI7IOEP.mjs";
|
|
42
42
|
import "../chunk-NYAWQRB7.mjs";
|
|
43
43
|
import "../chunk-BTITP4TN.mjs";
|
|
44
44
|
import "../chunk-S5NCYRRY.mjs";
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
MailTemplateDeleteButton,
|
|
65
65
|
useS_moduleConfig,
|
|
66
66
|
useStore_Authenticate
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-ZUMDEQT3.mjs";
|
|
68
68
|
import "../chunk-WW55EZ4B.mjs";
|
|
69
|
-
import "../chunk-7ZI7IOEP.mjs";
|
|
70
69
|
import "../chunk-KGBXMHKR.mjs";
|
|
70
|
+
import "../chunk-7ZI7IOEP.mjs";
|
|
71
71
|
import "../chunk-NYAWQRB7.mjs";
|
|
72
72
|
import "../chunk-BTITP4TN.mjs";
|
|
73
73
|
import "../chunk-S5NCYRRY.mjs";
|
package/dist/shared/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MySelect,
|
|
3
3
|
Shared_DocTypeSelect
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZUMDEQT3.mjs";
|
|
5
5
|
import "../chunk-WW55EZ4B.mjs";
|
|
6
|
+
import "../chunk-KGBXMHKR.mjs";
|
|
6
7
|
import {
|
|
7
8
|
utils_converter
|
|
8
9
|
} from "../chunk-7ZI7IOEP.mjs";
|
|
9
|
-
import "../chunk-KGBXMHKR.mjs";
|
|
10
10
|
import "../chunk-NYAWQRB7.mjs";
|
|
11
11
|
import "../chunk-BTITP4TN.mjs";
|
|
12
12
|
import "../chunk-S5NCYRRY.mjs";
|