@kingteza/crud-component 1.0.55 → 1.0.57

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.
Files changed (38) hide show
  1. package/App.d.ts +5 -0
  2. package/common/button/Button.cjs.js +1 -1
  3. package/common/button/Button.d.ts +2 -3
  4. package/common/button/Button.es.js +54 -61
  5. package/crud/CrudComponent.cjs.js +1 -1
  6. package/crud/CrudComponent.d.ts +5 -1
  7. package/crud/CrudComponent.es.js +138 -137
  8. package/crud/CrudField.cjs.js +1 -1
  9. package/crud/CrudField.es.js +160 -159
  10. package/crud/CrudForm.cjs.js +1 -1
  11. package/crud/CrudForm.es.js +57 -56
  12. package/crud/CrudFormWizard.cjs.js +1 -1
  13. package/crud/CrudFormWizard.es.js +53 -52
  14. package/crud/CrudSearchComponent.cjs.js +1 -1
  15. package/crud/CrudSearchComponent.es.js +39 -38
  16. package/crud/CrudTextAreaComponent.cjs.js +1 -1
  17. package/crud/CrudTextAreaComponent.es.js +29 -28
  18. package/crud/FileCrudField.cjs.js +1 -1
  19. package/crud/FileCrudField.es.js +70 -69
  20. package/crud/view/CrudDecListView.cjs.js +1 -1
  21. package/crud/view/CrudDecListView.es.js +29 -25
  22. package/crud/view/CrudViewer.cjs.js +1 -1
  23. package/crud/view/CrudViewer.es.js +137 -133
  24. package/crud/view/CrudViewerUtil.cjs.js +1 -1
  25. package/crud/view/CrudViewerUtil.es.js +51 -48
  26. package/hooks/NavigatorHooks.cjs.js +1 -0
  27. package/hooks/NavigatorHooks.d.ts +1 -0
  28. package/hooks/NavigatorHooks.es.js +9 -0
  29. package/icons/FlipHIcon.cjs.js +1 -0
  30. package/icons/FlipHIcon.d.ts +3 -0
  31. package/icons/FlipHIcon.es.js +28 -0
  32. package/icons/FlipVIcon.cjs.js +1 -0
  33. package/icons/FlipVIcon.d.ts +3 -0
  34. package/icons/FlipVIcon.es.js +28 -0
  35. package/package.json +3 -2
  36. package/util/CrudUtil.cjs.js +1 -0
  37. package/util/CrudUtil.d.ts +5 -0
  38. package/util/CrudUtil.es.js +8 -0
@@ -0,0 +1,3 @@
1
+ import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';
2
+ declare const _default: (props: Partial<CustomIconComponentProps>) => import("react/jsx-runtime").JSX.Element;
3
+ export default _default;
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,3 @@
1
+ import { CustomIconComponentProps } from '@ant-design/icons/lib/components/Icon';
2
+ declare const _default: (props: Readonly<Partial<CustomIconComponentProps>>) => import("react/jsx-runtime").JSX.Element;
3
+ export default _default;
@@ -0,0 +1,28 @@
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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kingteza/crud-component",
3
3
  "private": false,
4
- "version": "1.0.55",
4
+ "version": "1.0.57",
5
5
  "description": "React CRUD component library with Ant Design",
6
6
  "keywords": [
7
7
  "react",
@@ -25,8 +25,9 @@
25
25
  "/crud/",
26
26
  "/common/",
27
27
  "/types/",
28
+ "/icons/",
29
+ "/hooks/",
28
30
  "/util/",
29
- "/_virtual/",
30
31
  "/locale/",
31
32
  "/README.md"
32
33
  ],
@@ -0,0 +1 @@
1
+ "use strict";class s{static getRealName(t,e="name"){return typeof t=="object"?t[e]:t}}module.exports=s;
@@ -0,0 +1,5 @@
1
+ import { InitialCrudField, SelectCrudField } from 'src/crud';
2
+ declare class CrudUtil {
3
+ static getRealName<T>(name: InitialCrudField<T>["name"] | SelectCrudField<T>["name"], extract?: "name" | "upsertFieldName"): any;
4
+ }
5
+ export default CrudUtil;
@@ -0,0 +1,8 @@
1
+ class l {
2
+ static getRealName(t, e = "name") {
3
+ return typeof t == "object" ? t[e] : t;
4
+ }
5
+ }
6
+ export {
7
+ l as default
8
+ };