@gnwebsoft/ui 2.18.2 → 2.18.3
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/{chunk-B5ZIFGAN.mjs → chunk-GKZRHIQD.mjs} +30 -38
- package/dist/{chunk-DMKDUMBD.js → chunk-N5SKB324.js} +29 -37
- package/dist/components/index.d.mts +2 -4
- package/dist/components/index.d.ts +2 -4
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -92,44 +92,36 @@ import {
|
|
|
92
92
|
Grid2 as Grid22,
|
|
93
93
|
Typography as Typography2
|
|
94
94
|
} from "@mui/material";
|
|
95
|
-
import {
|
|
96
|
-
var FormWrapper = ({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
/* @__PURE__ */ jsx4(Divider2, { sx: { mt: 0 } }),
|
|
128
|
-
/* @__PURE__ */ jsx4(CardContent2, { children: /* @__PURE__ */ jsx4(Grid22, { container: true, spacing: 2, children }) })
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
)
|
|
132
|
-
] });
|
|
95
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
96
|
+
var FormWrapper = ({ children, title, editMode }) => {
|
|
97
|
+
return /* @__PURE__ */ jsxs2(
|
|
98
|
+
Card2,
|
|
99
|
+
{
|
|
100
|
+
sx: {
|
|
101
|
+
position: "relative",
|
|
102
|
+
borderRadius: "0px"
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ jsx4(
|
|
106
|
+
CardHeader2,
|
|
107
|
+
{
|
|
108
|
+
sx: {
|
|
109
|
+
display: "flex",
|
|
110
|
+
flexWrap: "wrap",
|
|
111
|
+
p: "1rem",
|
|
112
|
+
".MuiCardHeader-action": {
|
|
113
|
+
margin: 0,
|
|
114
|
+
alignSelf: "center"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
title: title ?? /* @__PURE__ */ jsx4(Typography2, { variant: "h5", children: editMode ? `Create ${title}` : `Edit ${title}` })
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ jsx4(Divider2, { sx: { mt: 0 } }),
|
|
121
|
+
/* @__PURE__ */ jsx4(CardContent2, { children: /* @__PURE__ */ jsx4(Grid22, { container: true, spacing: 2, children }) })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
133
125
|
};
|
|
134
126
|
var FormWrapper_default = FormWrapper;
|
|
135
127
|
|
|
@@ -93,43 +93,35 @@ var FilterWrapper_default = FilterWrapper;
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var FormWrapper = ({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, { sx: { mt: 0 } }),
|
|
128
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 2, children }) })
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
)
|
|
132
|
-
] });
|
|
96
|
+
var FormWrapper = ({ children, title, editMode }) => {
|
|
97
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
98
|
+
_material.Card,
|
|
99
|
+
{
|
|
100
|
+
sx: {
|
|
101
|
+
position: "relative",
|
|
102
|
+
borderRadius: "0px"
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
106
|
+
_material.CardHeader,
|
|
107
|
+
{
|
|
108
|
+
sx: {
|
|
109
|
+
display: "flex",
|
|
110
|
+
flexWrap: "wrap",
|
|
111
|
+
p: "1rem",
|
|
112
|
+
".MuiCardHeader-action": {
|
|
113
|
+
margin: 0,
|
|
114
|
+
alignSelf: "center"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
title: _nullishCoalesce(title, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { variant: "h5", children: editMode ? `Create ${title}` : `Edit ${title}` })))
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, { sx: { mt: 0 } }),
|
|
121
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 2, children }) })
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
133
125
|
};
|
|
134
126
|
var FormWrapper_default = FormWrapper;
|
|
135
127
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
type ClearButtonProps = {
|
|
5
5
|
isSubmitting: boolean;
|
|
@@ -20,10 +20,8 @@ declare const FilterWrapper: ({ children, title }: FilterWrapperProps) => react_
|
|
|
20
20
|
type FormWrapper = PropsWithChildren<{
|
|
21
21
|
title: string;
|
|
22
22
|
editMode: boolean;
|
|
23
|
-
backAction: () => void;
|
|
24
|
-
breadCrumb?: react__default.ReactNode;
|
|
25
23
|
}>;
|
|
26
|
-
declare const FormWrapper: ({ children, title, editMode
|
|
24
|
+
declare const FormWrapper: ({ children, title, editMode }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
27
25
|
|
|
28
26
|
type LabelTextProps = {
|
|
29
27
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
type ClearButtonProps = {
|
|
5
5
|
isSubmitting: boolean;
|
|
@@ -20,10 +20,8 @@ declare const FilterWrapper: ({ children, title }: FilterWrapperProps) => react_
|
|
|
20
20
|
type FormWrapper = PropsWithChildren<{
|
|
21
21
|
title: string;
|
|
22
22
|
editMode: boolean;
|
|
23
|
-
backAction: () => void;
|
|
24
|
-
breadCrumb?: react__default.ReactNode;
|
|
25
23
|
}>;
|
|
26
|
-
declare const FormWrapper: ({ children, title, editMode
|
|
24
|
+
declare const FormWrapper: ({ children, title, editMode }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
27
25
|
|
|
28
26
|
type LabelTextProps = {
|
|
29
27
|
label: string;
|
package/dist/components/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkN5SKB324js = require('../chunk-N5SKB324.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,4 +15,4 @@ var _chunkDMKDUMBDjs = require('../chunk-DMKDUMBD.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.ClearButton =
|
|
18
|
+
exports.ClearButton = _chunkN5SKB324js.ClearButton_default; exports.FilterButton = _chunkN5SKB324js.FilterButton_default; exports.FilterWrapper = _chunkN5SKB324js.FilterWrapper_default; exports.FormWrapper = _chunkN5SKB324js.FormWrapper_default; exports.LabelText = _chunkN5SKB324js.LabelText_default; exports.ListWrapper = _chunkN5SKB324js.ListWrapper_default; exports.SimpleToolbar = _chunkN5SKB324js.SimpleToolbar_default;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var _chunkN5SKB324js = require('./chunk-N5SKB324.js');
|
|
10
|
+
require('./chunk-7M2VOCYN.js');
|
|
11
|
+
require('./chunk-TLJXC46A.js');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
var _chunkIQ2NGFMEjs = require('./chunk-IQ2NGFME.js');
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
17
|
-
require('./chunk-TLJXC46A.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -43,4 +43,4 @@ var _chunkKTAQRRS7js = require('./chunk-KTAQRRS7.js');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
exports.ClearButton =
|
|
46
|
+
exports.ClearButton = _chunkN5SKB324js.ClearButton_default; exports.Field = _chunkIQ2NGFMEjs.Field_default; exports.FilterButton = _chunkN5SKB324js.FilterButton_default; exports.FilterWrapper = _chunkN5SKB324js.FilterWrapper_default; exports.FormWrapper = _chunkN5SKB324js.FormWrapper_default; exports.LabelText = _chunkN5SKB324js.LabelText_default; exports.ListWrapper = _chunkN5SKB324js.ListWrapper_default; exports.SimpleToolbar = _chunkN5SKB324js.SimpleToolbar_default; exports.api = _chunkKTAQRRS7js.api; exports.flattenObjectKeys = _chunkKTAQRRS7js.flattenObjectKeys; exports.getTimezone = _chunkKTAQRRS7js.getTimezone; exports.handleServerErrors = _chunkKTAQRRS7js.handleServerErrors; exports.propertyExists = _chunkKTAQRRS7js.propertyExists; exports.readValueAsDate = _chunkKTAQRRS7js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkKTAQRRS7js.removeLeadingTrailingSlashes; exports.schemaTools = _chunkKTAQRRS7js.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./chunk-2JFL7TS5.mjs";
|
|
2
1
|
import {
|
|
3
2
|
ClearButton_default,
|
|
4
3
|
FilterButton_default,
|
|
@@ -7,14 +6,15 @@ import {
|
|
|
7
6
|
LabelText_default,
|
|
8
7
|
ListWrapper_default,
|
|
9
8
|
SimpleToolbar_default
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GKZRHIQD.mjs";
|
|
10
|
+
import "./chunk-2JFL7TS5.mjs";
|
|
11
|
+
import "./chunk-5VR5QVUV.mjs";
|
|
11
12
|
import {
|
|
12
13
|
Field_default
|
|
13
14
|
} from "./chunk-W2WJWT42.mjs";
|
|
14
15
|
import {
|
|
15
16
|
useTransform
|
|
16
17
|
} from "./chunk-GFSTK7KN.mjs";
|
|
17
|
-
import "./chunk-5VR5QVUV.mjs";
|
|
18
18
|
import {
|
|
19
19
|
api,
|
|
20
20
|
flattenObjectKeys,
|