@gnwebsoft/ui 2.17.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.
@@ -0,0 +1,217 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/components/ClearButton/index.tsx
2
+ var _jsxruntime = require('react/jsx-runtime');
3
+
4
+ // src/components/FilterButton/FilterButton.tsx
5
+
6
+ var FilterButton = ({ isSubmitting }) => {
7
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
8
+ };
9
+ var FilterButton_default = FilterButton;
10
+
11
+ // src/components/FormWrapper/FormWrapper.tsx
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+ var _material = require('@mui/material');
20
+
21
+ var FormWrapper = ({
22
+ children,
23
+ title,
24
+ editMode,
25
+ breadCrumb
26
+ }) => {
27
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
28
+ breadCrumb ? breadCrumb : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {}),
29
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
30
+ _material.Card,
31
+ {
32
+ sx: {
33
+ position: "relative",
34
+ borderRadius: "0px"
35
+ },
36
+ children: [
37
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
38
+ _material.CardHeader,
39
+ {
40
+ sx: {
41
+ display: "flex",
42
+ flexWrap: "wrap",
43
+ p: "1rem",
44
+ ".MuiCardHeader-action": {
45
+ margin: 0,
46
+ alignSelf: "center"
47
+ }
48
+ },
49
+ title: _nullishCoalesce(title, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { variant: "h5", children: editMode ? `Create ${title}` : `Edit ${title}` })))
50
+ }
51
+ ),
52
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, { sx: { mt: 0 } }),
53
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 3, children }) })
54
+ ]
55
+ }
56
+ )
57
+ ] });
58
+ };
59
+ var FormWrapper_default = FormWrapper;
60
+
61
+ // src/components/LabelText/LabelText.tsx
62
+
63
+
64
+ var LabelText = ({ label, value }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
65
+ _material.Grid2,
66
+ {
67
+ size: { xs: 12, sm: 6, md: 6 },
68
+ sx: {
69
+ display: "flex",
70
+ flexDirection: { xs: "column", sm: "row", md: "row" },
71
+ "&:hover": { bgcolor: "#efefef", overflow: "hidden" }
72
+ },
73
+ children: [
74
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
75
+ _material.Grid2,
76
+ {
77
+ size: { xs: 6, sm: 7, md: 6 },
78
+ sx: {
79
+ padding: "5px",
80
+ fontSize: "14px",
81
+ textAlign: { xs: "left", sm: "right", md: "right" }
82
+ },
83
+ children: [
84
+ label,
85
+ " :"
86
+ ]
87
+ }
88
+ ),
89
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
90
+ _material.Grid2,
91
+ {
92
+ size: { xs: 12, sm: 5, md: 6 },
93
+ sx: { padding: "5px", display: "flex", flexWrap: "wrap" },
94
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Tooltip, { title: value, arrow: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
95
+ _material.Typography,
96
+ {
97
+ color: "#3598dc",
98
+ fontSize: "14px",
99
+ sx: {
100
+ wordBreak: "break-word",
101
+ overflow: "hidden",
102
+ display: "-webkit-box",
103
+ textOverflow: "ellipsis",
104
+ WebkitLineClamp: 2,
105
+ WebkitBoxOrient: "vertical"
106
+ },
107
+ children: value ? value : "-"
108
+ }
109
+ ) })
110
+ }
111
+ )
112
+ ]
113
+ }
114
+ );
115
+ var LabelText_default = LabelText;
116
+
117
+ // src/components/ListWrapper/ListWrapper.tsx
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ var _ManageSearch = require('@mui/icons-material/ManageSearch'); var _ManageSearch2 = _interopRequireDefault(_ManageSearch);
128
+
129
+ var ListWrapper = ({ children, title, count }) => {
130
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
131
+ _material.Card,
132
+ {
133
+ sx: {
134
+ position: "relative",
135
+ borderRadius: "0px"
136
+ },
137
+ children: [
138
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
139
+ _material.CardHeader,
140
+ {
141
+ sx: {
142
+ display: "flex",
143
+ flexWrap: "wrap",
144
+ p: "1rem",
145
+ ".MuiCardHeader-action": {
146
+ margin: 0,
147
+ alignSelf: "center"
148
+ },
149
+ alignItems: "center"
150
+ },
151
+ title: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
152
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ManageSearch2.default, { sx: { color: "#4db3a2", height: "2.5rem" } }),
153
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
154
+ _material.Typography,
155
+ {
156
+ variant: "h5",
157
+ sx: { color: "#4db3a2", fontWeight: "bold" },
158
+ children: `${title} (${count ? count : 0})`
159
+ }
160
+ )
161
+ ] })
162
+ }
163
+ ),
164
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, {}),
165
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.CardContent, { sx: { pt: 0 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { container: true, spacing: 2, children }) })
166
+ ]
167
+ }
168
+ );
169
+ };
170
+ var ListWrapper_default = ListWrapper;
171
+
172
+ // src/components/SimpleToolbar/SimpleToolbar.tsx
173
+
174
+
175
+
176
+
177
+
178
+
179
+ var _xdatagrid = require('@mui/x-data-grid');
180
+
181
+
182
+ var SimpleToolbar = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _xdatagrid.GridToolbarContainer, { children: [
183
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
184
+ _xdatagrid.GridToolbarQuickFilter,
185
+ {
186
+ sx: {
187
+ "& .MuiInputBase-root": {
188
+ borderRadius: "8px",
189
+ padding: "6px 10px",
190
+ backgroundColor: "#f6f7f8"
191
+ },
192
+ "& input": {
193
+ fontSize: "14px",
194
+ color: "#333"
195
+ },
196
+ borderRadius: "8px",
197
+ ".css-hzgntl-MuiOutlinedInput-notchedOutline": {
198
+ borderRadius: "8px",
199
+ border: "1px solid #efefef !important"
200
+ }
201
+ }
202
+ }
203
+ ),
204
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { sx: { flexGrow: 1 } }),
205
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatagrid.GridToolbarColumnsButton, {}),
206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatagrid.GridToolbarFilterButton, {}),
207
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatagrid.GridToolbarExport, {})
208
+ ] });
209
+ var SimpleToolbar_default = SimpleToolbar;
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ exports.FilterButton_default = FilterButton_default; exports.FormWrapper_default = FormWrapper_default; exports.LabelText_default = LabelText_default; exports.ListWrapper_default = ListWrapper_default; exports.SimpleToolbar_default = SimpleToolbar_default;
@@ -0,0 +1 @@
1
+ "use strict";