@kingteza/crud-component 1.0.65 → 1.1.0
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/package.json +21 -11
- package/release.config.cjs +27 -0
- package/App.d.ts +0 -25
- package/Play.d.ts +0 -2
- package/common/appearance/Hider.cjs.js +0 -1
- package/common/appearance/Hider.d.ts +0 -6
- package/common/appearance/Hider.es.js +0 -5
- package/common/appearance/index.d.ts +0 -1
- package/common/button/Button.cjs.js +0 -1
- package/common/button/Button.d.ts +0 -11
- package/common/button/Button.es.js +0 -57
- package/common/button/CloneButtonTable.cjs.js +0 -1
- package/common/button/CloneButtonTable.d.ts +0 -6
- package/common/button/CloneButtonTable.es.js +0 -19
- package/common/button/DeleteButtonTable.cjs.js +0 -1
- package/common/button/DeleteButtonTable.d.ts +0 -13
- package/common/button/DeleteButtonTable.es.js +0 -64
- package/common/button/ExportButton.cjs.js +0 -1
- package/common/button/ExportButton.d.ts +0 -4
- package/common/button/ExportButton.es.js +0 -26
- package/common/button/HideButtonTable.cjs.js +0 -1
- package/common/button/HideButtonTable.d.ts +0 -13
- package/common/button/HideButtonTable.es.js +0 -67
- package/common/button/ImportButton.cjs.js +0 -1
- package/common/button/ImportButton.d.ts +0 -9
- package/common/button/ImportButton.es.js +0 -55
- package/common/button/NewButton.cjs.js +0 -1
- package/common/button/NewButton.d.ts +0 -12
- package/common/button/NewButton.es.js +0 -23
- package/common/button/PrintButton.cjs.js +0 -1
- package/common/button/PrintButton.d.ts +0 -12
- package/common/button/PrintButton.es.js +0 -25
- package/common/button/RefreshButton.cjs.js +0 -1
- package/common/button/RefreshButton.d.ts +0 -11
- package/common/button/RefreshButton.es.js +0 -23
- package/common/button/UnHideButton.cjs.js +0 -1
- package/common/button/UnHideButton.d.ts +0 -14
- package/common/button/UnHideButton.es.js +0 -69
- package/common/button/UpdateButtonTable.cjs.js +0 -1
- package/common/button/UpdateButtonTable.d.ts +0 -6
- package/common/button/UpdateButtonTable.es.js +0 -19
- package/common/button/ViewButtonTable.cjs.js +0 -1
- package/common/button/ViewButtonTable.d.ts +0 -6
- package/common/button/ViewButtonTable.es.js +0 -19
- package/common/button/index.d.ts +0 -14
- package/common/check-box/CheckBox.cjs.js +0 -1
- package/common/check-box/CheckBox.d.ts +0 -9
- package/common/check-box/CheckBox.es.js +0 -40
- package/common/check-box/index.d.ts +0 -2
- package/common/date-picker/DatePicker.cjs.js +0 -1
- package/common/date-picker/DatePicker.d.ts +0 -37
- package/common/date-picker/DatePicker.es.js +0 -87
- package/common/date-picker/TimePicker.cjs.js +0 -1
- package/common/date-picker/TimePicker.d.ts +0 -34
- package/common/date-picker/TimePicker.es.js +0 -77
- package/common/date-picker/index.d.ts +0 -3
- package/common/description/DescList.cjs.js +0 -1
- package/common/description/DescList.d.ts +0 -18
- package/common/description/DescList.es.js +0 -16
- package/common/description/DescriptionComponent.d.ts +0 -7
- package/common/description/index.d.ts +0 -3
- package/common/icon/KIcon.cjs.js +0 -1
- package/common/icon/KIcon.d.ts +0 -9
- package/common/icon/KIcon.es.js +0 -11
- package/common/index.cjs.js +0 -1
- package/common/index.d.ts +0 -20
- package/common/index.es.js +0 -78
- package/common/layout/VerticalSpace.cjs.js +0 -1
- package/common/layout/VerticalSpace.d.ts +0 -5
- package/common/layout/VerticalSpace.es.js +0 -6
- package/common/layout/index.d.ts +0 -2
- package/common/loading/LoadingIndicator.cjs.js +0 -1
- package/common/loading/LoadingIndicator.d.ts +0 -6
- package/common/loading/LoadingIndicator.es.js +0 -23
- package/common/loading/index.d.ts +0 -2
- package/common/picker/ImagePicker.cjs.js +0 -1
- package/common/picker/ImagePicker.d.ts +0 -56
- package/common/picker/ImagePicker.es.js +0 -320
- package/common/picker/index.d.ts +0 -2
- package/common/radio/RadioGroupComponent.cjs.js +0 -1
- package/common/radio/RadioGroupComponent.d.ts +0 -18
- package/common/radio/RadioGroupComponent.es.js +0 -19
- package/common/radio/index.d.ts +0 -2
- package/common/report/SelectFieldInReport.cjs.js +0 -1
- package/common/report/SelectFieldInReport.d.ts +0 -16
- package/common/report/SelectFieldInReport.es.js +0 -30
- package/common/report/index.d.ts +0 -3
- package/common/rich/index.cjs.js +0 -1
- package/common/rich/index.d.ts +0 -10
- package/common/rich/index.es.js +0 -66
- package/common/select/CustomSelectOption.cjs.js +0 -1
- package/common/select/CustomSelectOption.d.ts +0 -7
- package/common/select/CustomSelectOption.es.js +0 -13
- package/common/select/SelectComponent.cjs.js +0 -1
- package/common/select/SelectComponent.d.ts +0 -21
- package/common/select/SelectComponent.es.js +0 -85
- package/common/select/index.d.ts +0 -3
- package/common/show-more/index.cjs.js +0 -1
- package/common/show-more/index.d.ts +0 -4
- package/common/show-more/index.es.js +0 -8
- package/common/tab/TabViewWithRoute.cjs.js +0 -1
- package/common/tab/TabViewWithRoute.d.ts +0 -13
- package/common/tab/TabViewWithRoute.es.js +0 -38
- package/common/tab/index.d.ts +0 -2
- package/common/table/index.d.ts +0 -3
- package/common/table/table.cjs.js +0 -1
- package/common/table/table.d.ts +0 -19
- package/common/table/table.es.js +0 -40
- package/common/tag/StatusTag.cjs.js +0 -1
- package/common/tag/StatusTag.d.ts +0 -14
- package/common/tag/StatusTag.es.js +0 -29
- package/common/tag/index.d.ts +0 -2
- package/common/text/index.cjs.js +0 -1
- package/common/text/index.d.ts +0 -3
- package/common/text/index.es.js +0 -5
- package/common/text/title/TitleWithHeadTitle.d.ts +0 -7
- package/common/text/title/index.cjs.js +0 -1
- package/common/text/title/index.d.ts +0 -1
- package/common/text/title/index.es.js +0 -5
- package/common/text-field/NumberField.cjs.js +0 -1
- package/common/text-field/NumberField.d.ts +0 -13
- package/common/text-field/NumberField.es.js +0 -82
- package/common/text-field/PhoneNumberField.cjs.js +0 -1
- package/common/text-field/PhoneNumberField.d.ts +0 -4
- package/common/text-field/PhoneNumberField.es.js +0 -18
- package/common/text-field/TextArea.cjs.js +0 -1
- package/common/text-field/TextArea.d.ts +0 -17
- package/common/text-field/TextArea.es.js +0 -46
- package/common/text-field/TextField.cjs.js +0 -1
- package/common/text-field/TextField.d.ts +0 -27
- package/common/text-field/TextField.es.js +0 -72
- package/common/text-field/index.d.ts +0 -5
- package/common/tooltip/TooltipComponent.cjs.js +0 -1
- package/common/tooltip/TooltipComponent.d.ts +0 -5
- package/common/tooltip/TooltipComponent.es.js +0 -9
- package/common/tooltip/index.d.ts +0 -2
- package/common/wizard/WizardResult.cjs.js +0 -1
- package/common/wizard/WizardResult.d.ts +0 -16
- package/common/wizard/WizardResult.es.js +0 -58
- package/common/wizard/WizardViewForm.cjs.js +0 -1
- package/common/wizard/WizardViewForm.d.ts +0 -24
- package/common/wizard/WizardViewForm.es.js +0 -74
- package/common/wizard/index.d.ts +0 -3
- package/crud/CrudComponent.cjs.js +0 -1
- package/crud/CrudComponent.d.ts +0 -244
- package/crud/CrudComponent.es.js +0 -123
- package/crud/CrudField.cjs.js +0 -1
- package/crud/CrudField.d.ts +0 -4
- package/crud/CrudField.es.js +0 -449
- package/crud/CrudForm.cjs.js +0 -1
- package/crud/CrudForm.d.ts +0 -14
- package/crud/CrudForm.es.js +0 -103
- package/crud/CrudFormWizard.cjs.js +0 -1
- package/crud/CrudFormWizard.d.ts +0 -14
- package/crud/CrudFormWizard.es.js +0 -140
- package/crud/CrudReportComponent.cjs.js +0 -4
- package/crud/CrudReportComponent.d.ts +0 -44
- package/crud/CrudReportComponent.es.js +0 -255
- package/crud/CrudSearchComponent.cjs.js +0 -1
- package/crud/CrudSearchComponent.d.ts +0 -21
- package/crud/CrudSearchComponent.es.js +0 -96
- package/crud/CrudTextAreaComponent.cjs.js +0 -1
- package/crud/CrudTextAreaComponent.d.ts +0 -22
- package/crud/CrudTextAreaComponent.es.js +0 -52
- package/crud/FileCrudField.cjs.js +0 -1
- package/crud/FileCrudField.d.ts +0 -25
- package/crud/FileCrudField.es.js +0 -219
- package/crud/ImageCrudField.cjs.js +0 -1
- package/crud/ImageCrudField.d.ts +0 -38
- package/crud/ImageCrudField.es.js +0 -113
- package/crud/actions/index.cjs.js +0 -1
- package/crud/actions/index.d.ts +0 -26
- package/crud/actions/index.es.js +0 -83
- package/crud/import/CrudImportButton.cjs.js +0 -1
- package/crud/import/CrudImportButton.d.ts +0 -3
- package/crud/import/CrudImportButton.es.js +0 -30
- package/crud/import/CrudImportComponent.cjs.js +0 -2
- package/crud/import/CrudImportComponent.d.ts +0 -14
- package/crud/import/CrudImportComponent.es.js +0 -222
- package/crud/index.d.ts +0 -23
- package/crud/modal/index.cjs.js +0 -1
- package/crud/modal/index.d.ts +0 -24
- package/crud/modal/index.es.js +0 -146
- package/crud/view/CrudDecListView.cjs.js +0 -1
- package/crud/view/CrudDecListView.d.ts +0 -15
- package/crud/view/CrudDecListView.es.js +0 -57
- package/crud/view/CrudViewer.cjs.js +0 -1
- package/crud/view/CrudViewer.d.ts +0 -43
- package/crud/view/CrudViewer.es.js +0 -304
- package/crud/view/CrudViewerUtil.cjs.js +0 -1
- package/crud/view/CrudViewerUtil.d.ts +0 -2
- package/crud/view/CrudViewerUtil.es.js +0 -98
- package/crud/view/index.d.ts +0 -5
- package/hooks/NavigatorHooks.cjs.js +0 -1
- package/hooks/NavigatorHooks.d.ts +0 -1
- package/hooks/NavigatorHooks.es.js +0 -9
- package/icons/FlipHIcon.cjs.js +0 -1
- package/icons/FlipHIcon.d.ts +0 -3
- package/icons/FlipHIcon.es.js +0 -28
- package/icons/FlipVIcon.cjs.js +0 -1
- package/icons/FlipVIcon.d.ts +0 -3
- package/icons/FlipVIcon.es.js +0 -28
- package/index.cjs.js +0 -1
- package/index.d.ts +0 -4
- package/index.es.js +0 -46
- package/locale/hooks/translation-constants.cjs.js +0 -1
- package/locale/hooks/translation-constants.d.ts +0 -1
- package/locale/hooks/translation-constants.es.js +0 -4
- package/locale/index.cjs.js +0 -1
- package/locale/index.d.ts +0 -85
- package/locale/index.es.js +0 -57
- package/locale/translations/en.cjs.js +0 -1
- package/locale/translations/en.d.ts +0 -63
- package/locale/translations/en.es.js +0 -65
- package/main.d.ts +0 -0
- package/types/DialogComponentProp.d.ts +0 -8
- package/types/Id.d.ts +0 -10
- package/util/CrudUtil.cjs.js +0 -1
- package/util/CrudUtil.d.ts +0 -5
- package/util/CrudUtil.es.js +0 -8
- package/util/DateUtil.cjs.js +0 -1
- package/util/DateUtil.d.ts +0 -7
- package/util/DateUtil.es.js +0 -18
- package/util/ImageUtil.cjs.js +0 -1
- package/util/ImageUtil.d.ts +0 -14
- package/util/ImageUtil.es.js +0 -63
- package/util/NumberUtil.cjs.js +0 -1
- package/util/NumberUtil.d.ts +0 -17
- package/util/NumberUtil.es.js +0 -60
- package/util/ValidationUtil.cjs.js +0 -1
- package/util/ValidationUtil.d.ts +0 -14
- package/util/ValidationUtil.es.js +0 -63
- package/util/index.cjs.js +0 -1
- package/util/index.d.ts +0 -4
- package/util/index.es.js +0 -10
- package/vite-env.d.ts +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
2
|
-
import { ExpandableConfig } from 'antd/es/table/interface';
|
|
3
|
-
import { DragEndEvent } from '@dnd-kit/core';
|
|
4
|
-
import { TableProps } from 'antd/lib';
|
|
5
|
-
import { CrudActionsProps } from '../actions';
|
|
6
|
-
import { default as React } from 'react';
|
|
7
|
-
import { CrudFieldProps, CrudPaginateProps } from '../CrudComponent';
|
|
8
|
-
import { CrudSearchComponentProps } from '../CrudSearchComponent';
|
|
9
|
-
import { DescListColumn } from './CrudDecListView';
|
|
10
|
-
export type CrudDragableProps<T> = {
|
|
11
|
-
onDragEnd?: (event: DragEndEvent) => void;
|
|
12
|
-
onDrag?: (params: {
|
|
13
|
-
newOrder: T[];
|
|
14
|
-
}) => void;
|
|
15
|
-
columnLabel?: string;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
};
|
|
18
|
-
export type CrudViewableProps<T> = boolean | keyof T | {
|
|
19
|
-
onClick: (t: T) => void;
|
|
20
|
-
};
|
|
21
|
-
export type CrudViewerProps<T, FormType> = {
|
|
22
|
-
fields: CrudFieldProps<T>[];
|
|
23
|
-
decListLayout?: "horizontal" | "vertical";
|
|
24
|
-
viewable?: CrudViewableProps<T>;
|
|
25
|
-
paginateProps?: CrudPaginateProps;
|
|
26
|
-
data: T[] | undefined;
|
|
27
|
-
loadingData?: boolean;
|
|
28
|
-
minusHeight?: string;
|
|
29
|
-
scroll?: TableProps<T>["scroll"];
|
|
30
|
-
className?: string;
|
|
31
|
-
bordered?: boolean;
|
|
32
|
-
size?: SizeType;
|
|
33
|
-
onClickRefresh?: () => void;
|
|
34
|
-
expandable?: ExpandableConfig<T>;
|
|
35
|
-
descListColumn?: DescListColumn;
|
|
36
|
-
extraView?: (t: T) => React.ReactElement;
|
|
37
|
-
scrollToTop?: boolean;
|
|
38
|
-
rowClassName?: TableProps<T>["rowClassName"];
|
|
39
|
-
actionWidth?: string | number;
|
|
40
|
-
draggable?: CrudDragableProps<T>;
|
|
41
|
-
} & CrudActionsProps<T, FormType> & CrudSearchComponentProps<T, FormType>;
|
|
42
|
-
declare function CrudViewer<T, FormType = T>({ idField, loadingData, fields, isDeleting, isHiding, viewable, paginateProps, onDelete, onHide, onUpdate, data, extraAction, onClickUpdate, minusHeight, scroll, onClickClone, className, expandable, size, bordered, descListColumn, extraView, decListLayout, scrollToTop, onClickRefresh, closeViewOnClickUpdate, onExport, confirmHiding, confirmDeleting, rowClassName, actionWidth, draggable, ...props }: CrudViewerProps<T, FormType>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
export default CrudViewer;
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as L, Fragment as ot } from "react/jsx-runtime";
|
|
2
|
-
import { Modal as It } from "antd";
|
|
3
|
-
import { DndContext as St } from "@dnd-kit/core";
|
|
4
|
-
import { restrictToVerticalAxis as Tt } from "@dnd-kit/modifiers";
|
|
5
|
-
import { CSS as Rt } from "@dnd-kit/utilities";
|
|
6
|
-
import { arrayMove as nt, SortableContext as lt, verticalListSortingStrategy as Bt, useSortable as Dt } from "@dnd-kit/sortable";
|
|
7
|
-
import Nt from "../../common/button/Button.es.js";
|
|
8
|
-
import { RefreshButton as dt } from "../../common/button/RefreshButton.es.js";
|
|
9
|
-
import jt from "../../common/button/ViewButtonTable.es.js";
|
|
10
|
-
import Et from "../actions/index.es.js";
|
|
11
|
-
import Lt from "../../common/table/table.es.js";
|
|
12
|
-
import mt, { useMemo as h, useState as V, useEffect as rt, useCallback as et, useContext as Mt } from "react";
|
|
13
|
-
import { useTranslationLib as Ot } from "../../locale/index.es.js";
|
|
14
|
-
import zt from "../CrudSearchComponent.es.js";
|
|
15
|
-
import { CrudDecListView as Vt } from "./CrudDecListView.es.js";
|
|
16
|
-
import { getRendererValueCrudViewer as ct } from "./CrudViewerUtil.es.js";
|
|
17
|
-
import { HolderOutlined as kt } from "@ant-design/icons";
|
|
18
|
-
import st from "../../util/CrudUtil.es.js";
|
|
19
|
-
import vt from "../../common/layout/VerticalSpace.es.js";
|
|
20
|
-
const At = mt.memo(Lt);
|
|
21
|
-
function ro({
|
|
22
|
-
idField: o = "id",
|
|
23
|
-
loadingData: C,
|
|
24
|
-
fields: u,
|
|
25
|
-
isDeleting: D,
|
|
26
|
-
isHiding: R,
|
|
27
|
-
viewable: c = !1,
|
|
28
|
-
paginateProps: p,
|
|
29
|
-
onDelete: x,
|
|
30
|
-
onHide: N,
|
|
31
|
-
onUpdate: I,
|
|
32
|
-
data: S = [],
|
|
33
|
-
extraAction: d,
|
|
34
|
-
onClickUpdate: j,
|
|
35
|
-
minusHeight: M,
|
|
36
|
-
scroll: k,
|
|
37
|
-
onClickClone: v,
|
|
38
|
-
className: A,
|
|
39
|
-
expandable: _,
|
|
40
|
-
size: $,
|
|
41
|
-
bordered: q,
|
|
42
|
-
descListColumn: ft,
|
|
43
|
-
extraView: O,
|
|
44
|
-
decListLayout: it,
|
|
45
|
-
scrollToTop: qt,
|
|
46
|
-
onClickRefresh: G,
|
|
47
|
-
closeViewOnClickUpdate: J,
|
|
48
|
-
onExport: K,
|
|
49
|
-
confirmHiding: Q,
|
|
50
|
-
confirmDeleting: X,
|
|
51
|
-
rowClassName: Y,
|
|
52
|
-
actionWidth: Z = 190,
|
|
53
|
-
draggable: t,
|
|
54
|
-
...pt
|
|
55
|
-
}) {
|
|
56
|
-
const { t: P } = Ot(), W = h(
|
|
57
|
-
() => u.map(({ hideInTable: n, hidden: r, width: s, label: f, halign: T, ...B }) => {
|
|
58
|
-
const E = st.getRealName(B.name);
|
|
59
|
-
return {
|
|
60
|
-
title: f,
|
|
61
|
-
width: s,
|
|
62
|
-
key: E,
|
|
63
|
-
dataIndex: E,
|
|
64
|
-
hidden: n || r,
|
|
65
|
-
align: T ?? (B.type === "number" ? "right" : void 0),
|
|
66
|
-
render: ct(B)
|
|
67
|
-
};
|
|
68
|
-
}),
|
|
69
|
-
[u]
|
|
70
|
-
), [m, l] = V(), [H, U] = V(), [y, w] = V([]);
|
|
71
|
-
rt(() => {
|
|
72
|
-
S && w(S);
|
|
73
|
-
}, [S]), rt(() => {
|
|
74
|
-
S && l((n) => {
|
|
75
|
-
if (n)
|
|
76
|
-
return S.find((r) => r[o] === n[o]);
|
|
77
|
-
});
|
|
78
|
-
}, [S, o, m]);
|
|
79
|
-
const F = et(
|
|
80
|
-
(n) => {
|
|
81
|
-
var f;
|
|
82
|
-
const { active: r, over: s } = n;
|
|
83
|
-
if (t != null && t.onDragEnd && (t == null || t.onDragEnd(n)), r.id !== (s == null ? void 0 : s.id)) {
|
|
84
|
-
const T = y.findIndex(
|
|
85
|
-
(i) => i[o] === r.id
|
|
86
|
-
), B = y.findIndex(
|
|
87
|
-
(i) => i[o] === (s == null ? void 0 : s.id)
|
|
88
|
-
), E = nt(y, T, B);
|
|
89
|
-
w((i) => {
|
|
90
|
-
const Ct = i.findIndex(
|
|
91
|
-
(z) => z[o] === (r == null ? void 0 : r.id)
|
|
92
|
-
), xt = i.findIndex(
|
|
93
|
-
(z) => z[o] === (s == null ? void 0 : s.id)
|
|
94
|
-
);
|
|
95
|
-
return nt(i, Ct, xt);
|
|
96
|
-
}), (f = t == null ? void 0 : t.onDrag) == null || f.call(t, {
|
|
97
|
-
newOrder: E.map((i) => i[o])
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
[y, o, t]
|
|
102
|
-
), yt = h(() => {
|
|
103
|
-
let n = typeof c == "string" ? m == null ? void 0 : m[c] : void 0;
|
|
104
|
-
if (typeof n == "object") {
|
|
105
|
-
const r = u.find((s) => st.getRealName(s.name) === c);
|
|
106
|
-
n = ct(r)(
|
|
107
|
-
n,
|
|
108
|
-
m,
|
|
109
|
-
0
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
return n;
|
|
113
|
-
}, [c, m, u]), a = h(
|
|
114
|
-
() => ({
|
|
115
|
-
rowClassName: Y,
|
|
116
|
-
className: A,
|
|
117
|
-
scroll: k ?? (M ? { y: `calc(100vh - ${M})` } : void 0),
|
|
118
|
-
id: "crud-table",
|
|
119
|
-
bordered: q,
|
|
120
|
-
size: $,
|
|
121
|
-
expandable: _
|
|
122
|
-
}),
|
|
123
|
-
[Y, A, k, M, q, $, _]
|
|
124
|
-
), b = h(
|
|
125
|
-
() => p ? {
|
|
126
|
-
total: p.count,
|
|
127
|
-
onChange: p.setPage,
|
|
128
|
-
current: p.page,
|
|
129
|
-
pageSize: p.pageSize
|
|
130
|
-
} : void 0,
|
|
131
|
-
[p]
|
|
132
|
-
), g = h(() => {
|
|
133
|
-
const n = I || j || x || d || c, r = [];
|
|
134
|
-
return t && r.push({
|
|
135
|
-
key: "key",
|
|
136
|
-
align: "center",
|
|
137
|
-
width: 5,
|
|
138
|
-
title: t == null ? void 0 : t.columnLabel,
|
|
139
|
-
render: () => /* @__PURE__ */ e(_t, { tooltip: t == null ? void 0 : t.tooltip })
|
|
140
|
-
}), r.push(...W), n && n && r.push({
|
|
141
|
-
title: P("str.action"),
|
|
142
|
-
fixed: "right",
|
|
143
|
-
width: Z,
|
|
144
|
-
render: (s, f) => /* @__PURE__ */ L(ot, { children: [
|
|
145
|
-
c && /* @__PURE__ */ e(
|
|
146
|
-
jt,
|
|
147
|
-
{
|
|
148
|
-
value: f,
|
|
149
|
-
onClick: typeof c == "object" ? () => {
|
|
150
|
-
var T;
|
|
151
|
-
return (T = c.onClick) == null ? void 0 : T.call(c, f);
|
|
152
|
-
} : l
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
/* @__PURE__ */ e(
|
|
156
|
-
Et,
|
|
157
|
-
{
|
|
158
|
-
data: f,
|
|
159
|
-
idField: o,
|
|
160
|
-
extraAction: d,
|
|
161
|
-
onUpdate: I,
|
|
162
|
-
onClickUpdate: j,
|
|
163
|
-
onClickClone: v,
|
|
164
|
-
onDelete: x,
|
|
165
|
-
onHide: N,
|
|
166
|
-
onExport: K,
|
|
167
|
-
isHiding: R,
|
|
168
|
-
isDeleting: D,
|
|
169
|
-
confirmHiding: Q,
|
|
170
|
-
confirmDeleting: X,
|
|
171
|
-
closeViewOnClickUpdate: J,
|
|
172
|
-
recentUpdateOrDeleteId: H,
|
|
173
|
-
setRecentUpdateOrDeleteId: U,
|
|
174
|
-
setOpenView: l
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
] })
|
|
178
|
-
}), r;
|
|
179
|
-
}, [
|
|
180
|
-
W,
|
|
181
|
-
I,
|
|
182
|
-
j,
|
|
183
|
-
x,
|
|
184
|
-
d,
|
|
185
|
-
c,
|
|
186
|
-
P,
|
|
187
|
-
Z
|
|
188
|
-
]), tt = h(
|
|
189
|
-
() => y.map((n) => n[o]),
|
|
190
|
-
[y, o]
|
|
191
|
-
), ht = et(() => {
|
|
192
|
-
const n = /* @__PURE__ */ e(
|
|
193
|
-
At,
|
|
194
|
-
{
|
|
195
|
-
...a,
|
|
196
|
-
dataSource: y,
|
|
197
|
-
loading: C,
|
|
198
|
-
components: t ? { body: { row: $t } } : void 0,
|
|
199
|
-
pagination: b,
|
|
200
|
-
columns: g
|
|
201
|
-
}
|
|
202
|
-
);
|
|
203
|
-
return t ? /* @__PURE__ */ e(St, { modifiers: [Tt], onDragEnd: F, children: /* @__PURE__ */ e(
|
|
204
|
-
lt,
|
|
205
|
-
{
|
|
206
|
-
items: tt,
|
|
207
|
-
strategy: Bt,
|
|
208
|
-
children: n
|
|
209
|
-
}
|
|
210
|
-
) }) : n;
|
|
211
|
-
}, [
|
|
212
|
-
a,
|
|
213
|
-
y,
|
|
214
|
-
C,
|
|
215
|
-
b,
|
|
216
|
-
g,
|
|
217
|
-
t,
|
|
218
|
-
tt,
|
|
219
|
-
F
|
|
220
|
-
]);
|
|
221
|
-
return /* @__PURE__ */ L("div", { children: [
|
|
222
|
-
typeof c == "boolean" || typeof c == "string" && /* @__PURE__ */ e(
|
|
223
|
-
It,
|
|
224
|
-
{
|
|
225
|
-
width: "100%",
|
|
226
|
-
open: !!m,
|
|
227
|
-
title: yt ?? /* @__PURE__ */ e("div", { children: " " }),
|
|
228
|
-
footer: /* @__PURE__ */ e(ot, {}),
|
|
229
|
-
closable: !0,
|
|
230
|
-
onCancel: () => l(void 0),
|
|
231
|
-
children: !!m && /* @__PURE__ */ L("div", { children: [
|
|
232
|
-
/* @__PURE__ */ e(
|
|
233
|
-
Vt,
|
|
234
|
-
{
|
|
235
|
-
layout: it,
|
|
236
|
-
descListColumn: ft,
|
|
237
|
-
data: m,
|
|
238
|
-
fields: u,
|
|
239
|
-
idField: o,
|
|
240
|
-
extraAction: d,
|
|
241
|
-
onUpdate: I,
|
|
242
|
-
onClickUpdate: j,
|
|
243
|
-
onClickClone: v,
|
|
244
|
-
onDelete: x,
|
|
245
|
-
onHide: N,
|
|
246
|
-
onExport: K,
|
|
247
|
-
isHiding: R,
|
|
248
|
-
isDeleting: D,
|
|
249
|
-
confirmHiding: Q,
|
|
250
|
-
confirmDeleting: X,
|
|
251
|
-
closeViewOnClickUpdate: J,
|
|
252
|
-
recentUpdateOrDeleteId: H,
|
|
253
|
-
setRecentUpdateOrDeleteId: U,
|
|
254
|
-
setOpenView: l
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
O == null ? void 0 : O(m)
|
|
258
|
-
] }, m == null ? void 0 : m[o])
|
|
259
|
-
}
|
|
260
|
-
),
|
|
261
|
-
/* @__PURE__ */ e(zt, { fields: u, ...pt }),
|
|
262
|
-
/* @__PURE__ */ L(vt, { children: [
|
|
263
|
-
!!G && /* @__PURE__ */ e(dt, { onClick: G }),
|
|
264
|
-
ht()
|
|
265
|
-
] })
|
|
266
|
-
] });
|
|
267
|
-
}
|
|
268
|
-
const ut = mt.createContext({}), _t = ({ tooltip: o }) => {
|
|
269
|
-
const { setActivatorNodeRef: C, listeners: u } = Mt(ut);
|
|
270
|
-
return /* @__PURE__ */ e(
|
|
271
|
-
Nt,
|
|
272
|
-
{
|
|
273
|
-
type: "text",
|
|
274
|
-
size: "small",
|
|
275
|
-
tooltip: o,
|
|
276
|
-
icon: /* @__PURE__ */ e(kt, {}),
|
|
277
|
-
style: { cursor: "move", border: "none" },
|
|
278
|
-
ref: C,
|
|
279
|
-
...u
|
|
280
|
-
}
|
|
281
|
-
);
|
|
282
|
-
}, $t = (o) => {
|
|
283
|
-
const {
|
|
284
|
-
attributes: C,
|
|
285
|
-
listeners: u,
|
|
286
|
-
setNodeRef: D,
|
|
287
|
-
setActivatorNodeRef: R,
|
|
288
|
-
transform: c,
|
|
289
|
-
transition: p,
|
|
290
|
-
isDragging: x
|
|
291
|
-
} = Dt({ id: o["data-row-key"] }), N = {
|
|
292
|
-
...o.style,
|
|
293
|
-
transform: Rt.Translate.toString(c),
|
|
294
|
-
transition: p,
|
|
295
|
-
...x ? { position: "relative", zIndex: 9999 } : {}
|
|
296
|
-
}, I = h(
|
|
297
|
-
() => ({ setActivatorNodeRef: R, listeners: u }),
|
|
298
|
-
[R, u]
|
|
299
|
-
);
|
|
300
|
-
return /* @__PURE__ */ e(ut.Provider, { value: I, children: /* @__PURE__ */ e("tr", { ...o, ref: D, style: N, ...C }) });
|
|
301
|
-
};
|
|
302
|
-
export {
|
|
303
|
-
ro as default
|
|
304
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),S=require("@ant-design/icons"),m=require("antd"),q=require("../../common/show-more/index.cjs.js"),A=require("../FileCrudField.cjs.js"),F=require("../ImageCrudField.cjs.js"),h=require("../../util/DateUtil.cjs.js"),b=require("../../util/NumberUtil.cjs.js"),y=require("../../locale/index.cjs.js"),T=require("../../util/CrudUtil.cjs.js");function R({type:l,render:i,...u}){try{return l==="object"?(t,e,r)=>typeof i=="function"?i(t,e,r):"":l==="select"?(t,e,r)=>{if(!t)return"-";const n=u,o=t||(n.items??[]).find(s=>s[n.innerFieldId??"key"]===e[T.getRealName(u.name,"upsertFieldName")]),f=n.multiple?Array.isArray(o)?o.map(s=>s==null?void 0:s[n.innerFieldLabel??"name"]):void 0:o==null?void 0:o[n.innerFieldLabel??"value"];return typeof i=="function"?i(f,e,r):Array.isArray(f)?f.join(", "):f}:l==="number"?(t,e,r)=>typeof i=="function"?i(t,e,r):u!=null&&u.int?b.default.toInt(t,u.formatted):b.default.toMoney(t):l==="enum"?(t,e,r)=>{var s;if(!t)return"-";const n=u;if(typeof i=="function")return i(t,e,r);if(n.multiple){const c=Array.isArray(t)?t:t?[t]:[];return typeof n.tagRender=="object"?a.jsx(m.Space,{wrap:!0,children:c.map((d,g)=>{var x,C;const j=(x=n.tagRender)==null?void 0:x[d],v=y.tWithOrWithoutNS(((C=n==null?void 0:n.translation)==null?void 0:C[d??""])??d);return j?a.jsx(m.Tag,{color:j.color,children:v},g+d):v})}):n!=null&&n.translation?c==null?void 0:c.map(d=>{var g;return y.tWithOrWithoutNS(((g=n==null?void 0:n.translation)==null?void 0:g[d??""])??d)}).join(", "):c==null?void 0:c.join(", ")}const o=((s=n==null?void 0:n.translation)==null?void 0:s[t??""])??t,f=y.tWithOrWithoutNS(o);if(typeof n.tagRender=="object"){const c=n.tagRender[t];if(c)return a.jsx(m.Tag,{color:c.color,children:f})}return f}:l==="date"?(t,e,r)=>{if(!t)return"-";const n=u!=null&&u.formatTime?h.formatDateTime(t):h.formatDate(t);return typeof i=="function"?i(t,e,r):n}:l==="checkbox"?(t,e,r)=>typeof i=="function"?i(t,e,r):t?a.jsx(S.CheckOutlined,{}):a.jsx(S.CloseOutlined,{}):l==="image"?(t,e,r)=>t?typeof i=="function"?i(t,e,r):a.jsx(F.ImageCrudCellValue,{value:t,provider:u.provider}):"-":l==="file"?(t,e,r)=>t?typeof i=="function"?i(t,e,r):a.jsx(A.FileCrudCellValue,{value:t,provider:u.provider}):"":l==="time"?(t,e,r)=>{if(!t)return"-";const n=u==null?void 0:u.format,o=u==null?void 0:u.use12Hours,f=h.formatTime(t,n||(o?"hh:mm:ss A":void 0));return typeof i=="function"?i(t,e,r):f}:l==="color"?(t,e,r)=>t?typeof i=="function"?i(t,e,r):typeof t=="string"&&t.startsWith("#")?a.jsx(m.Tooltip,{title:t,children:a.jsx(m.Avatar,{style:{backgroundColor:t}})}):String(t):"-":l==="textarea"?(t,e,r)=>{if(!t)return"-";const n=u,o=n.truncated??1;return typeof i=="function"?i(t,e,r):o?a.jsx(q.ShowMore,{lines:o===!0?1:o,children:n.rich?a.jsx("div",{style:{all:"unset"},dangerouslySetInnerHTML:{__html:t}}):t}):n.rich?a.jsx("div",{style:{all:"unset"},dangerouslySetInnerHTML:{__html:t}}):t}:typeof i=="function"?i:(t,e,r)=>t}catch(t){return console.warn("An error occurred while rendering the value for field: "+String(u.name),t),"-"}}exports.getRendererValueCrudViewer=R;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { CheckOutlined as j, CloseOutlined as T } from "@ant-design/icons";
|
|
3
|
-
import { Space as F, Tag as C, Tooltip as R, Avatar as w } from "antd";
|
|
4
|
-
import { ShowMore as I } from "../../common/show-more/index.es.js";
|
|
5
|
-
import { FileCrudCellValue as V } from "../FileCrudField.es.js";
|
|
6
|
-
import { ImageCrudCellValue as k } from "../ImageCrudField.es.js";
|
|
7
|
-
import d from "../../util/DateUtil.es.js";
|
|
8
|
-
import S from "../../util/NumberUtil.es.js";
|
|
9
|
-
import { tWithOrWithoutNS as g } from "../../locale/index.es.js";
|
|
10
|
-
import x from "../../util/CrudUtil.es.js";
|
|
11
|
-
function q({
|
|
12
|
-
type: e,
|
|
13
|
-
render: n,
|
|
14
|
-
...a
|
|
15
|
-
}) {
|
|
16
|
-
try {
|
|
17
|
-
return e === "object" ? (t, o, r) => typeof n == "function" ? n(t, o, r) : "" : e === "select" ? (t, o, r) => {
|
|
18
|
-
if (!t) return "-";
|
|
19
|
-
const i = a, l = t || (i.items ?? []).find(
|
|
20
|
-
(m) => m[i.innerFieldId ?? "key"] === o[x.getRealName(a.name, "upsertFieldName")]
|
|
21
|
-
), c = i.multiple ? Array.isArray(l) ? l.map((m) => m == null ? void 0 : m[i.innerFieldLabel ?? "name"]) : void 0 : l == null ? void 0 : l[i.innerFieldLabel ?? "value"];
|
|
22
|
-
return typeof n == "function" ? n(c, o, r) : Array.isArray(c) ? c.join(", ") : c;
|
|
23
|
-
} : e === "number" ? (t, o, r) => typeof n == "function" ? n(t, o, r) : a != null && a.int ? S.toInt(t, a.formatted) : S.toMoney(t) : e === "enum" ? (t, o, r) => {
|
|
24
|
-
var m;
|
|
25
|
-
if (!t) return "-";
|
|
26
|
-
const i = a;
|
|
27
|
-
if (typeof n == "function")
|
|
28
|
-
return n(t, o, r);
|
|
29
|
-
if (i.multiple) {
|
|
30
|
-
const f = Array.isArray(t) ? t : t ? [t] : [];
|
|
31
|
-
return typeof i.tagRender == "object" ? /* @__PURE__ */ u(F, { wrap: !0, children: f.map((h, s) => {
|
|
32
|
-
var b, A;
|
|
33
|
-
const y = (b = i.tagRender) == null ? void 0 : b[h], v = g(
|
|
34
|
-
((A = i == null ? void 0 : i.translation) == null ? void 0 : A[h ?? ""]) ?? h
|
|
35
|
-
);
|
|
36
|
-
return y ? /* @__PURE__ */ u(C, { color: y.color, children: v }, s + h) : v;
|
|
37
|
-
}) }) : i != null && i.translation ? f == null ? void 0 : f.map((h) => {
|
|
38
|
-
var s;
|
|
39
|
-
return g(((s = i == null ? void 0 : i.translation) == null ? void 0 : s[h ?? ""]) ?? h);
|
|
40
|
-
}).join(", ") : f == null ? void 0 : f.join(", ");
|
|
41
|
-
}
|
|
42
|
-
const l = ((m = i == null ? void 0 : i.translation) == null ? void 0 : m[t ?? ""]) ?? t, c = g(l);
|
|
43
|
-
if (typeof i.tagRender == "object") {
|
|
44
|
-
const f = i.tagRender[t];
|
|
45
|
-
if (f)
|
|
46
|
-
return /* @__PURE__ */ u(C, { color: f.color, children: c });
|
|
47
|
-
}
|
|
48
|
-
return c;
|
|
49
|
-
} : e === "date" ? (t, o, r) => {
|
|
50
|
-
if (!t) return "-";
|
|
51
|
-
const i = a != null && a.formatTime ? d.formatDateTime(t) : d.formatDate(t);
|
|
52
|
-
return typeof n == "function" ? n(t, o, r) : i;
|
|
53
|
-
} : e === "checkbox" ? (t, o, r) => typeof n == "function" ? n(t, o, r) : t ? /* @__PURE__ */ u(j, {}) : /* @__PURE__ */ u(T, {}) : e === "image" ? (t, o, r) => t ? typeof n == "function" ? n(t, o, r) : /* @__PURE__ */ u(
|
|
54
|
-
k,
|
|
55
|
-
{
|
|
56
|
-
value: t,
|
|
57
|
-
provider: a.provider
|
|
58
|
-
}
|
|
59
|
-
) : "-" : e === "file" ? (t, o, r) => t ? typeof n == "function" ? n(t, o, r) : /* @__PURE__ */ u(
|
|
60
|
-
V,
|
|
61
|
-
{
|
|
62
|
-
value: t,
|
|
63
|
-
provider: a.provider
|
|
64
|
-
}
|
|
65
|
-
) : "" : e === "time" ? (t, o, r) => {
|
|
66
|
-
if (!t) return "-";
|
|
67
|
-
const i = a == null ? void 0 : a.format, l = a == null ? void 0 : a.use12Hours, c = d.formatTime(
|
|
68
|
-
t,
|
|
69
|
-
i || (l ? "hh:mm:ss A" : void 0)
|
|
70
|
-
);
|
|
71
|
-
return typeof n == "function" ? n(t, o, r) : c;
|
|
72
|
-
} : e === "color" ? (t, o, r) => t ? typeof n == "function" ? n(t, o, r) : typeof t == "string" && t.startsWith("#") ? /* @__PURE__ */ u(R, { title: t, children: /* @__PURE__ */ u(w, { style: { backgroundColor: t } }) }) : String(t) : "-" : e === "textarea" ? (t, o, r) => {
|
|
73
|
-
if (!t) return "-";
|
|
74
|
-
const i = a, l = i.truncated ?? 1;
|
|
75
|
-
return typeof n == "function" ? n(t, o, r) : l ? /* @__PURE__ */ u(I, { lines: l === !0 ? 1 : l, children: i.rich ? /* @__PURE__ */ u(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
style: { all: "unset" },
|
|
79
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
80
|
-
}
|
|
81
|
-
) : t }) : i.rich ? /* @__PURE__ */ u(
|
|
82
|
-
"div",
|
|
83
|
-
{
|
|
84
|
-
style: { all: "unset" },
|
|
85
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
86
|
-
}
|
|
87
|
-
) : t;
|
|
88
|
-
} : typeof n == "function" ? n : (t, o, r) => t;
|
|
89
|
-
} catch (t) {
|
|
90
|
-
return console.warn(
|
|
91
|
-
"An error occurred while rendering the value for field: " + String(a.name),
|
|
92
|
-
t
|
|
93
|
-
), "-";
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
export {
|
|
97
|
-
q as getRendererValueCrudViewer
|
|
98
|
-
};
|
package/crud/view/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { CrudDecListView } from './CrudDecListView';
|
|
2
|
-
export type { CrudDecListViewProps, DescListColumn } from './CrudDecListView';
|
|
3
|
-
export { default as CrudViewer } from './CrudViewer';
|
|
4
|
-
export type { CrudViewerProps } from './CrudViewer';
|
|
5
|
-
export { getRendererValueCrudViewer } from './CrudViewerUtil';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react-router-dom");function o(){return e.useInRouterContext()?e.useNavigate():(t=>{console.warn("React router not found, navigating to",t)})}exports.useNavigateOptional=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useNavigateOptional(): import('react-router-dom').NavigateFunction;
|
package/icons/FlipHIcon.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("../common/icon/KIcon.cjs.js");function s(i){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...i,children:t.jsxs("g",{fill:i.fill,children:[t.jsx("path",{fillOpacity:.5,d:"M18 7a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-3v2h3a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3h-3v2z"}),t.jsx("path",{d:"M13 3h-2v18h2zM5 8a1 1 0 0 1 1-1h3V5H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h3v-2H6a1 1 0 0 1-1-1z"})]})})}const h=s,e=i=>t.jsx(n,{component:h,...i});module.exports=e;
|
package/icons/FlipHIcon.d.ts
DELETED
package/icons/FlipHIcon.es.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as h, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import n from "../common/icon/KIcon.es.js";
|
|
3
|
-
function o(t) {
|
|
4
|
-
return /* @__PURE__ */ h(
|
|
5
|
-
"svg",
|
|
6
|
-
{
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
width: 24,
|
|
9
|
-
height: 24,
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
...t,
|
|
12
|
-
children: /* @__PURE__ */ i("g", { fill: t.fill, children: [
|
|
13
|
-
/* @__PURE__ */ h(
|
|
14
|
-
"path",
|
|
15
|
-
{
|
|
16
|
-
fillOpacity: 0.5,
|
|
17
|
-
d: "M18 7a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-3v2h3a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3h-3v2z"
|
|
18
|
-
}
|
|
19
|
-
),
|
|
20
|
-
/* @__PURE__ */ h("path", { d: "M13 3h-2v18h2zM5 8a1 1 0 0 1 1-1h3V5H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h3v-2H6a1 1 0 0 1-1-1z" })
|
|
21
|
-
] })
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
const a = o, c = (t) => /* @__PURE__ */ h(n, { component: a, ...t });
|
|
26
|
-
export {
|
|
27
|
-
c as default
|
|
28
|
-
};
|
package/icons/FlipVIcon.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("../common/icon/KIcon.cjs.js");function s(i){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...i,children:t.jsxs("g",{fill:i.fill,children:[t.jsx("path",{fillOpacity:.5,d:"M17 18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3H5v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-3h-2z"}),t.jsx("path",{d:"M16 5a1 1 0 0 1 1 1v3h2V6a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v3h2V6a1 1 0 0 1 1-1zm5 8v-2H3v2z"})]})})}const e=s,c=i=>t.jsx(n,{component:e,...i});module.exports=c;
|
package/icons/FlipVIcon.d.ts
DELETED
package/icons/FlipVIcon.es.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import o from "../common/icon/KIcon.es.js";
|
|
3
|
-
function a(t) {
|
|
4
|
-
return /* @__PURE__ */ i(
|
|
5
|
-
"svg",
|
|
6
|
-
{
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
width: 24,
|
|
9
|
-
height: 24,
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
...t,
|
|
12
|
-
children: /* @__PURE__ */ n("g", { fill: t.fill, children: [
|
|
13
|
-
/* @__PURE__ */ i(
|
|
14
|
-
"path",
|
|
15
|
-
{
|
|
16
|
-
fillOpacity: 0.5,
|
|
17
|
-
d: "M17 18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3H5v3a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-3h-2z"
|
|
18
|
-
}
|
|
19
|
-
),
|
|
20
|
-
/* @__PURE__ */ i("path", { d: "M16 5a1 1 0 0 1 1 1v3h2V6a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v3h2V6a1 1 0 0 1 1-1zm5 8v-2H3v2z" })
|
|
21
|
-
] })
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
const h = a, c = (t) => /* @__PURE__ */ i(o, { component: h, ...t });
|
|
26
|
-
export {
|
|
27
|
-
c as default
|
|
28
|
-
};
|
package/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./locale/hooks/translation-constants.cjs.js"),u=require("./locale/index.cjs.js"),l=require("./crud/CrudComponent.cjs.js"),r=require("./crud/CrudField.cjs.js"),t=require("./crud/CrudFormWizard.cjs.js"),C=require("./crud/CrudReportComponent.cjs.js"),n=require("./crud/CrudSearchComponent.cjs.js"),e=require("./crud/ImageCrudField.cjs.js"),o=require("./crud/FileCrudField.cjs.js"),a=require("./crud/import/CrudImportComponent.cjs.js"),s=require("./crud/import/CrudImportButton.cjs.js"),m=require("./crud/actions/index.cjs.js"),F=require("./crud/view/CrudViewer.cjs.js"),d=require("./crud/CrudForm.cjs.js"),c=require("./crud/modal/index.cjs.js"),p=require("./crud/view/CrudDecListView.cjs.js"),V=require("./crud/view/CrudViewerUtil.cjs.js");exports.TRANSLATION_NAMESPACE=i.TRANSLATION_NAMESPACE;exports.setupI18n=u.setupI18n;exports.updateTranslations=u.updateTranslations;exports.CrudComponent=l;exports.ColorCrudFieldComponent=r.ColorCrudFieldComponent;exports.CrudField=r.default;exports.SelectCrudFieldComponent=r.SelectCrudFieldComponent;exports.CrudFormWizard=t;exports.CrudReportComponent=C;exports.CrudSearchComponent=n;exports.FileDownloadProvider=e.FileDownloadProvider;exports.FileUploadProvider=e.FileUploadProvider;exports.ImageCellValue=e.ImageCellValue;exports.ImageCrudCellValue=e.ImageCrudCellValue;exports.ImageCrudField=e.default;exports.FileCellValue=o.FileCellValue;exports.FileCrudCellValue=o.FileCrudCellValue;exports.FileCrudField=o.default;exports.CrudImportComponent=a;exports.CrudImportButton=s;exports.CrudActions=m;exports.CrudViewer=F;exports.CrudForm=d.CrudForm;exports.CrudFormFields=d.CrudFormFields;exports.CrudModal=c;exports.CrudDecListView=p.CrudDecListView;exports.getRendererValueCrudViewer=V.getRendererValueCrudViewer;
|
package/index.d.ts
DELETED
package/index.es.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { TRANSLATION_NAMESPACE as o } from "./locale/hooks/translation-constants.es.js";
|
|
2
|
-
import { setupI18n as d, updateTranslations as l } from "./locale/index.es.js";
|
|
3
|
-
import { default as u } from "./crud/CrudComponent.es.js";
|
|
4
|
-
import { ColorCrudFieldComponent as m, default as f, SelectCrudFieldComponent as p } from "./crud/CrudField.es.js";
|
|
5
|
-
import { default as n } from "./crud/CrudFormWizard.es.js";
|
|
6
|
-
import { default as x } from "./crud/CrudReportComponent.es.js";
|
|
7
|
-
import { default as V } from "./crud/CrudSearchComponent.es.js";
|
|
8
|
-
import { FileDownloadProvider as A, FileUploadProvider as c, ImageCellValue as g, ImageCrudCellValue as w, default as S } from "./crud/ImageCrudField.es.js";
|
|
9
|
-
import { FileCellValue as P, FileCrudCellValue as R, default as T } from "./crud/FileCrudField.es.js";
|
|
10
|
-
import { default as D } from "./crud/import/CrudImportComponent.es.js";
|
|
11
|
-
import { default as L } from "./crud/import/CrudImportButton.es.js";
|
|
12
|
-
import { default as h } from "./crud/actions/index.es.js";
|
|
13
|
-
import { default as B } from "./crud/view/CrudViewer.es.js";
|
|
14
|
-
import { CrudForm as U, CrudFormFields as W } from "./crud/CrudForm.es.js";
|
|
15
|
-
import { default as b } from "./crud/modal/index.es.js";
|
|
16
|
-
import { CrudDecListView as k } from "./crud/view/CrudDecListView.es.js";
|
|
17
|
-
import { getRendererValueCrudViewer as y } from "./crud/view/CrudViewerUtil.es.js";
|
|
18
|
-
export {
|
|
19
|
-
m as ColorCrudFieldComponent,
|
|
20
|
-
h as CrudActions,
|
|
21
|
-
u as CrudComponent,
|
|
22
|
-
k as CrudDecListView,
|
|
23
|
-
f as CrudField,
|
|
24
|
-
U as CrudForm,
|
|
25
|
-
W as CrudFormFields,
|
|
26
|
-
n as CrudFormWizard,
|
|
27
|
-
L as CrudImportButton,
|
|
28
|
-
D as CrudImportComponent,
|
|
29
|
-
b as CrudModal,
|
|
30
|
-
x as CrudReportComponent,
|
|
31
|
-
V as CrudSearchComponent,
|
|
32
|
-
B as CrudViewer,
|
|
33
|
-
P as FileCellValue,
|
|
34
|
-
R as FileCrudCellValue,
|
|
35
|
-
T as FileCrudField,
|
|
36
|
-
A as FileDownloadProvider,
|
|
37
|
-
c as FileUploadProvider,
|
|
38
|
-
g as ImageCellValue,
|
|
39
|
-
w as ImageCrudCellValue,
|
|
40
|
-
S as ImageCrudField,
|
|
41
|
-
p as SelectCrudFieldComponent,
|
|
42
|
-
o as TRANSLATION_NAMESPACE,
|
|
43
|
-
y as getRendererValueCrudViewer,
|
|
44
|
-
d as setupI18n,
|
|
45
|
-
l as updateTranslations
|
|
46
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="crud-component";exports.TRANSLATION_NAMESPACE=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TRANSLATION_NAMESPACE = "crud-component";
|
package/locale/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./hooks/translation-constants.cjs.js"),I=require("./translations/en.cjs.js"),r=require("i18next"),o=require("react-i18next"),u={en:{[i.TRANSLATION_NAMESPACE]:I}};exports.i18nInstance=r;const S=(n={})=>{const{translations:t=u,language:e="en",i18nInstance:s}=n,a=s||r;return exports.i18nInstance=a,a.isInitialized?Object.entries(t).forEach(([l,T])=>{Object.entries(T).forEach(([N,A])=>{a.addResourceBundle(l,N,A,!0,!0)})}):a.use(o.initReactI18next).init({resources:t,lng:e,fallbackLng:"en",ns:i.TRANSLATION_NAMESPACE,interpolation:{escapeValue:!1}}),r},d=(n,t,e)=>{(e||r).addResourceBundle(n,i.TRANSLATION_NAMESPACE,t,!0,!0)},E=n=>o.useTranslation(i.TRANSLATION_NAMESPACE,{...n,i18n:exports.i18nInstance}),L=n=>o.useTranslation(void 0,{...n,i18n:exports.i18nInstance}),c=(n,t)=>{var e;return(e=exports.i18nInstance)==null?void 0:e.t(n,{ns:i.TRANSLATION_NAMESPACE,...t})},O=(n,t)=>{var s;const e=c(n,t);return e||((s=exports.i18nInstance)==null?void 0:s.t(n,{ns:void 0,...t}))};exports.defaultTranslations=u;exports.setupI18n=S;exports.t=c;exports.tWithOrWithoutNS=O;exports.updateTranslations=d;exports.useTranslationLib=E;exports.useTranslationLibNoNS=L;
|