@kingteza/crud-component 1.0.6 → 1.0.9
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.
- package/dist/_virtual/FileSaver.min.cjs +1 -0
- package/dist/_virtual/FileSaver.min.js +5 -0
- package/dist/_virtual/FileSaver.min2.cjs +1 -0
- package/dist/_virtual/FileSaver.min2.js +4 -0
- package/dist/_virtual/ShowMoreText.cjs +1 -0
- package/dist/_virtual/ShowMoreText.js +7 -0
- package/dist/_virtual/ShowMoreText2.cjs +1 -0
- package/dist/_virtual/ShowMoreText2.js +4 -0
- package/dist/_virtual/Truncate.cjs +1 -0
- package/dist/_virtual/Truncate.js +4 -0
- package/dist/_virtual/_commonjsHelpers.cjs +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -3
- package/dist/_virtual/index.cjs +1 -1
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index10.cjs +1 -0
- package/dist/_virtual/index10.js +7 -0
- package/dist/_virtual/index11.cjs +1 -0
- package/dist/_virtual/index11.js +7 -0
- package/dist/_virtual/index12.cjs +1 -0
- package/dist/_virtual/index12.js +4 -0
- package/dist/_virtual/index13.cjs +1 -0
- package/dist/_virtual/index13.js +4 -0
- package/dist/_virtual/index2.cjs +1 -1
- package/dist/_virtual/index2.js +3 -5
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index3.js +5 -2
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.cjs +1 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index7.cjs +1 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/index8.cjs +1 -0
- package/dist/_virtual/index8.js +2 -0
- package/dist/_virtual/index9.cjs +1 -0
- package/dist/_virtual/index9.js +7 -0
- package/dist/_virtual/main.cjs +1 -0
- package/dist/_virtual/main.js +7 -0
- package/dist/_virtual/main2.cjs +1 -0
- package/dist/_virtual/main2.js +4 -0
- package/dist/_virtual/papaparse.min.cjs +1 -0
- package/dist/_virtual/papaparse.min.js +7 -0
- package/dist/_virtual/papaparse.min2.cjs +1 -0
- package/dist/_virtual/papaparse.min2.js +4 -0
- package/dist/_virtual/react-is.development2.cjs +1 -0
- package/dist/_virtual/react-is.development2.js +4 -0
- package/dist/_virtual/react-is.production.min2.cjs +1 -0
- package/dist/_virtual/react-is.production.min2.js +4 -0
- package/dist/src/components/common/DatePicker/DatePicker.cjs +1 -1
- package/dist/src/components/common/DatePicker/DatePicker.js +23 -22
- package/dist/src/components/common/DatePicker/TimePicker.cjs +1 -1
- package/dist/src/components/common/DatePicker/TimePicker.js +14 -13
- package/dist/src/components/common/button/Button.cjs +1 -1
- package/dist/src/components/common/button/Button.js +32 -31
- package/dist/src/components/common/button/CloneButtonTable.cjs +1 -1
- package/dist/src/components/common/button/CloneButtonTable.js +7 -7
- package/dist/src/components/common/button/DeleteButtonTable.cjs +1 -1
- package/dist/src/components/common/button/DeleteButtonTable.js +22 -22
- package/dist/src/components/common/button/ExportButton.cjs +1 -1
- package/dist/src/components/common/button/ExportButton.js +13 -13
- package/dist/src/components/common/button/HideButtonTable.cjs +1 -1
- package/dist/src/components/common/button/HideButtonTable.js +20 -20
- package/dist/src/components/common/button/ImportButton.cjs +1 -1
- package/dist/src/components/common/button/ImportButton.js +25 -25
- package/dist/src/components/common/button/NewButton.cjs +1 -1
- package/dist/src/components/common/button/NewButton.js +15 -15
- package/dist/src/components/common/button/PrintButton.cjs +1 -1
- package/dist/src/components/common/button/PrintButton.js +14 -14
- package/dist/src/components/common/button/RefreshButton.cjs +1 -1
- package/dist/src/components/common/button/RefreshButton.js +12 -12
- package/dist/src/components/common/button/UnHideButton.cjs +1 -1
- package/dist/src/components/common/button/UnHideButton.js +31 -31
- package/dist/src/components/common/button/UpdateButtonTable.cjs +1 -1
- package/dist/src/components/common/button/UpdateButtonTable.js +9 -9
- package/dist/src/components/common/button/ViewButtonTable.cjs +1 -1
- package/dist/src/components/common/button/ViewButtonTable.js +11 -11
- package/dist/src/components/common/check-box/CheckBox.cjs +1 -1
- package/dist/src/components/common/check-box/CheckBox.js +17 -15
- package/dist/src/components/common/description/DescList.cjs +1 -1
- package/dist/src/components/common/description/DescList.js +1 -1
- package/dist/src/components/common/layout/VerticalSpace.cjs +1 -1
- package/dist/src/components/common/layout/VerticalSpace.js +1 -1
- package/dist/src/components/common/loading/LoadingIndicator.cjs +1 -1
- package/dist/src/components/common/loading/LoadingIndicator.js +11 -10
- package/dist/src/components/common/picker/ImagePicker.cjs +1 -1
- package/dist/src/components/common/picker/ImagePicker.js +95 -90
- package/dist/src/components/common/radio/RadioGroupComponent.cjs +1 -1
- package/dist/src/components/common/radio/RadioGroupComponent.js +17 -16
- package/dist/src/components/common/report/SelectFieldInReport.cjs +1 -1
- package/dist/src/components/common/report/SelectFieldInReport.js +17 -16
- package/dist/src/components/common/select/CustomSelectOption.cjs +1 -1
- package/dist/src/components/common/select/CustomSelectOption.js +1 -1
- package/dist/src/components/common/select/SelectComponent.cjs +1 -1
- package/dist/src/components/common/select/SelectComponent.js +36 -33
- package/dist/src/components/common/show-more/index.cjs +1 -1
- package/dist/src/components/common/show-more/index.js +1 -1
- package/dist/src/components/common/tab/TabViewWithRoute.cjs +1 -1
- package/dist/src/components/common/tab/TabViewWithRoute.js +10 -10
- package/dist/src/components/common/table/table.cjs +1 -1
- package/dist/src/components/common/table/table.js +16 -16
- package/dist/src/components/common/tag/StatusTag.cjs +1 -1
- package/dist/src/components/common/tag/StatusTag.js +4 -4
- package/dist/src/components/common/text/index.cjs +1 -1
- package/dist/src/components/common/text/index.js +1 -1
- package/dist/src/components/common/text/title/index.cjs +1 -1
- package/dist/src/components/common/text/title/index.js +1 -1
- package/dist/src/components/common/text-field/NumberField.cjs +1 -1
- package/dist/src/components/common/text-field/NumberField.js +20 -19
- package/dist/src/components/common/text-field/TextArea.cjs +1 -1
- package/dist/src/components/common/text-field/TextArea.js +19 -18
- package/dist/src/components/common/text-field/TextField.cjs +1 -1
- package/dist/src/components/common/text-field/TextField.js +37 -36
- package/dist/src/components/common/tooltip/TooltipComponent.cjs +1 -1
- package/dist/src/components/common/tooltip/TooltipComponent.js +1 -1
- package/dist/src/components/common/wizard/WizardResult.cjs +1 -1
- package/dist/src/components/common/wizard/WizardResult.js +37 -36
- package/dist/src/components/common/wizard/WizardViewForm.cjs +1 -1
- package/dist/src/components/common/wizard/WizardViewForm.js +1 -1
- package/dist/src/components/crud/CrudComponent.cjs +1 -1
- package/dist/src/components/crud/CrudComponent.js +74 -71
- package/dist/src/components/crud/CrudField.cjs +1 -1
- package/dist/src/components/crud/CrudField.js +111 -108
- package/dist/src/components/crud/CrudForm.cjs +1 -1
- package/dist/src/components/crud/CrudForm.js +36 -33
- package/dist/src/components/crud/CrudFormWizard.cjs +1 -1
- package/dist/src/components/crud/CrudFormWizard.js +78 -73
- package/dist/src/components/crud/CrudReportComponent.cjs +3 -3
- package/dist/src/components/crud/CrudReportComponent.js +75 -71
- package/dist/src/components/crud/CrudSearchComponent.cjs +1 -1
- package/dist/src/components/crud/CrudSearchComponent.js +17 -15
- package/dist/src/components/crud/FileCrudField.cjs +1 -1
- package/dist/src/components/crud/FileCrudField.js +103 -94
- package/dist/src/components/crud/ImageCrudField.cjs +1 -1
- package/dist/src/components/crud/ImageCrudField.js +58 -55
- package/dist/src/components/crud/import/CrudImportButton.cjs +1 -1
- package/dist/src/components/crud/import/CrudImportButton.js +10 -10
- package/dist/src/components/crud/import/CrudImportComponent.cjs +2 -2
- package/dist/src/components/crud/import/CrudImportComponent.js +111 -106
- package/dist/src/components/crud/view/CrudViewer.cjs +1 -1
- package/dist/src/components/crud/view/CrudViewer.js +30 -30
- package/dist/src/components/crud/view/CrudViewerUtil.cjs +1 -1
- package/dist/src/components/crud/view/CrudViewerUtil.js +35 -33
- package/dist/src/util/ImageUtil.cjs +1 -1
- package/dist/src/util/ImageUtil.js +1 -1
- package/package.json +7 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../../_virtual/jsx-runtime.cjs"),n=require("react"),j=require("./Button.cjs"),q=require("react-i18next"),E=require("../../../locale/hooks/translation-constants.cjs"),p=require("../../../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.cjs"),R=require("../../../../node_modules/antd/es/popconfirm/index.cjs");function T({shouldConfirm:m=!0,block:r,value:u,loading:i,onClick:a,text:l,disabled:c,type:x="link"}){const{t}=q.useTranslation(E.TRANSLATION_NAMESPACE),s=n.useMemo(()=>l??t("str.delete"),[l,t]),[d,o]=n.useState(!1);n.useEffect(()=>{o(i??!1)},[i]);const f=n.useCallback(async()=>{try{o(!0),await a(u)}finally{o(!1)}},[a,u]);return m?e.jsxRuntimeExports.jsx(R.default,{title:t("qus.doYouWantToDelete"),okText:s.toUpperCase(),cancelText:t("str.no").toUpperCase(),onConfirm:f,children:e.jsxRuntimeExports.jsx(j.default,{tooltip:s,icon:e.jsxRuntimeExports.jsx(p.default,{}),disabled:c,loading:d,type:x,danger:!0,block:r})}):e.jsxRuntimeExports.jsx(j.default,{tooltip:s,icon:e.jsxRuntimeExports.jsx(p.default,{}),disabled:c,loading:d,type:x,danger:!0,block:r,onClick:f})}exports.default=T;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
function
|
|
2
|
+
import { useMemo as j, useState as C, useEffect as T, useCallback as g } from "react";
|
|
3
|
+
import c from "./Button.js";
|
|
4
|
+
import { useTranslation as A } from "react-i18next";
|
|
5
|
+
import { TRANSLATION_NAMESPACE as E } from "../../../locale/hooks/translation-constants.js";
|
|
6
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.js";
|
|
7
|
+
import _ from "../../../../node_modules/antd/es/popconfirm/index.js";
|
|
8
|
+
function I({
|
|
9
9
|
shouldConfirm: d = !0,
|
|
10
10
|
block: n,
|
|
11
11
|
value: s,
|
|
12
12
|
loading: i,
|
|
13
13
|
onClick: a,
|
|
14
14
|
text: l,
|
|
15
|
-
disabled:
|
|
16
|
-
type:
|
|
15
|
+
disabled: f,
|
|
16
|
+
type: m = "link"
|
|
17
17
|
}) {
|
|
18
|
-
const { t: o } = E
|
|
19
|
-
|
|
18
|
+
const { t: o } = A(E), e = j(() => l ?? o("str.delete"), [l, o]), [u, r] = C(!1);
|
|
19
|
+
T(() => {
|
|
20
20
|
r(i ?? !1);
|
|
21
21
|
}, [i]);
|
|
22
|
-
const p =
|
|
22
|
+
const p = g(
|
|
23
23
|
async () => {
|
|
24
24
|
try {
|
|
25
25
|
r(!0), await a(s);
|
|
@@ -30,33 +30,33 @@ function O({
|
|
|
30
30
|
[a, s]
|
|
31
31
|
);
|
|
32
32
|
return d ? /* @__PURE__ */ t.jsx(
|
|
33
|
-
|
|
33
|
+
_,
|
|
34
34
|
{
|
|
35
35
|
title: o("qus.doYouWantToDelete"),
|
|
36
36
|
okText: e.toUpperCase(),
|
|
37
37
|
cancelText: o("str.no").toUpperCase(),
|
|
38
38
|
onConfirm: p,
|
|
39
39
|
children: /* @__PURE__ */ t.jsx(
|
|
40
|
-
|
|
40
|
+
c,
|
|
41
41
|
{
|
|
42
42
|
tooltip: e,
|
|
43
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
44
|
-
disabled:
|
|
43
|
+
icon: /* @__PURE__ */ t.jsx(x, {}),
|
|
44
|
+
disabled: f,
|
|
45
45
|
loading: u,
|
|
46
|
-
type:
|
|
46
|
+
type: m,
|
|
47
47
|
danger: !0,
|
|
48
48
|
block: n
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
}
|
|
52
52
|
) : /* @__PURE__ */ t.jsx(
|
|
53
|
-
|
|
53
|
+
c,
|
|
54
54
|
{
|
|
55
55
|
tooltip: e,
|
|
56
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
57
|
-
disabled:
|
|
56
|
+
icon: /* @__PURE__ */ t.jsx(x, {}),
|
|
57
|
+
disabled: f,
|
|
58
58
|
loading: u,
|
|
59
|
-
type:
|
|
59
|
+
type: m,
|
|
60
60
|
danger: !0,
|
|
61
61
|
block: n,
|
|
62
62
|
onClick: p
|
|
@@ -64,5 +64,5 @@ function O({
|
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
I as default
|
|
68
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../_virtual/jsx-runtime.cjs"),s=require("react"),a=require("react-i18next"),c=require("./Button.cjs"),l=require("../../../locale/hooks/translation-constants.cjs"),x=require("../../../../node_modules/@ant-design/icons/es/icons/ExportOutlined.cjs");function p({value:t,onClick:e}){const[r,n]=s.useState(!1),{t:i}=a.useTranslation(l.TRANSLATION_NAMESPACE),u=s.useCallback(async()=>{n(!0),e(t).finally(()=>n(!1))},[e,t]);return o.jsxRuntimeExports.jsx(c.default,{loading:r,type:"link",onClick:u,icon:o.jsxRuntimeExports.jsx(x.default,{}),tooltip:i("str.export")})}exports.ExportButton=p;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { j as n } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useTranslation as l } from "react-i18next";
|
|
2
|
+
import { useState as m, useCallback as p } from "react";
|
|
3
|
+
import { useTranslation as a } from "react-i18next";
|
|
5
4
|
import f from "./Button.js";
|
|
6
5
|
import { TRANSLATION_NAMESPACE as c } from "../../../locale/hooks/translation-constants.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import l from "../../../../node_modules/@ant-design/icons/es/icons/ExportOutlined.js";
|
|
7
|
+
function y({
|
|
8
|
+
value: o,
|
|
9
|
+
onClick: t
|
|
10
10
|
}) {
|
|
11
|
-
const [
|
|
12
|
-
r(!0), o
|
|
13
|
-
}, [
|
|
11
|
+
const [s, r] = m(!1), { t: i } = a(c), e = p(async () => {
|
|
12
|
+
r(!0), t(o).finally(() => r(!1));
|
|
13
|
+
}, [t, o]);
|
|
14
14
|
return /* @__PURE__ */ n.jsx(
|
|
15
15
|
f,
|
|
16
16
|
{
|
|
17
|
-
loading:
|
|
17
|
+
loading: s,
|
|
18
18
|
type: "link",
|
|
19
19
|
onClick: e,
|
|
20
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
21
|
-
tooltip:
|
|
20
|
+
icon: /* @__PURE__ */ n.jsx(l, {}),
|
|
21
|
+
tooltip: i("str.export")
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
y as ExportButton
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),n=require("react"),q=require("react-i18next"),C=require("../../../locale/hooks/translation-constants.cjs"),j=require("./Button.cjs"),p=require("../../../../node_modules/@ant-design/icons/es/icons/DownCircleOutlined.cjs"),E=require("../../../../node_modules/antd/es/popconfirm/index.cjs");function R({shouldConfirm:m=!0,block:r,value:u,loading:i,onClick:a,text:l,disabled:c,type:x="link"}){const{t:e}=q.useTranslation(C.TRANSLATION_NAMESPACE),s=n.useMemo(()=>l??e("str.hide"),[l,e]),[d,o]=n.useState(!1);n.useEffect(()=>{o(i??!1)},[i]);const f=n.useCallback(async()=>{try{o(!0),await a(u)}finally{o(!1)}},[a,u]);return m?t.jsxRuntimeExports.jsx(E.default,{title:e("qus.doYouWantToHide"),okText:s.toUpperCase(),cancelText:e("str.no").toUpperCase(),onConfirm:f,children:t.jsxRuntimeExports.jsx(j.default,{tooltip:s,icon:t.jsxRuntimeExports.jsx(p.default,{}),disabled:c,loading:d,type:x,danger:!0,block:r})}):t.jsxRuntimeExports.jsx(j.default,{tooltip:s,icon:t.jsxRuntimeExports.jsx(p.default,{}),disabled:c,loading:d,type:x,danger:!0,block:r,onClick:f})}exports.default=R;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { useMemo as j, useState as C, useEffect as T, useCallback as g } from "react";
|
|
3
|
+
import { useTranslation as A } from "react-i18next";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as E } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import c from "./Button.js";
|
|
6
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/DownCircleOutlined.js";
|
|
7
|
+
import _ from "../../../../node_modules/antd/es/popconfirm/index.js";
|
|
8
8
|
function H({
|
|
9
|
-
shouldConfirm:
|
|
9
|
+
shouldConfirm: d = !0,
|
|
10
10
|
block: n,
|
|
11
11
|
value: i,
|
|
12
12
|
loading: s,
|
|
13
13
|
onClick: a,
|
|
14
|
-
text:
|
|
14
|
+
text: f,
|
|
15
15
|
disabled: m,
|
|
16
|
-
type:
|
|
16
|
+
type: l = "link"
|
|
17
17
|
}) {
|
|
18
|
-
const { t } = E
|
|
19
|
-
|
|
18
|
+
const { t } = A(E), r = j(() => f ?? t("str.hide"), [f, t]), [u, e] = C(!1);
|
|
19
|
+
T(() => {
|
|
20
20
|
e(s ?? !1);
|
|
21
21
|
}, [s]);
|
|
22
|
-
const p =
|
|
22
|
+
const p = g(
|
|
23
23
|
async () => {
|
|
24
24
|
try {
|
|
25
25
|
e(!0), await a(i);
|
|
@@ -29,34 +29,34 @@ function H({
|
|
|
29
29
|
},
|
|
30
30
|
[a, i]
|
|
31
31
|
);
|
|
32
|
-
return
|
|
33
|
-
|
|
32
|
+
return d ? /* @__PURE__ */ o.jsx(
|
|
33
|
+
_,
|
|
34
34
|
{
|
|
35
35
|
title: t("qus.doYouWantToHide"),
|
|
36
36
|
okText: r.toUpperCase(),
|
|
37
37
|
cancelText: t("str.no").toUpperCase(),
|
|
38
38
|
onConfirm: p,
|
|
39
39
|
children: /* @__PURE__ */ o.jsx(
|
|
40
|
-
|
|
40
|
+
c,
|
|
41
41
|
{
|
|
42
42
|
tooltip: r,
|
|
43
|
-
icon: /* @__PURE__ */ o.jsx(
|
|
43
|
+
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
44
44
|
disabled: m,
|
|
45
45
|
loading: u,
|
|
46
|
-
type:
|
|
46
|
+
type: l,
|
|
47
47
|
danger: !0,
|
|
48
48
|
block: n
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
}
|
|
52
52
|
) : /* @__PURE__ */ o.jsx(
|
|
53
|
-
|
|
53
|
+
c,
|
|
54
54
|
{
|
|
55
55
|
tooltip: r,
|
|
56
|
-
icon: /* @__PURE__ */ o.jsx(
|
|
56
|
+
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
57
57
|
disabled: m,
|
|
58
58
|
loading: u,
|
|
59
|
-
type:
|
|
59
|
+
type: l,
|
|
60
60
|
danger: !0,
|
|
61
61
|
block: n,
|
|
62
62
|
onClick: p
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../_virtual/jsx-runtime.cjs"),n=require("react"),g=require("react-i18next"),R=require("../../../locale/hooks/translation-constants.cjs"),k=require("./Button.cjs"),q=require("../../../../node_modules/@ant-design/icons/es/icons/ImportOutlined.cjs");function C({onClick:o,children:u,accept:c,className:a,disabled:l,type:x="link"}){const[p,r]=n.useState(!1),{t:f}=g.useTranslation(R.TRANSLATION_NAMESPACE),e=n.useRef(null),m=n.useCallback(()=>{j(t=>t+1),e.current&&setTimeout(()=>{var t;(t=e==null?void 0:e.current)==null||t.click()},10)},[]),[d,j]=n.useState(0),y=n.useCallback(async t=>{r(!0);const i=t.target.files[0];i&&await o(i),r(!1)},[o]);return s.jsxRuntimeExports.jsxs("div",{className:a,children:[s.jsxRuntimeExports.jsx("input",{type:"file",style:{display:"none"},ref:e,onChange:y,accept:c},d),s.jsxRuntimeExports.jsx(k.default,{loading:p,type:x,disabled:l,onClick:m,icon:s.jsxRuntimeExports.jsx(q.default,{}),tooltip:f("str.import"),children:u})]})}exports.ImportButton=C;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { j as n } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import h from "
|
|
7
|
-
function
|
|
2
|
+
import { useState as r, useRef as k, useCallback as c } from "react";
|
|
3
|
+
import { useTranslation as C } from "react-i18next";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as A } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import T from "./Button.js";
|
|
6
|
+
import h from "../../../../node_modules/@ant-design/icons/es/icons/ImportOutlined.js";
|
|
7
|
+
function L({
|
|
8
8
|
onClick: e,
|
|
9
|
-
children:
|
|
10
|
-
accept:
|
|
11
|
-
className:
|
|
12
|
-
disabled:
|
|
13
|
-
type:
|
|
9
|
+
children: l,
|
|
10
|
+
accept: a,
|
|
11
|
+
className: m,
|
|
12
|
+
disabled: f,
|
|
13
|
+
type: p = "link"
|
|
14
14
|
}) {
|
|
15
|
-
const [
|
|
16
|
-
|
|
15
|
+
const [u, s] = r(!1), { t: x } = C(A), o = k(null), j = c(() => {
|
|
16
|
+
d((t) => t + 1), o.current && setTimeout(() => {
|
|
17
17
|
var t;
|
|
18
18
|
(t = o == null ? void 0 : o.current) == null || t.click();
|
|
19
19
|
}, 10);
|
|
20
|
-
}, []), [
|
|
20
|
+
}, []), [y, d] = r(0), g = c(
|
|
21
21
|
async (t) => {
|
|
22
22
|
s(!0);
|
|
23
23
|
const i = t.target.files[0];
|
|
@@ -25,7 +25,7 @@ function O({
|
|
|
25
25
|
},
|
|
26
26
|
[e]
|
|
27
27
|
);
|
|
28
|
-
return /* @__PURE__ */ n.jsxs("div", { className:
|
|
28
|
+
return /* @__PURE__ */ n.jsxs("div", { className: m, children: [
|
|
29
29
|
/* @__PURE__ */ n.jsx(
|
|
30
30
|
"input",
|
|
31
31
|
{
|
|
@@ -33,24 +33,24 @@ function O({
|
|
|
33
33
|
style: { display: "none" },
|
|
34
34
|
ref: o,
|
|
35
35
|
onChange: g,
|
|
36
|
-
accept:
|
|
36
|
+
accept: a
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
y
|
|
39
39
|
),
|
|
40
40
|
/* @__PURE__ */ n.jsx(
|
|
41
|
-
|
|
41
|
+
T,
|
|
42
42
|
{
|
|
43
|
-
loading:
|
|
44
|
-
type:
|
|
45
|
-
disabled:
|
|
46
|
-
onClick:
|
|
47
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
43
|
+
loading: u,
|
|
44
|
+
type: p,
|
|
45
|
+
disabled: f,
|
|
46
|
+
onClick: j,
|
|
47
|
+
icon: /* @__PURE__ */ n.jsx(h, {}),
|
|
48
48
|
tooltip: x("str.import"),
|
|
49
|
-
children:
|
|
49
|
+
children: l
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
] });
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
L as ImportButton
|
|
56
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.cjs"),a=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.cjs"),a=require("react-i18next"),l=require("./Button.cjs"),x=require("../../../locale/hooks/translation-constants.cjs"),d=require("../../../../node_modules/@ant-design/icons/es/icons/PlusOutlined.cjs"),j=({size:n,block:r,className:s,type:u="primary",onClick:t,title:o,to:i})=>{const{t:c}=a.useTranslation(x.TRANSLATION_NAMESPACE);return e.jsxRuntimeExports.jsx(l.default,{type:u,className:s,to:i,block:r,size:n,onClick:t&&(()=>t(!0)),icon:e.jsxRuntimeExports.jsx(d.default,{}),children:o??c("str.new")})};exports.NewButton=j;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { PlusOutlined as u } from "@ant-design/icons";
|
|
1
|
+
import { j as r } from "../../../../_virtual/jsx-runtime.js";
|
|
3
2
|
import { useTranslation as f } from "react-i18next";
|
|
4
|
-
import
|
|
5
|
-
import { TRANSLATION_NAMESPACE as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import u from "./Button.js";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as c } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/PlusOutlined.js";
|
|
6
|
+
const R = ({ size: t, block: n, className: m, type: e = "primary", onClick: o, title: i, to: s }) => {
|
|
7
|
+
const { t: p } = f(c);
|
|
8
|
+
return /* @__PURE__ */ r.jsx(
|
|
9
|
+
u,
|
|
10
10
|
{
|
|
11
|
-
type:
|
|
11
|
+
type: e,
|
|
12
12
|
className: m,
|
|
13
|
-
to:
|
|
13
|
+
to: s,
|
|
14
14
|
block: n,
|
|
15
|
-
size:
|
|
16
|
-
onClick:
|
|
17
|
-
icon: /* @__PURE__ */
|
|
18
|
-
children:
|
|
15
|
+
size: t,
|
|
16
|
+
onClick: o && (() => o(!0)),
|
|
17
|
+
icon: /* @__PURE__ */ r.jsx(x, {}),
|
|
18
|
+
children: i ?? p("str.new")
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
R as NewButton
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../_virtual/jsx-runtime.cjs"),x=require("react-i18next"),p=require("./Button.cjs"),d=require("../../../locale/hooks/translation-constants.cjs"),j=require("../../../../node_modules/@ant-design/icons/es/icons/PrinterOutlined.cjs"),m=({disabled:e,loading:s,block:i,className:o,type:u="primary",onClick:c,title:a,to:l})=>{const{t:r}=x.useTranslation(d.TRANSLATION_NAMESPACE),t=a??r("str.print");return n.jsxRuntimeExports.jsx(p.default,{type:u,className:o,to:l,loading:s,disabled:e,block:i,onClick:c,tooltip:t!=null&&t.trim()?"":r("str.print"),icon:n.jsxRuntimeExports.jsx(j.default,{}),children:t})};exports.PrintButton=m;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const { t:
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { j as r } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useTranslation as u } from "react-i18next";
|
|
3
|
+
import x from "./Button.js";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as a } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import j from "../../../../node_modules/@ant-design/icons/es/icons/PrinterOutlined.js";
|
|
6
|
+
const l = ({ disabled: n, loading: i, block: m, className: p, type: s = "primary", onClick: c, title: e, to: f }) => {
|
|
7
|
+
const { t: o } = u(a), t = e ?? o("str.print");
|
|
8
|
+
return /* @__PURE__ */ r.jsx(
|
|
9
|
+
x,
|
|
10
10
|
{
|
|
11
11
|
type: s,
|
|
12
12
|
className: p,
|
|
13
|
-
to:
|
|
13
|
+
to: f,
|
|
14
14
|
loading: i,
|
|
15
15
|
disabled: n,
|
|
16
16
|
block: m,
|
|
17
|
-
onClick:
|
|
18
|
-
tooltip: t != null && t.trim() ? "" :
|
|
19
|
-
icon: /* @__PURE__ */
|
|
17
|
+
onClick: c,
|
|
18
|
+
tooltip: t != null && t.trim() ? "" : o("str.print"),
|
|
19
|
+
icon: /* @__PURE__ */ r.jsx(j, {}),
|
|
20
20
|
children: t
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
l as PrintButton
|
|
26
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../_virtual/jsx-runtime.cjs"),c=require("react-i18next"),l=require("../../../locale/hooks/translation-constants.cjs"),x=require("./Button.cjs"),d=require("../../../../node_modules/@ant-design/icons/es/icons/ReloadOutlined.cjs"),R=({disabled:r,block:n,className:s,type:o="primary",onClick:t,title:u,to:i})=>{const{t:a}=c.useTranslation(l.TRANSLATION_NAMESPACE);return e.jsxRuntimeExports.jsx(x.default,{type:o,disabled:r,className:s,to:i,block:n,onClick:t&&(()=>t(!0)),icon:e.jsxRuntimeExports.jsx(d.default,{}),children:u??a("str.refresh")})};exports.RefreshButton=R;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import x from "
|
|
6
|
-
const
|
|
7
|
-
const { t: p } = u
|
|
2
|
+
import { useTranslation as f } from "react-i18next";
|
|
3
|
+
import { TRANSLATION_NAMESPACE as u } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
+
import c from "./Button.js";
|
|
5
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/ReloadOutlined.js";
|
|
6
|
+
const E = ({ disabled: t, block: m, className: n, type: e = "primary", onClick: r, title: s, to: i }) => {
|
|
7
|
+
const { t: p } = f(u);
|
|
8
8
|
return /* @__PURE__ */ o.jsx(
|
|
9
|
-
|
|
9
|
+
c,
|
|
10
10
|
{
|
|
11
|
-
type:
|
|
11
|
+
type: e,
|
|
12
12
|
disabled: t,
|
|
13
|
-
className:
|
|
13
|
+
className: n,
|
|
14
14
|
to: i,
|
|
15
|
-
block:
|
|
15
|
+
block: m,
|
|
16
16
|
onClick: r && (() => r(!0)),
|
|
17
|
-
icon: /* @__PURE__ */ o.jsx(
|
|
17
|
+
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
18
18
|
children: s ?? p("str.refresh")
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
E as RefreshButton
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),n=require("react"),C=require("react-i18next"),j=require("./Button.cjs"),E=require("../../../locale/hooks/translation-constants.cjs"),p=require("../../../../node_modules/@ant-design/icons/es/icons/UpCircleOutlined.cjs"),R=require("../../../../node_modules/antd/es/popconfirm/index.cjs");function g({shouldConfirm:m=!0,block:r,value:u,loading:i,onClick:a,text:l,disabled:c,type:x="link",hidden:q}){const{t:e}=C.useTranslation(E.TRANSLATION_NAMESPACE),s=n.useMemo(()=>l??e("str.unhide"),[l,e]),[d,o]=n.useState(!1);n.useEffect(()=>{o(i??!1)},[i]);const f=n.useCallback(async()=>{try{o(!0),await a(u)}finally{o(!1)}},[a,u]);return m?t.jsxRuntimeExports.jsx(R.default,{title:e("qus.doYouWantToHide"),okText:s.toUpperCase(),cancelText:e("str.no").toUpperCase(),onConfirm:f,children:t.jsxRuntimeExports.jsx(j.default,{tooltip:s,icon:t.jsxRuntimeExports.jsx(p.default,{}),disabled:c,loading:d,type:x,danger:!0,hidden:q,block:r})}):t.jsxRuntimeExports.jsx(j.default,{tooltip:s,icon:t.jsxRuntimeExports.jsx(p.default,{}),disabled:c,loading:d,type:x,danger:!0,block:r,onClick:f})}exports.default=g;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { useTranslation as U } from "react-i18next";
|
|
6
|
-
import d from "./Button.js";
|
|
1
|
+
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { useMemo as C, useState as T, useEffect as g, useCallback as A } from "react";
|
|
3
|
+
import { useTranslation as E } from "react-i18next";
|
|
4
|
+
import c from "./Button.js";
|
|
7
5
|
import { TRANSLATION_NAMESPACE as _ } from "../../../locale/hooks/translation-constants.js";
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/UpCircleOutlined.js";
|
|
7
|
+
import k from "../../../../node_modules/antd/es/popconfirm/index.js";
|
|
8
|
+
function H({
|
|
9
|
+
shouldConfirm: d = !0,
|
|
10
10
|
block: e,
|
|
11
11
|
value: i,
|
|
12
12
|
loading: s,
|
|
13
13
|
onClick: a,
|
|
14
|
-
text:
|
|
15
|
-
disabled:
|
|
16
|
-
type:
|
|
17
|
-
hidden:
|
|
14
|
+
text: f,
|
|
15
|
+
disabled: m,
|
|
16
|
+
type: u = "link",
|
|
17
|
+
hidden: j
|
|
18
18
|
}) {
|
|
19
|
-
const { t
|
|
20
|
-
|
|
19
|
+
const { t } = E(_), n = C(() => f ?? t("str.unhide"), [f, t]), [l, r] = T(!1);
|
|
20
|
+
g(() => {
|
|
21
21
|
r(s ?? !1);
|
|
22
22
|
}, [s]);
|
|
23
|
-
const p =
|
|
23
|
+
const p = A(
|
|
24
24
|
async () => {
|
|
25
25
|
try {
|
|
26
26
|
r(!0), await a(i);
|
|
@@ -30,35 +30,35 @@ function M({
|
|
|
30
30
|
},
|
|
31
31
|
[a, i]
|
|
32
32
|
);
|
|
33
|
-
return
|
|
34
|
-
|
|
33
|
+
return d ? /* @__PURE__ */ o.jsx(
|
|
34
|
+
k,
|
|
35
35
|
{
|
|
36
|
-
title:
|
|
36
|
+
title: t("qus.doYouWantToHide"),
|
|
37
37
|
okText: n.toUpperCase(),
|
|
38
|
-
cancelText:
|
|
38
|
+
cancelText: t("str.no").toUpperCase(),
|
|
39
39
|
onConfirm: p,
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
children: /* @__PURE__ */ o.jsx(
|
|
41
|
+
c,
|
|
42
42
|
{
|
|
43
43
|
tooltip: n,
|
|
44
|
-
icon: /* @__PURE__ */
|
|
45
|
-
disabled:
|
|
44
|
+
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
45
|
+
disabled: m,
|
|
46
46
|
loading: l,
|
|
47
|
-
type:
|
|
47
|
+
type: u,
|
|
48
48
|
danger: !0,
|
|
49
|
-
hidden:
|
|
49
|
+
hidden: j,
|
|
50
50
|
block: e
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
|
-
) : /* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
) : /* @__PURE__ */ o.jsx(
|
|
55
|
+
c,
|
|
56
56
|
{
|
|
57
57
|
tooltip: n,
|
|
58
|
-
icon: /* @__PURE__ */
|
|
59
|
-
disabled:
|
|
58
|
+
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
59
|
+
disabled: m,
|
|
60
60
|
loading: l,
|
|
61
|
-
type:
|
|
61
|
+
type: u,
|
|
62
62
|
danger: !0,
|
|
63
63
|
block: e,
|
|
64
64
|
onClick: p
|
|
@@ -66,5 +66,5 @@ function M({
|
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
H as default
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("react-i18next"),r=require("./Button.cjs"),s=require("../../../locale/hooks/translation-constants.cjs"),i=require("../../../../node_modules/@ant-design/icons/es/icons/EditOutlined.cjs");function a({value:e,onClick:n}){const{t:u}=o.useTranslation(s.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(r.default,{tooltip:u("str.update"),type:"link",onClick:()=>n(e),icon:t.jsxRuntimeExports.jsx(i.default,{})})}exports.default=a;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import p from "
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
const { t: n } =
|
|
2
|
+
import { useTranslation as i } from "react-i18next";
|
|
3
|
+
import m from "./Button.js";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as p } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import e from "../../../../node_modules/@ant-design/icons/es/icons/EditOutlined.js";
|
|
6
|
+
function c({ value: o, onClick: r }) {
|
|
7
|
+
const { t: n } = i(p);
|
|
8
8
|
return /* @__PURE__ */ t.jsx(
|
|
9
|
-
|
|
9
|
+
m,
|
|
10
10
|
{
|
|
11
11
|
tooltip: n("str.update"),
|
|
12
12
|
type: "link",
|
|
13
13
|
onClick: () => r(o),
|
|
14
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
14
|
+
icon: /* @__PURE__ */ t.jsx(e, {})
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as default
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),r=require("react-i18next"),s=require("./Button.cjs"),u=require("../../../locale/hooks/translation-constants.cjs"),i=require("../../../../node_modules/@ant-design/icons/es/icons/EyeOutlined.cjs");function l({value:e,onClick:n}){const{t:o}=r.useTranslation(u.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(s.default,{type:"link",onClick:()=>n(e),icon:t.jsxRuntimeExports.jsx(i.default,{}),tooltip:o("str.view")})}exports.default=l;
|