aq-fe-framework 0.1.819 → 0.1.821

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.
@@ -853,14 +853,14 @@ function MyDataTableStagedChanges(_a) {
853
853
  columns,
854
854
  initIds = [],
855
855
  onStagedChange,
856
- selectColumns,
856
+ childrenDataTableProps,
857
857
  readOnly
858
858
  } = _b, rest = __objRest(_b, [
859
859
  "data",
860
860
  "columns",
861
861
  "initIds",
862
862
  "onStagedChange",
863
- "selectColumns",
863
+ "childrenDataTableProps",
864
864
  "readOnly"
865
865
  ]);
866
866
  const disc = useDisclosure4();
@@ -932,16 +932,16 @@ function MyDataTableStagedChanges(_a) {
932
932
  modalProps: { size: "70rem", title: "Th\xEAm \u0111\u1ED1i t\u01B0\u1EE3ng" },
933
933
  children: /* @__PURE__ */ jsx16(
934
934
  MyDataTable,
935
- {
935
+ __spreadValues({
936
936
  renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx16(Stack2, { children: /* @__PURE__ */ jsx16(MyButton, { actionType: "select", onClick: handleSelect }) }),
937
937
  enableRowSelection: true,
938
- columns: selectColumns || columns,
938
+ columns,
939
939
  data: data2,
940
940
  onRowSelectionChange: rowSelectionState[1],
941
941
  state: {
942
942
  rowSelection: rowSelectionState[0]
943
943
  }
944
- }
944
+ }, childrenDataTableProps)
945
945
  )
946
946
  }
947
947
  ),
