@cagatayfdn/flora-components 0.0.164 → 0.0.165

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/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { AppAndServicesStatusApperenceType as o, AppearanceAlertCard as a, AppearanceButton as t, AppearanceDirection as f, AppearanceSpinner as p, AppearanceTag as l, DividerAppearance as s, FormFieldAppearance as d, ModalAppearanceType as m, NotificationAppearanceType as u, ThemeAppearance as x } from "./enums/appearance.js";
1
+ import { AppAndServicesStatusApperenceType as o, AppearanceAlertCard as a, AppearanceButton as t, AppearanceDirection as f, AppearanceSpinner as p, AppearanceTag as l, DividerAppearance as s, FormFieldAppearance as m, ModalAppearanceType as d, NotificationAppearanceType as u, ThemeAppearance as x } from "./enums/appearance.js";
2
2
  import { ApplicationTypeSlug as i } from "./enums/applicationTypeSlug.js";
3
- import { isActiveColor as A } from "./enums/isActiveColor.js";
3
+ import { isActiveColor as c } from "./enums/isActiveColor.js";
4
4
  import { Size as E } from "./enums/size.js";
5
- import { AppTypeEnum as I, CopyTextStatusEnum as C, PodStatusEnum as M, ReportStatus as R, SortEnum as S, StatusEnum as D, StatusType as g, TagStatus as F } from "./enums/status.js";
5
+ import { AppTypeEnum as C, CopyTextStatusEnum as I, PodStatusEnum as R, ReportStatus as M, SortEnum as S, StatusEnum as D, StatusType as F, TagStatus as g } from "./enums/status.js";
6
6
  import { default as N } from "./components/Button/Button.js";
7
- import { N as y } from "./index-H7XbDVmH.js";
8
- import { PermFallBack as P, getAuth as v } from "./components/AuthUserCan/index.js";
9
- import { Accordion as w, AccordionItem as B } from "./components/Accordion/Accordion.js";
10
- import { default as H } from "./components/ActionButton/ActionButton.js";
7
+ import { N as O } from "./index-H7XbDVmH.js";
8
+ import { PermFallBack as P, getAuth as b } from "./components/AuthUserCan/index.js";
9
+ import { Accordion as w, AccordionItem as U } from "./components/Accordion/Accordion.js";
10
+ import { default as k } from "./components/ActionButton/ActionButton.js";
11
11
  import { default as V } from "./components/AlertCard/AlertCard.js";
12
- import { default as j } from "./components/AuthUserCan/Permission.js";
12
+ import { default as W } from "./components/AuthUserCan/Permission.js";
13
13
  import { default as K } from "./components/Autocomplete/Autocomplete.js";
14
14
  import { default as Y } from "./components/Avatar/Avatar.js";
15
15
  import { default as G } from "./components/Card/Card.js";
@@ -19,23 +19,23 @@ import { default as re } from "./components/Config/Config.js";
19
19
  import { default as ae } from "./components/Confirm/Confirm.js";
20
20
  import { default as fe } from "./components/ContentHeader/ContentHeader.js";
21
21
  import { default as le } from "./components/ContentLoader/ContentLoader.js";
22
- import { default as de } from "./components/Countdown/Countdown.js";
22
+ import { default as me } from "./components/Countdown/Countdown.js";
23
23
  import { default as ue } from "./components/Datepicker/Datepicker.js";
24
24
  import { default as ne } from "./components/Divider/Divider.js";
25
25
  import { default as Te } from "./components/Drawer/index.js";
26
- import { default as ce } from "./components/Dropdown/DropdownList.js";
27
- import { E as _e, R as Ie, T as Ce, a as Me } from "./ErrorLogModal-CQFdcFKP.js";
26
+ import { default as Ae } from "./components/Dropdown/DropdownList.js";
27
+ import { E as _e, R as Ce, T as Ie, a as Re } from "./ErrorLogModal-CQFdcFKP.js";
28
28
  import { default as Se } from "./components/FileUpload/FileUpload.js";
29
- import { default as ge } from "./components/FileUpload/ImagePreview.js";
29
+ import { default as Fe } from "./components/FileUpload/ImagePreview.js";
30
30
  import { default as Le } from "./components/FileUpload/LengthCard.js";
