@gnwebsoft/ui 2.18.17 → 2.18.19
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-WE6E4ANM.mjs → chunk-J74N5BOG.mjs} +2 -1
- package/dist/{chunk-QPWDC5PR.js → chunk-YXKOS2XH.js} +2 -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 +8 -6
- package/dist/index.mjs +6 -4
- 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
|
});
|
|
@@ -11,13 +11,14 @@ import { LoadingButton } from "@mui/lab";
|
|
|
11
11
|
import { Badge } from "@mui/material";
|
|
12
12
|
import FilterAltIcon from "@mui/icons-material/FilterAlt";
|
|
13
13
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
14
|
-
var FilterButton = ({ isSubmitting }) => {
|
|
14
|
+
var FilterButton = ({ isSubmitting, show }) => {
|
|
15
15
|
return /* @__PURE__ */ jsx2(
|
|
16
16
|
LoadingButton,
|
|
17
17
|
{
|
|
18
18
|
type: "submit",
|
|
19
19
|
variant: "contained",
|
|
20
20
|
loading: isSubmitting,
|
|
21
|
+
disabled: !show,
|
|
21
22
|
disableRipple: true,
|
|
22
23
|
sx: { bgcolor: "#3caed7 !important" },
|
|
23
24
|
startIcon: /* @__PURE__ */ jsx2(Badge, { color: "error", variant: "standard", children: /* @__PURE__ */ jsx2(FilterAltIcon, { width: "20", height: "20" }) }),
|
|
@@ -11,13 +11,14 @@ var _lab = require('@mui/lab');
|
|
|
11
11
|
|
|
12
12
|
var _FilterAlt = require('@mui/icons-material/FilterAlt'); var _FilterAlt2 = _interopRequireDefault(_FilterAlt);
|
|
13
13
|
|
|
14
|
-
var FilterButton = ({ isSubmitting }) => {
|
|
14
|
+
var FilterButton = ({ isSubmitting, show }) => {
|
|
15
15
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16
16
|
_lab.LoadingButton,
|
|
17
17
|
{
|
|
18
18
|
type: "submit",
|
|
19
19
|
variant: "contained",
|
|
20
20
|
loading: isSubmitting,
|
|
21
|
+
disabled: !show,
|
|
21
22
|
disableRipple: true,
|
|
22
23
|
sx: { bgcolor: "#3caed7 !important" },
|
|
23
24
|
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Badge, { color: "error", variant: "standard", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FilterAlt2.default, { width: "20", height: "20" }) }),
|
|
@@ -11,8 +11,9 @@ declare const ClearButton: ({ isSubmitting, handleClear }: ClearButtonProps) =>
|
|
|
11
11
|
|
|
12
12
|
type FilterButtonProps = {
|
|
13
13
|
isSubmitting: boolean;
|
|
14
|
+
show?: boolean;
|
|
14
15
|
};
|
|
15
|
-
declare const FilterButton: ({ isSubmitting }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare const FilterButton: ({ isSubmitting, show }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
type FilterWrapperProps = PropsWithChildren<{
|
|
18
19
|
title: string;
|
|
@@ -11,8 +11,9 @@ declare const ClearButton: ({ isSubmitting, handleClear }: ClearButtonProps) =>
|
|
|
11
11
|
|
|
12
12
|
type FilterButtonProps = {
|
|
13
13
|
isSubmitting: boolean;
|
|
14
|
+
show?: boolean;
|
|
14
15
|
};
|
|
15
|
-
declare const FilterButton: ({ isSubmitting }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare const FilterButton: ({ isSubmitting, show }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
16
17
|
|
|
17
18
|
type FilterWrapperProps = PropsWithChildren<{
|
|
18
19
|
title: string;
|
package/dist/components/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkYXKOS2XHjs = require('../chunk-YXKOS2XH.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,4 +19,4 @@ var _chunkQPWDC5PRjs = require('../chunk-QPWDC5PR.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.AuthorizedView =
|
|
22
|
+
exports.AuthorizedView = _chunkYXKOS2XHjs.AuthorizedView_default; exports.ClearButton = _chunkYXKOS2XHjs.ClearButton_default; exports.FilterButton = _chunkYXKOS2XHjs.FilterButton_default; exports.FilterWrapper = _chunkYXKOS2XHjs.FilterWrapper_default; exports.FormWrapper = _chunkYXKOS2XHjs.FormWrapper_default; exports.LabelText = _chunkYXKOS2XHjs.LabelText_default; exports.ListWrapper = _chunkYXKOS2XHjs.ListWrapper_default; exports.SimpleButton = _chunkYXKOS2XHjs.SimpleButton_default; exports.SimpleToolbar = _chunkYXKOS2XHjs.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-7M2VOCYN.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
require('./chunk-
|
|
11
|
+
|
|
12
|
+
var _chunkYXKOS2XHjs = require('./chunk-YXKOS2XH.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,7 +26,9 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
|
|
30
|
+
var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
|
|
31
|
+
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
|
|
@@ -47,4 +49,4 @@ var _chunkVISYY3QRjs = require('./chunk-VISYY3QR.js');
|
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
|
|
50
|
-
exports.AuthorizedView =
|
|
52
|
+
exports.AuthorizedView = _chunkYXKOS2XHjs.AuthorizedView_default; exports.ClearButton = _chunkYXKOS2XHjs.ClearButton_default; exports.Field = _chunkGJGC6G2Njs.Field_default; exports.FilterButton = _chunkYXKOS2XHjs.FilterButton_default; exports.FilterWrapper = _chunkYXKOS2XHjs.FilterWrapper_default; exports.FormWrapper = _chunkYXKOS2XHjs.FormWrapper_default; exports.LabelText = _chunkYXKOS2XHjs.LabelText_default; exports.ListWrapper = _chunkYXKOS2XHjs.ListWrapper_default; exports.SimpleButton = _chunkYXKOS2XHjs.SimpleButton_default; exports.SimpleToolbar = _chunkYXKOS2XHjs.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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./chunk-2JFL7TS5.mjs";
|
|
1
2
|
import {
|
|
2
3
|
AuthorizedView_default,
|
|
3
4
|
ClearButton_default,
|
|
@@ -8,17 +9,17 @@ import {
|
|
|
8
9
|
ListWrapper_default,
|
|
9
10
|
SimpleButton_default,
|
|
10
11
|
SimpleToolbar_default
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-2JFL7TS5.mjs";
|
|
12
|
+
} from "./chunk-J74N5BOG.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