@kingteza/crud-component 1.0.9 → 1.0.12
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/index.cjs +1 -1
- package/dist/util/index.cjs +1 -1
- package/package.json +18 -9
- package/dist/_virtual/FileSaver.min.cjs +0 -1
- package/dist/_virtual/FileSaver.min.js +0 -5
- package/dist/_virtual/FileSaver.min2.cjs +0 -1
- package/dist/_virtual/FileSaver.min2.js +0 -4
- package/dist/_virtual/ShowMoreText.cjs +0 -1
- package/dist/_virtual/ShowMoreText.js +0 -7
- package/dist/_virtual/ShowMoreText2.cjs +0 -1
- package/dist/_virtual/ShowMoreText2.js +0 -4
- package/dist/_virtual/Truncate.cjs +0 -1
- package/dist/_virtual/Truncate.js +0 -4
- package/dist/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/advancedFormat.cjs +0 -1
- package/dist/_virtual/advancedFormat.js +0 -7
- package/dist/_virtual/advancedFormat2.cjs +0 -1
- package/dist/_virtual/advancedFormat2.js +0 -4
- package/dist/_virtual/customParseFormat.cjs +0 -1
- package/dist/_virtual/customParseFormat.js +0 -7
- package/dist/_virtual/customParseFormat2.cjs +0 -1
- package/dist/_virtual/customParseFormat2.js +0 -4
- package/dist/_virtual/dayjs.min.cjs +0 -1
- package/dist/_virtual/dayjs.min.js +0 -7
- package/dist/_virtual/dayjs.min2.cjs +0 -1
- package/dist/_virtual/dayjs.min2.js +0 -4
- package/dist/_virtual/index.cjs +0 -1
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index10.cjs +0 -1
- package/dist/_virtual/index10.js +0 -7
- package/dist/_virtual/index11.cjs +0 -1
- package/dist/_virtual/index11.js +0 -7
- package/dist/_virtual/index12.cjs +0 -1
- package/dist/_virtual/index12.js +0 -4
- package/dist/_virtual/index13.cjs +0 -1
- package/dist/_virtual/index13.js +0 -4
- package/dist/_virtual/index2.cjs +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index3.cjs +0 -1
- package/dist/_virtual/index3.js +0 -7
- package/dist/_virtual/index4.cjs +0 -1
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/index5.cjs +0 -1
- package/dist/_virtual/index5.js +0 -4
- package/dist/_virtual/index6.cjs +0 -1
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index7.cjs +0 -1
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/index8.cjs +0 -1
- package/dist/_virtual/index8.js +0 -2
- package/dist/_virtual/index9.cjs +0 -1
- package/dist/_virtual/index9.js +0 -7
- package/dist/_virtual/jsx-runtime.cjs +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.cjs +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/localeData.cjs +0 -1
- package/dist/_virtual/localeData.js +0 -7
- package/dist/_virtual/localeData2.cjs +0 -1
- package/dist/_virtual/localeData2.js +0 -4
- package/dist/_virtual/main.cjs +0 -1
- package/dist/_virtual/main.js +0 -7
- package/dist/_virtual/main2.cjs +0 -1
- package/dist/_virtual/main2.js +0 -4
- package/dist/_virtual/papaparse.min.cjs +0 -1
- package/dist/_virtual/papaparse.min.js +0 -7
- package/dist/_virtual/papaparse.min2.cjs +0 -1
- package/dist/_virtual/papaparse.min2.js +0 -4
- package/dist/_virtual/react-is.development.cjs +0 -1
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.development2.cjs +0 -1
- package/dist/_virtual/react-is.development2.js +0 -4
- package/dist/_virtual/react-is.production.min.cjs +0 -1
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-is.production.min2.cjs +0 -1
- package/dist/_virtual/react-is.production.min2.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.cjs +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.min.cjs +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
- package/dist/_virtual/weekOfYear.cjs +0 -1
- package/dist/_virtual/weekOfYear.js +0 -7
- package/dist/_virtual/weekOfYear2.cjs +0 -1
- package/dist/_virtual/weekOfYear2.js +0 -4
- package/dist/_virtual/weekYear.cjs +0 -1
- package/dist/_virtual/weekYear.js +0 -7
- package/dist/_virtual/weekYear2.cjs +0 -1
- package/dist/_virtual/weekYear2.js +0 -4
- package/dist/_virtual/weekday.cjs +0 -1
- package/dist/_virtual/weekday.js +0 -7
- package/dist/_virtual/weekday2.cjs +0 -1
- package/dist/_virtual/weekday2.js +0 -4
- package/dist/common/index.cjs +0 -1
- package/dist/common/index.d.ts +0 -2
- package/dist/common/index.js +0 -75
- package/dist/context/WindowDimension.d.ts +0 -4
- package/dist/crud-component.css +0 -9
- package/dist/src/components/common/DatePicker/DatePicker.cjs +0 -1
- package/dist/src/components/common/DatePicker/DatePicker.js +0 -89
- package/dist/src/components/common/DatePicker/TimePicker.cjs +0 -1
- package/dist/src/components/common/DatePicker/TimePicker.js +0 -79
- package/dist/src/components/common/appearance/Hider.cjs +0 -1
- package/dist/src/components/common/appearance/Hider.js +0 -5
- package/dist/src/components/common/button/Button.cjs +0 -1
- package/dist/src/components/common/button/Button.js +0 -65
- package/dist/src/components/common/button/CloneButtonTable.cjs +0 -1
- package/dist/src/components/common/button/CloneButtonTable.js +0 -20
- package/dist/src/components/common/button/DeleteButtonTable.cjs +0 -1
- package/dist/src/components/common/button/DeleteButtonTable.js +0 -68
- package/dist/src/components/common/button/ExportButton.cjs +0 -1
- package/dist/src/components/common/button/ExportButton.js +0 -27
- package/dist/src/components/common/button/HideButtonTable.cjs +0 -1
- package/dist/src/components/common/button/HideButtonTable.js +0 -68
- package/dist/src/components/common/button/ImportButton.cjs +0 -1
- package/dist/src/components/common/button/ImportButton.js +0 -56
- package/dist/src/components/common/button/NewButton.cjs +0 -1
- package/dist/src/components/common/button/NewButton.js +0 -24
- package/dist/src/components/common/button/PrintButton.cjs +0 -1
- package/dist/src/components/common/button/PrintButton.js +0 -26
- package/dist/src/components/common/button/RefreshButton.cjs +0 -1
- package/dist/src/components/common/button/RefreshButton.js +0 -24
- package/dist/src/components/common/button/UnHideButton.cjs +0 -1
- package/dist/src/components/common/button/UnHideButton.js +0 -70
- package/dist/src/components/common/button/UpdateButtonTable.cjs +0 -1
- package/dist/src/components/common/button/UpdateButtonTable.js +0 -20
- package/dist/src/components/common/button/ViewButtonTable.cjs +0 -1
- package/dist/src/components/common/button/ViewButtonTable.js +0 -20
- package/dist/src/components/common/check-box/CheckBox.cjs +0 -1
- package/dist/src/components/common/check-box/CheckBox.js +0 -42
- package/dist/src/components/common/description/DescList.cjs +0 -1
- package/dist/src/components/common/description/DescList.js +0 -16
- package/dist/src/components/common/layout/VerticalSpace.cjs +0 -1
- package/dist/src/components/common/layout/VerticalSpace.js +0 -6
- package/dist/src/components/common/loading/LoadingIndicator.cjs +0 -1
- package/dist/src/components/common/loading/LoadingIndicator.js +0 -25
- package/dist/src/components/common/picker/ImagePicker.cjs +0 -1
- package/dist/src/components/common/picker/ImagePicker.js +0 -287
- package/dist/src/components/common/radio/RadioGroupComponent.cjs +0 -1
- package/dist/src/components/common/radio/RadioGroupComponent.js +0 -20
- package/dist/src/components/common/report/SelectFieldInReport.cjs +0 -1
- package/dist/src/components/common/report/SelectFieldInReport.js +0 -31
- package/dist/src/components/common/select/CustomSelectOption.cjs +0 -1
- package/dist/src/components/common/select/CustomSelectOption.js +0 -13
- package/dist/src/components/common/select/SelectComponent.cjs +0 -1
- package/dist/src/components/common/select/SelectComponent.js +0 -92
- package/dist/src/components/common/show-more/index.cjs +0 -1
- package/dist/src/components/common/show-more/index.js +0 -8
- package/dist/src/components/common/tab/TabViewWithRoute.cjs +0 -1
- package/dist/src/components/common/tab/TabViewWithRoute.js +0 -38
- package/dist/src/components/common/table/table.cjs +0 -1
- package/dist/src/components/common/table/table.js +0 -40
- package/dist/src/components/common/tag/StatusTag.cjs +0 -1
- package/dist/src/components/common/tag/StatusTag.js +0 -30
- package/dist/src/components/common/text/index.cjs +0 -1
- package/dist/src/components/common/text/index.js +0 -5
- package/dist/src/components/common/text/title/index.cjs +0 -1
- package/dist/src/components/common/text/title/index.js +0 -5
- package/dist/src/components/common/text-field/NumberField.cjs +0 -1
- package/dist/src/components/common/text-field/NumberField.js +0 -84
- package/dist/src/components/common/text-field/PhoneNumberField.cjs +0 -1
- package/dist/src/components/common/text-field/PhoneNumberField.js +0 -18
- package/dist/src/components/common/text-field/TextArea.cjs +0 -1
- package/dist/src/components/common/text-field/TextArea.js +0 -48
- package/dist/src/components/common/text-field/TextField.cjs +0 -1
- package/dist/src/components/common/text-field/TextField.js +0 -74
- package/dist/src/components/common/tooltip/TooltipComponent.cjs +0 -1
- package/dist/src/components/common/tooltip/TooltipComponent.js +0 -9
- package/dist/src/components/common/wizard/WizardResult.cjs +0 -1
- package/dist/src/components/common/wizard/WizardResult.js +0 -61
- package/dist/src/components/common/wizard/WizardViewForm.cjs +0 -1
- package/dist/src/components/common/wizard/WizardViewForm.js +0 -74
- package/dist/src/components/crud/CrudComponent.cjs +0 -1
- package/dist/src/components/crud/CrudComponent.js +0 -213
- package/dist/src/components/crud/CrudField.cjs +0 -1
- package/dist/src/components/crud/CrudField.js +0 -462
- package/dist/src/components/crud/CrudForm.cjs +0 -1
- package/dist/src/components/crud/CrudForm.js +0 -94
- package/dist/src/components/crud/CrudFormWizard.cjs +0 -1
- package/dist/src/components/crud/CrudFormWizard.js +0 -145
- package/dist/src/components/crud/CrudReportComponent.cjs +0 -4
- package/dist/src/components/crud/CrudReportComponent.js +0 -259
- package/dist/src/components/crud/CrudSearchComponent.cjs +0 -1
- package/dist/src/components/crud/CrudSearchComponent.js +0 -97
- package/dist/src/components/crud/FileCrudField.cjs +0 -1
- package/dist/src/components/crud/FileCrudField.js +0 -229
- package/dist/src/components/crud/ImageCrudField.cjs +0 -1
- package/dist/src/components/crud/ImageCrudField.js +0 -116
- package/dist/src/components/crud/import/CrudImportButton.cjs +0 -1
- package/dist/src/components/crud/import/CrudImportButton.js +0 -31
- package/dist/src/components/crud/import/CrudImportComponent.cjs +0 -2
- package/dist/src/components/crud/import/CrudImportComponent.js +0 -226
- package/dist/src/components/crud/view/CrudDecListView.cjs +0 -1
- package/dist/src/components/crud/view/CrudDecListView.js +0 -42
- package/dist/src/components/crud/view/CrudViewer.cjs +0 -1
- package/dist/src/components/crud/view/CrudViewer.js +0 -217
- package/dist/src/components/crud/view/CrudViewerUtil.cjs +0 -1
- package/dist/src/components/crud/view/CrudViewerUtil.js +0 -59
- package/dist/src/context/WindowDimension.cjs +0 -1
- package/dist/src/context/WindowDimension.js +0 -8
- package/dist/src/locale/hooks/translation-constants.cjs +0 -1
- package/dist/src/locale/hooks/translation-constants.js +0 -4
- package/dist/src/locale/index.cjs +0 -1
- package/dist/src/locale/index.js +0 -33
- package/dist/src/locale/translations/en.cjs +0 -1
- package/dist/src/locale/translations/en.js +0 -60
- package/dist/src/util/DateUtil.cjs +0 -1
- package/dist/src/util/DateUtil.js +0 -6
- package/dist/src/util/ImageUtil.cjs +0 -1
- package/dist/src/util/ImageUtil.js +0 -63
- package/dist/src/util/NumberUtil.cjs +0 -1
- package/dist/src/util/NumberUtil.js +0 -60
- package/dist/src/util/ValidationUtil.cjs +0 -1
- package/dist/src/util/ValidationUtil.js +0 -60
- package/dist/types/DialogComponentProp.d.ts +0 -8
- package/dist/types/Id.d.ts +0 -10
- package/dist/vite.svg +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../../../node_modules/antd/es/list/index.cjs"),u=t.default.Item.Meta,n=t.default.Item,o=({title:s,description:i,children:r})=>e.jsxRuntimeExports.jsxs(n,{className:"",children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(u,{title:s,description:i})}),e.jsxRuntimeExports.jsx("div",{className:"float-right",children:r})]});exports.default=o;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import s from "../../../../node_modules/antd/es/list/index.js";
|
|
3
|
-
const r = s.Item.Meta, a = s.Item, n = ({
|
|
4
|
-
title: e,
|
|
5
|
-
description: o,
|
|
6
|
-
children: m
|
|
7
|
-
}) => /* @__PURE__ */ t.jsxs(a, { className: "", children: [
|
|
8
|
-
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(r, { title: e, description: o }) }),
|
|
9
|
-
/* @__PURE__ */ t.jsx("div", { className: "float-right", children: m })
|
|
10
|
-
] });
|
|
11
|
-
export {
|
|
12
|
-
n as default
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../../_virtual/jsx-runtime.cjs"),b=require("react"),A=require("react-i18next"),k=require("../../../locale/hooks/translation-constants.cjs"),H=require("../tooltip/TooltipComponent.cjs"),P=require("../../../../node_modules/antd/es/config-provider/index.cjs"),B=require("../../../../node_modules/antd/es/spin/index.cjs"),D=require("../../../../node_modules/antd/es/form/index.cjs"),V=require("../../../../node_modules/antd/es/select/index.cjs");function W({label:u,rules:q=[],required:y,placeholder:a,notSearch:E,children:l,readOnly:s,items:o,dropdownRender:R,itemBuilder:S,loading:d,showLoadingInEmptyIndicator:p,nameFieldInArray:m="name",innerRef:w,tooltip:T,filterOption:_,tagRender:L,...n}){const{t:N}=A.useTranslation(k.TRANSLATION_NAMESPACE),$=b.useCallback(e=>{const t=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e.id,i=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e[m];return r.jsxRuntimeExports.jsx("option",{value:t,children:r.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:i}})},t)},[m]);return r.jsxRuntimeExports.jsx(P.default,{renderEmpty:p&&d?()=>r.jsxRuntimeExports.jsx(B.default,{}):void 0,children:r.jsxRuntimeExports.jsx(H.default,{title:T,children:r.jsxRuntimeExports.jsx(D.default.Item,{label:u,name:n.name,help:n.help,className:n.className,rules:[...q,{required:y,message:`${u??a??""} ${N("err.validation.required")}`}],children:r.jsxRuntimeExports.jsx(V.default,{ref:w,loading:d,open:s?!1:void 0,onChange:!s&&n.onChange,allowClear:!s&&n.allowClear,showSearch:!E,className:`max-width ${s?"readOnly":""}`,...n,tagRender:L,placeholder:a??u,filterOption:_??((e,t)=>{var i,f,h,j;try{const c=(h=(f=(i=t==null?void 0:t.children)==null?void 0:i.props)==null?void 0:f.dangerouslySetInnerHTML)==null?void 0:h.__html,M=e.toLowerCase().split(/\s+/),g=(t==null?void 0:t.children)??"",C=typeof g=="string"?g.toLowerCase():typeof c=="string"?c.toLowerCase():"",I=(((j=t==null?void 0:t.value)==null?void 0:j.toString())??"").toLowerCase(),O=C.replace(/\s/g,"");return M.every(x=>C.indexOf(x)>=0||I.indexOf(x)>=0||O.indexOf(x)>=0)}catch(c){return console.log(c),!0}}),dropdownRender:R,children:l===null?void 0:l??(o&&(o==null?void 0:o.map(S??$)))})})})})}exports.default=W;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useCallback as H } from "react";
|
|
3
|
-
import { useTranslation as P } from "react-i18next";
|
|
4
|
-
import { TRANSLATION_NAMESPACE as R } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
-
import b from "../tooltip/TooltipComponent.js";
|
|
6
|
-
import q from "../../../../node_modules/antd/es/config-provider/index.js";
|
|
7
|
-
import B from "../../../../node_modules/antd/es/spin/index.js";
|
|
8
|
-
import D from "../../../../node_modules/antd/es/form/index.js";
|
|
9
|
-
import F from "../../../../node_modules/antd/es/select/index.js";
|
|
10
|
-
function Y({
|
|
11
|
-
label: c,
|
|
12
|
-
rules: j = [],
|
|
13
|
-
required: y,
|
|
14
|
-
placeholder: l,
|
|
15
|
-
notSearch: w,
|
|
16
|
-
children: a,
|
|
17
|
-
readOnly: n,
|
|
18
|
-
items: s,
|
|
19
|
-
dropdownRender: u,
|
|
20
|
-
itemBuilder: L,
|
|
21
|
-
loading: d,
|
|
22
|
-
showLoadingInEmptyIndicator: T,
|
|
23
|
-
nameFieldInArray: h = "name",
|
|
24
|
-
innerRef: N,
|
|
25
|
-
tooltip: _,
|
|
26
|
-
filterOption: E,
|
|
27
|
-
tagRender: A,
|
|
28
|
-
...o
|
|
29
|
-
}) {
|
|
30
|
-
const { t: I } = P(R), M = H(
|
|
31
|
-
(r) => {
|
|
32
|
-
const e = typeof r == "string" || typeof r == "number" ? r : r == null ? void 0 : r.id, m = typeof r == "string" || typeof r == "number" ? r : r == null ? void 0 : r[h];
|
|
33
|
-
return /* @__PURE__ */ t.jsx("option", { value: e, children: /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: m } }) }, e);
|
|
34
|
-
},
|
|
35
|
-
[h]
|
|
36
|
-
);
|
|
37
|
-
return /* @__PURE__ */ t.jsx(
|
|
38
|
-
q,
|
|
39
|
-
{
|
|
40
|
-
renderEmpty: T && d ? () => /* @__PURE__ */ t.jsx(B, {}) : void 0,
|
|
41
|
-
children: /* @__PURE__ */ t.jsx(b, { title: _, children: /* @__PURE__ */ t.jsx(
|
|
42
|
-
D.Item,
|
|
43
|
-
{
|
|
44
|
-
label: c,
|
|
45
|
-
name: o.name,
|
|
46
|
-
help: o.help,
|
|
47
|
-
className: o.className,
|
|
48
|
-
rules: [
|
|
49
|
-
...j,
|
|
50
|
-
{
|
|
51
|
-
required: y,
|
|
52
|
-
message: `${c ?? l ?? ""} ${I(
|
|
53
|
-
"err.validation.required"
|
|
54
|
-
)}`
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
children: /* @__PURE__ */ t.jsx(
|
|
58
|
-
F,
|
|
59
|
-
{
|
|
60
|
-
ref: N,
|
|
61
|
-
loading: d,
|
|
62
|
-
open: n ? !1 : void 0,
|
|
63
|
-
onChange: !n && o.onChange,
|
|
64
|
-
allowClear: !n && o.allowClear,
|
|
65
|
-
showSearch: !w,
|
|
66
|
-
className: `max-width ${n ? "readOnly" : ""}`,
|
|
67
|
-
...o,
|
|
68
|
-
tagRender: A,
|
|
69
|
-
placeholder: l ?? c,
|
|
70
|
-
filterOption: E ?? ((r, e) => {
|
|
71
|
-
var m, x, p, C;
|
|
72
|
-
try {
|
|
73
|
-
const i = (p = (x = (m = e == null ? void 0 : e.children) == null ? void 0 : m.props) == null ? void 0 : x.dangerouslySetInnerHTML) == null ? void 0 : p.__html, O = r.toLowerCase().split(/\s+/), g = (e == null ? void 0 : e.children) ?? "", S = typeof g == "string" ? g.toLowerCase() : typeof i == "string" ? i.toLowerCase() : "", $ = (((C = e == null ? void 0 : e.value) == null ? void 0 : C.toString()) ?? "").toLowerCase(), k = S.replace(/\s/g, "");
|
|
74
|
-
return O.every(
|
|
75
|
-
(f) => S.indexOf(f) >= 0 || $.indexOf(f) >= 0 || k.indexOf(f) >= 0
|
|
76
|
-
);
|
|
77
|
-
} catch (i) {
|
|
78
|
-
return console.log(i), !0;
|
|
79
|
-
}
|
|
80
|
-
}),
|
|
81
|
-
dropdownRender: u,
|
|
82
|
-
children: a === null ? void 0 : a ?? (s && (s == null ? void 0 : s.map(L ?? M)))
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
) })
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
Y as default
|
|
92
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../_virtual/ShowMoreText.cjs");;/* empty css */const e=r=>t.jsxRuntimeExports.jsx(o.default,{...r});exports.ShowMore=e;exports.default=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../_virtual/jsx-runtime.cjs"),v=require("../../../context/WindowDimension.cjs"),r=require("react"),c=require("../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.cjs"),u=require("../../../../node_modules/antd/es/tabs/index.cjs"),g=require("../../../../node_modules/antd/es/layout/index.cjs"),{Content:q}=g.default,E=({positionOfRoute:a,initialKey:s="*",tabs:l,className:x="",mode:d="default"})=>{const[m,p]=r.useState(s),n=c.useNavigate(),h=e=>{n(e)},i=c.useLocation();r.useEffect(()=>{const e=i.pathname.split("/")[a];p(e??""),e||n(s,{replace:!0})},[s,i.pathname,n,a]);const{isDesktop:j}=v.default(),o=d==="side"&&j,f=o?"left":"top",b=o?"d-flex h-100":"";return t.jsxRuntimeExports.jsxs("div",{className:`${x} ${b}`,children:[t.jsxRuntimeExports.jsx(u.default,{type:"card",tabPosition:f,activeKey:m,onChange:h,children:l.map(({key:e,label:R})=>t.jsxRuntimeExports.jsx(u.default.TabPane,{tab:R},e))}),t.jsxRuntimeExports.jsx(q,{className:`max-height ${o?"overflow-auto":""}`,children:t.jsxRuntimeExports.jsx(c.Outlet,{})})]})};exports.TabViewWithRoute=E;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import b from "../../../context/WindowDimension.js";
|
|
3
|
-
import { useState as v, useEffect as g } from "react";
|
|
4
|
-
import { useNavigate as w, useLocation as y, Outlet as N } from "../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.js";
|
|
5
|
-
import r from "../../../../node_modules/antd/es/tabs/index.js";
|
|
6
|
-
import P from "../../../../node_modules/antd/es/layout/index.js";
|
|
7
|
-
const { Content: S } = P, L = ({
|
|
8
|
-
positionOfRoute: n,
|
|
9
|
-
initialKey: s = "*",
|
|
10
|
-
tabs: i,
|
|
11
|
-
className: m = "",
|
|
12
|
-
mode: p = "default"
|
|
13
|
-
}) => {
|
|
14
|
-
const [l, u] = v(s), o = w(), f = (t) => {
|
|
15
|
-
o(t);
|
|
16
|
-
}, c = y();
|
|
17
|
-
g(() => {
|
|
18
|
-
const t = c.pathname.split("/")[n];
|
|
19
|
-
u(t ?? ""), t || o(s, { replace: !0 });
|
|
20
|
-
}, [s, c.pathname, o, n]);
|
|
21
|
-
const { isDesktop: d } = b(), a = p === "side" && d, h = a ? "left" : "top", x = a ? "d-flex h-100" : "";
|
|
22
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${m} ${x}`, children: [
|
|
23
|
-
/* @__PURE__ */ e.jsx(
|
|
24
|
-
r,
|
|
25
|
-
{
|
|
26
|
-
type: "card",
|
|
27
|
-
tabPosition: h,
|
|
28
|
-
activeKey: l,
|
|
29
|
-
onChange: f,
|
|
30
|
-
children: i.map(({ key: t, label: j }) => /* @__PURE__ */ e.jsx(r.TabPane, { tab: j }, t))
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
/* @__PURE__ */ e.jsx(S, { className: `max-height ${a ? "overflow-auto" : ""}`, children: /* @__PURE__ */ e.jsx(N, {}) })
|
|
34
|
-
] });
|
|
35
|
-
};
|
|
36
|
-
export {
|
|
37
|
-
L as TabViewWithRoute
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../../_virtual/jsx-runtime.cjs"),a=require("react"),c=require("../../../../node_modules/antd/es/table/Table.cjs");function d({minusHeight:g,onRow:m,count:f=1,onPageSizeChanged:h,pagination:e=!1,rowKey:n="id",columns:t,className:o,scroll:s,...u}){const i=a.useMemo(()=>t.filter(r=>!r.hidden),[t]);return l.jsxRuntimeExports.jsx(c.default,{className:`custom-scroll ${o}`,style:{width:"100%"},columns:i,rowKey:n,...u,scroll:s||{x:!0},pagination:e&&{...e,hideOnSinglePage:!0,showSizeChanger:!1}})}exports.default=d;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { j as l } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useMemo as m } from "react";
|
|
3
|
-
import u from "../../../../node_modules/antd/es/table/Table.js";
|
|
4
|
-
function w({
|
|
5
|
-
minusHeight: d,
|
|
6
|
-
onRow: f,
|
|
7
|
-
count: c = 1,
|
|
8
|
-
onPageSizeChanged: h,
|
|
9
|
-
pagination: e = !1,
|
|
10
|
-
rowKey: r = "id",
|
|
11
|
-
columns: o,
|
|
12
|
-
className: s,
|
|
13
|
-
scroll: t,
|
|
14
|
-
...n
|
|
15
|
-
}) {
|
|
16
|
-
const i = m(() => o.filter((a) => !a.hidden), [o]);
|
|
17
|
-
return /* @__PURE__ */ l.jsx(
|
|
18
|
-
u,
|
|
19
|
-
{
|
|
20
|
-
className: `custom-scroll ${s}`,
|
|
21
|
-
style: { width: "100%" },
|
|
22
|
-
columns: i,
|
|
23
|
-
rowKey: r,
|
|
24
|
-
...n,
|
|
25
|
-
scroll: t || {
|
|
26
|
-
// y: `calc(100vh - ${minusHeight ?? 0}px)`,
|
|
27
|
-
x: !0
|
|
28
|
-
// scrollToFirstRowOnChange: true,
|
|
29
|
-
},
|
|
30
|
-
pagination: e && {
|
|
31
|
-
...e,
|
|
32
|
-
hideOnSinglePage: !0,
|
|
33
|
-
showSizeChanger: !1
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
w as default
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../../_virtual/jsx-runtime.cjs"),d=require("../../../locale/hooks/translation-constants.cjs"),x=require("react-i18next"),p=require("../../../../node_modules/antd/es/tag/index.cjs"),S=({onClick:n,clickable:o,colorFunction:t,translation:i,value:s})=>{var r;const e=t==null?void 0:t(s),{t:u}=x.useTranslation(d.TRANSLATION_NAMESPACE),c=p.default;return a.jsxRuntimeExports.jsx(c,{onClick:n,color:e==null?void 0:e.color,icon:e==null?void 0:e.icon,style:{color:e==null?void 0:e.text,cursor:o?"pointer":void 0},children:(r=u(i[s]))==null?void 0:r.toUpperCase()})};exports.default=S;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { j as f } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { TRANSLATION_NAMESPACE as x } from "../../../locale/hooks/translation-constants.js";
|
|
3
|
-
import { useTranslation as T } from "react-i18next";
|
|
4
|
-
import A from "../../../../node_modules/antd/es/tag/index.js";
|
|
5
|
-
const C = ({
|
|
6
|
-
onClick: e,
|
|
7
|
-
clickable: m,
|
|
8
|
-
colorFunction: o,
|
|
9
|
-
translation: p,
|
|
10
|
-
value: r
|
|
11
|
-
}) => {
|
|
12
|
-
var s;
|
|
13
|
-
const t = o == null ? void 0 : o(r), { t: i } = T(x), n = A;
|
|
14
|
-
return /* @__PURE__ */ f.jsx(
|
|
15
|
-
n,
|
|
16
|
-
{
|
|
17
|
-
onClick: e,
|
|
18
|
-
color: t == null ? void 0 : t.color,
|
|
19
|
-
icon: t == null ? void 0 : t.icon,
|
|
20
|
-
style: {
|
|
21
|
-
color: t == null ? void 0 : t.text,
|
|
22
|
-
cursor: m ? "pointer" : void 0
|
|
23
|
-
},
|
|
24
|
-
children: (s = i(p[r])) == null ? void 0 : s.toUpperCase()
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
C as default
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../node_modules/antd/es/typography/index.cjs"),{Text:t}=e.default;exports.Text=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../node_modules/antd/es/typography/index.cjs"),{Title:t}=e.default;exports.Title=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../../../_virtual/jsx-runtime.cjs"),x=require("react"),_=require("react-i18next"),h=require("../../../locale/hooks/translation-constants.cjs"),v=require("../tooltip/TooltipComponent.cjs"),w=require("./TextField.cjs"),B=require("../../../../node_modules/antd/es/form/index.cjs"),O=require("../../../../node_modules/antd/es/input-number/index.cjs"),b=x.forwardRef(function({type:F,required:o,label:t,rules:u=[],placeholder:r,onEnter:p,form:l,nextFocus:m,min:d,moneyField:n,addonAfter:f,minLength:j,defaultValue:q,pattern:T,disabled:E,readOnly:R,onChange:g,value:$,max:N,addonBefore:A,size:I,isInt:c=!1,tooltip:M,...S},C){const{t:a}=_.useTranslation(h.TRANSLATION_NAMESPACE),P=x.useMemo(()=>[...u,{required:o,message:`${t??r??""} ${a("err.validation.required")}`}],[u,t,r,a,o]);return i.jsxRuntimeExports.jsx(v.default,{title:M,children:i.jsxRuntimeExports.jsx(B.default.Item,{...S,label:t,rules:P,children:i.jsxRuntimeExports.jsx(O.default,{ref:C,disabled:E,defaultValue:q,value:$,readOnly:R,addonBefore:A,minLength:j,addonAfter:f,step:c?1:void 0,pattern:c?"d*":T,onChange:g,onPressEnter:e=>w.onEnterInternalTextField(e,m,l,p),className:"max-width",min:d===null?void 0:d??0,max:N,type:n?void 0:"number",size:I,formatter:n?e=>{if(e.includes(".")){const s=`${e}`.split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),s.join(".")}else return`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,",")}:void 0,parser:n?e=>e==null?void 0:e.replace(/\$\s?|(,*)/g,""):void 0,placeholder:r??t})})})});exports.default=b;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { j as s } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as M, useMemo as P } from "react";
|
|
3
|
-
import { useTranslation as S } from "react-i18next";
|
|
4
|
-
import { TRANSLATION_NAMESPACE as y } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
-
import F from "../tooltip/TooltipComponent.js";
|
|
6
|
-
import { onEnterInternalTextField as L } from "./TextField.js";
|
|
7
|
-
import O from "../../../../node_modules/antd/es/form/index.js";
|
|
8
|
-
import _ from "../../../../node_modules/antd/es/input-number/index.js";
|
|
9
|
-
const Q = M(
|
|
10
|
-
function({
|
|
11
|
-
// eslint-disable-next-line no-unused-vars
|
|
12
|
-
type: k,
|
|
13
|
-
required: i,
|
|
14
|
-
label: t,
|
|
15
|
-
rules: m = [],
|
|
16
|
-
placeholder: o,
|
|
17
|
-
onEnter: a,
|
|
18
|
-
form: c,
|
|
19
|
-
nextFocus: u,
|
|
20
|
-
min: p,
|
|
21
|
-
moneyField: e,
|
|
22
|
-
addonAfter: x,
|
|
23
|
-
minLength: T,
|
|
24
|
-
defaultValue: j,
|
|
25
|
-
pattern: N,
|
|
26
|
-
disabled: E,
|
|
27
|
-
readOnly: $,
|
|
28
|
-
onChange: g,
|
|
29
|
-
value: l,
|
|
30
|
-
max: A,
|
|
31
|
-
addonBefore: I,
|
|
32
|
-
size: R,
|
|
33
|
-
isInt: d = !1,
|
|
34
|
-
tooltip: h,
|
|
35
|
-
...w
|
|
36
|
-
}, B) {
|
|
37
|
-
const { t: f } = S(y), C = P(
|
|
38
|
-
() => [
|
|
39
|
-
...m,
|
|
40
|
-
{
|
|
41
|
-
required: i,
|
|
42
|
-
message: `${t ?? o ?? ""} ${f(
|
|
43
|
-
"err.validation.required"
|
|
44
|
-
)}`
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
[m, t, o, f, i]
|
|
48
|
-
);
|
|
49
|
-
return /* @__PURE__ */ s.jsx(F, { title: h, children: /* @__PURE__ */ s.jsx(O.Item, { ...w, label: t, rules: C, children: /* @__PURE__ */ s.jsx(
|
|
50
|
-
_,
|
|
51
|
-
{
|
|
52
|
-
ref: B,
|
|
53
|
-
disabled: E,
|
|
54
|
-
defaultValue: j,
|
|
55
|
-
value: l,
|
|
56
|
-
readOnly: $,
|
|
57
|
-
addonBefore: I,
|
|
58
|
-
minLength: T,
|
|
59
|
-
addonAfter: x,
|
|
60
|
-
step: d ? 1 : void 0,
|
|
61
|
-
pattern: d ? "d*" : N,
|
|
62
|
-
onChange: g,
|
|
63
|
-
onPressEnter: (r) => L(r, u, c, a),
|
|
64
|
-
className: "max-width",
|
|
65
|
-
min: p === null ? void 0 : p ?? 0,
|
|
66
|
-
max: A,
|
|
67
|
-
type: e ? void 0 : "number",
|
|
68
|
-
size: R,
|
|
69
|
-
formatter: e ? (r) => {
|
|
70
|
-
if (r.includes(".")) {
|
|
71
|
-
const n = `${r}`.split(".");
|
|
72
|
-
return n[0] = n[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), n.join(".");
|
|
73
|
-
} else
|
|
74
|
-
return `${r}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
75
|
-
} : void 0,
|
|
76
|
-
parser: e ? (r) => r == null ? void 0 : r.replace(/\$\s?|(,*)/g, "") : void 0,
|
|
77
|
-
placeholder: o ?? t
|
|
78
|
-
}
|
|
79
|
-
) }) });
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
export {
|
|
83
|
-
Q as default
|
|
84
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),l=require("../../../util/ValidationUtil.cjs"),u=require("./TextField.cjs"),i=e=>t.jsxRuntimeExports.jsx(u.default,{...e,rules:[...e.rules??[],...l.default.phoneValidation(e.label??e.placeholder??"")]});exports.default=i;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import l from "../../../util/ValidationUtil.js";
|
|
3
|
-
import i from "./TextField.js";
|
|
4
|
-
const m = (e) => /* @__PURE__ */ t.jsx(
|
|
5
|
-
i,
|
|
6
|
-
{
|
|
7
|
-
...e,
|
|
8
|
-
rules: [
|
|
9
|
-
...e.rules ?? [],
|
|
10
|
-
...l.phoneValidation(
|
|
11
|
-
e.label ?? e.placeholder ?? ""
|
|
12
|
-
)
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
m as default
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../../_virtual/jsx-runtime.cjs"),I=require("react-i18next"),j=require("../../../locale/hooks/translation-constants.cjs"),a=require("../../../../node_modules/antd/es/form/index.cjs"),q=require("../../../../node_modules/antd/es/input/index.cjs"),l=(n,e,t,r)=>{var s;e&&t&&(n.preventDefault(),(s=t==null?void 0:t.getFieldInstance(e))==null||s.focus()),r&&r(n)},A=({required:n,label:e,rules:t=[],placeholder:r,onEnter:s,nextFocus:d,className:i,...u})=>{const{t:c}=I.useTranslation(j.TRANSLATION_NAMESPACE),x=a.default.useFormInstance();return o.jsxRuntimeExports.jsx(a.default.Item,{...u,className:i,label:e,rules:[...t,{required:n,message:`${e} ${c("err.validation.required")}`}],children:o.jsxRuntimeExports.jsx(q.default.TextArea,{...u,className:i,onPressEnter:T=>l(T,d,x,s),placeholder:r??e})})};exports.default=A;exports.onEnterInternalTextField=l;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { j as a } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useTranslation as x } from "react-i18next";
|
|
3
|
-
import { TRANSLATION_NAMESPACE as f } from "../../../locale/hooks/translation-constants.js";
|
|
4
|
-
import m from "../../../../node_modules/antd/es/form/index.js";
|
|
5
|
-
import l from "../../../../node_modules/antd/es/input/index.js";
|
|
6
|
-
const A = (r, t, e, n) => {
|
|
7
|
-
var o;
|
|
8
|
-
t && e && (r.preventDefault(), (o = e == null ? void 0 : e.getFieldInstance(t)) == null || o.focus()), n && n(r);
|
|
9
|
-
}, g = ({
|
|
10
|
-
required: r,
|
|
11
|
-
label: t,
|
|
12
|
-
rules: e = [],
|
|
13
|
-
placeholder: n,
|
|
14
|
-
onEnter: o,
|
|
15
|
-
nextFocus: p,
|
|
16
|
-
className: s,
|
|
17
|
-
...i
|
|
18
|
-
}) => {
|
|
19
|
-
const { t: u } = x(f), c = m.useFormInstance();
|
|
20
|
-
return /* @__PURE__ */ a.jsx(
|
|
21
|
-
m.Item,
|
|
22
|
-
{
|
|
23
|
-
...i,
|
|
24
|
-
className: s,
|
|
25
|
-
label: t,
|
|
26
|
-
rules: [
|
|
27
|
-
...e,
|
|
28
|
-
{
|
|
29
|
-
required: r,
|
|
30
|
-
message: `${t} ${u("err.validation.required")}`
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
children: /* @__PURE__ */ a.jsx(
|
|
34
|
-
l.TextArea,
|
|
35
|
-
{
|
|
36
|
-
...i,
|
|
37
|
-
className: s,
|
|
38
|
-
onPressEnter: (d) => A(d, p, c, o),
|
|
39
|
-
placeholder: n ?? t
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
g as default,
|
|
47
|
-
A as onEnterInternalTextField
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../../_virtual/jsx-runtime.cjs"),N=require("react"),O=require("react-i18next"),_=require("../../../locale/hooks/translation-constants.cjs"),$=require("../tooltip/TooltipComponent.cjs"),d=require("../../../../node_modules/antd/es/input/index.cjs"),w=require("../../../../node_modules/antd/es/form/index.cjs"),L=require("../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.cjs"),l=(t,n,e,i)=>{var s;n&&e&&(t.preventDefault(),(s=e==null?void 0:e.getFieldInstance(n))==null||s.focus()),i&&i(t)},D=({type:t,required:n,label:e,disabled:i,rules:s=[],placeholder:u,onEnter:c,size:x,form:f,addonAfter:j,addonBefore:m,nextFocus:p,autoComplete:E="off",defaultValue:q,readOnly:T,value:g,loading:R,onBlur:v,inputRef:I,status:A,autoFocus:C,onChange:k,tooltip:P,...M})=>{const{t:a}=O.useTranslation(_.TRANSLATION_NAMESPACE),S=N.useMemo(()=>{const r=[...s,{required:n,message:`${e??u??""} ${a("err.validation.required")}`}];return t==="email"&&r.push({type:"email",message:a("err.validation.invalidEmail")}),r},[s,n,e,u,a,t]),h={disabled:i,value:g,readOnly:T,defaultValue:q,autoFocus:C,addonBefore:m,ref:I,onBlur:v,addonAfter:R?o.jsxRuntimeExports.jsx(L.default,{}):j,status:A,size:x,autoComplete:E,onPressEnter:r=>l(r,p,f,c),type:t,placeholder:u??e},F=t=="password"?d.default.Password:d.default;return o.jsxRuntimeExports.jsx($.default,{title:P,children:o.jsxRuntimeExports.jsx(w.default.Item,{...M,label:e,rules:S,children:o.jsxRuntimeExports.jsx(F,{...h})})})};exports.default=D;exports.onEnterInternalTextField=l;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useMemo as M } from "react";
|
|
3
|
-
import { useTranslation as S } from "react-i18next";
|
|
4
|
-
import { TRANSLATION_NAMESPACE as $ } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
-
import D from "../tooltip/TooltipComponent.js";
|
|
6
|
-
import p from "../../../../node_modules/antd/es/input/index.js";
|
|
7
|
-
import L from "../../../../node_modules/antd/es/form/index.js";
|
|
8
|
-
import O from "../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js";
|
|
9
|
-
const _ = (o, r, t, s) => {
|
|
10
|
-
var n;
|
|
11
|
-
r && t && (o.preventDefault(), (n = t == null ? void 0 : t.getFieldInstance(r)) == null || n.focus()), s && s(o);
|
|
12
|
-
}, U = ({
|
|
13
|
-
type: o,
|
|
14
|
-
required: r,
|
|
15
|
-
label: t,
|
|
16
|
-
disabled: s,
|
|
17
|
-
rules: n = [],
|
|
18
|
-
placeholder: m,
|
|
19
|
-
onEnter: f,
|
|
20
|
-
size: d,
|
|
21
|
-
form: c,
|
|
22
|
-
addonAfter: l,
|
|
23
|
-
addonBefore: u,
|
|
24
|
-
nextFocus: x,
|
|
25
|
-
autoComplete: j = "off",
|
|
26
|
-
defaultValue: I,
|
|
27
|
-
readOnly: T,
|
|
28
|
-
value: A,
|
|
29
|
-
loading: E,
|
|
30
|
-
onBlur: g,
|
|
31
|
-
inputRef: v,
|
|
32
|
-
status: C,
|
|
33
|
-
autoFocus: P,
|
|
34
|
-
onChange: k,
|
|
35
|
-
tooltip: h,
|
|
36
|
-
...F
|
|
37
|
-
}) => {
|
|
38
|
-
const { t: a } = S($), N = M(() => {
|
|
39
|
-
const i = [
|
|
40
|
-
...n,
|
|
41
|
-
{
|
|
42
|
-
required: r,
|
|
43
|
-
message: `${t ?? m ?? ""} ${a(
|
|
44
|
-
"err.validation.required"
|
|
45
|
-
)}`
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
return o === "email" && i.push({
|
|
49
|
-
type: "email",
|
|
50
|
-
message: a("err.validation.invalidEmail")
|
|
51
|
-
}), i;
|
|
52
|
-
}, [n, r, t, m, a, o]), R = {
|
|
53
|
-
disabled: s,
|
|
54
|
-
value: A,
|
|
55
|
-
readOnly: T,
|
|
56
|
-
defaultValue: I,
|
|
57
|
-
autoFocus: P,
|
|
58
|
-
addonBefore: u,
|
|
59
|
-
ref: v,
|
|
60
|
-
onBlur: g,
|
|
61
|
-
addonAfter: E ? /* @__PURE__ */ e.jsx(O, {}) : l,
|
|
62
|
-
status: C,
|
|
63
|
-
size: d,
|
|
64
|
-
autoComplete: j,
|
|
65
|
-
onPressEnter: (i) => _(i, x, c, f),
|
|
66
|
-
type: o,
|
|
67
|
-
placeholder: m ?? t
|
|
68
|
-
}, w = o == "password" ? p.Password : p;
|
|
69
|
-
return /* @__PURE__ */ e.jsx(D, { title: h, children: /* @__PURE__ */ e.jsx(L.Item, { ...F, label: t, rules: N, children: /* @__PURE__ */ e.jsx(w, { ...R }) }) });
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
U as default,
|
|
73
|
-
_ as onEnterInternalTextField
|
|
74
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../node_modules/antd/es/tooltip/index.cjs"),r=({children:e,title:t})=>t?u.jsxRuntimeExports.jsx(o.default,{title:t,children:e}):e;exports.default=r;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import p from "../../../../node_modules/antd/es/tooltip/index.js";
|
|
3
|
-
const n = ({
|
|
4
|
-
children: o,
|
|
5
|
-
title: t
|
|
6
|
-
}) => t ? /* @__PURE__ */ r.jsx(p, { title: t, children: o }) : o;
|
|
7
|
-
export {
|
|
8
|
-
n as default
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),u=require("i18next"),E=require("react-i18next"),a=require("../button/Button.cjs"),R=require("../../../locale/hooks/translation-constants.cjs"),f=require("../../../../node_modules/antd/es/result/index.cjs"),q=require("../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.cjs"),y=require("../../../../node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.cjs"),T=({errorChildren:d,children:l,onRetry:r,onClickBack:x,success:s,loading:i,error:e,successTitle:j=u.t("str.success"),successMessage:c,errorMessage:o=u.t("err.save"),errorTitle:m=u.t("str.error"),loadingTitle:p=u.t("message.loading.saving"),loadingMessage:v})=>{const{t:n}=E.useTranslation(R.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(f.default,{status:i?void 0:s?"success":e?["403","404","500"].includes(e==null?void 0:e.code)?e.code:e?"error":void 0:void 0,title:i?p:s?j:e?m:void 0,icon:i?t.jsxRuntimeExports.jsx(q.default,{}):void 0,subTitle:i?v:s?c:e?typeof o=="function"?o()??n("err.save"):o??n("err.save"):void 0,extra:[s?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:l}):e?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[!!x&&t.jsxRuntimeExports.jsx(a.default,{onClick:x,htmlType:"button",type:"primary",icon:t.jsxRuntimeExports.jsx(y.default,{}),children:n("str.previous")}),!!r&&t.jsxRuntimeExports.jsx(a.default,{type:"primary",onClick:()=>r(void 0,void 0,!0),children:n("str.retry")},"retry"),d]}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{})]})};exports.default=T;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { t as e } from "i18next";
|
|
3
|
-
import { useTranslation as j } from "react-i18next";
|
|
4
|
-
import a from "../button/Button.js";
|
|
5
|
-
import { TRANSLATION_NAMESPACE as y } from "../../../locale/hooks/translation-constants.js";
|
|
6
|
-
import R from "../../../../node_modules/antd/es/result/index.js";
|
|
7
|
-
import T from "../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js";
|
|
8
|
-
import h from "../../../../node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.js";
|
|
9
|
-
const S = ({
|
|
10
|
-
errorChildren: d,
|
|
11
|
-
children: f,
|
|
12
|
-
onRetry: p,
|
|
13
|
-
onClickBack: r,
|
|
14
|
-
success: i,
|
|
15
|
-
loading: s,
|
|
16
|
-
error: o,
|
|
17
|
-
successTitle: u = e("str.success"),
|
|
18
|
-
successMessage: v,
|
|
19
|
-
errorMessage: n = e("err.save"),
|
|
20
|
-
errorTitle: l = e("str.error"),
|
|
21
|
-
loadingTitle: x = e("message.loading.saving"),
|
|
22
|
-
loadingMessage: c
|
|
23
|
-
}) => {
|
|
24
|
-
const { t: m } = j(y);
|
|
25
|
-
return /* @__PURE__ */ t.jsx(
|
|
26
|
-
R,
|
|
27
|
-
{
|
|
28
|
-
status: s ? void 0 : i ? "success" : o ? ["403", "404", "500"].includes(o == null ? void 0 : o.code) ? o.code : o ? "error" : void 0 : void 0,
|
|
29
|
-
title: s ? x : i ? u : o ? l : void 0,
|
|
30
|
-
icon: s ? /* @__PURE__ */ t.jsx(T, {}) : void 0,
|
|
31
|
-
subTitle: s ? c : i ? v : o ? typeof n == "function" ? n() ?? m("err.save") : n ?? m("err.save") : void 0,
|
|
32
|
-
extra: [
|
|
33
|
-
i ? /* @__PURE__ */ t.jsx(t.Fragment, { children: f }) : o ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
34
|
-
!!r && /* @__PURE__ */ t.jsx(
|
|
35
|
-
a,
|
|
36
|
-
{
|
|
37
|
-
onClick: r,
|
|
38
|
-
htmlType: "button",
|
|
39
|
-
type: "primary",
|
|
40
|
-
icon: /* @__PURE__ */ t.jsx(h, {}),
|
|
41
|
-
children: m("str.previous")
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
!!p && /* @__PURE__ */ t.jsx(
|
|
45
|
-
a,
|
|
46
|
-
{
|
|
47
|
-
type: "primary",
|
|
48
|
-
onClick: () => p(void 0, void 0, !0),
|
|
49
|
-
children: m("str.retry")
|
|
50
|
-
},
|
|
51
|
-
"retry"
|
|
52
|
-
),
|
|
53
|
-
d
|
|
54
|
-
] }) : /* @__PURE__ */ t.jsx(t.Fragment, {})
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
export {
|
|
60
|
-
S as default
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../../../_virtual/jsx-runtime.cjs"),o=require("react"),q=require("../appearance/Hider.cjs"),v=require("../../../../node_modules/antd/es/steps/index.cjs"),{Step:_}=v.default,y=o.forwardRef(({pages:d,onSubmit:a,initPosition:f=0,progressDot:E,type:S,labelPlacement:b,className:g,pageStyle:w},k)=>{const[t,c]=o.useState(0),[r,x]=o.useState([]);o.useEffect(()=>{c(f)},[f]),o.useImperativeHandle(k,()=>({gotTo:s=>c(s)}),[]);const p=o.useCallback((s,u=!1,l=!1)=>{const e=[...r];if(s!==void 0&&(e[t]=s,x(e)),l||c(t+1),u&&a){const n={};for(const h of e)for(const R in h)n[R]=h[R];a(e,n)}},[t,r,a]),m=o.useCallback(()=>{const s=[...r];s[t]=void 0,x(s),c(t-1)},[t,r]),j=o.useMemo(()=>{const s=[],u=[],l=d.filter(e=>!e.hidden);for(let e=0;e<l.length;e++){const n=l[e];u.push(i.jsxRuntimeExports.jsx(q.default,{hide:t!==e,children:n.component({forward:p,backward:m},r,t===e)},`${n.title}${e}`)),s.push(i.jsxRuntimeExports.jsx(_,{icon:n.icon,title:n.title},n.title))}return{_pages:u,steps:s}},[m,t,r,p,d]);return i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(v.default,{labelPlacement:b,progressDot:E,className:[g,"pb-3"].join(" "),current:t,type:S,children:j.steps}),i.jsxRuntimeExports.jsx("div",{style:w,children:j._pages})]})});exports.default=y;
|