@kingteza/crud-component 1.0.6 → 1.0.11
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/advancedFormat.cjs +1 -1
- package/dist/_virtual/customParseFormat.cjs +1 -1
- package/dist/_virtual/dayjs.min.cjs +1 -1
- 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 +4 -0
- package/dist/_virtual/index2.cjs +1 -1
- package/dist/_virtual/index2.js +2 -5
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index4.js +2 -4
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.cjs +1 -0
- package/dist/_virtual/index6.js +7 -0
- package/dist/_virtual/index7.cjs +1 -0
- package/dist/_virtual/index7.js +7 -0
- package/dist/_virtual/index8.cjs +1 -0
- package/dist/_virtual/index8.js +7 -0
- package/dist/_virtual/index9.cjs +1 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/localeData.cjs +1 -1
- 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/weekOfYear.cjs +1 -1
- package/dist/_virtual/weekYear.cjs +1 -1
- package/dist/_virtual/weekday.cjs +1 -1
- package/dist/common/index.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/src/components/common/DatePicker/DatePicker.cjs +1 -1
- package/dist/src/components/common/DatePicker/DatePicker.js +1 -1
- package/dist/src/components/common/DatePicker/TimePicker.cjs +1 -1
- package/dist/src/components/common/DatePicker/TimePicker.js +3 -3
- package/dist/src/components/common/appearance/Hider.cjs +1 -1
- package/dist/src/components/common/button/Button.cjs +1 -1
- package/dist/src/components/common/button/Button.js +10 -10
- 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 +17 -17
- package/dist/src/components/common/button/ExportButton.cjs +1 -1
- package/dist/src/components/common/button/ExportButton.js +16 -16
- package/dist/src/components/common/button/HideButtonTable.cjs +1 -1
- package/dist/src/components/common/button/HideButtonTable.js +18 -18
- 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 +16 -16
- 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 +28 -28
- 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 +13 -13
- package/dist/src/components/common/check-box/CheckBox.cjs +1 -1
- package/dist/src/components/common/description/DescList.cjs +1 -1
- package/dist/src/components/common/layout/VerticalSpace.cjs +1 -1
- package/dist/src/components/common/loading/LoadingIndicator.cjs +1 -1
- package/dist/src/components/common/loading/LoadingIndicator.js +5 -5
- package/dist/src/components/common/picker/ImagePicker.cjs +1 -1
- package/dist/src/components/common/picker/ImagePicker.js +76 -73
- package/dist/src/components/common/radio/RadioGroupComponent.cjs +1 -1
- package/dist/src/components/common/report/SelectFieldInReport.cjs +1 -1
- package/dist/src/components/common/select/CustomSelectOption.cjs +1 -1
- package/dist/src/components/common/select/SelectComponent.cjs +1 -1
- package/dist/src/components/common/select/SelectComponent.js +5 -5
- 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 -11
- package/dist/src/components/common/table/table.cjs +1 -1
- package/dist/src/components/common/tag/StatusTag.cjs +1 -1
- package/dist/src/components/common/tag/StatusTag.js +1 -1
- package/dist/src/components/common/text-field/NumberField.cjs +1 -1
- package/dist/src/components/common/text-field/NumberField.js +7 -7
- package/dist/src/components/common/text-field/PhoneNumberField.cjs +1 -1
- package/dist/src/components/common/text-field/TextArea.cjs +1 -1
- package/dist/src/components/common/text-field/TextArea.js +3 -3
- package/dist/src/components/common/text-field/TextField.cjs +1 -1
- package/dist/src/components/common/text-field/TextField.js +34 -34
- package/dist/src/components/common/tooltip/TooltipComponent.cjs +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/crud/CrudComponent.cjs +1 -1
- package/dist/src/components/crud/CrudComponent.js +15 -15
- package/dist/src/components/crud/CrudField.cjs +1 -1
- package/dist/src/components/crud/CrudField.js +22 -22
- package/dist/src/components/crud/CrudForm.js +10 -10
- package/dist/src/components/crud/CrudFormWizard.cjs +1 -1
- package/dist/src/components/crud/CrudFormWizard.js +65 -63
- package/dist/src/components/crud/CrudReportComponent.cjs +3 -3
- package/dist/src/components/crud/CrudReportComponent.js +54 -54
- package/dist/src/components/crud/CrudSearchComponent.cjs +1 -1
- package/dist/src/components/crud/CrudSearchComponent.js +23 -23
- package/dist/src/components/crud/FileCrudField.cjs +1 -1
- package/dist/src/components/crud/FileCrudField.js +101 -94
- package/dist/src/components/crud/ImageCrudField.cjs +1 -1
- package/dist/src/components/crud/ImageCrudField.js +35 -35
- package/dist/src/components/crud/import/CrudImportButton.cjs +1 -1
- package/dist/src/components/crud/import/CrudImportButton.js +12 -12
- package/dist/src/components/crud/import/CrudImportComponent.cjs +2 -2
- package/dist/src/components/crud/import/CrudImportComponent.js +95 -94
- package/dist/src/components/crud/view/CrudDecListView.cjs +1 -1
- package/dist/src/components/crud/view/CrudDecListView.js +5 -5
- package/dist/src/components/crud/view/CrudViewer.cjs +1 -1
- package/dist/src/components/crud/view/CrudViewer.js +7 -7
- package/dist/src/components/crud/view/CrudViewerUtil.cjs +1 -1
- package/dist/src/components/crud/view/CrudViewerUtil.js +32 -31
- package/dist/src/context/WindowDimension.cjs +1 -1
- package/dist/src/locale/index.cjs +1 -1
- package/dist/src/locale/index.js +2 -2
- package/dist/src/locale/translations/en.cjs +1 -1
- package/dist/src/util/DateUtil.cjs +1 -1
- package/dist/src/util/DateUtil.js +4 -4
- package/dist/src/util/ImageUtil.cjs +1 -1
- package/dist/src/util/ImageUtil.js +1 -1
- package/dist/src/util/ValidationUtil.cjs +1 -1
- package/dist/src/util/ValidationUtil.js +1 -1
- package/dist/util/index.cjs +1 -1
- package/package.json +1 -1
- package/dist/common/index.d.ts +0 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { j as n } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
value:
|
|
9
|
-
onClick:
|
|
2
|
+
import { useState as m, useCallback as p } from "react";
|
|
3
|
+
import a from "./Button.js";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as f } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import { useTranslation as c } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
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 } = c(f), e = p(async () => {
|
|
12
|
+
r(!0), t(o).finally(() => r(!1));
|
|
13
|
+
}, [t, o]);
|
|
14
14
|
return /* @__PURE__ */ n.jsx(
|
|
15
|
-
|
|
15
|
+
a,
|
|
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";
|
|
1
|
+
"use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),q=require("antd"),n=require("react"),C=require("../../../locale/hooks/translation-constants.cjs"),d=require("./Button.cjs"),E=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),f=require("../../../../node_modules/@ant-design/icons/es/icons/DownCircleOutlined.cjs");function R({shouldConfirm:m=!0,block:r,value:i,loading:u,onClick:a,text:c,disabled:l,type:x="link"}){const{t:e}=E.useTranslation(C.TRANSLATION_NAMESPACE),s=n.useMemo(()=>c??e("str.hide"),[c,e]),[p,o]=n.useState(!1);n.useEffect(()=>{o(u??!1)},[u]);const j=n.useCallback(async()=>{try{o(!0),await a(i)}finally{o(!1)}},[a,i]);return m?t.jsxRuntimeExports.jsx(q.Popconfirm,{title:e("qus.doYouWantToHide"),okText:s.toUpperCase(),cancelText:e("str.no").toUpperCase(),onConfirm:j,children:t.jsxRuntimeExports.jsx(d,{tooltip:s,icon:t.jsxRuntimeExports.jsx(f,{}),disabled:l,loading:p,type:x,danger:!0,block:r})}):t.jsxRuntimeExports.jsx(d,{tooltip:s,icon:t.jsxRuntimeExports.jsx(f,{}),disabled:l,loading:p,type:x,danger:!0,block:r,onClick:j})}module.exports=R;
|
|
@@ -1,21 +1,21 @@
|
|
|
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 { Popconfirm as j } from "antd";
|
|
3
|
+
import { useMemo as C, useState as T, useEffect as g, useCallback as A } from "react";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as E } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import c from "./Button.js";
|
|
6
|
+
import { useTranslation as _ } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
7
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/DownCircleOutlined.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
|
|
18
|
+
const { t } = _(E), r = C(() => f ?? t("str.hide"), [f, t]), [u, e] = T(!1);
|
|
19
19
|
g(() => {
|
|
20
20
|
e(s ?? !1);
|
|
21
21
|
}, [s]);
|
|
@@ -29,34 +29,34 @@ function H({
|
|
|
29
29
|
},
|
|
30
30
|
[a, i]
|
|
31
31
|
);
|
|
32
|
-
return
|
|
33
|
-
|
|
32
|
+
return d ? /* @__PURE__ */ o.jsx(
|
|
33
|
+
j,
|
|
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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../_virtual/jsx-runtime.cjs"),s=require("react"),g=require("../../../locale/hooks/translation-constants.cjs"),R=require("./Button.cjs"),k=require("../../../../node_modules/react-i18next/dist/es/useTranslation.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,i]=s.useState(!1),{t:m}=k.useTranslation(g.TRANSLATION_NAMESPACE),e=s.useRef(null),j=s.useCallback(()=>{d(t=>t+1),e.current&&setTimeout(()=>{var t;(t=e==null?void 0:e.current)==null||t.click()},10)},[]),[f,d]=s.useState(0),y=s.useCallback(async t=>{i(!0);const r=t.target.files[0];r&&await o(r),i(!1)},[o]);return n.jsxRuntimeExports.jsxs("div",{className:a,children:[n.jsxRuntimeExports.jsx("input",{type:"file",style:{display:"none"},ref:e,onChange:y,accept:c},f),n.jsxRuntimeExports.jsx(R,{loading:p,type:x,disabled:l,onClick:j,icon:n.jsxRuntimeExports.jsx(q,{}),tooltip:m("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 { TRANSLATION_NAMESPACE as C } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
+
import A from "./Button.js";
|
|
5
|
+
import { useTranslation as T } from "../../../../node_modules/react-i18next/dist/es/useTranslation.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 } = T(C), 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
|
+
A,
|
|
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("./Button.cjs"),l=require("../../../locale/hooks/translation-constants.cjs"),x=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),j=require("../../../../node_modules/@ant-design/icons/es/icons/PlusOutlined.cjs"),m=({size:n,block:r,className:s,type:o="primary",onClick:t,title:u,to:i})=>{const{t:c}=x.useTranslation(l.TRANSLATION_NAMESPACE);return e.jsxRuntimeExports.jsx(a,{type:o,className:s,to:i,block:r,size:n,onClick:t&&(()=>t(!0)),icon:e.jsxRuntimeExports.jsx(j,{}),children:u??c("str.new")})};exports.NewButton=m;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const { t: p } =
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { j as r } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import f from "./Button.js";
|
|
3
|
+
import { TRANSLATION_NAMESPACE as u } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
+
import { useTranslation as c } from "../../../../node_modules/react-i18next/dist/es/useTranslation.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 } = c(u);
|
|
8
|
+
return /* @__PURE__ */ r.jsx(
|
|
9
|
+
f,
|
|
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 r=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../_virtual/jsx-runtime.cjs"),p=require("./Button.cjs"),x=require("../../../locale/hooks/translation-constants.cjs"),j=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),m=require("../../../../node_modules/@ant-design/icons/es/icons/PrinterOutlined.cjs"),q=({disabled:s,loading:e,block:i,className:o,type:u="primary",onClick:c,title:a,to:l})=>{const{t:n}=j.useTranslation(x.TRANSLATION_NAMESPACE),t=a??n("str.print");return r.jsxRuntimeExports.jsx(p,{type:u,className:o,to:l,loading:e,disabled:s,block:i,onClick:c,tooltip:t!=null&&t.trim()?"":n("str.print"),icon:r.jsxRuntimeExports.jsx(m,{}),children:t})};exports.PrintButton=q;
|
|
@@ -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 u from "./Button.js";
|
|
3
|
+
import { TRANSLATION_NAMESPACE as x } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
+
import { useTranslation as a } from "../../../../node_modules/react-i18next/dist/es/useTranslation.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 } = a(x), t = e ?? o("str.print");
|
|
8
|
+
return /* @__PURE__ */ r.jsx(
|
|
9
|
+
u,
|
|
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("../../../locale/hooks/translation-constants.cjs"),l=require("./Button.cjs"),x=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),R=require("../../../../node_modules/@ant-design/icons/es/icons/ReloadOutlined.cjs"),j=({disabled:r,block:n,className:s,type:o="primary",onClick:t,title:u,to:i})=>{const{t:a}=x.useTranslation(c.TRANSLATION_NAMESPACE);return e.jsxRuntimeExports.jsx(l,{type:o,disabled:r,className:s,to:i,block:n,onClick:t&&(()=>t(!0)),icon:e.jsxRuntimeExports.jsx(R,{}),children:u??a("str.refresh")})};exports.RefreshButton=j;
|
|
@@ -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 } =
|
|
2
|
+
import { TRANSLATION_NAMESPACE as f } from "../../../locale/hooks/translation-constants.js";
|
|
3
|
+
import u from "./Button.js";
|
|
4
|
+
import { useTranslation as c } from "../../../../node_modules/react-i18next/dist/es/useTranslation.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 } = c(f);
|
|
8
8
|
return /* @__PURE__ */ o.jsx(
|
|
9
|
-
|
|
9
|
+
u,
|
|
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";
|
|
1
|
+
"use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),C=require("antd"),n=require("react"),d=require("./Button.cjs"),E=require("../../../locale/hooks/translation-constants.cjs"),R=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),f=require("../../../../node_modules/@ant-design/icons/es/icons/UpCircleOutlined.cjs");function T({shouldConfirm:m=!0,block:r,value:i,loading:u,onClick:a,text:c,disabled:l,type:x="link",hidden:q}){const{t:e}=R.useTranslation(E.TRANSLATION_NAMESPACE),s=n.useMemo(()=>c??e("str.unhide"),[c,e]),[p,o]=n.useState(!1);n.useEffect(()=>{o(u??!1)},[u]);const j=n.useCallback(async()=>{try{o(!0),await a(i)}finally{o(!1)}},[a,i]);return m?t.jsxRuntimeExports.jsx(C.Popconfirm,{title:e("qus.doYouWantToHide"),okText:s.toUpperCase(),cancelText:e("str.no").toUpperCase(),onConfirm:j,children:t.jsxRuntimeExports.jsx(d,{tooltip:s,icon:t.jsxRuntimeExports.jsx(f,{}),disabled:l,loading:p,type:x,danger:!0,hidden:q,block:r})}):t.jsxRuntimeExports.jsx(d,{tooltip:s,icon:t.jsxRuntimeExports.jsx(f,{}),disabled:l,loading:p,type:x,danger:!0,block:r,onClick:j})}module.exports=T;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { Popconfirm as j } from "antd";
|
|
1
|
+
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { Popconfirm as C } from "antd";
|
|
4
3
|
import { useMemo as T, useState as g, useEffect as A, useCallback as E } from "react";
|
|
5
|
-
import
|
|
6
|
-
import d from "./Button.js";
|
|
4
|
+
import c from "./Button.js";
|
|
7
5
|
import { TRANSLATION_NAMESPACE as _ } from "../../../locale/hooks/translation-constants.js";
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { useTranslation as k } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
7
|
+
import x from "../../../../node_modules/@ant-design/icons/es/icons/UpCircleOutlined.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
|
|
19
|
+
const { t } = k(_), n = T(() => f ?? t("str.unhide"), [f, t]), [l, r] = g(!1);
|
|
20
20
|
A(() => {
|
|
21
21
|
r(s ?? !1);
|
|
22
22
|
}, [s]);
|
|
@@ -30,35 +30,35 @@ function M({
|
|
|
30
30
|
},
|
|
31
31
|
[a, i]
|
|
32
32
|
);
|
|
33
|
-
return
|
|
34
|
-
|
|
33
|
+
return d ? /* @__PURE__ */ o.jsx(
|
|
34
|
+
C,
|
|
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";
|
|
1
|
+
"use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("./Button.cjs"),r=require("../../../locale/hooks/translation-constants.cjs"),i=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),u=require("../../../../node_modules/@ant-design/icons/es/icons/EditOutlined.cjs");function a({value:n,onClick:s}){const{t:e}=i.useTranslation(r.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(o,{tooltip:e("str.update"),type:"link",onClick:()=>s(n),icon:t.jsxRuntimeExports.jsx(u,{})})}module.exports=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 } = m
|
|
2
|
+
import i from "./Button.js";
|
|
3
|
+
import { TRANSLATION_NAMESPACE as m } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
+
import { useTranslation as p } from "../../../../node_modules/react-i18next/dist/es/useTranslation.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 } = p(m);
|
|
8
8
|
return /* @__PURE__ */ t.jsx(
|
|
9
|
-
|
|
9
|
+
i,
|
|
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";
|
|
1
|
+
"use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),i=require("./Button.cjs"),o=require("../../../locale/hooks/translation-constants.cjs"),r=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),u=require("../../../../node_modules/@ant-design/icons/es/icons/EyeOutlined.cjs");function c({value:n,onClick:e}){const{t:s}=r.useTranslation(o.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(i,{type:"link",onClick:()=>e(n),icon:t.jsxRuntimeExports.jsx(u,{}),tooltip:s("str.view")})}module.exports=c;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
const { t:
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import i from "./Button.js";
|
|
3
|
+
import { TRANSLATION_NAMESPACE as m } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
+
import { useTranslation as e } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
5
|
+
import p from "../../../../node_modules/@ant-design/icons/es/icons/EyeOutlined.js";
|
|
6
|
+
function c({ value: t, onClick: r }) {
|
|
7
|
+
const { t: n } = e(m);
|
|
8
|
+
return /* @__PURE__ */ o.jsx(
|
|
9
|
+
i,
|
|
10
10
|
{
|
|
11
11
|
type: "link",
|
|
12
|
-
onClick: () => r(
|
|
13
|
-
icon: /* @__PURE__ */
|
|
14
|
-
tooltip:
|
|
12
|
+
onClick: () => r(t),
|
|
13
|
+
icon: /* @__PURE__ */ o.jsx(p, {}),
|
|
14
|
+
tooltip: n("str.view")
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as default
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const r=require("../../../../_virtual/jsx-runtime.cjs"),c=require("antd"),u=c.Form.Item,d=({onChange:e,label:x,initialValue:t=!1,disabled:n,switch:s=!1,...m})=>r.jsxRuntimeExports.jsxs(u,{...m,valuePropName:"checked",initialValue:t,label:s?x:void 0,children:[!!s&&r.jsxRuntimeExports.jsx(c.Switch,{disabled:n,defaultChecked:t,onChange:e&&(o=>e(o))}),!s&&r.jsxRuntimeExports.jsx(c.Checkbox,{disabled:n,defaultChecked:t,onChange:e&&(o=>e(o.target.checked)),children:x})]});module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const n=require("../../../../_virtual/jsx-runtime.cjs"),o=require("antd"),u=require("react"),a=require("../../../util/NumberUtil.cjs"),m=o.Descriptions.Item,x=({list:s,keepEmptyValues:r,...i})=>{const c=u.useMemo(()=>{const t=r?s:s.filter(e=>e&&!!e.value);return t.forEach(e=>{!e.noFormatting&&!isNaN(e.value)&&(e.value=a.default.toMoney(e.value))}),t},[r,s]);return n.jsxRuntimeExports.jsx(o.Descriptions,{...i,children:c.map(({label:t,value:e})=>n.jsxRuntimeExports.jsx(m,{label:t,children:e},t))})};module.exports=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const r=require("../../../../_virtual/jsx-runtime.cjs"),s=require("antd"),c=({children:e,className:t=""})=>r.jsxRuntimeExports.jsx(s.Space,{direction:"vertical",className:[t,"w-100"].join(" "),children:e});module.exports=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const t=require("../../../../_virtual/jsx-runtime.cjs"),e=require("antd"),a=require("../button/Button.cjs"),i=require("../../../locale/hooks/translation-constants.cjs"),u=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),c=({loading:r,children:n,error:o})=>{const{t:s}=u.useTranslation(i.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(e.Skeleton,{loading:r,paragraph:!0,className:"h-100",children:o?t.jsxRuntimeExports.jsx(e.Result,{status:"404",title:404,subTitle:s("err.notFound"),className:"",extra:t.jsxRuntimeExports.jsx(a,{to:-1,type:"primary",children:s("str.goBack")})}):n})};module.exports=c;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { Skeleton as a, Result as n } from "antd";
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
5
|
-
import {
|
|
3
|
+
import m from "../button/Button.js";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as i } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import { useTranslation as p } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
6
6
|
const f = ({ loading: o, children: s, error: e }) => {
|
|
7
|
-
const { t: r } =
|
|
7
|
+
const { t: r } = p(i);
|
|
8
8
|
return (
|
|
9
9
|
// <Spin spinning={loading} className="h-100">
|
|
10
10
|
/* @__PURE__ */ t.jsx(a, { loading: o, paragraph: !0, className: "h-100", children: e ? /* @__PURE__ */ t.jsx(
|
|
@@ -14,7 +14,7 @@ const f = ({ loading: o, children: s, error: e }) => {
|
|
|
14
14
|
title: 404,
|
|
15
15
|
subTitle: r("err.notFound"),
|
|
16
16
|
className: "",
|
|
17
|
-
extra: /* @__PURE__ */ t.jsx(
|
|
17
|
+
extra: /* @__PURE__ */ t.jsx(m, { to: -1, type: "primary", children: r("str.goBack") })
|
|
18
18
|
}
|
|
19
19
|
) : s })
|
|
20
20
|
);
|