@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
package/dist/common/index.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { default as o } from "../src/components/common/layout/VerticalSpace.js";
|
|
2
|
-
import { Text as a } from "../src/components/common/text/index.js";
|
|
3
|
-
import { ShowMore as p } from "../src/components/common/show-more/index.js";
|
|
4
|
-
import { default as l } from "../src/components/common/button/CloneButtonTable.js";
|
|
5
|
-
import { default as x } from "../src/components/common/button/DeleteButtonTable.js";
|
|
6
|
-
import { default as n } from "../src/components/common/button/HideButtonTable.js";
|
|
7
|
-
import { default as i } from "../src/components/common/button/UnHideButton.js";
|
|
8
|
-
import { default as B } from "../src/components/common/button/UpdateButtonTable.js";
|
|
9
|
-
import { default as c } from "../src/components/common/button/ViewButtonTable.js";
|
|
10
|
-
import { default as S } from "../src/components/common/description/DescList.js";
|
|
11
|
-
import { default as w } from "../src/components/common/loading/LoadingIndicator.js";
|
|
12
|
-
import { default as P } from "../src/components/common/select/CustomSelectOption.js";
|
|
13
|
-
import { default as k } from "../src/components/common/table/table.js";
|
|
14
|
-
import { default as V } from "../src/components/common/tag/StatusTag.js";
|
|
15
|
-
import { default as D } from "../src/components/common/text-field/PhoneNumberField.js";
|
|
16
|
-
import { default as z } from "../src/components/common/tooltip/TooltipComponent.js";
|
|
17
|
-
import { default as L } from "../src/components/common/wizard/WizardResult.js";
|
|
18
|
-
import { default as U } from "../src/components/common/wizard/WizardViewForm.js";
|
|
19
|
-
import { default as E } from "../src/components/common/DatePicker/DatePicker.js";
|
|
20
|
-
import { default as M } from "../src/components/common/DatePicker/TimePicker.js";
|
|
21
|
-
import { default as j, default as q } from "../src/components/common/button/Button.js";
|
|
22
|
-
import { ExportButton as y } from "../src/components/common/button/ExportButton.js";
|
|
23
|
-
import { ImportButton as K } from "../src/components/common/button/ImportButton.js";
|
|
24
|
-
import { NewButton as X } from "../src/components/common/button/NewButton.js";
|
|
25
|
-
import { PrintButton as Z } from "../src/components/common/button/PrintButton.js";
|
|
26
|
-
import { RefreshButton as $ } from "../src/components/common/button/RefreshButton.js";
|
|
27
|
-
import { default as et } from "../src/components/common/check-box/CheckBox.js";
|
|
28
|
-
import { default as rt } from "../src/components/common/picker/ImagePicker.js";
|
|
29
|
-
import { default as ft } from "../src/components/common/radio/RadioGroupComponent.js";
|
|
30
|
-
import { SelectFieldInReport as mt } from "../src/components/common/report/SelectFieldInReport.js";
|
|
31
|
-
import { default as ut } from "../src/components/common/select/SelectComponent.js";
|
|
32
|
-
import { TabViewWithRoute as dt } from "../src/components/common/tab/TabViewWithRoute.js";
|
|
33
|
-
import { Title as st } from "../src/components/common/text/title/index.js";
|
|
34
|
-
import { default as Tt } from "../src/components/common/text-field/TextField.js";
|
|
35
|
-
import { default as Ct } from "../src/components/common/text-field/TextArea.js";
|
|
36
|
-
import { default as bt } from "../src/components/common/text-field/NumberField.js";
|
|
37
|
-
export {
|
|
38
|
-
j as Button,
|
|
39
|
-
q as ButtonComponent,
|
|
40
|
-
et as CheckBoxComponent,
|
|
41
|
-
l as CloneButtonTable,
|
|
42
|
-
P as CustomSelectOption,
|
|
43
|
-
E as DatePickerComponent,
|
|
44
|
-
x as DeleteButtonTable,
|
|
45
|
-
S as DescList,
|
|
46
|
-
y as ExportButton,
|
|
47
|
-
n as HideButtonTable,
|
|
48
|
-
rt as ImagePicker,
|
|
49
|
-
K as ImportButton,
|
|
50
|
-
w as LoadingIndicator,
|
|
51
|
-
X as NewButton,
|
|
52
|
-
bt as NumberTextField,
|
|
53
|
-
D as PhoneField,
|
|
54
|
-
Z as PrintButton,
|
|
55
|
-
ft as RadioGroupComponent,
|
|
56
|
-
$ as RefreshButton,
|
|
57
|
-
ut as SelectComponent,
|
|
58
|
-
mt as SelectFieldInReport,
|
|
59
|
-
p as ShowMore,
|
|
60
|
-
V as StatusTag,
|
|
61
|
-
dt as TabViewWithRoute,
|
|
62
|
-
k as TableComponent,
|
|
63
|
-
a as Text,
|
|
64
|
-
Ct as TextAreaComponent,
|
|
65
|
-
Tt as TextField,
|
|
66
|
-
M as TimePickerComponent,
|
|
67
|
-
st as Title,
|
|
68
|
-
z as TooltipComponent,
|
|
69
|
-
i as UnHideButton,
|
|
70
|
-
B as UpdateButtonTable,
|
|
71
|
-
o as VerticalSpace,
|
|
72
|
-
c as ViewButtonTable,
|
|
73
|
-
L as WizardResult,
|
|
74
|
-
U as WizardViewForm
|
|
75
|
-
};
|
package/dist/crud-component.css
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
.ant-avatar-string{left:0!important;position:relative!important}.ant-btn:focus{outline:none!important;box-shadow:none!important}.ant-btn:active{outline:none!important;border-color:inherit!important}/*!
|
|
2
|
-
* Cropper.js v1.6.2
|
|
3
|
-
* https://fengyuanchen.github.io/cropperjs
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2015-present Chen Fengyuan
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
*
|
|
8
|
-
* Date: 2024-04-21T07:43:02.731Z
|
|
9
|
-
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.hide-upload div.ant-upload-select{display:none!important}.show-more-less-clickable{color:#209bff;cursor:pointer}.show-more-less-clickable:hover{text-decoration:underline}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../../../_virtual/dayjs.min.cjs"),S=require("../../../../_virtual/advancedFormat.cjs"),_=require("../../../../_virtual/customParseFormat.cjs"),C=require("../../../../_virtual/localeData.cjs"),I=require("../../../../_virtual/weekday.cjs"),M=require("../../../../_virtual/weekOfYear.cjs"),T=require("../../../../_virtual/weekYear.cjs"),$=require("../../../locale/hooks/translation-constants.cjs"),D=require("react"),F=require("react-i18next"),l=require("../../../../node_modules/antd/es/date-picker/index.cjs"),Y=require("../../../../node_modules/antd/es/form/index.cjs");t.default.extend(_.default);t.default.extend(S.default);t.default.extend(I.default);t.default.extend(C.default);t.default.extend(M.default);t.default.extend(T.default);const b=({type:g,required:i,label:r,rules:f=[],placeholder:s,disabledPastDays:o=!1,disableToday:u=!1,onEnter:L,disabled:x,nextFocus:z,onChange:a,range:m,showTime:q,disabledFutureDays:d,picker:j,defaultValue:O,value:k,format:p,autoComplete:B="off",enabledDates:G=[],renderExtraFooter:y,...R})=>{const{t:E}=F.useTranslation($.TRANSLATION_NAMESPACE),v=m?l.default.RangePicker:l.default,w=D.useCallback(e=>{if(!e)return!1;const n=t.default(),A=o&&e<n.startOf("day"),N=d&&e>n.endOf("day"),P=u&&e<n.endOf("day")&&n.startOf("day")<e;return A||N||P},[o,d,u]);return c.jsxRuntimeExports.jsx(Y.default.Item,{...R,label:r,rules:[{required:i,message:`${r??s??""} ${E("err.validation.required")}`},...f],children:c.jsxRuntimeExports.jsx(v,{renderExtraFooter:y,value:k,picker:j,defaultValue:O,format:p,onChange:e=>a==null?void 0:a(e),disabledDate:w,disabled:x,className:"w-100",placeholder:s,showTime:q})})};exports.default=b;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { j as i } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import o from "../../../../_virtual/dayjs.min.js";
|
|
3
|
-
import v from "../../../../_virtual/advancedFormat.js";
|
|
4
|
-
import C from "../../../../_virtual/customParseFormat.js";
|
|
5
|
-
import I from "../../../../_virtual/localeData.js";
|
|
6
|
-
import S from "../../../../_virtual/weekday.js";
|
|
7
|
-
import T from "../../../../_virtual/weekOfYear.js";
|
|
8
|
-
import Y from "../../../../_virtual/weekYear.js";
|
|
9
|
-
import { TRANSLATION_NAMESPACE as $ } from "../../../locale/hooks/translation-constants.js";
|
|
10
|
-
import { useCallback as q } from "react";
|
|
11
|
-
import { useTranslation as L } from "react-i18next";
|
|
12
|
-
import p from "../../../../node_modules/antd/es/date-picker/index.js";
|
|
13
|
-
import M from "../../../../node_modules/antd/es/form/index.js";
|
|
14
|
-
o.extend(C);
|
|
15
|
-
o.extend(v);
|
|
16
|
-
o.extend(S);
|
|
17
|
-
o.extend(I);
|
|
18
|
-
o.extend(T);
|
|
19
|
-
o.extend(Y);
|
|
20
|
-
const et = ({
|
|
21
|
-
type: _,
|
|
22
|
-
required: d,
|
|
23
|
-
label: m,
|
|
24
|
-
rules: c = [],
|
|
25
|
-
placeholder: a,
|
|
26
|
-
disabledPastDays: n = !1,
|
|
27
|
-
disableToday: s = !1,
|
|
28
|
-
onEnter: z,
|
|
29
|
-
disabled: x,
|
|
30
|
-
nextFocus: B,
|
|
31
|
-
onChange: r,
|
|
32
|
-
range: l,
|
|
33
|
-
showTime: k,
|
|
34
|
-
disabledFutureDays: f,
|
|
35
|
-
picker: u,
|
|
36
|
-
defaultValue: O,
|
|
37
|
-
value: j,
|
|
38
|
-
format: y,
|
|
39
|
-
autoComplete: G = "off",
|
|
40
|
-
enabledDates: H = [],
|
|
41
|
-
renderExtraFooter: w,
|
|
42
|
-
...A
|
|
43
|
-
}) => {
|
|
44
|
-
const { t: E } = L($), N = l ? p.RangePicker : p, P = q(
|
|
45
|
-
(t) => {
|
|
46
|
-
if (!t)
|
|
47
|
-
return !1;
|
|
48
|
-
const e = o(), D = n && t < e.startOf("day"), F = f && t > e.endOf("day"), R = s && t < e.endOf("day") && e.startOf("day") < t;
|
|
49
|
-
return D || F || R;
|
|
50
|
-
},
|
|
51
|
-
[n, f, s]
|
|
52
|
-
// Dependencies for useCallback
|
|
53
|
-
);
|
|
54
|
-
return /* @__PURE__ */ i.jsx(
|
|
55
|
-
M.Item,
|
|
56
|
-
{
|
|
57
|
-
...A,
|
|
58
|
-
label: m,
|
|
59
|
-
rules: [
|
|
60
|
-
{
|
|
61
|
-
required: d,
|
|
62
|
-
message: `${m ?? a ?? ""} ${E(
|
|
63
|
-
"err.validation.required"
|
|
64
|
-
)}`
|
|
65
|
-
},
|
|
66
|
-
...c
|
|
67
|
-
],
|
|
68
|
-
children: /* @__PURE__ */ i.jsx(
|
|
69
|
-
N,
|
|
70
|
-
{
|
|
71
|
-
renderExtraFooter: w,
|
|
72
|
-
value: j,
|
|
73
|
-
picker: u,
|
|
74
|
-
defaultValue: O,
|
|
75
|
-
format: y,
|
|
76
|
-
onChange: (t) => r == null ? void 0 : r(t),
|
|
77
|
-
disabledDate: P,
|
|
78
|
-
disabled: x,
|
|
79
|
-
className: "w-100",
|
|
80
|
-
placeholder: a,
|
|
81
|
-
showTime: k
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
export {
|
|
88
|
-
et as default
|
|
89
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../../_virtual/jsx-runtime.cjs"),v=require("../../../../_virtual/dayjs.min.cjs"),m=require("react"),I=require("react-i18next"),P=require("../../../locale/hooks/translation-constants.cjs"),f=require("../../../../node_modules/antd/es/time-picker/index.cjs"),$=require("../../../../node_modules/antd/es/form/index.cjs"),C=({type:O,required:d,label:c,rules:x=[],placeholder:t,disabledPast:i=!1,disableCurrent:r=!1,onEnter:w,disabled:q,use12Hours:j,nextFocus:D,onChange:s,range:n,disabledFuture:u,defaultValue:p,value:R,format:T,autoComplete:F="off",renderExtraFooter:E,...S})=>{const{t:y}=I.useTranslation(P.TRANSLATION_NAMESPACE),a=m.useMemo(()=>t||(n?["From","To"]:"Select time"),[t,n]);console.log(a);const A=n?f.default.RangePicker:f.default,M=m.useCallback(e=>{if(!e)return!1;const o=v.default(),N=i&&e<o,_=u&&e>o,k=r&&e<o&&o<e;return N||_||k},[r,u,i]);return l.jsxRuntimeExports.jsx($.default.Item,{...S,label:c,rules:[{required:d,message:`${c??t??""} ${y("err.validation.required")}`},...x],children:l.jsxRuntimeExports.jsx(A,{use12Hours:j,renderExtraFooter:E,value:R,defaultValue:p,format:T,onChange:e=>s==null?void 0:s(e),disabledDate:M,disabled:q,className:"w-100",placeholder:a})})};exports.default=C;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { j as p } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import I from "../../../../_virtual/dayjs.min.js";
|
|
3
|
-
import { useMemo as M, useCallback as $ } from "react";
|
|
4
|
-
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { TRANSLATION_NAMESPACE as v } from "../../../locale/hooks/translation-constants.js";
|
|
6
|
-
import a from "../../../../node_modules/antd/es/time-picker/index.js";
|
|
7
|
-
import w from "../../../../node_modules/antd/es/form/index.js";
|
|
8
|
-
const Q = ({
|
|
9
|
-
type: C,
|
|
10
|
-
required: l,
|
|
11
|
-
label: r,
|
|
12
|
-
rules: x = [],
|
|
13
|
-
placeholder: t,
|
|
14
|
-
disabledPast: i = !1,
|
|
15
|
-
disableCurrent: c = !1,
|
|
16
|
-
onEnter: D,
|
|
17
|
-
disabled: T,
|
|
18
|
-
use12Hours: j,
|
|
19
|
-
nextFocus: H,
|
|
20
|
-
onChange: s,
|
|
21
|
-
range: e,
|
|
22
|
-
disabledFuture: n,
|
|
23
|
-
defaultValue: u,
|
|
24
|
-
value: k,
|
|
25
|
-
format: A,
|
|
26
|
-
autoComplete: L = "off",
|
|
27
|
-
renderExtraFooter: E,
|
|
28
|
-
...N
|
|
29
|
-
}) => {
|
|
30
|
-
const { t: y } = q(v), f = M(
|
|
31
|
-
() => t || (e ? ["From", "To"] : "Select time"),
|
|
32
|
-
[t, e]
|
|
33
|
-
);
|
|
34
|
-
console.log(f);
|
|
35
|
-
const P = e ? a.RangePicker : a, R = $(
|
|
36
|
-
(o) => {
|
|
37
|
-
if (!o)
|
|
38
|
-
return !1;
|
|
39
|
-
const m = I(), S = i && o < m, d = n && o > m, F = c && o < m && m < o;
|
|
40
|
-
return S || d || F;
|
|
41
|
-
},
|
|
42
|
-
[c, n, i]
|
|
43
|
-
// Dependencies for useCallback
|
|
44
|
-
);
|
|
45
|
-
return /* @__PURE__ */ p.jsx(
|
|
46
|
-
w.Item,
|
|
47
|
-
{
|
|
48
|
-
...N,
|
|
49
|
-
label: r,
|
|
50
|
-
rules: [
|
|
51
|
-
{
|
|
52
|
-
required: l,
|
|
53
|
-
message: `${r ?? t ?? ""} ${y(
|
|
54
|
-
"err.validation.required"
|
|
55
|
-
)}`
|
|
56
|
-
},
|
|
57
|
-
...x
|
|
58
|
-
],
|
|
59
|
-
children: /* @__PURE__ */ p.jsx(
|
|
60
|
-
P,
|
|
61
|
-
{
|
|
62
|
-
use12Hours: j,
|
|
63
|
-
renderExtraFooter: E,
|
|
64
|
-
value: k,
|
|
65
|
-
defaultValue: u,
|
|
66
|
-
format: A,
|
|
67
|
-
onChange: (o) => s == null ? void 0 : s(o),
|
|
68
|
-
disabledDate: R,
|
|
69
|
-
disabled: T,
|
|
70
|
-
className: "w-100",
|
|
71
|
-
placeholder: f
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
Q as default
|
|
79
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../../../_virtual/jsx-runtime.cjs"),r=({children:e,hide:t})=>s.jsxRuntimeExports.jsx("div",{className:t?"d-none":"",children:e});exports.default=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../../../../_virtual/jsx-runtime.cjs"),b=require("../../../locale/hooks/translation-constants.cjs"),l=require("react"),m=require("react-i18next");;/* empty css */const c=require("../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.cjs"),g=require("../../../../node_modules/antd/es/button/button.cjs"),v=require("../../../../node_modules/antd/es/tooltip/index.cjs"),f=({className:i,to:n,onClick:e,tooltip:a,ref:j,...t})=>{var o;const{t:u}=m.useTranslation(b.TRANSLATION_NAMESPACE),s=l.useContext(c.NavigationContext)?(o=c.useNavigate)==null?void 0:o.call(c):void 0,r=l.useMemo(()=>d.jsxRuntimeExports.jsx(g.default,{onClick:e||(n&&s?()=>s(n):void 0),className:i,...t,children:t.children||u(`button.${t.type}`)}),[i,s,e,t,u,n]);return a?d.jsxRuntimeExports.jsx(v.default,{title:a,children:r}):r},y=({className:i,to:n,onClick:e,tooltip:a,ref:j,...t})=>{const u=c.useNavigate(),[x,s]=l.useState(!1),r=l.useCallback(async q=>{try{return s(!0),await e(q)}finally{s(!1)}},[e]),o=l.useMemo(()=>d.jsxRuntimeExports.jsx(g.default,{loading:x||t.loading,onClick:e?r:n?()=>u(n):void 0,className:i,...t}),[r,i,x,u,e,t,n]);return a?d.jsxRuntimeExports.jsx(v.default,{title:a,children:o}):o};f.Async=y;exports.default=f;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { j as u } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { TRANSLATION_NAMESPACE as j } from "../../../locale/hooks/translation-constants.js";
|
|
3
|
-
import { useContext as y, useMemo as f, useState as A, useCallback as b } from "react";
|
|
4
|
-
import { useTranslation as h } from "react-i18next";
|
|
5
|
-
/* empty css */
|
|
6
|
-
import { NavigationContext as T, useNavigate as d } from "../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.js";
|
|
7
|
-
import l from "../../../../node_modules/antd/es/button/button.js";
|
|
8
|
-
import g from "../../../../node_modules/antd/es/tooltip/index.js";
|
|
9
|
-
const C = ({
|
|
10
|
-
className: i,
|
|
11
|
-
to: o,
|
|
12
|
-
onClick: t,
|
|
13
|
-
tooltip: r,
|
|
14
|
-
ref: v,
|
|
15
|
-
...n
|
|
16
|
-
}) => {
|
|
17
|
-
var m;
|
|
18
|
-
const { t: a } = h(j), e = y(T) ? (m = d) == null ? void 0 : m() : void 0, s = f(
|
|
19
|
-
() => /* @__PURE__ */ u.jsx(
|
|
20
|
-
l,
|
|
21
|
-
{
|
|
22
|
-
onClick: t || (o && e ? () => e(o) : void 0),
|
|
23
|
-
className: i,
|
|
24
|
-
...n,
|
|
25
|
-
children: n.children || a(`button.${n.type}`)
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
[i, e, t, n, a, o]
|
|
29
|
-
);
|
|
30
|
-
return r ? /* @__PURE__ */ u.jsx(g, { title: r, children: s }) : s;
|
|
31
|
-
}, E = ({
|
|
32
|
-
className: i,
|
|
33
|
-
to: o,
|
|
34
|
-
onClick: t,
|
|
35
|
-
tooltip: r,
|
|
36
|
-
ref: v,
|
|
37
|
-
...n
|
|
38
|
-
}) => {
|
|
39
|
-
const a = d(), [c, e] = A(!1), s = b(
|
|
40
|
-
async (x) => {
|
|
41
|
-
try {
|
|
42
|
-
return e(!0), await t(x);
|
|
43
|
-
} finally {
|
|
44
|
-
e(!1);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
[t]
|
|
48
|
-
), m = f(
|
|
49
|
-
() => /* @__PURE__ */ u.jsx(
|
|
50
|
-
l,
|
|
51
|
-
{
|
|
52
|
-
loading: c || n.loading,
|
|
53
|
-
onClick: t ? s : o ? () => a(o) : void 0,
|
|
54
|
-
className: i,
|
|
55
|
-
...n
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
[s, i, c, a, t, n, o]
|
|
59
|
-
);
|
|
60
|
-
return r ? /* @__PURE__ */ u.jsx(g, { title: r, children: m }) : m;
|
|
61
|
-
};
|
|
62
|
-
C.Async = E;
|
|
63
|
-
export {
|
|
64
|
-
C as default
|
|
65
|
-
};
|
|
@@ -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("./Button.cjs"),r=require("react-i18next"),s=require("../../../locale/hooks/translation-constants.cjs"),i=require("../../../../node_modules/@ant-design/icons/es/icons/CopyOutlined.cjs");function l({value:e,onClick:n}){const{t:o}=r.useTranslation(s.TRANSLATION_NAMESPACE);return t.jsxRuntimeExports.jsx(u.default,{type:"link",onClick:()=>n(e),icon:t.jsxRuntimeExports.jsx(i.default,{}),tooltip:o("clone")})}exports.default=l;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import i from "./Button.js";
|
|
3
|
-
import { useTranslation as m } from "react-i18next";
|
|
4
|
-
import { TRANSLATION_NAMESPACE as e } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
-
import p from "../../../../node_modules/@ant-design/icons/es/icons/CopyOutlined.js";
|
|
6
|
-
function c({ value: t, onClick: n }) {
|
|
7
|
-
const { t: r } = m(e);
|
|
8
|
-
return /* @__PURE__ */ o.jsx(
|
|
9
|
-
i,
|
|
10
|
-
{
|
|
11
|
-
type: "link",
|
|
12
|
-
onClick: () => n(t),
|
|
13
|
-
icon: /* @__PURE__ */ o.jsx(p, {}),
|
|
14
|
-
tooltip: r("clone")
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
c as default
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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,68 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
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
|
-
shouldConfirm: d = !0,
|
|
10
|
-
block: n,
|
|
11
|
-
value: s,
|
|
12
|
-
loading: i,
|
|
13
|
-
onClick: a,
|
|
14
|
-
text: l,
|
|
15
|
-
disabled: f,
|
|
16
|
-
type: m = "link"
|
|
17
|
-
}) {
|
|
18
|
-
const { t: o } = A(E), e = j(() => l ?? o("str.delete"), [l, o]), [u, r] = C(!1);
|
|
19
|
-
T(() => {
|
|
20
|
-
r(i ?? !1);
|
|
21
|
-
}, [i]);
|
|
22
|
-
const p = g(
|
|
23
|
-
async () => {
|
|
24
|
-
try {
|
|
25
|
-
r(!0), await a(s);
|
|
26
|
-
} finally {
|
|
27
|
-
r(!1);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
[a, s]
|
|
31
|
-
);
|
|
32
|
-
return d ? /* @__PURE__ */ t.jsx(
|
|
33
|
-
_,
|
|
34
|
-
{
|
|
35
|
-
title: o("qus.doYouWantToDelete"),
|
|
36
|
-
okText: e.toUpperCase(),
|
|
37
|
-
cancelText: o("str.no").toUpperCase(),
|
|
38
|
-
onConfirm: p,
|
|
39
|
-
children: /* @__PURE__ */ t.jsx(
|
|
40
|
-
c,
|
|
41
|
-
{
|
|
42
|
-
tooltip: e,
|
|
43
|
-
icon: /* @__PURE__ */ t.jsx(x, {}),
|
|
44
|
-
disabled: f,
|
|
45
|
-
loading: u,
|
|
46
|
-
type: m,
|
|
47
|
-
danger: !0,
|
|
48
|
-
block: n
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
) : /* @__PURE__ */ t.jsx(
|
|
53
|
-
c,
|
|
54
|
-
{
|
|
55
|
-
tooltip: e,
|
|
56
|
-
icon: /* @__PURE__ */ t.jsx(x, {}),
|
|
57
|
-
disabled: f,
|
|
58
|
-
loading: u,
|
|
59
|
-
type: m,
|
|
60
|
-
danger: !0,
|
|
61
|
-
block: n,
|
|
62
|
-
onClick: p
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
I as default
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useState as m, useCallback as p } from "react";
|
|
3
|
-
import { useTranslation as a } from "react-i18next";
|
|
4
|
-
import f from "./Button.js";
|
|
5
|
-
import { TRANSLATION_NAMESPACE as c } from "../../../locale/hooks/translation-constants.js";
|
|
6
|
-
import l from "../../../../node_modules/@ant-design/icons/es/icons/ExportOutlined.js";
|
|
7
|
-
function y({
|
|
8
|
-
value: o,
|
|
9
|
-
onClick: t
|
|
10
|
-
}) {
|
|
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
|
-
return /* @__PURE__ */ n.jsx(
|
|
15
|
-
f,
|
|
16
|
-
{
|
|
17
|
-
loading: s,
|
|
18
|
-
type: "link",
|
|
19
|
-
onClick: e,
|
|
20
|
-
icon: /* @__PURE__ */ n.jsx(l, {}),
|
|
21
|
-
tooltip: i("str.export")
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
y as ExportButton
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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,68 +0,0 @@
|
|
|
1
|
-
import { j as o } from "../../../../_virtual/jsx-runtime.js";
|
|
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
|
-
function H({
|
|
9
|
-
shouldConfirm: d = !0,
|
|
10
|
-
block: n,
|
|
11
|
-
value: i,
|
|
12
|
-
loading: s,
|
|
13
|
-
onClick: a,
|
|
14
|
-
text: f,
|
|
15
|
-
disabled: m,
|
|
16
|
-
type: l = "link"
|
|
17
|
-
}) {
|
|
18
|
-
const { t } = A(E), r = j(() => f ?? t("str.hide"), [f, t]), [u, e] = C(!1);
|
|
19
|
-
T(() => {
|
|
20
|
-
e(s ?? !1);
|
|
21
|
-
}, [s]);
|
|
22
|
-
const p = g(
|
|
23
|
-
async () => {
|
|
24
|
-
try {
|
|
25
|
-
e(!0), await a(i);
|
|
26
|
-
} finally {
|
|
27
|
-
e(!1);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
[a, i]
|
|
31
|
-
);
|
|
32
|
-
return d ? /* @__PURE__ */ o.jsx(
|
|
33
|
-
_,
|
|
34
|
-
{
|
|
35
|
-
title: t("qus.doYouWantToHide"),
|
|
36
|
-
okText: r.toUpperCase(),
|
|
37
|
-
cancelText: t("str.no").toUpperCase(),
|
|
38
|
-
onConfirm: p,
|
|
39
|
-
children: /* @__PURE__ */ o.jsx(
|
|
40
|
-
c,
|
|
41
|
-
{
|
|
42
|
-
tooltip: r,
|
|
43
|
-
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
44
|
-
disabled: m,
|
|
45
|
-
loading: u,
|
|
46
|
-
type: l,
|
|
47
|
-
danger: !0,
|
|
48
|
-
block: n
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
) : /* @__PURE__ */ o.jsx(
|
|
53
|
-
c,
|
|
54
|
-
{
|
|
55
|
-
tooltip: r,
|
|
56
|
-
icon: /* @__PURE__ */ o.jsx(x, {}),
|
|
57
|
-
disabled: m,
|
|
58
|
-
loading: u,
|
|
59
|
-
type: l,
|
|
60
|
-
danger: !0,
|
|
61
|
-
block: n,
|
|
62
|
-
onClick: p
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
H as default
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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,56 +0,0 @@
|
|
|
1
|
-
import { j as n } from "../../../../_virtual/jsx-runtime.js";
|
|
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
|
-
onClick: e,
|
|
9
|
-
children: l,
|
|
10
|
-
accept: a,
|
|
11
|
-
className: m,
|
|
12
|
-
disabled: f,
|
|
13
|
-
type: p = "link"
|
|
14
|
-
}) {
|
|
15
|
-
const [u, s] = r(!1), { t: x } = C(A), o = k(null), j = c(() => {
|
|
16
|
-
d((t) => t + 1), o.current && setTimeout(() => {
|
|
17
|
-
var t;
|
|
18
|
-
(t = o == null ? void 0 : o.current) == null || t.click();
|
|
19
|
-
}, 10);
|
|
20
|
-
}, []), [y, d] = r(0), g = c(
|
|
21
|
-
async (t) => {
|
|
22
|
-
s(!0);
|
|
23
|
-
const i = t.target.files[0];
|
|
24
|
-
i && await e(i), s(!1);
|
|
25
|
-
},
|
|
26
|
-
[e]
|
|
27
|
-
);
|
|
28
|
-
return /* @__PURE__ */ n.jsxs("div", { className: m, children: [
|
|
29
|
-
/* @__PURE__ */ n.jsx(
|
|
30
|
-
"input",
|
|
31
|
-
{
|
|
32
|
-
type: "file",
|
|
33
|
-
style: { display: "none" },
|
|
34
|
-
ref: o,
|
|
35
|
-
onChange: g,
|
|
36
|
-
accept: a
|
|
37
|
-
},
|
|
38
|
-
y
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ n.jsx(
|
|
41
|
-
T,
|
|
42
|
-
{
|
|
43
|
-
loading: u,
|
|
44
|
-
type: p,
|
|
45
|
-
disabled: f,
|
|
46
|
-
onClick: j,
|
|
47
|
-
icon: /* @__PURE__ */ n.jsx(h, {}),
|
|
48
|
-
tooltip: x("str.import"),
|
|
49
|
-
children: l
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] });
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
L as ImportButton
|
|
56
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useTranslation as f } from "react-i18next";
|
|
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
|
-
{
|
|
11
|
-
type: e,
|
|
12
|
-
className: m,
|
|
13
|
-
to: s,
|
|
14
|
-
block: n,
|
|
15
|
-
size: t,
|
|
16
|
-
onClick: o && (() => o(!0)),
|
|
17
|
-
icon: /* @__PURE__ */ r.jsx(x, {}),
|
|
18
|
-
children: i ?? p("str.new")
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
R as NewButton
|
|
24
|
-
};
|