aq-fe-framework 0.1.676 → 0.1.678

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.
@@ -114,7 +114,8 @@ var getActionConfig = (colorScheme) => ({
114
114
  tempUpdate: {
115
115
  color: "yellow",
116
116
  children: /* @__PURE__ */ jsx(IconPencil, {})
117
- }
117
+ },
118
+ viewFile: {}
118
119
  });
119
120
  function MyActionIcon(_a) {
120
121
  var _b = _a, { children, actionType: actionType2 } = _b, rest = __objRest(_b, ["children", "actionType"]);
@@ -140,6 +141,7 @@ import {
140
141
  IconDeviceFloppy as IconDeviceFloppy2,
141
142
  IconDownload,
142
143
  IconEdit as IconEdit2,
144
+ IconLivePhoto,
143
145
  IconPencil as IconPencil2,
144
146
  IconPlus as IconPlus2,
145
147
  IconPrinter as IconPrinter2,
@@ -214,6 +216,11 @@ var getActionConfig2 = (colorScheme) => ({
214
216
  tempUpdate: {
215
217
  color: "yellow",
216
218
  leftSection: /* @__PURE__ */ jsx2(IconPencil2, {})
219
+ },
220
+ viewFile: {
221
+ color: "cyan",
222
+ leftSection: /* @__PURE__ */ jsx2(IconLivePhoto, {}),
223
+ children: "Xem file"
217
224
  }
218
225
  });
219
226
  function MyButton(_a) {
@@ -560,7 +567,8 @@ function MyButtonViewFile(_a) {
560
567
  MyButtonModal,
561
568
  __spreadProps(__spreadValues({
562
569
  buttonProps: {
563
- disabled: !file
570
+ disabled: !file,
571
+ actionType: "viewFile"
564
572
  },
565
573
  toolTipProps: {
566
574
  label: file ? void 0 : "Kh\xF4ng c\xF3 file \u0111\u1EC3 hi\u1EC3n th\u1ECB"
@@ -1171,7 +1179,7 @@ function MyActionIconUpload() {
1171
1179
  // src/components/ActionIcons/ActionIconViewPdf/MyActionIconViewPDF.tsx
1172
1180
  import { ActionIcon as ActionIcon8, Group as Group2, Modal as Modal5, Paper, Text as Text4, Tooltip as Tooltip4 } from "@mantine/core";
1173
1181
  import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
1174
- import { IconLivePhoto, IconMaximize, IconMinimize } from "@tabler/icons-react";
1182
+ import { IconLivePhoto as IconLivePhoto2, IconMaximize, IconMinimize } from "@tabler/icons-react";
1175
1183
  import { useState as useState3 } from "react";
1176
1184
  import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
1177
1185
  function MyActionIconViewPDF(_a) {
@@ -1186,7 +1194,7 @@ function MyActionIconViewPDF(_a) {
1186
1194
  const fullScreen = useState3(false);
1187
1195
  const hSize = useState3("80vh");
1188
1196
  return /* @__PURE__ */ jsxs11(Fragment7, { children: [
1189
- /* @__PURE__ */ jsx23(Tooltip4, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: /* @__PURE__ */ jsx23(ActionIcon8, __spreadProps(__spreadValues({ color: "cyan", onClick: disc[1].open }, rest), { children: /* @__PURE__ */ jsx23(IconLivePhoto, {}) })) }),
1197
+ /* @__PURE__ */ jsx23(Tooltip4, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: /* @__PURE__ */ jsx23(ActionIcon8, __spreadProps(__spreadValues({ color: "cyan", onClick: disc[1].open }, rest), { children: /* @__PURE__ */ jsx23(IconLivePhoto2, {}) })) }),
1190
1198
  /* @__PURE__ */ jsx23(
1191
1199
  Modal5,
1192
1200
  {
@@ -2564,7 +2572,7 @@ import {
2564
2572
  Tooltip as Tooltip5
2565
2573
  } from "@mantine/core";
2566
2574
  import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
2567
- import { IconLivePhoto as IconLivePhoto2, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
2575
+ import { IconLivePhoto as IconLivePhoto3, IconMaximize as IconMaximize3, IconMinimize as IconMinimize3 } from "@tabler/icons-react";
2568
2576
  import { useQuery } from "@tanstack/react-query";
2569
2577
  import { useEffect as useEffect6, useState as useState8 } from "react";
2570
2578
  import { Fragment as Fragment14, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
@@ -2611,7 +2619,7 @@ function MyButtonViewPDF({
2611
2619
  };
2612
2620
  }, [query.data]);
2613
2621
  return /* @__PURE__ */ jsxs25(Fragment14, { children: [
2614
- /* @__PURE__ */ jsx43(Tooltip5, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx43(ActionIcon12, { onClick: open, children: /* @__PURE__ */ jsx43(IconLivePhoto2, {}) }) : /* @__PURE__ */ jsx43(Button14, { color: "cyan", onClick: open, leftSection: /* @__PURE__ */ jsx43(IconLivePhoto2, {}), children: label }) }),
2622
+ /* @__PURE__ */ jsx43(Tooltip5, { label: "Xem t\xE0i li\u1EC7u tr\u1EF1c ti\u1EBFp", children: isActionIcon ? /* @__PURE__ */ jsx43(ActionIcon12, { onClick: open, children: /* @__PURE__ */ jsx43(IconLivePhoto3, {}) }) : /* @__PURE__ */ jsx43(Button14, { color: "cyan", onClick: open, leftSection: /* @__PURE__ */ jsx43(IconLivePhoto3, {}), children: label }) }),
2615
2623
  /* @__PURE__ */ jsx43(
2616
2624
  Modal12,
2617
2625
  {
@@ -70,7 +70,7 @@ import {
70
70
  useHeaderMegaMenuStore,
71
71
  useS_ButtonImport,
72
72
  useStore_BasicAppShell
73
- } from "../chunk-VO2EUP4E.mjs";
73
+ } from "../chunk-BXJHJG7Z.mjs";
74
74
  import "../chunk-SUH3FFFV.mjs";
75
75
  import "../chunk-GMM6RIVS.mjs";
76
76
  import "../chunk-7PUDC2WF.mjs";
@@ -24,7 +24,7 @@ import {
24
24
  MyStatsCard,
25
25
  MyTextInput2 as MyTextInput,
26
26
  MyWeeklySessionSchedulerPicker
27
- } from "../chunk-VO2EUP4E.mjs";
27
+ } from "../chunk-BXJHJG7Z.mjs";
28
28
  import "../chunk-SUH3FFFV.mjs";
29
29
  import "../chunk-GMM6RIVS.mjs";
30
30
  import "../chunk-7PUDC2WF.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyModalDelete
3
- } from "../chunk-VO2EUP4E.mjs";
3
+ } from "../chunk-BXJHJG7Z.mjs";
4
4
  import "../chunk-SUH3FFFV.mjs";
5
5
  import "../chunk-GMM6RIVS.mjs";
6
6
  import "../chunk-7PUDC2WF.mjs";
@@ -106,7 +106,7 @@ import {
106
106
  Feat_accessControlLevel,
107
107
  useS_authenticate,
108
108
  useS_moduleConfig
109
- } from "../chunk-VO2EUP4E.mjs";
109
+ } from "../chunk-BXJHJG7Z.mjs";
110
110
  import "../chunk-SUH3FFFV.mjs";
111
111
  import "../chunk-GMM6RIVS.mjs";
112
112
  import "../chunk-7PUDC2WF.mjs";
@@ -3,6 +3,6 @@ export { a as typeLabel_mutation, t as type_mutation } from '../type_mutation-CC
3
3
 
4
4
  type type_mantineSize = number | MantineSize | (string & {}) | undefined;
5
5
  type type_tempStatus = "default" | "created" | "updated" | "deleted";
6
- type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete" | "tempUpdate";
6
+ type type_action = "default" | "create" | "update" | "delete" | "save" | "createMultiple" | "check" | "import" | "print" | "cancel" | "export" | "select" | "find" | "tempDelete" | "tempUpdate" | "viewFile";
7
7
 
8
8
  export type { type_action, type_mantineSize, type_tempStatus };
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "types": "./dist/types/index.d.mts"
51
51
  }
52
52
  },
53
- "version": "0.1.676",
53
+ "version": "0.1.678",
54
54
  "private": false,
55
55
  "files": [
56
56
  "dist"