@gnwebsoft/ui 2.18.18 → 2.18.20
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-XILCQSA3.mjs → chunk-3P5YN7YN.mjs} +1 -1
- package/dist/{chunk-J2WOE37S.mjs → chunk-AVNKSUE5.mjs} +115 -0
- package/dist/{chunk-VISYY3QR.js → chunk-DKBPCLEC.js} +116 -1
- package/dist/{chunk-QZQSLEPC.js → chunk-GJGC6G2N.js} +3 -3
- package/dist/{chunk-J74N5BOG.mjs → chunk-LSE3T3FT.mjs} +13 -7
- package/dist/{chunk-YXKOS2XH.js → chunk-ZT3DSWED.js} +7 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.mjs +5 -3
- package/dist/utils/index.d.mts +12 -1
- package/dist/utils/index.d.ts +12 -1
- package/dist/utils/index.js +4 -2
- package/dist/utils/index.mjs +3 -1
- package/dist/wrappers/index.js +3 -3
- package/dist/wrappers/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -112,6 +112,120 @@ var api = class {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
+
// src/utils/api2.ts
|
|
116
|
+
var makeRequest2 = async (url, options = {}) => {
|
|
117
|
+
const response = await fetch(url, options);
|
|
118
|
+
if (response.ok) {
|
|
119
|
+
const apiData = await response.json();
|
|
120
|
+
return {
|
|
121
|
+
apiData,
|
|
122
|
+
status: response.status
|
|
123
|
+
};
|
|
124
|
+
} else if (response.status === 404) {
|
|
125
|
+
const apiData = await response.json();
|
|
126
|
+
const data = {
|
|
127
|
+
status: response.status,
|
|
128
|
+
title: apiData.title
|
|
129
|
+
};
|
|
130
|
+
return data;
|
|
131
|
+
}
|
|
132
|
+
const apiResponse = await response.json();
|
|
133
|
+
return apiResponse;
|
|
134
|
+
};
|
|
135
|
+
var api2 = class {
|
|
136
|
+
static async filter(url, postModel) {
|
|
137
|
+
const alteredOptions = {
|
|
138
|
+
headers: {
|
|
139
|
+
"Content-Type": "application/json",
|
|
140
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
141
|
+
},
|
|
142
|
+
body: JSON.stringify({ ...postModel, ...postModel.filterModel }),
|
|
143
|
+
method: "POST"
|
|
144
|
+
};
|
|
145
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
146
|
+
return apiResponse;
|
|
147
|
+
}
|
|
148
|
+
static async post(url, body = {}) {
|
|
149
|
+
const alteredOptions = {
|
|
150
|
+
headers: {
|
|
151
|
+
"Content-Type": "application/json",
|
|
152
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
153
|
+
},
|
|
154
|
+
body: JSON.stringify(body),
|
|
155
|
+
method: "POST"
|
|
156
|
+
};
|
|
157
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
158
|
+
return apiResponse;
|
|
159
|
+
}
|
|
160
|
+
static async get(url) {
|
|
161
|
+
const alteredOptions = {
|
|
162
|
+
headers: {
|
|
163
|
+
"Content-Type": "application/json",
|
|
164
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
165
|
+
},
|
|
166
|
+
method: "GET"
|
|
167
|
+
};
|
|
168
|
+
const data = await makeRequest2(url, alteredOptions);
|
|
169
|
+
return data;
|
|
170
|
+
}
|
|
171
|
+
static async delete(url) {
|
|
172
|
+
const alteredOptions = {
|
|
173
|
+
headers: {
|
|
174
|
+
"Content-Type": "application/json",
|
|
175
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
176
|
+
},
|
|
177
|
+
method: "DELETE"
|
|
178
|
+
};
|
|
179
|
+
const data = await makeRequest2(url, alteredOptions);
|
|
180
|
+
return data;
|
|
181
|
+
}
|
|
182
|
+
static async put(url, body = {}) {
|
|
183
|
+
const alteredOptions = {
|
|
184
|
+
headers: {
|
|
185
|
+
"Content-Type": "application/json",
|
|
186
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
187
|
+
},
|
|
188
|
+
body: JSON.stringify(body),
|
|
189
|
+
method: "PUT"
|
|
190
|
+
};
|
|
191
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
192
|
+
return apiResponse;
|
|
193
|
+
}
|
|
194
|
+
static async fetch(url, options = {}) {
|
|
195
|
+
const alteredOptions = {
|
|
196
|
+
headers: {
|
|
197
|
+
"Content-Type": "application/json",
|
|
198
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
199
|
+
},
|
|
200
|
+
...options
|
|
201
|
+
};
|
|
202
|
+
const result = await fetch(url, alteredOptions);
|
|
203
|
+
console.log("result", result);
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
static async tempFetch(url, options = {}) {
|
|
207
|
+
const alteredOptions = {
|
|
208
|
+
headers: {
|
|
209
|
+
"Content-Type": "application/json"
|
|
210
|
+
},
|
|
211
|
+
...options
|
|
212
|
+
};
|
|
213
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
214
|
+
return apiResponse;
|
|
215
|
+
}
|
|
216
|
+
static async upload(url, formData) {
|
|
217
|
+
const alteredOptions = {
|
|
218
|
+
headers: {
|
|
219
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
220
|
+
},
|
|
221
|
+
body: formData,
|
|
222
|
+
method: "POST"
|
|
223
|
+
};
|
|
224
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
225
|
+
return apiResponse;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
115
229
|
// src/utils/flattenObjectKeys.ts
|
|
116
230
|
var isNested = (obj) => typeof obj === "object" && obj !== null;
|
|
117
231
|
var isArray = (obj) => Array.isArray(obj);
|
|
@@ -209,6 +323,7 @@ var schemaTools = {
|
|
|
209
323
|
|
|
210
324
|
export {
|
|
211
325
|
api,
|
|
326
|
+
api2,
|
|
212
327
|
flattenObjectKeys,
|
|
213
328
|
getTimezone,
|
|
214
329
|
handleServerErrors,
|
|
@@ -112,6 +112,120 @@ var api = class {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
+
// src/utils/api2.ts
|
|
116
|
+
var makeRequest2 = async (url, options = {}) => {
|
|
117
|
+
const response = await fetch(url, options);
|
|
118
|
+
if (response.ok) {
|
|
119
|
+
const apiData = await response.json();
|
|
120
|
+
return {
|
|
121
|
+
apiData,
|
|
122
|
+
status: response.status
|
|
123
|
+
};
|
|
124
|
+
} else if (response.status === 404) {
|
|
125
|
+
const apiData = await response.json();
|
|
126
|
+
const data = {
|
|
127
|
+
status: response.status,
|
|
128
|
+
title: apiData.title
|
|
129
|
+
};
|
|
130
|
+
return data;
|
|
131
|
+
}
|
|
132
|
+
const apiResponse = await response.json();
|
|
133
|
+
return apiResponse;
|
|
134
|
+
};
|
|
135
|
+
var api2 = class {
|
|
136
|
+
static async filter(url, postModel) {
|
|
137
|
+
const alteredOptions = {
|
|
138
|
+
headers: {
|
|
139
|
+
"Content-Type": "application/json",
|
|
140
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
141
|
+
},
|
|
142
|
+
body: JSON.stringify({ ...postModel, ...postModel.filterModel }),
|
|
143
|
+
method: "POST"
|
|
144
|
+
};
|
|
145
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
146
|
+
return apiResponse;
|
|
147
|
+
}
|
|
148
|
+
static async post(url, body = {}) {
|
|
149
|
+
const alteredOptions = {
|
|
150
|
+
headers: {
|
|
151
|
+
"Content-Type": "application/json",
|
|
152
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
153
|
+
},
|
|
154
|
+
body: JSON.stringify(body),
|
|
155
|
+
method: "POST"
|
|
156
|
+
};
|
|
157
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
158
|
+
return apiResponse;
|
|
159
|
+
}
|
|
160
|
+
static async get(url) {
|
|
161
|
+
const alteredOptions = {
|
|
162
|
+
headers: {
|
|
163
|
+
"Content-Type": "application/json",
|
|
164
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
165
|
+
},
|
|
166
|
+
method: "GET"
|
|
167
|
+
};
|
|
168
|
+
const data = await makeRequest2(url, alteredOptions);
|
|
169
|
+
return data;
|
|
170
|
+
}
|
|
171
|
+
static async delete(url) {
|
|
172
|
+
const alteredOptions = {
|
|
173
|
+
headers: {
|
|
174
|
+
"Content-Type": "application/json",
|
|
175
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
176
|
+
},
|
|
177
|
+
method: "DELETE"
|
|
178
|
+
};
|
|
179
|
+
const data = await makeRequest2(url, alteredOptions);
|
|
180
|
+
return data;
|
|
181
|
+
}
|
|
182
|
+
static async put(url, body = {}) {
|
|
183
|
+
const alteredOptions = {
|
|
184
|
+
headers: {
|
|
185
|
+
"Content-Type": "application/json",
|
|
186
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
187
|
+
},
|
|
188
|
+
body: JSON.stringify(body),
|
|
189
|
+
method: "PUT"
|
|
190
|
+
};
|
|
191
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
192
|
+
return apiResponse;
|
|
193
|
+
}
|
|
194
|
+
static async fetch(url, options = {}) {
|
|
195
|
+
const alteredOptions = {
|
|
196
|
+
headers: {
|
|
197
|
+
"Content-Type": "application/json",
|
|
198
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
199
|
+
},
|
|
200
|
+
...options
|
|
201
|
+
};
|
|
202
|
+
const result = await fetch(url, alteredOptions);
|
|
203
|
+
console.log("result", result);
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
static async tempFetch(url, options = {}) {
|
|
207
|
+
const alteredOptions = {
|
|
208
|
+
headers: {
|
|
209
|
+
"Content-Type": "application/json"
|
|
210
|
+
},
|
|
211
|
+
...options
|
|
212
|
+
};
|
|
213
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
214
|
+
return apiResponse;
|
|
215
|
+
}
|
|
216
|
+
static async upload(url, formData) {
|
|
217
|
+
const alteredOptions = {
|
|
218
|
+
headers: {
|
|
219
|
+
Authorization: `Bearer ${sessionStorage.getItem("serviceToken")}`
|
|
220
|
+
},
|
|
221
|
+
body: formData,
|
|
222
|
+
method: "POST"
|
|
223
|
+
};
|
|
224
|
+
const apiResponse = await makeRequest2(url, alteredOptions);
|
|
225
|
+
return apiResponse;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
|
|
115
229
|
// src/utils/flattenObjectKeys.ts
|
|
116
230
|
var isNested = (obj) => typeof obj === "object" && obj !== null;
|
|
117
231
|
var isArray = (obj) => Array.isArray(obj);
|
|
@@ -216,4 +330,5 @@ var schemaTools = {
|
|
|
216
330
|
|
|
217
331
|
|
|
218
332
|
|
|
219
|
-
|
|
333
|
+
|
|
334
|
+
exports.api = api; exports.api2 = api2; exports.flattenObjectKeys = flattenObjectKeys; exports.getTimezone = getTimezone; exports.handleServerErrors = handleServerErrors; exports.propertyExists = propertyExists; exports.readValueAsDate = readValueAsDate; exports.removeLeadingTrailingSlashes = removeLeadingTrailingSlashes; exports.schemaTools = schemaTools;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
|
|
7
7
|
|
|
8
8
|
// src/wrappers/DatePickerElement/DatePickerElement.tsx
|
|
9
9
|
|
|
@@ -47,7 +47,7 @@ var Component = function DatePickerElement(props) {
|
|
|
47
47
|
value: field.value,
|
|
48
48
|
onChange: field.onChange,
|
|
49
49
|
transform: {
|
|
50
|
-
input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) =>
|
|
50
|
+
input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) => _chunkDKBPCLECjs.readValueAsDate.call(void 0, adapter, newValue),
|
|
51
51
|
output: typeof _optionalChain([transform, 'optionalAccess', _4 => _4.output]) === "function" ? transform.output : (newValue) => newValue
|
|
52
52
|
}
|
|
53
53
|
});
|
|
@@ -496,7 +496,7 @@ var Component5 = function TimePickerElement(props) {
|
|
|
496
496
|
value: field.value,
|
|
497
497
|
onChange: field.onChange,
|
|
498
498
|
transform: {
|
|
499
|
-
input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) =>
|
|
499
|
+
input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) => _chunkDKBPCLECjs.readValueAsDate.call(void 0, adapter, newValue),
|
|
500
500
|
output: typeof _optionalChain([transform, 'optionalAccess', _16 => _16.output]) === "function" ? transform.output : (newValue) => newValue
|
|
501
501
|
}
|
|
502
502
|
});
|
|
@@ -207,8 +207,14 @@ import {
|
|
|
207
207
|
Typography as Typography4
|
|
208
208
|
} from "@mui/material";
|
|
209
209
|
import ManageSearchIcon2 from "@mui/icons-material/ManageSearch";
|
|
210
|
-
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
211
|
-
var ListWrapper = ({
|
|
210
|
+
import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
211
|
+
var ListWrapper = ({
|
|
212
|
+
children,
|
|
213
|
+
title,
|
|
214
|
+
count,
|
|
215
|
+
show = true
|
|
216
|
+
}) => {
|
|
217
|
+
if (!show) return /* @__PURE__ */ jsx6(Fragment, {});
|
|
212
218
|
return /* @__PURE__ */ jsxs4(
|
|
213
219
|
Card3,
|
|
214
220
|
{
|
|
@@ -292,19 +298,19 @@ var SimpleToolbar_default = SimpleToolbar;
|
|
|
292
298
|
|
|
293
299
|
// src/components/SimpleButton/SimpleButton.tsx
|
|
294
300
|
import { Button as Button2 } from "@mui/material";
|
|
295
|
-
import { Fragment, jsx as jsx8 } from "react/jsx-runtime";
|
|
301
|
+
import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
|
|
296
302
|
var SimpleButton = function SelectMultiElement(props) {
|
|
297
303
|
const { show, ...rest } = props;
|
|
298
|
-
if (!!show) return /* @__PURE__ */ jsx8(
|
|
304
|
+
if (!!show) return /* @__PURE__ */ jsx8(Fragment2, {});
|
|
299
305
|
return /* @__PURE__ */ jsx8(Button2, { ...rest });
|
|
300
306
|
};
|
|
301
307
|
var SimpleButton_default = SimpleButton;
|
|
302
308
|
|
|
303
309
|
// src/components/AuthorizedView/AuthorizedView.tsx
|
|
304
|
-
import { Fragment as
|
|
310
|
+
import { Fragment as Fragment3, jsx as jsx9 } from "react/jsx-runtime";
|
|
305
311
|
var AuthorizedView = ({ children, show }) => {
|
|
306
|
-
if (!show) return /* @__PURE__ */ jsx9(
|
|
307
|
-
return /* @__PURE__ */ jsx9(
|
|
312
|
+
if (!show) return /* @__PURE__ */ jsx9(Fragment3, {});
|
|
313
|
+
return /* @__PURE__ */ jsx9(Fragment3, { children });
|
|
308
314
|
};
|
|
309
315
|
var AuthorizedView_default = AuthorizedView;
|
|
310
316
|
|
|
@@ -208,7 +208,13 @@ var LabelText_default = LabelText;
|
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
|
|
211
|
-
var ListWrapper = ({
|
|
211
|
+
var ListWrapper = ({
|
|
212
|
+
children,
|
|
213
|
+
title,
|
|
214
|
+
count,
|
|
215
|
+
show = true
|
|
216
|
+
}) => {
|
|
217
|
+
if (!show) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
212
218
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
213
219
|
_material.Card,
|
|
214
220
|
{
|
|
@@ -52,8 +52,9 @@ declare const LabelText: ({ label, value, gridSize, containerSize, }: LabelTextP
|
|
|
52
52
|
type ListWrapperProps = PropsWithChildren<{
|
|
53
53
|
title: string;
|
|
54
54
|
count: number;
|
|
55
|
+
show?: boolean;
|
|
55
56
|
}>;
|
|
56
|
-
declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare const ListWrapper: ({ children, title, count, show, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
57
58
|
|
|
58
59
|
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
59
60
|
|
|
@@ -52,8 +52,9 @@ declare const LabelText: ({ label, value, gridSize, containerSize, }: LabelTextP
|
|
|
52
52
|
type ListWrapperProps = PropsWithChildren<{
|
|
53
53
|
title: string;
|
|
54
54
|
count: number;
|
|
55
|
+
show?: boolean;
|
|
55
56
|
}>;
|
|
56
|
-
declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare const ListWrapper: ({ children, title, count, show, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
57
58
|
|
|
58
59
|
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
59
60
|
|
package/dist/components/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZT3DSWEDjs = require('../chunk-ZT3DSWED.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,4 +19,4 @@ var _chunkYXKOS2XHjs = require('../chunk-YXKOS2XH.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.AuthorizedView =
|
|
22
|
+
exports.AuthorizedView = _chunkZT3DSWEDjs.AuthorizedView_default; exports.ClearButton = _chunkZT3DSWEDjs.ClearButton_default; exports.FilterButton = _chunkZT3DSWEDjs.FilterButton_default; exports.FilterWrapper = _chunkZT3DSWEDjs.FilterWrapper_default; exports.FormWrapper = _chunkZT3DSWEDjs.FormWrapper_default; exports.LabelText = _chunkZT3DSWEDjs.LabelText_default; exports.ListWrapper = _chunkZT3DSWEDjs.ListWrapper_default; exports.SimpleButton = _chunkZT3DSWEDjs.SimpleButton_default; exports.SimpleToolbar = _chunkZT3DSWEDjs.SimpleToolbar_default;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AuthorizedView, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.mjs';
|
|
2
2
|
export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
|
|
3
3
|
export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.mjs';
|
|
4
|
-
export { api, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.mjs';
|
|
4
|
+
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.mjs';
|
|
5
5
|
export { Field } from './wrappers/index.mjs';
|
|
6
6
|
export { b as AsyncMultiSelectPayload, a as AsyncSelectMultiPayload, A as AsyncSelectPayload, O as OptionItem, c as OptionItem2 } from './OptionItem-CzX7oHfv.mjs';
|
|
7
7
|
import 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AuthorizedView, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.js';
|
|
2
2
|
export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
|
|
3
3
|
export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.js';
|
|
4
|
-
export { api, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.js';
|
|
4
|
+
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.js';
|
|
5
5
|
export { Field } from './wrappers/index.js';
|
|
6
6
|
export { b as AsyncMultiSelectPayload, a as AsyncSelectMultiPayload, A as AsyncSelectPayload, O as OptionItem, c as OptionItem2 } from './OptionItem-CzX7oHfv.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZT3DSWEDjs = require('./chunk-ZT3DSWED.js');
|
|
12
12
|
require('./chunk-7M2VOCYN.js');
|
|
13
13
|
require('./chunk-6BGQA4BQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkGJGC6G2Njs = require('./chunk-GJGC6G2N.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
@@ -26,8 +26,8 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var _chunkVISYY3QRjs = require('./chunk-VISYY3QR.js');
|
|
30
29
|
|
|
30
|
+
var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -47,4 +47,6 @@ var _chunkVISYY3QRjs = require('./chunk-VISYY3QR.js');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
exports.AuthorizedView = _chunkZT3DSWEDjs.AuthorizedView_default; exports.ClearButton = _chunkZT3DSWEDjs.ClearButton_default; exports.Field = _chunkGJGC6G2Njs.Field_default; exports.FilterButton = _chunkZT3DSWEDjs.FilterButton_default; exports.FilterWrapper = _chunkZT3DSWEDjs.FilterWrapper_default; exports.FormWrapper = _chunkZT3DSWEDjs.FormWrapper_default; exports.LabelText = _chunkZT3DSWEDjs.LabelText_default; exports.ListWrapper = _chunkZT3DSWEDjs.ListWrapper_default; exports.SimpleButton = _chunkZT3DSWEDjs.SimpleButton_default; exports.SimpleToolbar = _chunkZT3DSWEDjs.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
|
package/dist/index.mjs
CHANGED
|
@@ -8,17 +8,18 @@ import {
|
|
|
8
8
|
ListWrapper_default,
|
|
9
9
|
SimpleButton_default,
|
|
10
10
|
SimpleToolbar_default
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LSE3T3FT.mjs";
|
|
12
12
|
import "./chunk-2JFL7TS5.mjs";
|
|
13
13
|
import "./chunk-EVPUCTZA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
Field_default
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3P5YN7YN.mjs";
|
|
17
17
|
import {
|
|
18
18
|
useTransform
|
|
19
19
|
} from "./chunk-GFSTK7KN.mjs";
|
|
20
20
|
import {
|
|
21
21
|
api,
|
|
22
|
+
api2,
|
|
22
23
|
flattenObjectKeys,
|
|
23
24
|
getTimezone,
|
|
24
25
|
handleServerErrors,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
readValueAsDate,
|
|
27
28
|
removeLeadingTrailingSlashes,
|
|
28
29
|
schemaTools
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AVNKSUE5.mjs";
|
|
30
31
|
export {
|
|
31
32
|
AuthorizedView_default as AuthorizedView,
|
|
32
33
|
ClearButton_default as ClearButton,
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
SimpleButton_default as SimpleButton,
|
|
40
41
|
SimpleToolbar_default as SimpleToolbar,
|
|
41
42
|
api,
|
|
43
|
+
api2,
|
|
42
44
|
flattenObjectKeys,
|
|
43
45
|
getTimezone,
|
|
44
46
|
handleServerErrors,
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -17,6 +17,17 @@ declare class api {
|
|
|
17
17
|
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
declare class api2 {
|
|
21
|
+
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
22
|
+
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
23
|
+
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
24
|
+
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
25
|
+
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
26
|
+
static fetch(url: string, options?: any): Promise<Response>;
|
|
27
|
+
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
28
|
+
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
declare const flattenObjectKeys: (obj: any, prefix?: string) => {
|
|
21
32
|
[x: string]: any;
|
|
22
33
|
};
|
|
@@ -44,4 +55,4 @@ declare const schemaTools: {
|
|
|
44
55
|
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
45
56
|
};
|
|
46
57
|
|
|
47
|
-
export { api, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|
|
58
|
+
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -17,6 +17,17 @@ declare class api {
|
|
|
17
17
|
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
declare class api2 {
|
|
21
|
+
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
22
|
+
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
23
|
+
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
24
|
+
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
25
|
+
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
26
|
+
static fetch(url: string, options?: any): Promise<Response>;
|
|
27
|
+
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
28
|
+
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
declare const flattenObjectKeys: (obj: any, prefix?: string) => {
|
|
21
32
|
[x: string]: any;
|
|
22
33
|
};
|
|
@@ -44,4 +55,4 @@ declare const schemaTools: {
|
|
|
44
55
|
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
45
56
|
};
|
|
46
57
|
|
|
47
|
-
export { api, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|
|
58
|
+
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|
package/dist/utils/index.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var _chunkVISYY3QRjs = require('../chunk-VISYY3QR.js');
|
|
11
10
|
|
|
11
|
+
var _chunkDKBPCLECjs = require('../chunk-DKBPCLEC.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -17,4 +17,6 @@ var _chunkVISYY3QRjs = require('../chunk-VISYY3QR.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools;
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
api,
|
|
3
|
+
api2,
|
|
3
4
|
flattenObjectKeys,
|
|
4
5
|
getTimezone,
|
|
5
6
|
handleServerErrors,
|
|
@@ -7,9 +8,10 @@ import {
|
|
|
7
8
|
readValueAsDate,
|
|
8
9
|
removeLeadingTrailingSlashes,
|
|
9
10
|
schemaTools
|
|
10
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-AVNKSUE5.mjs";
|
|
11
12
|
export {
|
|
12
13
|
api,
|
|
14
|
+
api2,
|
|
13
15
|
flattenObjectKeys,
|
|
14
16
|
getTimezone,
|
|
15
17
|
handleServerErrors,
|
package/dist/wrappers/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGJGC6G2Njs = require('../chunk-GJGC6G2N.js');
|
|
4
4
|
require('../chunk-6JZ35VQJ.js');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-DKBPCLEC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Field =
|
|
8
|
+
exports.Field = _chunkGJGC6G2Njs.Field_default;
|
package/dist/wrappers/index.mjs
CHANGED