@kingteza/crud-component 1.6.3 → 1.7.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/dist/crud/CrudComponent.d.ts +21 -1
- package/dist/crud/CrudField.d.ts +1 -1
- package/dist/crud/index.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +27 -25
- package/package.json +1 -1
|
@@ -199,7 +199,27 @@ export type FormBuilderFunc<T> = (i: FormBuilderFunc0<T>, otherUtils: {
|
|
|
199
199
|
isAllFieldsHidden: (...name: Array<keyof T>) => boolean;
|
|
200
200
|
purpose?: CrudPurpose;
|
|
201
201
|
}) => ReactElement;
|
|
202
|
-
|
|
202
|
+
type CrudFieldTypeMap<T> = {
|
|
203
|
+
select: SelectCrudField<T>;
|
|
204
|
+
text: TextBasedFieldProps<T>;
|
|
205
|
+
email: TextBasedFieldProps<T>;
|
|
206
|
+
password: TextBasedFieldProps<T>;
|
|
207
|
+
time: TextBasedFieldProps<T>;
|
|
208
|
+
textarea: TextAreaBasedFieldProps<T>;
|
|
209
|
+
enum: EnumCrudField<T>;
|
|
210
|
+
date: DateBasedFieldProps<T>;
|
|
211
|
+
number: NumberBasedFieldProps<T>;
|
|
212
|
+
checkbox: CheckboxBasedFieldProps<T>;
|
|
213
|
+
color: ColorPickerFieldProps<T>;
|
|
214
|
+
object: ObjectCrudField<T>;
|
|
215
|
+
file: FileCrudField<T>;
|
|
216
|
+
image: ImageCrudField<T>;
|
|
217
|
+
};
|
|
218
|
+
export type CrudFieldProps<T> = {
|
|
219
|
+
[K in keyof CrudFieldTypeMap<T>]: CrudFieldTypeMap<T>[K] & {
|
|
220
|
+
readonly type: K;
|
|
221
|
+
};
|
|
222
|
+
}[keyof CrudFieldTypeMap<T>];
|
|
203
223
|
export type CrudPaginateProps = false | {
|
|
204
224
|
page?: number;
|
|
205
225
|
setPage?: (page: number, pageSize?: number) => void;
|
package/dist/crud/CrudField.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ColorPickerFieldProps, CrudFieldProps, SelectCrudField } from './CrudComponent';
|
|
2
|
-
export default function CrudField<T>(props0: Readonly<CrudFieldProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function CrudField<T = any>(props0: Readonly<CrudFieldProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function SelectCrudFieldComponent<T>(props: Readonly<SelectCrudField<T>>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function ColorCrudFieldComponent<T>(props: ColorPickerFieldProps<T>): import("react/jsx-runtime").JSX.Element;
|
package/dist/crud/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export { default as ImageCrudField, FileDownloadProvider, FileUploadProvider, Im
|
|
|
13
13
|
export type { ImageCrudField as ImageCrudFieldProps } from './ImageCrudField';
|
|
14
14
|
export { default as FileCrudField, FileCellValue, FileCrudCellValue, } from './FileCrudField';
|
|
15
15
|
export type { FileCrudField as FileCrudFieldProps } from './FileCrudField';
|
|
16
|
+
export { default as CrudTextAreaComponent } from './CrudTextAreaComponent';
|
|
17
|
+
export type { TextAreaBasedFieldProps } from './CrudTextAreaComponent';
|
|
16
18
|
export { default as CrudImportComponent } from './import/CrudImportComponent';
|
|
17
19
|
export type { CrudImportComponentProps, CrudImportProps, } from './import/CrudImportComponent';
|
|
18
20
|
export { default as CrudImportButton } from './import/CrudImportButton';
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./locale/hooks/translation-constants.cjs.js"),u=require("./locale/index.cjs.js"),C=require("./crud/CrudComponent.cjs.js"),r=require("./crud/CrudField.cjs.js"),i=require("./crud/CrudFormWizard.cjs.js"),n=require("./crud/CrudReportComponent.cjs.js"),l=require("./crud/CrudSearchComponent.cjs.js"),e=require("./crud/ImageCrudField.cjs.js"),o=require("./crud/FileCrudField.cjs.js"),a=require("./crud/CrudTextAreaComponent.cjs.js"),s=require("./crud/import/CrudImportComponent.cjs.js"),m=require("./crud/import/CrudImportButton.cjs.js"),F=require("./crud/actions/index.cjs.js"),c=require("./crud/view/CrudViewer.cjs.js"),d=require("./crud/CrudForm.cjs.js"),p=require("./crud/modal/index.cjs.js"),q=require("./crud/view/CrudDecListView.cjs.js"),V=require("./crud/view/CrudViewerUtil.cjs.js");exports.TRANSLATION_NAMESPACE=t.TRANSLATION_NAMESPACE;exports.setupI18n=u.setupI18n;exports.updateTranslations=u.updateTranslations;exports.CrudComponent=C;exports.ColorCrudFieldComponent=r.ColorCrudFieldComponent;exports.CrudField=r.default;exports.SelectCrudFieldComponent=r.SelectCrudFieldComponent;exports.CrudFormWizard=i;exports.CrudReportComponent=n;exports.CrudSearchComponent=l;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.CrudTextAreaComponent=a;exports.CrudImportComponent=s;exports.CrudImportButton=m;exports.CrudActions=F;exports.CrudViewer=c;exports.CrudForm=d.CrudForm;exports.CrudFormFields=d.CrudFormFields;exports.CrudModal=p;exports.CrudDecListView=q.CrudDecListView;exports.getRendererValueCrudViewer=V.getRendererValueCrudViewer;
|
package/dist/index.es.js
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import { TRANSLATION_NAMESPACE as o } from "./locale/hooks/translation-constants.es.js";
|
|
2
|
-
import { setupI18n as d, updateTranslations as
|
|
2
|
+
import { setupI18n as d, updateTranslations as a } from "./locale/index.es.js";
|
|
3
3
|
import { default as u } from "./crud/CrudComponent.es.js";
|
|
4
4
|
import { ColorCrudFieldComponent as m, default as f, SelectCrudFieldComponent as p } from "./crud/CrudField.es.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as i } from "./crud/CrudFormWizard.es.js";
|
|
6
6
|
import { default as x } from "./crud/CrudReportComponent.es.js";
|
|
7
7
|
import { default as V } from "./crud/CrudSearchComponent.es.js";
|
|
8
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
|
|
10
|
-
import { default as D } from "./crud/
|
|
11
|
-
import { default as L } from "./crud/import/
|
|
12
|
-
import { default as h } from "./crud/
|
|
13
|
-
import { default as B } from "./crud/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
9
|
+
import { FileCellValue as N, FileCrudCellValue as P, default as R } from "./crud/FileCrudField.es.js";
|
|
10
|
+
import { default as D } from "./crud/CrudTextAreaComponent.es.js";
|
|
11
|
+
import { default as L } from "./crud/import/CrudImportComponent.es.js";
|
|
12
|
+
import { default as h } from "./crud/import/CrudImportButton.es.js";
|
|
13
|
+
import { default as B } from "./crud/actions/index.es.js";
|
|
14
|
+
import { default as U } from "./crud/view/CrudViewer.es.js";
|
|
15
|
+
import { CrudForm as _, CrudFormFields as b } from "./crud/CrudForm.es.js";
|
|
16
|
+
import { default as k } from "./crud/modal/index.es.js";
|
|
17
|
+
import { CrudDecListView as y } from "./crud/view/CrudDecListView.es.js";
|
|
18
|
+
import { getRendererValueCrudViewer as H } from "./crud/view/CrudViewerUtil.es.js";
|
|
18
19
|
export {
|
|
19
20
|
m as ColorCrudFieldComponent,
|
|
20
|
-
|
|
21
|
+
B as CrudActions,
|
|
21
22
|
u as CrudComponent,
|
|
22
|
-
|
|
23
|
+
y as CrudDecListView,
|
|
23
24
|
f as CrudField,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
_ as CrudForm,
|
|
26
|
+
b as CrudFormFields,
|
|
27
|
+
i as CrudFormWizard,
|
|
28
|
+
h as CrudImportButton,
|
|
29
|
+
L as CrudImportComponent,
|
|
30
|
+
k as CrudModal,
|
|
30
31
|
x as CrudReportComponent,
|
|
31
32
|
V as CrudSearchComponent,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
D as CrudTextAreaComponent,
|
|
34
|
+
U as CrudViewer,
|
|
35
|
+
N as FileCellValue,
|
|
36
|
+
P as FileCrudCellValue,
|
|
37
|
+
R as FileCrudField,
|
|
36
38
|
A as FileDownloadProvider,
|
|
37
39
|
c as FileUploadProvider,
|
|
38
40
|
g as ImageCellValue,
|
|
@@ -40,7 +42,7 @@ export {
|
|
|
40
42
|
S as ImageCrudField,
|
|
41
43
|
p as SelectCrudFieldComponent,
|
|
42
44
|
o as TRANSLATION_NAMESPACE,
|
|
43
|
-
|
|
45
|
+
H as getRendererValueCrudViewer,
|
|
44
46
|
d as setupI18n,
|
|
45
|
-
|
|
47
|
+
a as updateTranslations
|
|
46
48
|
};
|