31
- import { default as Oe } from "./components/FileUpload/PreviewModal.js";
32
- import { default as he } from "./components/Grid/Column.js";
33
- import { default as ve } from "./components/Grid/Row.js";
31
+ import { default as he } from "./components/FileUpload/PreviewModal.js";
32
+ import { default as ye } from "./components/Grid/Column.js";
33
+ import { default as be } from "./components/Grid/Row.js";
34
34
  import { default as we } from "./components/Heading/Heading.js";
35
- import { default as ke } from "./components/Icon/index.js";
36
- import { default as Ue } from "./components/IconBox/IconBox.js";
37
- import { default as We } from "./components/InfiniteScroll/InfiniteScroll.js";
38
- import { default as ze } from "./components/InfoBoxList/InfoBoxList.js";
35
+ import { default as Be } from "./components/Icon/index.js";
36
+ import { default as He } from "./components/IconBox/IconBox.js";
37
+ import { default as ze } from "./components/InfiniteScroll/InfiniteScroll.js";
38
+ import { default as je } from "./components/InfoBoxList/InfoBoxList.js";
39
39
  import { createConnectedService as Qe } from "./components/InfoBoxList/helper.js";
40
40
  import { default as qe } from "./components/InfoDate/InfoDate.js";
41
41
  import { InfoText as Je } from "./components/InfoText/InfoText.js";
@@ -45,23 +45,23 @@ import { default as or } from "./components/Loading/Loading.js";
45
45
  import { default as tr } from "./components/Modal/Modal.js";
46
46
  import { default as pr } from "./components/NavigatorCard/index.js";
47
47
  import { default as sr } from "./components/NoResult/NoResult.js";
48
- import { Notification as mr } from "./components/Notification/Notification.js";
48
+ import { Notification as dr } from "./components/Notification/Notification.js";
49
49
  import { default as xr } from "./components/PageWrapper/PageWrap.js";
50
50
  import { default as ir } from "./components/Pager/Pager.js";
51
- import { default as Ar } from "./components/Panel/Panel.js";
51
+ import { default as cr } from "./components/Panel/Panel.js";
52
52
  import { default as Er } from "./components/PermaLink/PermaLink.js";
53
- import { default as Ir, RadioList as Cr } from "./components/Radio/Radio.js";
54
- import { default as Rr } from "./components/ResultError/ResultError.js";
53
+ import { default as Cr, RadioList as Ir } from "./components/Radio/Radio.js";
54
+ import { default as Mr } from "./components/ResultError/ResultError.js";
55
55
  import { default as Dr } from "./components/ScrollContainer/ScrollContainer.js";
56
- import { default as Fr } from "./components/Select/NoData.js";
56
+ import { default as gr } from "./components/Select/NoData.js";
57
57
  import { S as Nr } from "./Select-nhp2PiJK.js";
58
- import { default as yr } from "./components/Sidebar/index.js";
58
+ import { default as Or } from "./components/Sidebar/index.js";
59
59
  import { M as Pr } from "./MenuItem-Df6Zsa7E.js";
60
- import { default as br } from "./components/StatusTag/StatusTag.js";
61
- import { default as Br } from "./components/StatusTypography/StatusTypography.js";
62
- import { default as Hr } from "./components/Stepper/Stepper.js";
60
+ import { default as vr } from "./components/StatusTag/StatusTag.js";
61
+ import { default as Ur } from "./components/StatusTypography/StatusTypography.js";
62
+ import { default as kr } from "./components/Stepper/Stepper.js";
63
63
  import { default as Vr } from "./components/Switch/Switch.js";
64
- import { default as jr } from "./components/Tab/Tab.js";
64
+ import { default as Wr } from "./components/Tab/Tab.js";
65
65
  import { default as Kr } from "./components/Table/Table.js";
66
66
  import { default as Yr } from "./components/Table/TableHeader.js";
67
67
  import { default as Gr } from "./components/Table/TableSort.js";
@@ -74,22 +74,26 @@ import { AuthProvider as lo, useAuth as so } from "./hooks/useAauth.js";
74
74
  import { default as uo } from "./hooks/useDisclosure.js";
75
75
  import { default as no } from "./hooks/useNiceModal.js";
76
76
  import { default as To } from "./hooks/useMediaQuery.js";
77
- import { useDrawerContext as co } from "./components/Drawer/Provider.js";
77
+ import { useDrawerContext as Ao } from "./components/Drawer/Provider.js";
78
78
  import { default as _o } from "./hooks/useDrawer.js";