@@ -8930,7 +8930,7 @@ var service_page = __spreadValues({}, createBaseApi(CONTROLLER, baseAxios_defaul
8930
8930
 
8931
8931
  // src/modules-features/admin/core/academicYears/AcademicYearExport.tsx
8932
8932
  import { jsx as jsx80 } from "react/jsx-runtime";
8933
- function AcademicYearExport({ data: data2 }) {
8933
+ function AcademicYearExport({ data: data2, table }) {
8934
8934
  const exportConfig3 = {
8935
8935
  fields: [
8936
8936
  {
@@ -8976,7 +8976,14 @@ function AcademicYearExport({ data: data2 }) {
8976
8976
  AQButtonExportData,
8977
8977
  {
8978
8978
  objectName: "Danh m\u1EE5c n\u0103m h\u1ECDc",
8979
- data: exportData || [],
8979
+ data: table.getIsAllPageRowsSelected() ? exportData : table.getSelectedRowModel().rows.map((item) => {
8980
+ return __spreadProps(__spreadValues({}, item.original), {
8981
+ academicYearStart: item.original.academicYearStart ? utils_date.toDDMMYYY(item.original.academicYearStart) : void 0,
8982
+ academicYearEnd: item.original.academicYearEnd ? utils_date.toDDMMYYY(item.original.academicYearEnd) : void 0,
8983
+ administrativeYearStart: item.original.administrativeYearStart ? utils_date.toDDMMYYY(item.original.administrativeYearStart) : void 0,
8984
+ administrativeYearEnd: item.original.administrativeYearEnd ? utils_date.toDDMMYYY(item.original.administrativeYearEnd) : void 0
8985
+ });
8986
+ }),
8980
8987
  exportConfig: exportConfig3
8981
8988
  }
8982
8989
  );
@@ -9872,7 +9879,7 @@ function AcademicYearsRead() {
9872
9879
  return /* @__PURE__ */ jsx89(Fragment18, { children: /* @__PURE__ */ jsxs48(Group26, { children: [
9873
9880
  /* @__PURE__ */ jsx89(AcademicYearsCreate, {}),
9874
9881
  /* @__PURE__ */ jsx89(AcademicYearImport, {}),
9875
- /* @__PURE__ */ jsx89(AcademicYearExport, { data: academicyearsQuery.data || [] }),
9882
+ /* @__PURE__ */ jsx89(AcademicYearExport, { data: academicyearsQuery.data || [], table }),
9876
9883
  /* @__PURE__ */ jsx89(AcademicYearsDeleteList, { values: table.getSelectedRowModel().flatRows.flatMap((item) => item.original) })
9877
9884
  ] }) });
9878
9885
  },
@@ -70,7 +70,7 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-SPEH5RIP.mjs";
73
+ } from "../chunk-Z4ANBHUG.mjs";
74
74
  import "../chunk-SUH3FFFV.mjs";
75
75
  import "../chunk-RJH5TVHS.mjs";
76
76
  import "../chunk-IFV3VC5B.mjs";
@@ -123,11 +123,11 @@ interface StagedChange {
123
123
  }
124
124
  interface MyDataTableStagedChangesProps<T extends MRT_RowData> extends MyDataTableProps<T> {
125
125
  initIds?: number[];
126
- selectColumns?: MRT_ColumnDef<T>[];
126
+ childrenDataTableProps?: Partial<MyDataTableProps<T>>;
127
127
  onStagedChange?: (changes: StagedChange) => void;
128
128
  readOnly?: boolean;
129
129
  }
130
- declare function MyDataTableStagedChanges<T extends MRT_RowData>({ data, columns, initIds, onStagedChange, selectColumns, readOnly, ...rest }: MyDataTableStagedChangesProps<T>): react_jsx_runtime.JSX.Element;
130
+ declare function MyDataTableStagedChanges<T extends MRT_RowData>({ data, columns, initIds, onStagedChange, childrenDataTableProps, readOnly, ...rest }: MyDataTableStagedChangesProps<T>): react_jsx_runtime.JSX.Element;
131
131
 
132
132
  interface MyFlexIconTitleProps {
133
133
  icon?: ReactNode;
@@ -29,7 +29,7 @@ import {
29
29
  MyStatsCard,
30
30
  MyTextInput2 as MyTextInput,
31
31
  MyWeeklySessionSchedulerPicker
32
- } from "../chunk-SPEH5RIP.mjs";
32
+ } from "../chunk-Z4ANBHUG.mjs";
33
33
  import "../chunk-SUH3FFFV.mjs";
34
34
  import "../chunk-RJH5TVHS.mjs";
35
35
  import "../chunk-IFV3VC5B.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-SPEH5RIP.mjs";
3
+ } from "../chunk-Z4ANBHUG.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-RJH5TVHS.mjs";
6
6
  import "../chunk-IFV3VC5B.mjs";
@@ -5,6 +5,9 @@ export { I as IAQModule } from '../IAQModule-4U3n2emx.mjs';
5
5
  export { I as IBaseDomain } from '../IBaseDomain-CUxofYh8.mjs';
6
6
  export { I as IPagePermission } from '../IPagePermission-992CbJhp.mjs';
7
7
 
8
+ interface IWorkingUnit extends IBaseEntity {
9
+ }
10
+
8
11
  interface IAccount extends IBaseEntity {
9
12
  password?: string;
10
13
  passwordHash?: string;
@@ -16,6 +19,7 @@ interface IAccount extends IBaseEntity {
16
19
  isBlocked?: boolean;
17
20
  AQModuleId?: number;
18
21
  avatarFileDetail?: IAQFileDetail;
22
+ workingUnit?: IWorkingUnit;
19
23
  workingUnitId?: number;
20
24
  workingUnitName?: string;
21
25
  gender?: number;
@@ -126,4 +130,4 @@ interface IPageContent extends IBaseEntity {
126
130
  description?: string;
127
131
  }
128
132
 
129
- export { type IAccount, IBaseEntity, type ICodeFormula, type IDepartment, type IDocument, type IDocumentAttribute, type IEmailVariable, type IFile, type IPage, type IPageContent, type IUser };
133
+ export { type IAccount, IBaseEntity, type ICodeFormula, type IDepartment, type IDocument, type IDocumentAttribute, type IEmailVariable, type IFile, type IPage, type IPageContent, type IUser, type IWorkingUnit };
@@ -113,7 +113,7 @@ import {
113
113
  MailTemplateDeleteButton,
114
114
  useS_moduleConfig,
115
115
  useStore_Authenticate
116
- } from "../chunk-SPEH5RIP.mjs";
116
+ } from "../chunk-Z4ANBHUG.mjs";
117
117
  import "../chunk-SUH3FFFV.mjs";
118
118
  import "../chunk-RJH5TVHS.mjs";
119
119
  import "../chunk-IFV3VC5B.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MySelect
3
- } from "../chunk-SPEH5RIP.mjs";
3
+ } from "../chunk-Z4ANBHUG.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-RJH5TVHS.mjs";
6
6
  import {
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "types": "./dist/types/index.d.mts"
59
59
  }
60
60
  },
61
- "version": "0.1.819",
61
+ "version": "0.1.821",
62
62
  "private": false,
63
63
  "files": [
64
64
  "dist"