79
- import { default as Co, t as Mo } from "./locales/i18n.js";
80
- import { CLIENT_DATE_AND_TIME_FORMAT as So, CLIENT_DATE_AND_TIME_SHORT_FORMAT as Do, CLIENT_DATE_COMPARE_FORMAT as go, CLIENT_DATE_FILTER_FORMAT as Fo, CLIENT_DATE_SHORT_FORMAT as Lo, CLIENT_TIME_FORMAT as No, CLIENT_TIME_FORMAT_PICKER as Oo, DateFormats as yo, MIN_DATE_TODAY as ho, MIN_DATE_TOMORROW as Po, SERVER_DATE_AND_TIME_FORMAT as vo, SERVER_DATE_FORMAT as bo, default as wo, friendlyDate as Bo } from "./utils/date.js";
81
- import { startFetcher as Ho, startFormFetcher as Uo } from "./utils/fetcher.js";
82
- import { changeLanguage as Wo, getCurrentLanguage as jo, getDatepickerLocale as zo } from "./utils/language.js";
83
- import { IconTestIds as Qo } from "./utils/test.js";
84
- import { default as qo } from "./prodivers.js";
85
- import { f as Jo, p as Xo } from "./helper-1SQ9SI45.js";
79
+ import { default as Io, t as Ro } from "./locales/i18n.js";
80
+ import { CLIENT_DATE_AND_TIME_FORMAT as So, CLIENT_DATE_AND_TIME_SHORT_FORMAT as Do, CLIENT_DATE_COMPARE_FORMAT as Fo, CLIENT_DATE_FILTER_FORMAT as go, CLIENT_DATE_SHORT_FORMAT as Lo, CLIENT_TIME_FORMAT as No, CLIENT_TIME_FORMAT_PICKER as ho, DateFormats as Oo, MIN_DATE_TODAY as yo, MIN_DATE_TOMORROW as Po, SERVER_DATE_AND_TIME_FORMAT as bo, SERVER_DATE_FORMAT as vo, default as wo, friendlyDate as Uo } from "./utils/date.js";
81
+ import { startFetcher as ko, startFormFetcher as Ho } from "./utils/fetcher.js";
82
+ import { changeLanguage as zo, getCurrentLanguage as Wo, getDatepickerLocale as jo } from "./utils/language.js";
83
+ import { createFetchClient as Qo } from "./utils/http/createFetchClient.js";
84
+ import { FetchError as qo, FetchErrorCode as Go, isCancel as Jo, isFetchError as Xo } from "./utils/http/errors.js";
85
+ import { InterceptorManager as $o } from "./utils/http/interceptorManager.js";
86
+ import { buildFullURL as ra, combineURLs as oa, defaultParamsSerializer as aa } from "./utils/http/helpers.js";
87
+ import { IconTestIds as fa } from "./utils/test.js";
88
+ import { default as la } from "./prodivers.js";
89
+ import { f as ma, p as da } from "./helper-1SQ9SI45.js";
86
90
  export {
87
91
  w as Accordion,
88
- B as AccordionItem,
89
- H as ActionButton,
92
+ U as AccordionItem,
93
+ k as ActionButton,
90
94
  V as AlertCard,
91
95
  o as AppAndServicesStatusApperenceType,
92
- I as AppTypeEnum,
96
+ C as AppTypeEnum,
93
97
  a as AppearanceAlertCard,
94
98
  t as AppearanceButton,
95
99
  f as AppearanceDirection,
@@ -102,113 +106,122 @@ export {
102
106
  N as Button,
103
107
  So as CLIENT_DATE_AND_TIME_FORMAT,
104
108
  Do as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
105
- go as CLIENT_DATE_COMPARE_FORMAT,
106
- Fo as CLIENT_DATE_FILTER_FORMAT,
109
+ Fo as CLIENT_DATE_COMPARE_FORMAT,
110
+ go as CLIENT_DATE_FILTER_FORMAT,
107
111
  Lo as CLIENT_DATE_SHORT_FORMAT,
108
112
  No as CLIENT_TIME_FORMAT,
109
- Oo as CLIENT_TIME_FORMAT_PICKER,
113
+ ho as CLIENT_TIME_FORMAT_PICKER,
110
114
  G as Card,
111
115
  X as Chart,
112
116
  $ as Checkbox,
113
- he as Column,
117
+ ye as Column,
114
118
  re as Config,
115
119
  ae as Confirm,
116
120
  fe as ContentHeader,
117
121
  le as ContentLoader,
118
- C as CopyTextStatusEnum,
119
- de as Countdown,
120
- yo as DateFormats,
122
+ I as CopyTextStatusEnum,
123
+ me as Countdown,
124
+ Oo as DateFormats,
121
125
  ue as Datepicker,
122
126
  ne as Divider,
123
127
  s as DividerAppearance,
124
128
  Te as Drawer,
125
- ce as DropdownList,
129
+ Ae as DropdownList,
126
130
  _e as ErrorLogModal,
131
+ qo as FetchError,
132
+ Go as FetchErrorCode,
127
133
  Se as FileUpload,
128
- ge as FileUploadImagePreview,
134
+ Fe as FileUploadImagePreview,
129
135
  Le as FileUploadLengthCard,
130
- Oe as FileUploadPreviewModal,
131
- d as FormFieldAppearance,
136
+ he as FileUploadPreviewModal,
137
+ m as FormFieldAppearance,
132
138
  we as Heading,
133
- ke as Icon,
134
- Ue as IconBox,
135
- Qo as IconTestIds,
136
- We as InfiniteScroll,
137
- ze as InfoBoxList,
139
+ Be as Icon,
140
+ He as IconBox,
141
+ fa as IconTestIds,
142
+ ze as InfiniteScroll,
143
+ je as InfoBoxList,
138
144
  qe as InfoDate,
139
145
  Je as InfoText,
140
146
  Ze as Input,
147
+ $o as InterceptorManager,
141
148
  er as Label,
142
149
  or as Loading,
143
- ho as MIN_DATE_TODAY,
150
+ yo as MIN_DATE_TODAY,
144
151
  Po as MIN_DATE_TOMORROW,
145
152
  Pr as MenuItem,
146
153
  tr as Modal,
147
- m as ModalAppearanceType,
154
+ d as ModalAppearanceType,
148
155
  pr as NavigatorCard,
149
- y as NiceModal,
150
- Fr as NoData,
156
+ O as NiceModal,
157
+ gr as NoData,
151
158
  sr as NoResult,
152
- mr as Notification,
159
+ dr as Notification,
153
160
  u as NotificationAppearanceType,
154
161
  xr as PageWrapper,
155
162
  ir as Pager,
156
- Ar as Panel,
163
+ cr as Panel,
157
164
  P as PermFallBack,
158
165
  Er as PermaLink,
159
- j as Permission,
160
- M as PodStatusEnum,
161
- qo as Provider,
162
- Ir as Radio,
163
- Cr as RadioList,
164
- Ie as RealTimeLogModal,
165
- R as ReportStatus,
166
- Rr as ResultError,
167
- ve as Row,
168
- vo as SERVER_DATE_AND_TIME_FORMAT,
169
- bo as SERVER_DATE_FORMAT,
166
+ W as Permission,
167
+ R as PodStatusEnum,
168
+ la as Provider,
169
+ Cr as Radio,
170
+ Ir as RadioList,
171
+ Ce as RealTimeLogModal,
172
+ M as ReportStatus,
173
+ Mr as ResultError,
174
+ be as Row,
175
+ bo as SERVER_DATE_AND_TIME_FORMAT,
176
+ vo as SERVER_DATE_FORMAT,
170
177
  Dr as ScrollContainer,
171
178
  Nr as Select,
172
- yr as Sidebar,
179
+ Or as Sidebar,
173
180
  E as Size,
174
181
  S as SortEnum,
175
182
  D as StatusEnum,
176
- br as StatusTag,
177
- g as StatusType,
178
- Br as StatusTypography,
179
- Hr as Stepper,
183
+ vr as StatusTag,
184
+ F as StatusType,
185
+ Ur as StatusTypography,
186
+ kr as Stepper,
180
187
  Vr as Switch,
181
- jr as Tab,
188
+ Wr as Tab,
182
189
  Kr as Table,
183
- Ce as TableActions,
184
- Me as TableColumns,
190
+ Ie as TableActions,
191
+ Re as TableColumns,
185
192
  Yr as TableHeader,
186
193
  Gr as TableSort,
187
- F as TagStatus,
194
+ g as TagStatus,
188
195
  Xr as Textarea,
189
196
  x as ThemeAppearance,
190
197
  $r as Tooltip,
191
198
  ro as TypographyText,
192
199
  ao as UserInfo,
193
200
  fo as ValidationError,
194
- Wo as changeLanguage,
201
+ ra as buildFullURL,
202
+ zo as changeLanguage,
203
+ oa as combineURLs,
195
204
  Qe as createConnectedService,
205
+ Qo as createFetchClient,
196
206
  wo as dayjs,
197
- Jo as format,
198
- Bo as friendlyDate,
199
- v as getAuth,
200
- jo as getCurrentLanguage,
201
- zo as getDatepickerLocale,
202
- Co as i18n,
203
- A as isActiveColor,
204
- Xo as parseISO,
205
- Ho as startFetcher,
206
- Uo as startFormFetcher,
207
- Mo as t,
207
+ aa as defaultParamsSerializer,
208
+ ma as format,
209
+ Uo as friendlyDate,
210
+ b as getAuth,
211
+ Wo as getCurrentLanguage,
212
+ jo as getDatepickerLocale,
213
+ Io as i18n,
214
+ c as isActiveColor,
215
+ Jo as isCancel,
216
+ Xo as isFetchError,
217
+ da as parseISO,
218
+ ko as startFetcher,
219
+ Ho as startFormFetcher,
220
+ Ro as t,
208
221
  so as useAuth,
209
222
  uo as useDisclosure,
210
223
  _o as useDrawer,
211
- co as useDrawerContext,
224
+ Ao as useDrawerContext,
212
225
  To as useMediaQuery,
213
226
  no as useNiceModal
214
227
  };
@@ -0,0 +1,76 @@
1
+ import { FetchError as m, FetchErrorCode as c } from "./errors.js";
2
+ import { mergeConfig as f, setupAbort as E, serializeBody as y, buildFullURL as T, parseResponseBody as q, headersToObject as R, defaultValidateStatus as C } from "./helpers.js";
3
+ import { InterceptorManager as w } from "./interceptorManager.js";
4
+ async function b(s) {
5
+ const { signal: i, cleanup: p, isTimeout: a } = E(s), r = (s.method || "get").toUpperCase(), e = { ...s.headers || {} }, t = { method: r, signal: i };
6
+ if (r !== "GET" && r !== "HEAD") {
7
+ const h = y(s.data, e);
8
+ typeof h < "u" && (t.body = h);
9
+ }
10
+ typeof s.credentials < "u" ? t.credentials = s.credentials : typeof s.withCredentials < "u" && (t.credentials = s.withCredentials ? "include" : "same-origin"), t.headers = e;
11
+ const o = T(s);
12
+ let l;
13
+ try {
14
+ l = await fetch(o, t);
15
+ } catch (h) {
16
+ throw p(), a() ? new m(
17
+ `timeout of ${s.timeout}ms exceeded`,
18
+ s,
19
+ c.TIMEOUT
20
+ ) : i && i.aborted || h && h.name === "AbortError" ? new m(
21
+ "Request canceled",
22
+ s,
23
+ c.CANCELED
24
+ ) : new m(
25
+ h && h.message || "Network Error",
26
+ s,
27
+ c.NETWORK
28
+ );
29
+ }
30
+ let n;
31
+ try {
32
+ n = await q(l, s.responseType);
33
+ } finally {
34
+ p();
35
+ }
36
+ const d = {
37
+ data: n,
38
+ status: l.status,
39
+ statusText: l.statusText,
40
+ headers: R(l.headers),
41
+ config: s,
42
+ request: { url: o, ...t }
43
+ }, u = s.validateStatus === null ? null : s.validateStatus || C;
44
+ if (u && !u(d.status))
45
+ throw new m(
46
+ `Request failed with status code ${d.status}`,
47
+ s,
48
+ d.status >= 500 ? c.BAD_RESPONSE : c.BAD_REQUEST,
49
+ d.request,
50
+ d
51
+ );
52
+ return d;
53
+ }
54
+ function S(s = {}) {
55
+ const i = { ...s }, p = {
56
+ request: new w(),
57
+ response: new w()
58
+ };
59
+ function a(e, t) {
60
+ const o = typeof e == "string" ? { ...t || {}, url: e } : { ...e || {} }, l = f(i, o), n = [b, void 0];
61
+ p.request.forEach((u) => {
62
+ n.unshift(u.fulfilled, u.rejected);
63
+ }), p.response.forEach((u) => {
64
+ n.push(u.fulfilled, u.rejected);
65
+ });
66
+ let d = Promise.resolve(l);
67
+ for (; n.length; )
68
+ d = d.then(n.shift(), n.shift());
69
+ return d;
70
+ }
71
+ const r = a;
72
+ return r.request = a, r.interceptors = p, r.defaults = i, r.get = (e, t) => a({ ...t || {}, method: "get", url: e }), r.delete = (e, t) => a({ ...t || {}, method: "delete", url: e }), r.head = (e, t) => a({ ...t || {}, method: "head", url: e }), r.options = (e, t) => a({ ...t || {}, method: "options", url: e }), r.post = (e, t, o) => a({ ...o || {}, method: "post", url: e, data: t }), r.put = (e, t, o) => a({ ...o || {}, method: "put", url: e, data: t }), r.patch = (e, t, o) => a({ ...o || {}, method: "patch", url: e, data: t }), r.create = (e) => S(f(i, e || {})), r;
73
+ }
74
+ export {
75
+ S as createFetchClient
76
+ };
@@ -0,0 +1,41 @@
1
+ var h = Object.defineProperty;
2
+ var R = (e, s, t) => s in e ? h(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
3
+ var r = (e, s, t) => (R(e, typeof s != "symbol" ? s + "" : s, t), t);
4
+ const u = {
5
+ BAD_REQUEST: "ERR_BAD_REQUEST",
6
+ BAD_RESPONSE: "ERR_BAD_RESPONSE",
7
+ NETWORK: "ERR_NETWORK",
8
+ TIMEOUT: "ERR_TIMEOUT",
9
+ CANCELED: "ERR_CANCELED"
10
+ };
11
+ class o extends Error {
12
+ constructor(t, E, i, n, c) {
13
+ super(t);
14
+ r(this, "config");
15
+ r(this, "code");
16
+ r(this, "request");
17
+ r(this, "response");
18
+ r(this, "isFetchError");
19
+ this.name = "FetchError", this.config = E, this.code = i, this.request = n, this.response = c, this.isFetchError = !0, Object.setPrototypeOf(this, o.prototype);
20
+ }
21
+ toJSON() {
22
+ return {
23
+ name: this.name,
24
+ message: this.message,
25
+ code: this.code,
26
+ status: this.response ? this.response.status : void 0
27
+ };
28
+ }
29
+ }
30
+ function p(e) {
31
+ return !!(e && e.isFetchError);
32
+ }
33
+ function O(e) {
34
+ return !!(e && e.code === u.CANCELED);
35
+ }
36
+ export {
37
+ o as FetchError,
38
+ u as FetchErrorCode,
39
+ O as isCancel,
40
+ p as isFetchError
41
+ };
@@ -0,0 +1,100 @@
1
+ function l() {
2
+ }
3
+ function c() {
4
+ return !1;
5
+ }
6
+ function y(e) {
7
+ return e >= 200 && e < 300;
8
+ }
9
+ function b(e, r) {
10
+ return e ? r ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r) ? r : e.replace(/\/+$/, "") + "/" + r.replace(/^\/+/, "") : e : r || "";
11
+ }
12
+ function s(e) {
13
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
14
+ }
15
+ function m(e) {
16
+ const r = [];
17
+ return Object.keys(e).forEach((n) => {
18
+ const t = e[n];
19
+ if (t === null || typeof t > "u")
20
+ return;
21
+ const o = Array.isArray(t), u = o ? t : [t], a = o ? n + "[]" : n;
22
+ u.forEach((f) => {
23
+ let i = f;
24
+ i instanceof Date ? i = i.toISOString() : i !== null && typeof i == "object" && (i = JSON.stringify(i)), r.push(s(a) + "=" + s(String(i)));
25
+ });
26
+ }), r.join("&");
27
+ }
28
+ function d(e) {
29
+ let r = b(e.baseURL, e.url);
30
+ if (e.params) {
31
+ const t = (e.paramsSerializer || m)(e.params);
32
+ t && (r += (r.indexOf("?") === -1 ? "?" : "&") + t);
33
+ }
34
+ return r;
35
+ }
36
+ function p(e, r) {
37
+ const n = r.toLowerCase();
38
+ return Object.keys(e).some((t) => t.toLowerCase() === n);
39
+ }
40
+ function g(e, r) {
41
+ if (!(e === null || typeof e > "u"))
42
+ return typeof e == "string" || e instanceof FormData || e instanceof URLSearchParams || e instanceof Blob || e instanceof ArrayBuffer || ArrayBuffer.isView(e) ? e : (p(r, "Content-Type") || (r["Content-Type"] = "application/json"), JSON.stringify(e));
43
+ }
44
+ function h(e, r) {
45
+ return r === "blob" ? e.blob() : r === "arrayBuffer" ? e.arrayBuffer() : r === "formData" ? e.formData() : r === "text" ? e.text() : e.text().then((n) => {
46
+ if (!n)
47
+ return null;
48
+ try {
49
+ return JSON.parse(n);
50
+ } catch {
51
+ return n;
52
+ }
53
+ });
54
+ }
55
+ function A(e) {
56
+ const r = {};
57
+ return e.forEach((n, t) => {
58
+ r[t] = n;
59
+ }), r;
60
+ }
61
+ function S(e, r) {
62
+ return {
63
+ ...e,
64
+ ...r,
65
+ headers: {
66
+ ...e.headers || {},
67
+ ...r.headers || {}
68
+ }
69
+ };
70
+ }
71
+ function z(e) {
72
+ const r = e.signal, n = e.timeout;
73
+ if (!n)
74
+ return { signal: r, cleanup: l, isTimeout: c };
75
+ const t = new AbortController();
76
+ let o = !1;
77
+ const u = () => t.abort();
78
+ r && (r.aborted ? t.abort() : r.addEventListener("abort", u));
79
+ const a = setTimeout(() => {
80
+ o = !0, t.abort();
81
+ }, n);
82
+ return {
83
+ signal: t.signal,
84
+ isTimeout: () => o,
85
+ cleanup: () => {
86
+ clearTimeout(a), r && r.removeEventListener("abort", u);
87
+ }
88
+ };
89
+ }
90
+ export {
91
+ d as buildFullURL,
92
+ b as combineURLs,
93
+ m as defaultParamsSerializer,
94
+ y as defaultValidateStatus,
95
+ A as headersToObject,
96
+ S as mergeConfig,
97
+ h as parseResponseBody,
98
+ g as serializeBody,
99
+ z as setupAbort
100
+ };
@@ -0,0 +1,15 @@
1
+ import { createFetchClient as o } from "./createFetchClient.js";
2
+ import { FetchError as a, FetchErrorCode as c, isCancel as i, isFetchError as l } from "./errors.js";
3
+ import { InterceptorManager as f } from "./interceptorManager.js";
4
+ import { buildFullURL as p, combineURLs as F, defaultParamsSerializer as h } from "./helpers.js";
5
+ export {
6
+ a as FetchError,
7
+ c as FetchErrorCode,
8
+ f as InterceptorManager,
9
+ p as buildFullURL,
10
+ F as combineURLs,
11
+ o as createFetchClient,
12
+ h as defaultParamsSerializer,
13
+ i as isCancel,
14
+ l as isFetchError
15
+ };
@@ -0,0 +1,31 @@
1
+ var r = Object.defineProperty;
2
+ var t = (h, e, s) => e in h ? r(h, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : h[e] = s;
3
+ var l = (h, e, s) => (t(h, typeof e != "symbol" ? e + "" : e, s), s);
4
+ class n {
5
+ constructor() {
6
+ l(this, "handlers", []);
7
+ }
8
+ /**
9
+ * Register a handler pair. Returns an id usable with {@link eject}.
10
+ */
11
+ use(e, s) {
12
+ return this.handlers.push({ fulfilled: e, rejected: s }), this.handlers.length - 1;
13
+ }
14
+ /** Remove the handler registered under `id`. */
15
+ eject(e) {
16
+ this.handlers[e] && (this.handlers[e] = null);
17
+ }
18
+ /** Remove every registered handler. */
19
+ clear() {
20
+ this.handlers = [];
21
+ }
22
+ /** Iterate over the non-ejected handlers in registration order. */
23
+ forEach(e) {
24
+ this.handlers.forEach((s) => {
25
+ s !== null && e(s);
26
+ });
27
+ }
28
+ }
29
+ export {
30
+ n as InterceptorManager
31
+ };
@@ -0,0 +1 @@
1
+
@@ -1,32 +1,45 @@
1
- import { CLIENT_DATE_AND_TIME_FORMAT as E, CLIENT_DATE_AND_TIME_SHORT_FORMAT as e, CLIENT_DATE_COMPARE_FORMAT as a, CLIENT_DATE_FILTER_FORMAT as r, CLIENT_DATE_SHORT_FORMAT as A, CLIENT_TIME_FORMAT as t, CLIENT_TIME_FORMAT_PICKER as R, DateFormats as o, MIN_DATE_TODAY as I, MIN_DATE_TOMORROW as M, SERVER_DATE_AND_TIME_FORMAT as O, SERVER_DATE_FORMAT as D, default as s, friendlyDate as F } from "./date.js";
2
- import { startFetcher as C, startFormFetcher as L } from "./fetcher.js";
3
- import { changeLanguage as m, getCurrentLanguage as p, getDatepickerLocale as n } from "./language.js";
4
- import { T as g, a as l } from "../ErrorLogModal-CQFdcFKP.js";
5
- import { IconTestIds as u } from "./test.js";
6
- import { f as d, p as h } from "../helper-1SQ9SI45.js";
1
+ import { CLIENT_DATE_AND_TIME_FORMAT as T, CLIENT_DATE_AND_TIME_SHORT_FORMAT as t, CLIENT_DATE_COMPARE_FORMAT as o, CLIENT_DATE_FILTER_FORMAT as _, CLIENT_DATE_SHORT_FORMAT as a, CLIENT_TIME_FORMAT as E, CLIENT_TIME_FORMAT_PICKER as A, DateFormats as R, MIN_DATE_TODAY as I, MIN_DATE_TOMORROW as F, SERVER_DATE_AND_TIME_FORMAT as M, SERVER_DATE_FORMAT as s, default as O, friendlyDate as m } from "./date.js";
2
+ import { startFetcher as c, startFormFetcher as f } from "./fetcher.js";
3
+ import { changeLanguage as C, getCurrentLanguage as l, getDatepickerLocale as n } from "./language.js";
4
+ import { createFetchClient as N } from "./http/createFetchClient.js";
5
+ import { FetchError as x, FetchErrorCode as g, isCancel as u, isFetchError as d } from "./http/errors.js";
6
+ import { InterceptorManager as S } from "./http/interceptorManager.js";
7
+ import { buildFullURL as P, combineURLs as y, defaultParamsSerializer as H } from "./http/helpers.js";
8
+ import { T as V, a as j } from "../ErrorLogModal-CQFdcFKP.js";
9
+ import { IconTestIds as z } from "./test.js";
10
+ import { f as W, p as Y } from "../helper-1SQ9SI45.js";
7
11
  export {
8
- E as CLIENT_DATE_AND_TIME_FORMAT,
9
- e as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
10
- a as CLIENT_DATE_COMPARE_FORMAT,
11
- r as CLIENT_DATE_FILTER_FORMAT,
12
- A as CLIENT_DATE_SHORT_FORMAT,
13
- t as CLIENT_TIME_FORMAT,
14
- R as CLIENT_TIME_FORMAT_PICKER,
15
- o as DateFormats,
16
- u as IconTestIds,
12
+ T as CLIENT_DATE_AND_TIME_FORMAT,
13
+ t as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
14
+ o as CLIENT_DATE_COMPARE_FORMAT,
15
+ _ as CLIENT_DATE_FILTER_FORMAT,
16
+ a as CLIENT_DATE_SHORT_FORMAT,
17
+ E as CLIENT_TIME_FORMAT,
18
+ A as CLIENT_TIME_FORMAT_PICKER,
19
+ R as DateFormats,
20
+ x as FetchError,
21
+ g as FetchErrorCode,
22
+ z as IconTestIds,
23
+ S as InterceptorManager,
17
24
  I as MIN_DATE_TODAY,
18
- M as MIN_DATE_TOMORROW,
19
- O as SERVER_DATE_AND_TIME_FORMAT,
20
- D as SERVER_DATE_FORMAT,
21
- g as TableActions,
22
- l as TableColumns,
23
- m as changeLanguage,
24
- s as dayjs,
25
- d as format,
26
- F as friendlyDate,
27
- p as getCurrentLanguage,
25
+ F as MIN_DATE_TOMORROW,
26
+ M as SERVER_DATE_AND_TIME_FORMAT,
27
+ s as SERVER_DATE_FORMAT,
28
+ V as TableActions,
29
+ j as TableColumns,
30
+ P as buildFullURL,
31
+ C as changeLanguage,
32
+ y as combineURLs,
33
+ N as createFetchClient,
34
+ O as dayjs,
35
+ H as defaultParamsSerializer,
36
+ W as format,
37
+ m as friendlyDate,
38
+ l as getCurrentLanguage,
28
39
  n as getDatepickerLocale,
29
- h as parseISO,
30
- C as startFetcher,
31
- L as startFormFetcher
40
+ u as isCancel,
41
+ d as isFetchError,
42
+ Y as parseISO,
43
+ c as startFetcher,
44
+ f as startFormFetcher
32
45
  };