@orbe-agro/client-core 5.3.57 → 5.3.58
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/@ecme/components/shared/loaders/GlobalLoading.js +13 -9
- package/dist/@ecme/components/shared/loaders/GlobalLoading.js.map +1 -1
- package/dist/@ecme/index.js +200 -195
- package/dist/@ecme/index.js.map +1 -1
- package/dist/@ecme/services/axios/AxiosBase.js +39 -14
- package/dist/@ecme/services/axios/AxiosBase.js.map +1 -1
- package/dist/@ecme/store/index.js +13 -8
- package/dist/@ecme/store/index.js.map +1 -1
- package/dist/@ecme/store/loadingConfigStore.js +55 -0
- package/dist/@ecme/store/loadingConfigStore.js.map +1 -0
- package/dist/@types/@ecme/components/shared/loaders/GlobalLoading.d.ts.map +1 -1
- package/dist/@types/@ecme/services/axios/AxiosBase.d.ts.map +1 -1
- package/dist/@types/@ecme/store/index.d.ts +1 -0
- package/dist/@types/@ecme/store/index.d.ts.map +1 -1
- package/dist/@types/@ecme/store/loadingConfigStore.d.ts +40 -0
- package/dist/@types/@ecme/store/loadingConfigStore.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../ui/index.js";
|
|
3
3
|
import "../../../store/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { useLoadingConfigStore as i, getCurrentMicrofrontendId as a } from "../../../store/loadingConfigStore.js";
|
|
5
|
+
import { useThemeStore as l } from "../../../store/themeStore.js";
|
|
6
|
+
import s from "../../ui/Spinner/Spinner.js";
|
|
7
|
+
const u = () => {
|
|
8
|
+
const { loading: e } = l(), o = i((n) => {
|
|
9
|
+
const t = a();
|
|
10
|
+
return n.microfrontendConfigs[t] ?? !0;
|
|
11
|
+
});
|
|
12
|
+
return !e || !o ? null : /* @__PURE__ */ r(
|
|
9
13
|
"div",
|
|
10
14
|
{
|
|
11
15
|
className: "fixed inset-0 z-[9999] flex items-center justify-center bg-black bg-opacity-50",
|
|
@@ -15,11 +19,11 @@ const m = () => {
|
|
|
15
19
|
},
|
|
16
20
|
role: "progressbar",
|
|
17
21
|
"aria-label": "Carregando...",
|
|
18
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ r(s, {})
|
|
19
23
|
}
|
|
20
|
-
)
|
|
24
|
+
);
|
|
21
25
|
};
|
|
22
26
|
export {
|
|
23
|
-
|
|
27
|
+
u as default
|
|
24
28
|
};
|
|
25
29
|
//# sourceMappingURL=GlobalLoading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalLoading.js","sources":["../../../../../lib/@ecme/components/shared/loaders/GlobalLoading.tsx"],"sourcesContent":["import { Spinner } from \"@/components/ui\";\nimport { useThemeStore } from \"@/store\";\n\nconst GlobalLoading = () => {\n const { loading } = useThemeStore();\n\n if (!loading) return null;\n\n return (\n <div\n className=\"fixed inset-0 z-[9999] flex items-center justify-center bg-black bg-opacity-50\"\n style={{\n pointerEvents: \"all\",\n userSelect: \"none\",\n }}\n role=\"progressbar\"\n aria-label=\"Carregando...\"\n >\n <Spinner />\n </div>\n );\n};\n\nexport default GlobalLoading;\n"],"names":["GlobalLoading","loading","useThemeStore","jsx","Spinner"],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalLoading.js","sources":["../../../../../lib/@ecme/components/shared/loaders/GlobalLoading.tsx"],"sourcesContent":["import { Spinner } from \"@/components/ui\";\nimport { useThemeStore } from \"@/store\";\nimport { useLoadingConfigStore, getCurrentMicrofrontendId } from \"@/store/loadingConfigStore\";\n\nconst GlobalLoading = () => {\n const { loading } = useThemeStore();\n \n const globalLoadingEnabled = useLoadingConfigStore((state) => {\n const microfrontendId = getCurrentMicrofrontendId();\n return state.microfrontendConfigs[microfrontendId] ?? true;\n });\n\n if (!loading || !globalLoadingEnabled) return null;\n\n return (\n <div\n className=\"fixed inset-0 z-[9999] flex items-center justify-center bg-black bg-opacity-50\"\n style={{\n pointerEvents: \"all\",\n userSelect: \"none\",\n }}\n role=\"progressbar\"\n aria-label=\"Carregando...\"\n >\n <Spinner />\n </div>\n );\n};\n\nexport default GlobalLoading;\n"],"names":["GlobalLoading","loading","useThemeStore","globalLoadingEnabled","useLoadingConfigStore","state","microfrontendId","getCurrentMicrofrontendId","jsx","Spinner"],"mappings":";;;;;;AAIA,MAAMA,IAAgB,MAAM;AAC1B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEdC,IAAuBC,EAAsB,CAACC,MAAU;AAC5D,UAAMC,IAAkBC,EAAA;AACxB,WAAOF,EAAM,qBAAqBC,CAAe,KAAK;AAAA,EACxD,CAAC;AAED,SAAI,CAACL,KAAW,CAACE,IAA6B,OAG5C,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO;AAAA,QACL,eAAe;AAAA,QACf,YAAY;AAAA,MAAA;AAAA,MAEd,MAAK;AAAA,MACL,cAAW;AAAA,MAEX,4BAACC,GAAA,CAAA,CAAQ;AAAA,IAAA;AAAA,EAAA;AAGf;"}
|
package/dist/@ecme/index.js
CHANGED
|
@@ -11,12 +11,12 @@ import "./assets/index.js";
|
|
|
11
11
|
import "./locales/index.js";
|
|
12
12
|
import { default as x } from "./components/template/SideNav.js";
|
|
13
13
|
import { default as S } from "./components/template/MobileNav.js";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
14
|
+
import { default as T } from "./components/layouts/Layouts.js";
|
|
15
|
+
import { default as C } from "./components/shared/AbbreviateNumber.js";
|
|
16
16
|
import { default as E } from "./components/shared/ActionLink.js";
|
|
17
17
|
import { default as P } from "./components/shared/AdaptiveCard.js";
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
18
|
+
import { default as G } from "./components/shared/Affix.js";
|
|
19
|
+
import { default as R } from "./components/shared/AuthorityCheck.js";
|
|
20
20
|
import { default as L } from "./components/shared/AutoComplete.js";
|
|
21
21
|
import { default as N } from "./components/shared/CalendarView.js";
|
|
22
22
|
import { default as F } from "./components/shared/Chart.js";
|
|
@@ -38,12 +38,12 @@ import { default as le } from "./components/shared/PasswordInput.js";
|
|
|
38
38
|
import { default as ie } from "./components/shared/PatternInput.js";
|
|
39
39
|
import { default as xe } from "./components/shared/PresetSegmentItemOption.js";
|
|
40
40
|
import { default as Se } from "./components/shared/RichTextEditor/RichTextEditor.js";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
41
|
+
import { default as Te } from "./components/shared/StickyFooter.js";
|
|
42
|
+
import { default as Ce } from "./components/shared/StrictModeDroppable.js";
|
|
43
43
|
import { default as Ee } from "./components/shared/SyntaxHighlighter.js";
|
|
44
44
|
import { default as Pe } from "./components/shared/ToggleDrawer.js";
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
45
|
+
import { default as Ge } from "./components/shared/UsersAvatarGroup.js";
|
|
46
|
+
import { default as Re } from "./components/shared/loaders/TableRowSkeleton.js";
|
|
47
47
|
import { default as Le } from "./components/shared/loaders/TextBlockSkeleton.js";
|
|
48
48
|
import { default as Ne } from "./components/ui/Alert/Alert.js";
|
|
49
49
|
import { Avatar as Fe } from "./components/ui/Avatar/index.js";
|
|
@@ -64,12 +64,12 @@ import { default as so } from "./components/ui/hooks/index.js";
|
|
|
64
64
|
import { default as lo } from "./components/ui/Input/Input.js";
|
|
65
65
|
import { InputGroup as io } from "./components/ui/InputGroup/index.js";
|
|
66
66
|
import { Menu as no } from "./components/ui/Menu/index.js";
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
67
|
+
import { default as co } from "./components/ui/MenuItem/index.js";
|
|
68
|
+
import { default as _o } from "./components/ui/Notification/Notification.js";
|
|
69
|
+
import { default as Ao } from "./components/ui/Pagination/Pagination.js";
|
|
70
70
|
import { default as Io } from "./components/ui/Progress/Progress.js";
|
|
71
|
-
import { Radio as
|
|
72
|
-
import { default as
|
|
71
|
+
import { Radio as go } from "./components/ui/Radio/index.js";
|
|
72
|
+
import { default as Oo } from "./components/ui/DatePicker/RangeCalendar.js";
|
|
73
73
|
import { default as Do } from "./components/ui/ScrollBar/ScrollBar.js";
|
|
74
74
|
import { Segment as ho } from "./components/ui/Segment/index.js";
|
|
75
75
|
import { default as vo } from "./components/ui/Select/Select.js";
|
|
@@ -91,12 +91,12 @@ import { default as mt } from "./components/view/FileIcon/FileIcon.js";
|
|
|
91
91
|
import { default as ut } from "./components/view/TaskItem/TaskItem.js";
|
|
92
92
|
import { default as dt } from "./components/view/Activity/ActivityAvatar.js";
|
|
93
93
|
import { default as nt } from "./components/view/Activity/ActivityEvent.js";
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
94
|
+
import { default as ct } from "./components/route/AllRoutes.js";
|
|
95
|
+
import { default as _t } from "./components/route/AppRoute.js";
|
|
96
|
+
import { default as At } from "./components/route/AuthorityGuard.js";
|
|
97
97
|
import { default as It } from "./components/route/ProtectedRoute.js";
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
98
|
+
import { default as gt } from "./components/route/PublicRoute.js";
|
|
99
|
+
import { default as Ot } from "./components/docs/DemoBoxContent.js";
|
|
100
100
|
import { default as Dt } from "./components/docs/DemoComponentApi.js";
|
|
101
101
|
import { default as ht } from "./components/docs/DemoLayout.js";
|
|
102
102
|
import { default as vt } from "./components/docs/DemoTitleSection.js";
|
|
@@ -111,17 +111,17 @@ import { REQUEST_HEADER_AUTH_KEY as zt, TOKEN_NAME_IN_STORAGE as qt, TOKEN_TYPE
|
|
|
111
111
|
import { APP_NAME as $t, REDIRECT_URL_KEY as er } from "./constants/app.constant.js";
|
|
112
112
|
import { COLORS as tr, COLOR_1 as rr, COLOR_10 as ar, COLOR_2 as fr, COLOR_3 as pr, COLOR_4 as sr, COLOR_5 as mr, COLOR_6 as lr, COLOR_7 as ur, COLOR_8 as ir, COLOR_9 as dr } from "./constants/chart.constant.js";
|
|
113
113
|
import { countryList as nr } from "./constants/countries.constant.js";
|
|
114
|
-
import { NAV_ITEM_TYPE_COLLAPSE as
|
|
115
|
-
import { ADMIN as
|
|
116
|
-
import { AUTH_PREFIX_PATH as Pr, CONCEPTS_PREFIX_PATH as
|
|
114
|
+
import { NAV_ITEM_TYPE_COLLAPSE as cr, NAV_ITEM_TYPE_ITEM as Tr, NAV_ITEM_TYPE_TITLE as _r } from "./constants/navigation.constant.js";
|
|
115
|
+
import { ADMIN as Ar, USER as Er } from "./constants/roles.constant.js";
|
|
116
|
+
import { AUTH_PREFIX_PATH as Pr, CONCEPTS_PREFIX_PATH as gr, DASHBOARDS_PREFIX_PATH as Gr, GUIDE_PREFIX_PATH as Or, PAGES_PREFIX_PATH as Rr, ROOT as Dr, UI_COMPONENTS_PREFIX_PATH as Lr } from "./constants/route.constant.js";
|
|
117
117
|
import { DIR_LTR as Nr, DIR_RTL as vr, HEADER_HEIGHT as Fr, LAYOUT_BLANK as Mr, LAYOUT_COLLAPSIBLE_SIDE as br, LAYOUT_CONTENT_OVERLAY as Ur, LAYOUT_FRAMELESS_SIDE as yr, LAYOUT_STACKED_SIDE as Hr, LAYOUT_TOP_BAR_CLASSIC as kr, LOGO_X_GUTTER as Br, MODE_DARK as Yr, MODE_LIGHT as wr, PAGE_CONTAINER_GUTTER_X as Vr, PAGE_CONTAINER_GUTTER_Y as Kr, SIDE_NAV_COLLAPSED_WIDTH as Xr, SIDE_NAV_CONTENT_GUTTER as jr, SIDE_NAV_WIDTH as Wr, SPLITTED_SIDE_NAV_MINI_WIDTH as Qr, STACKED_SIDE_NAV_SECONDARY_WIDTH as zr, THEME_ENUM as qr } from "./constants/theme.constant.js";
|
|
118
118
|
import { default as Zr } from "./services/ApiService.js";
|
|
119
119
|
import { apiGetPricingPlans as ea, apiGetRolesPermissionsRoles as oa, apiGetRolesPermissionsUsers as ta, apiGetSettingsBilling as ra, apiGetSettingsIntergration as aa, apiGetSettingsNotification as fa, apiGetSettingsProfile as pa } from "./services/AccontsService.js";
|
|
120
120
|
import { apiGetChatHistory as ma, apiGetImages as la, apiPostChat as ua, apiPostImages as ia } from "./services/AiService.js";
|
|
121
|
-
import { apiForgotPassword as xa, apiResetPassword as na, apiSignIn as Sa, apiSignOut as
|
|
122
|
-
import { apiGetCalendar as
|
|
123
|
-
import { apiGetChats as Ea, apiGetContactDetails as Ia, apiGetContacts as Pa, apiGetConversation as
|
|
124
|
-
import { apiGetNotificationCount as
|
|
121
|
+
import { apiForgotPassword as xa, apiResetPassword as na, apiSignIn as Sa, apiSignOut as ca, apiSignUp as Ta } from "./services/AuthService.js";
|
|
122
|
+
import { apiGetCalendar as Ca } from "./services/CalendarService.js";
|
|
123
|
+
import { apiGetChats as Ea, apiGetContactDetails as Ia, apiGetContacts as Pa, apiGetConversation as ga } from "./services/ChatService.js";
|
|
124
|
+
import { apiGetNotificationCount as Oa, apiGetNotificationList as Ra, apiGetSearchResult as Da } from "./services/CommonService.js";
|
|
125
125
|
import { apiGetCustomer as ha, apiGetCustomerLog as Na, apiGetCustomersList as va } from "./services/CustomersService.js";
|
|
126
126
|
import { apiGetAnalyticDashboard as Ma, apiGetEcommerceDashboard as ba, apiGetMarketingDashboard as Ua, apiGetProjectDashboard as ya } from "./services/DashboardService.js";
|
|
127
127
|
import { apiGetFiles as ka } from "./services/FileService.js";
|
|
@@ -132,97 +132,98 @@ import { apiGithubOauthSignIn as Ja, apiGoogleOauthSignIn as Za } from "./servic
|
|
|
132
132
|
import { apiGetOrder as ef, apiGetOrderList as of } from "./services/OrderService.js";
|
|
133
133
|
import { apiGetProduct as rf, apiGetProductList as af } from "./services/ProductService.js";
|
|
134
134
|
import { apiGetProject as pf, apiGetProjectMembers as sf, apiGetProjectTask as mf, apiGetProjectTasks as lf, apiGetProjects as uf, apiGetScrumBoards as df, apiPostProject as xf } from "./services/ProjectService.js";
|
|
135
|
-
import { useSessionUser as Sf, useToken as
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import { default as
|
|
141
|
-
import { default as
|
|
142
|
-
import { default as
|
|
143
|
-
import { default as
|
|
144
|
-
import { default as
|
|
145
|
-
import { default as
|
|
146
|
-
import { default as
|
|
147
|
-
import { default as
|
|
148
|
-
import { default as
|
|
149
|
-
import { default as
|
|
150
|
-
import { default as
|
|
151
|
-
import { default as
|
|
152
|
-
import { default as
|
|
153
|
-
import { default as
|
|
154
|
-
import { default as
|
|
155
|
-
import { default as
|
|
156
|
-
import { default as
|
|
157
|
-
import { default as
|
|
158
|
-
import { default as
|
|
159
|
-
import { default as
|
|
160
|
-
import { default as
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
171
|
-
import { default as
|
|
172
|
-
import { default as
|
|
173
|
-
import { default as
|
|
174
|
-
import { default as
|
|
175
|
-
import { default as
|
|
176
|
-
import { default as
|
|
177
|
-
import { default as
|
|
178
|
-
import { default as
|
|
179
|
-
import { default as
|
|
180
|
-
import { default as
|
|
181
|
-
import { default as
|
|
182
|
-
import { default as
|
|
183
|
-
import { default as
|
|
184
|
-
import { default as
|
|
185
|
-
import { default as
|
|
186
|
-
import { default as
|
|
187
|
-
import { default as
|
|
188
|
-
import { default as
|
|
189
|
-
import { default as
|
|
190
|
-
import { default as
|
|
191
|
-
import { default as
|
|
192
|
-
import { default as
|
|
193
|
-
import { default as
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
135
|
+
import { useSessionUser as Sf, useToken as cf } from "./store/authStore.js";
|
|
136
|
+
import { getCurrentMicrofrontendId as _f, useAutoLoadingConfig as Cf, useLoadingConfigForMicrofrontend as Af, useLoadingConfigStore as Ef } from "./store/loadingConfigStore.js";
|
|
137
|
+
import { useLocaleStore as Pf } from "./store/localeStore.js";
|
|
138
|
+
import { useRouteKeyStore as Gf } from "./store/routeKeyStore.js";
|
|
139
|
+
import { useThemeStore as Rf } from "./store/themeStore.js";
|
|
140
|
+
import { default as Lf } from "./utils/classNames.js";
|
|
141
|
+
import { default as Nf } from "./utils/acronym.js";
|
|
142
|
+
import { default as Ff } from "./utils/cookiesStorage.js";
|
|
143
|
+
import { default as bf } from "./utils/fileSizeUnit.js";
|
|
144
|
+
import { default as yf } from "./utils/isLastChild.js";
|
|
145
|
+
import { default as kf } from "./utils/hoc/withHeaderItem.js";
|
|
146
|
+
import { default as Yf } from "./utils/hooks/useAuthority.js";
|
|
147
|
+
import { default as Vf } from "./utils/hooks/useDarkMode.js";
|
|
148
|
+
import { default as Xf } from "./utils/hooks/useDebounce.js";
|
|
149
|
+
import { default as Wf } from "./utils/hooks/useDirection.js";
|
|
150
|
+
import { default as zf } from "./utils/hooks/useInfiniteScroll.js";
|
|
151
|
+
import { default as Jf } from "./utils/hooks/useInterval .js";
|
|
152
|
+
import { default as $f } from "./utils/hooks/useLayout.js";
|
|
153
|
+
import { default as op } from "./utils/hooks/useLayoutGap.js";
|
|
154
|
+
import { default as rp } from "./utils/hooks/useLocale.js";
|
|
155
|
+
import { default as fp } from "./utils/hooks/useMenuActive.js";
|
|
156
|
+
import { default as sp } from "./utils/hooks/useQuery.js";
|
|
157
|
+
import { default as lp } from "./utils/hooks/useRandomBgColor.js";
|
|
158
|
+
import { default as ip } from "./utils/hooks/useResponsive.js";
|
|
159
|
+
import { default as xp } from "./utils/hooks/useScrollTop.js";
|
|
160
|
+
import { default as Sp } from "./utils/hooks/useThemeSchema.js";
|
|
161
|
+
import { default as Tp } from "./utils/hooks/useTimeOutMessage.js";
|
|
162
|
+
import { useTranslation as Cp } from "./utils/hooks/useTranslation.js";
|
|
163
|
+
import { default as Ep } from "./views/Views.js";
|
|
164
|
+
import { authPlaceholder as Pp } from "./views/auth/index.js";
|
|
165
|
+
import { authDemoPlaceholder as Gp } from "./views/auth-demo/index.js";
|
|
166
|
+
import { conceptsPlaceholder as Rp } from "./views/concepts/index.js";
|
|
167
|
+
import { dashboardsPlaceholder as Lp } from "./views/dashboards/index.js";
|
|
168
|
+
import { guidePlaceholder as Np } from "./views/guide/index.js";
|
|
169
|
+
import { uiComponentsPlaceholder as Fp } from "./views/ui-components/index.js";
|
|
170
|
+
import { othersPlaceholder as bp } from "./views/others/index.js";
|
|
171
|
+
import { default as yp } from "./auth/useAuth.js";
|
|
172
|
+
import { default as kp } from "./auth/AuthProvider.js";
|
|
173
|
+
import { default as Yp } from "./assets/svg/BlankSvg.js";
|
|
174
|
+
import { default as Vp } from "./assets/svg/CollapsibleSideSvg.js";
|
|
175
|
+
import { default as Xp } from "./assets/svg/ContentOverlaySvg.js";
|
|
176
|
+
import { default as Wp } from "./assets/svg/FileNotFound.js";
|
|
177
|
+
import { default as zp } from "./assets/svg/FrameLessSideSvg.js";
|
|
178
|
+
import { default as Jp } from "./assets/svg/NoDataFound.js";
|
|
179
|
+
import { default as $p } from "./assets/svg/NoMedia.js";
|
|
180
|
+
import { default as os } from "./assets/svg/NoProductFound.js";
|
|
181
|
+
import { default as rs } from "./assets/svg/NoUserFound.js";
|
|
182
|
+
import { default as fs } from "./assets/svg/SpaceSignBoard.js";
|
|
183
|
+
import { default as ss } from "./assets/svg/StackedSideSvg.js";
|
|
184
|
+
import { default as ls } from "./assets/svg/StartConverstation.js";
|
|
185
|
+
import { default as is } from "./assets/svg/TopBarClassicSvg.js";
|
|
186
|
+
import { default as xs } from "./assets/svg/UploadMedia.js";
|
|
187
|
+
import { default as Ss } from "./assets/svg/files/FileDoc.js";
|
|
188
|
+
import { default as Ts } from "./assets/svg/files/FileFigma.js";
|
|
189
|
+
import { default as Cs } from "./assets/svg/files/FileImage.js";
|
|
190
|
+
import { default as Es } from "./assets/svg/files/FilePdf.js";
|
|
191
|
+
import { default as Ps } from "./assets/svg/files/FilePpt.js";
|
|
192
|
+
import { default as Gs } from "./assets/svg/files/FileXls.js";
|
|
193
|
+
import { default as Rs } from "./assets/svg/files/Folder.js";
|
|
194
|
+
import { default as Ls } from "./assets/svg/patterns/GridSvg.js";
|
|
195
|
+
import { componentStyles as Ns } from "./assets/styles/components/index.js";
|
|
196
|
+
import { docsStyles as Fs } from "./assets/styles/docs/index.js";
|
|
197
|
+
import { tailwindStyles as bs } from "./assets/styles/tailwind/index.js";
|
|
198
|
+
import { templateStyles as ys } from "./assets/styles/template/index.js";
|
|
199
|
+
import { vendorStyles as ks } from "./assets/styles/vendors/index.js";
|
|
200
|
+
import { appCss as Ys } from "./assets/styles/index.js";
|
|
201
|
+
import { sharedDocs as Vs } from "./assets/markdown/shared/index.js";
|
|
202
|
+
import { uiComponentsDocs as Xs } from "./assets/markdown/ui-components/index.js";
|
|
203
|
+
import { utilsDocs as Ws } from "./assets/markdown/utils/index.js";
|
|
204
|
+
import { dateLocales as zs } from "./locales/locales.js";
|
|
204
205
|
export {
|
|
205
|
-
|
|
206
|
+
Ar as ADMIN,
|
|
206
207
|
$t as APP_NAME,
|
|
207
208
|
Pr as AUTH_PREFIX_PATH,
|
|
208
|
-
|
|
209
|
+
C as AbbreviateNumber,
|
|
209
210
|
E as ActionLink,
|
|
210
211
|
dt as ActivityAvatar,
|
|
211
212
|
nt as ActivityEvent,
|
|
212
213
|
P as AdaptiveCard,
|
|
213
|
-
|
|
214
|
+
G as Affix,
|
|
214
215
|
Ne as Alert,
|
|
215
|
-
|
|
216
|
+
ct as AllRoutes,
|
|
216
217
|
Zr as ApiService,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
_t as AppRoute,
|
|
219
|
+
kp as AuthProvider,
|
|
220
|
+
R as AuthorityCheck,
|
|
221
|
+
At as AuthorityGuard,
|
|
221
222
|
L as AutoComplete,
|
|
222
223
|
Fe as Avatar,
|
|
223
224
|
be as Badge,
|
|
224
225
|
at as BaseView,
|
|
225
|
-
|
|
226
|
+
Yp as BlankSvg,
|
|
226
227
|
ye as Button,
|
|
227
228
|
tr as COLORS,
|
|
228
229
|
rr as COLOR_1,
|
|
@@ -235,26 +236,26 @@ export {
|
|
|
235
236
|
ur as COLOR_7,
|
|
236
237
|
ir as COLOR_8,
|
|
237
238
|
dr as COLOR_9,
|
|
238
|
-
|
|
239
|
+
gr as CONCEPTS_PREFIX_PATH,
|
|
239
240
|
ke as Calendar,
|
|
240
241
|
N as CalendarView,
|
|
241
242
|
Ye as Card,
|
|
242
243
|
F as Chart,
|
|
243
244
|
Ve as Checkbox,
|
|
244
|
-
|
|
245
|
+
Vp as CollapsibleSideSvg,
|
|
245
246
|
Xe as ConfigProvider,
|
|
246
247
|
b as ConfirmDialog,
|
|
247
248
|
y as Container,
|
|
248
|
-
|
|
249
|
+
Xp as ContentOverlaySvg,
|
|
249
250
|
pt as CreditCardDialog,
|
|
250
251
|
k as CustomFormatInput,
|
|
251
|
-
|
|
252
|
+
Gr as DASHBOARDS_PREFIX_PATH,
|
|
252
253
|
Nr as DIR_LTR,
|
|
253
254
|
vr as DIR_RTL,
|
|
254
255
|
Y as DataTable,
|
|
255
256
|
We as DatePicker,
|
|
256
257
|
V as DebounceInput,
|
|
257
|
-
|
|
258
|
+
Ot as DemoBoxContent,
|
|
258
259
|
Dt as DemoComponentApi,
|
|
259
260
|
ht as DemoLayout,
|
|
260
261
|
vt as DemoTitleSection,
|
|
@@ -263,22 +264,22 @@ export {
|
|
|
263
264
|
X as DoubleSidedImage,
|
|
264
265
|
Je as Drawer,
|
|
265
266
|
$e as Dropdown,
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
Ss as FileDoc,
|
|
268
|
+
Ts as FileFigma,
|
|
268
269
|
mt as FileIcon,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
Cs as FileImage,
|
|
271
|
+
Wp as FileNotFound,
|
|
272
|
+
Es as FilePdf,
|
|
273
|
+
Ps as FilePpt,
|
|
274
|
+
Gs as FileXls,
|
|
275
|
+
Rs as Folder,
|
|
275
276
|
oo as Form,
|
|
276
277
|
fo as FormContainer,
|
|
277
278
|
ro as FormItem,
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
zp as FrameLessSideSvg,
|
|
280
|
+
Or as GUIDE_PREFIX_PATH,
|
|
280
281
|
W as GanttChart,
|
|
281
|
-
|
|
282
|
+
Ls as GridSvg,
|
|
282
283
|
z as GrowShrinkValue,
|
|
283
284
|
Fr as HEADER_HEIGHT,
|
|
284
285
|
J as IconText,
|
|
@@ -292,39 +293,39 @@ export {
|
|
|
292
293
|
Hr as LAYOUT_STACKED_SIDE,
|
|
293
294
|
kr as LAYOUT_TOP_BAR_CLASSIC,
|
|
294
295
|
Br as LOGO_X_GUTTER,
|
|
295
|
-
|
|
296
|
+
T as Layouts,
|
|
296
297
|
Yr as MODE_DARK,
|
|
297
298
|
wr as MODE_LIGHT,
|
|
298
299
|
oe as Masonry,
|
|
299
300
|
no as Menu,
|
|
300
|
-
|
|
301
|
+
co as MenuItem,
|
|
301
302
|
S as MobileNav,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
cr as NAV_ITEM_TYPE_COLLAPSE,
|
|
304
|
+
Tr as NAV_ITEM_TYPE_ITEM,
|
|
305
|
+
_r as NAV_ITEM_TYPE_TITLE,
|
|
305
306
|
re as NavToggle,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
307
|
+
Jp as NoDataFound,
|
|
308
|
+
$p as NoMedia,
|
|
309
|
+
os as NoProductFound,
|
|
310
|
+
rs as NoUserFound,
|
|
311
|
+
_o as Notification,
|
|
311
312
|
fe as NumericInput,
|
|
312
313
|
se as OtpInput,
|
|
313
|
-
|
|
314
|
+
Rr as PAGES_PREFIX_PATH,
|
|
314
315
|
Vr as PAGE_CONTAINER_GUTTER_X,
|
|
315
316
|
Kr as PAGE_CONTAINER_GUTTER_Y,
|
|
316
|
-
|
|
317
|
+
Ao as Pagination,
|
|
317
318
|
le as PasswordInput,
|
|
318
319
|
ie as PatternInput,
|
|
319
320
|
xe as PresetSegmentItemOption,
|
|
320
321
|
Io as Progress,
|
|
321
322
|
It as ProtectedRoute,
|
|
322
|
-
|
|
323
|
+
gt as PublicRoute,
|
|
323
324
|
er as REDIRECT_URL_KEY,
|
|
324
325
|
zt as REQUEST_HEADER_AUTH_KEY,
|
|
325
326
|
Dr as ROOT,
|
|
326
|
-
|
|
327
|
-
|
|
327
|
+
go as Radio,
|
|
328
|
+
Oo as RangeCalendar,
|
|
328
329
|
Se as RichTextEditor,
|
|
329
330
|
Xr as SIDE_NAV_COLLAPSED_WIDTH,
|
|
330
331
|
jr as SIDE_NAV_CONTENT_GUTTER,
|
|
@@ -336,20 +337,20 @@ export {
|
|
|
336
337
|
vo as Select,
|
|
337
338
|
x as SideNav,
|
|
338
339
|
Mo as Skeleton,
|
|
339
|
-
|
|
340
|
+
fs as SpaceSignBoard,
|
|
340
341
|
Uo as Spinner,
|
|
341
|
-
|
|
342
|
-
|
|
342
|
+
ss as StackedSideSvg,
|
|
343
|
+
ls as StartConverstation,
|
|
343
344
|
Ho as Steps,
|
|
344
|
-
|
|
345
|
-
|
|
345
|
+
Te as StickyFooter,
|
|
346
|
+
Ce as StrictModeDroppable,
|
|
346
347
|
Bo as Switcher,
|
|
347
348
|
Ee as SyntaxHighlighter,
|
|
348
349
|
qr as THEME_ENUM,
|
|
349
350
|
qt as TOKEN_NAME_IN_STORAGE,
|
|
350
351
|
Jt as TOKEN_TYPE,
|
|
351
352
|
wo as Table,
|
|
352
|
-
|
|
353
|
+
Re as TableRowSkeleton,
|
|
353
354
|
Ko as Tabs,
|
|
354
355
|
jo as Tag,
|
|
355
356
|
ut as TaskItem,
|
|
@@ -358,23 +359,23 @@ export {
|
|
|
358
359
|
qo as Timeline,
|
|
359
360
|
Pe as ToggleDrawer,
|
|
360
361
|
et as Tooltip,
|
|
361
|
-
|
|
362
|
+
is as TopBarClassicSvg,
|
|
362
363
|
Lr as UI_COMPONENTS_PREFIX_PATH,
|
|
363
364
|
Er as USER,
|
|
364
365
|
tt as Upload,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
xs as UploadMedia,
|
|
367
|
+
Ge as UsersAvatarGroup,
|
|
368
|
+
Ep as Views,
|
|
369
|
+
Nf as acronym,
|
|
369
370
|
xa as apiForgotPassword,
|
|
370
371
|
Ma as apiGetAnalyticDashboard,
|
|
371
372
|
Ya as apiGetArticleList,
|
|
372
|
-
|
|
373
|
+
Ca as apiGetCalendar,
|
|
373
374
|
ma as apiGetChatHistory,
|
|
374
375
|
Ea as apiGetChats,
|
|
375
376
|
Ia as apiGetContactDetails,
|
|
376
377
|
Pa as apiGetContacts,
|
|
377
|
-
|
|
378
|
+
ga as apiGetConversation,
|
|
378
379
|
ha as apiGetCustomer,
|
|
379
380
|
Na as apiGetCustomerLog,
|
|
380
381
|
va as apiGetCustomersList,
|
|
@@ -385,8 +386,8 @@ export {
|
|
|
385
386
|
Qa as apiGetMail,
|
|
386
387
|
za as apiGetMails,
|
|
387
388
|
Ua as apiGetMarketingDashboard,
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
Oa as apiGetNotificationCount,
|
|
390
|
+
Ra as apiGetNotificationList,
|
|
390
391
|
ef as apiGetOrder,
|
|
391
392
|
of as apiGetOrderList,
|
|
392
393
|
ea as apiGetPricingPlans,
|
|
@@ -416,62 +417,66 @@ export {
|
|
|
416
417
|
xf as apiPostProject,
|
|
417
418
|
na as apiResetPassword,
|
|
418
419
|
Sa as apiSignIn,
|
|
419
|
-
|
|
420
|
-
|
|
420
|
+
ca as apiSignOut,
|
|
421
|
+
Ta as apiSignUp,
|
|
421
422
|
Ut as appConfig,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
Ys as appCss,
|
|
424
|
+
Gp as authDemoPlaceholder,
|
|
425
|
+
Pp as authPlaceholder,
|
|
425
426
|
Bt as chartConfig,
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
427
|
+
Lf as classNames,
|
|
428
|
+
Ns as componentStyles,
|
|
429
|
+
Rp as conceptsPlaceholder,
|
|
430
|
+
Ff as cookiesStorage,
|
|
430
431
|
nr as countryList,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
432
|
+
Lp as dashboardsPlaceholder,
|
|
433
|
+
zs as dateLocales,
|
|
434
|
+
Fs as docsStyles,
|
|
435
|
+
bf as fileSizeUnit,
|
|
435
436
|
wt as firebaseConfig,
|
|
436
|
-
|
|
437
|
+
_f as getCurrentMicrofrontendId,
|
|
438
|
+
Np as guidePlaceholder,
|
|
437
439
|
so as hooks,
|
|
438
|
-
|
|
440
|
+
yf as isLastChild,
|
|
439
441
|
Kt as navigationIconConfig,
|
|
440
|
-
|
|
442
|
+
bp as othersPlaceholder,
|
|
441
443
|
jt as protectedRoutes,
|
|
442
444
|
Wt as publicRoutes,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
445
|
+
Vs as sharedDocs,
|
|
446
|
+
bs as tailwindStyles,
|
|
447
|
+
ys as templateStyles,
|
|
446
448
|
Ht as themeConfig,
|
|
447
449
|
Zo as toast,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
450
|
+
Xs as uiComponentsDocs,
|
|
451
|
+
Fp as uiComponentsPlaceholder,
|
|
452
|
+
yp as useAuth,
|
|
453
|
+
Yf as useAuthority,
|
|
454
|
+
Cf as useAutoLoadingConfig,
|
|
455
|
+
Vf as useDarkMode,
|
|
456
|
+
Xf as useDebounce,
|
|
457
|
+
Wf as useDirection,
|
|
458
|
+
zf as useInfiniteScroll,
|
|
459
|
+
Jf as useInterval,
|
|
460
|
+
$f as useLayout,
|
|
461
|
+
op as useLayoutGap,
|
|
462
|
+
Af as useLoadingConfigForMicrofrontend,
|
|
463
|
+
Ef as useLoadingConfigStore,
|
|
464
|
+
rp as useLocale,
|
|
465
|
+
Pf as useLocaleStore,
|
|
466
|
+
fp as useMenuActive,
|
|
467
|
+
sp as useQuery,
|
|
468
|
+
lp as useRandomBgColor,
|
|
469
|
+
ip as useResponsive,
|
|
470
|
+
Gf as useRouteKeyStore,
|
|
471
|
+
xp as useScrollTop,
|
|
467
472
|
Sf as useSessionUser,
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
473
|
+
Sp as useThemeSchema,
|
|
474
|
+
Rf as useThemeStore,
|
|
475
|
+
Tp as useTimeOutMessage,
|
|
476
|
+
cf as useToken,
|
|
477
|
+
Cp as useTranslation,
|
|
478
|
+
Ws as utilsDocs,
|
|
479
|
+
ks as vendorStyles,
|
|
480
|
+
kf as withHeaderItem
|
|
476
481
|
};
|
|
477
482
|
//# sourceMappingURL=index.js.map
|
package/dist/@ecme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,23 +1,48 @@
|
|
|
1
1
|
import s from "axios";
|
|
2
|
-
import { API_URL as
|
|
2
|
+
import { API_URL as f } from "../../../base/configs/api.config.js";
|
|
3
3
|
import "../../store/index.js";
|
|
4
|
-
import i from "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
4
|
+
import { getCurrentMicrofrontendId as n, useLoadingConfigStore as i } from "../../store/loadingConfigStore.js";
|
|
5
|
+
import d from "./AxiosRequestIntrceptorConfigCallback.js";
|
|
6
|
+
import l from "./AxiosResponseIntrceptorErrorCallback.js";
|
|
7
|
+
import { useThemeStore as a } from "../../store/themeStore.js";
|
|
8
|
+
const g = s.create({
|
|
8
9
|
timeout: 6e4,
|
|
9
|
-
baseURL:
|
|
10
|
+
baseURL: f
|
|
10
11
|
});
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
(
|
|
14
|
-
|
|
12
|
+
let t = 0;
|
|
13
|
+
g.interceptors.request.use(
|
|
14
|
+
(e) => {
|
|
15
|
+
if (t++, t === 1) {
|
|
16
|
+
const o = n();
|
|
17
|
+
i.getState().getGlobalLoadingEnabled(o) && a.getState().setLoading(!0);
|
|
18
|
+
}
|
|
19
|
+
return d(e);
|
|
20
|
+
},
|
|
21
|
+
(e) => {
|
|
22
|
+
if (t = Math.max(0, t - 1), t === 0) {
|
|
23
|
+
const o = n();
|
|
24
|
+
i.getState().getGlobalLoadingEnabled(o) && a.getState().setLoading(!1);
|
|
25
|
+
}
|
|
26
|
+
return Promise.reject(e);
|
|
27
|
+
}
|
|
15
28
|
);
|
|
16
|
-
|
|
17
|
-
(
|
|
18
|
-
|
|
29
|
+
g.interceptors.response.use(
|
|
30
|
+
(e) => {
|
|
31
|
+
if (t = Math.max(0, t - 1), t === 0) {
|
|
32
|
+
const o = n();
|
|
33
|
+
i.getState().getGlobalLoadingEnabled(o) && a.getState().setLoading(!1);
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
},
|
|
37
|
+
(e) => {
|
|
38
|
+
if (t = Math.max(0, t - 1), t === 0) {
|
|
39
|
+
const o = n();
|
|
40
|
+
i.getState().getGlobalLoadingEnabled(o) && a.getState().setLoading(!1);
|
|
41
|
+
}
|
|
42
|
+
return l(e), Promise.reject(e);
|
|
43
|
+
}
|
|
19
44
|
);
|
|
20
45
|
export {
|
|
21
|
-
|
|
46
|
+
g as default
|
|
22
47
|
};
|
|
23
48
|
//# sourceMappingURL=AxiosBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxiosBase.js","sources":["../../../../lib/@ecme/services/axios/AxiosBase.ts"],"sourcesContent":["import type { AxiosError } from \"axios\";\nimport axios from \"axios\";\nimport { API_URL } from \"~/base/configs/api.config\";\nimport { useThemeStore } from \"@/store\";\nimport AxiosRequestIntrceptorConfigCallback from \"./AxiosRequestIntrceptorConfigCallback\";\nimport AxiosResponseIntrceptorErrorCallback from \"./AxiosResponseIntrceptorErrorCallback\";\n\nconst AxiosBase = axios.create({\n timeout: 60000,\n baseURL: API_URL,\n});\n\nlet activeRequests = 0;\n\nAxiosBase.interceptors.request.use(\n (config) => {\n activeRequests++;\n if (activeRequests === 1) {\n useThemeStore.getState().setLoading(true);\n }\n return AxiosRequestIntrceptorConfigCallback(config);\n },\n (error) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n useThemeStore.getState().setLoading(false);\n }\n return Promise.reject(error);\n }\n);\n\nAxiosBase.interceptors.response.use(\n (response) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n useThemeStore.getState().setLoading(false);\n }\n return response;\n },\n (error: AxiosError) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n useThemeStore.getState().setLoading(false);\n }\n AxiosResponseIntrceptorErrorCallback(error);\n return Promise.reject(error);\n }\n);\n\nexport default AxiosBase;\n"],"names":["AxiosBase","axios","API_URL","activeRequests","config","useThemeStore","AxiosRequestIntrceptorConfigCallback","error","response","AxiosResponseIntrceptorErrorCallback"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AxiosBase.js","sources":["../../../../lib/@ecme/services/axios/AxiosBase.ts"],"sourcesContent":["import type { AxiosError } from \"axios\";\nimport axios from \"axios\";\nimport { API_URL } from \"~/base/configs/api.config\";\nimport { useThemeStore } from \"@/store\";\nimport { useLoadingConfigStore, getCurrentMicrofrontendId } from \"@/store/loadingConfigStore\";\nimport AxiosRequestIntrceptorConfigCallback from \"./AxiosRequestIntrceptorConfigCallback\";\nimport AxiosResponseIntrceptorErrorCallback from \"./AxiosResponseIntrceptorErrorCallback\";\n\nconst AxiosBase = axios.create({\n timeout: 60000,\n baseURL: API_URL,\n});\n\nlet activeRequests = 0;\n\nAxiosBase.interceptors.request.use(\n (config) => {\n activeRequests++;\n if (activeRequests === 1) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(true);\n }\n }\n return AxiosRequestIntrceptorConfigCallback(config);\n },\n (error) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n return Promise.reject(error);\n }\n);\n\nAxiosBase.interceptors.response.use(\n (response) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n return response;\n },\n (error: AxiosError) => {\n activeRequests = Math.max(0, activeRequests - 1);\n if (activeRequests === 0) {\n const microfrontendId = getCurrentMicrofrontendId();\n const loadingConfig = useLoadingConfigStore.getState();\n if (loadingConfig.getGlobalLoadingEnabled(microfrontendId)) {\n useThemeStore.getState().setLoading(false);\n }\n }\n AxiosResponseIntrceptorErrorCallback(error);\n return Promise.reject(error);\n }\n);\n\nexport default AxiosBase;\n"],"names":["AxiosBase","axios","API_URL","activeRequests","config","microfrontendId","getCurrentMicrofrontendId","useLoadingConfigStore","useThemeStore","AxiosRequestIntrceptorConfigCallback","error","response","AxiosResponseIntrceptorErrorCallback"],"mappings":";;;;;;;AAQA,MAAMA,IAAYC,EAAM,OAAO;AAAA,EAC7B,SAAS;AAAA,EACT,SAASC;AACX,CAAC;AAED,IAAIC,IAAiB;AAErBH,EAAU,aAAa,QAAQ;AAAA,EAC7B,CAACI,MAAW;AAEV,QADAD,KACIA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAAA;AAExB,MADsBC,EAAsB,SAAA,EAC1B,wBAAwBF,CAAe,KACvDG,EAAc,SAAA,EAAW,WAAW,EAAI;AAAA,IAE5C;AACA,WAAOC,EAAqCL,CAAM;AAAA,EACpD;AAAA,EACA,CAACM,MAAU;AAET,QADAP,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAAA;AAExB,MADsBC,EAAsB,SAAA,EAC1B,wBAAwBF,CAAe,KACvDG,EAAc,SAAA,EAAW,WAAW,EAAK;AAAA,IAE7C;AACA,WAAO,QAAQ,OAAOE,CAAK;AAAA,EAC7B;AACF;AAEAV,EAAU,aAAa,SAAS;AAAA,EAC9B,CAACW,MAAa;AAEZ,QADAR,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAAA;AAExB,MADsBC,EAAsB,SAAA,EAC1B,wBAAwBF,CAAe,KACvDG,EAAc,SAAA,EAAW,WAAW,EAAK;AAAA,IAE7C;AACA,WAAOG;AAAA,EACT;AAAA,EACA,CAACD,MAAsB;AAErB,QADAP,IAAiB,KAAK,IAAI,GAAGA,IAAiB,CAAC,GAC3CA,MAAmB,GAAG;AACxB,YAAME,IAAkBC,EAAA;AAExB,MADsBC,EAAsB,SAAA,EAC1B,wBAAwBF,CAAe,KACvDG,EAAc,SAAA,EAAW,WAAW,EAAK;AAAA,IAE7C;AACA,WAAAI,EAAqCF,CAAK,GACnC,QAAQ,OAAOA,CAAK;AAAA,EAC7B;AACF;"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { useSessionUser as r, useToken as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useSessionUser as r, useToken as t } from "./authStore.js";
|
|
2
|
+
import { getCurrentMicrofrontendId as s, useAutoLoadingConfig as u, useLoadingConfigForMicrofrontend as f, useLoadingConfigStore as i } from "./loadingConfigStore.js";
|
|
3
|
+
import { useLocaleStore as d } from "./localeStore.js";
|
|
4
|
+
import { useRouteKeyStore as p } from "./routeKeyStore.js";
|
|
5
|
+
import { useThemeStore as S } from "./themeStore.js";
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
s as getCurrentMicrofrontendId,
|
|
8
|
+
u as useAutoLoadingConfig,
|
|
9
|
+
f as useLoadingConfigForMicrofrontend,
|
|
10
|
+
i as useLoadingConfigStore,
|
|
11
|
+
d as useLocaleStore,
|
|
12
|
+
p as useRouteKeyStore,
|
|
8
13
|
r as useSessionUser,
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
S as useThemeStore,
|
|
15
|
+
t as useToken
|
|
11
16
|
};
|
|
12
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { create as d } from "zustand";
|
|
2
|
+
import { persist as r } from "zustand/middleware";
|
|
3
|
+
import { useMemo as s } from "react";
|
|
4
|
+
const b = {
|
|
5
|
+
microfrontendConfigs: {}
|
|
6
|
+
}, l = d()(
|
|
7
|
+
r(
|
|
8
|
+
(n, e) => ({
|
|
9
|
+
...b,
|
|
10
|
+
setGlobalLoadingEnabled: (o, i) => n((t) => ({
|
|
11
|
+
microfrontendConfigs: {
|
|
12
|
+
...t.microfrontendConfigs,
|
|
13
|
+
[i]: o
|
|
14
|
+
}
|
|
15
|
+
})),
|
|
16
|
+
enableGlobalLoading: (o) => e().setGlobalLoadingEnabled(!0, o),
|
|
17
|
+
disableGlobalLoading: (o) => e().setGlobalLoadingEnabled(!1, o),
|
|
18
|
+
getGlobalLoadingEnabled: (o) => e().microfrontendConfigs[o] ?? !0
|
|
19
|
+
}),
|
|
20
|
+
{
|
|
21
|
+
name: "loading-config"
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
), g = (n) => {
|
|
25
|
+
const e = l(
|
|
26
|
+
(a) => a.microfrontendConfigs[n] ?? !0
|
|
27
|
+
), o = l((a) => a.setGlobalLoadingEnabled), i = l((a) => a.enableGlobalLoading), t = l((a) => a.disableGlobalLoading);
|
|
28
|
+
return s(() => ({
|
|
29
|
+
globalLoadingEnabled: e,
|
|
30
|
+
setGlobalLoadingEnabled: (a) => o(a, n),
|
|
31
|
+
enableGlobalLoading: () => i(n),
|
|
32
|
+
disableGlobalLoading: () => t(n)
|
|
33
|
+
}), [e, o, i, t, n]);
|
|
34
|
+
}, c = () => {
|
|
35
|
+
if (typeof window < "u") {
|
|
36
|
+
const n = window.location.hostname, e = window.location.pathname;
|
|
37
|
+
if (n.includes("vendas") || e.includes("/vendas")) return "vendas";
|
|
38
|
+
if (n.includes("estoque") || e.includes("/estoque")) return "estoque";
|
|
39
|
+
if (n.includes("financeiro") || e.includes("/financeiro")) return "financeiro";
|
|
40
|
+
const o = e.split("/").filter(Boolean);
|
|
41
|
+
if (o.length > 0)
|
|
42
|
+
return o[0];
|
|
43
|
+
}
|
|
44
|
+
return "default";
|
|
45
|
+
}, m = () => {
|
|
46
|
+
const n = s(() => c(), []);
|
|
47
|
+
return g(n);
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
c as getCurrentMicrofrontendId,
|
|
51
|
+
m as useAutoLoadingConfig,
|
|
52
|
+
g as useLoadingConfigForMicrofrontend,
|
|
53
|
+
l as useLoadingConfigStore
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=loadingConfigStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadingConfigStore.js","sources":["../../../lib/@ecme/store/loadingConfigStore.ts"],"sourcesContent":["import { create } from \"zustand\";\nimport { persist } from \"zustand/middleware\";\nimport { useMemo } from \"react\";\n\n// Configurações por microfrontend\ninterface MicrofrontendLoadingConfig {\n [microfrontendId: string]: boolean;\n}\n\ninterface LoadingConfigState {\n microfrontendConfigs: MicrofrontendLoadingConfig;\n}\n\ninterface LoadingConfigActions {\n setGlobalLoadingEnabled: (enabled: boolean, microfrontendId: string) => void;\n enableGlobalLoading: (microfrontendId: string) => void;\n disableGlobalLoading: (microfrontendId: string) => void;\n getGlobalLoadingEnabled: (microfrontendId: string) => boolean;\n}\n\nconst initialState: LoadingConfigState = {\n microfrontendConfigs: {},\n};\n\nexport const useLoadingConfigStore = create<LoadingConfigState & LoadingConfigActions>()(\n persist(\n (set, get) => ({\n ...initialState,\n \n setGlobalLoadingEnabled: (enabled, microfrontendId) => \n set((state) => ({\n microfrontendConfigs: {\n ...state.microfrontendConfigs,\n [microfrontendId]: enabled,\n }\n })),\n \n enableGlobalLoading: (microfrontendId) => \n get().setGlobalLoadingEnabled(true, microfrontendId),\n \n disableGlobalLoading: (microfrontendId) => \n get().setGlobalLoadingEnabled(false, microfrontendId),\n \n getGlobalLoadingEnabled: (microfrontendId) => {\n const state = get();\n // Por padrão, retorna true se não foi configurado (compatibilidade)\n return state.microfrontendConfigs[microfrontendId] ?? true;\n },\n }),\n {\n name: \"loading-config\",\n }\n )\n);\n\n// Hook para configuração específica de um microfrontend\nexport const useLoadingConfigForMicrofrontend = (microfrontendId: string) => {\n const globalLoadingEnabled = useLoadingConfigStore((state) => \n state.microfrontendConfigs[microfrontendId] ?? true\n );\n \n // Usa funções estáveis do store diretamente\n const setGlobalLoadingEnabled = useLoadingConfigStore((state) => state.setGlobalLoadingEnabled);\n const enableGlobalLoading = useLoadingConfigStore((state) => state.enableGlobalLoading);\n const disableGlobalLoading = useLoadingConfigStore((state) => state.disableGlobalLoading);\n \n // Memoiza apenas as funções bound\n return useMemo(() => ({\n globalLoadingEnabled,\n setGlobalLoadingEnabled: (enabled: boolean) => setGlobalLoadingEnabled(enabled, microfrontendId),\n enableGlobalLoading: () => enableGlobalLoading(microfrontendId),\n disableGlobalLoading: () => disableGlobalLoading(microfrontendId),\n }), [globalLoadingEnabled, setGlobalLoadingEnabled, enableGlobalLoading, disableGlobalLoading, microfrontendId]);\n};\n\n// Função para detectar automaticamente o microfrontend baseado na URL ou contexto\nexport const getCurrentMicrofrontendId = (): string => {\n // Tenta detectar pelo hostname, pathname ou contexto\n if (typeof window !== 'undefined') {\n const hostname = window.location.hostname;\n const pathname = window.location.pathname;\n \n // Exemplos de detecção - ajuste conforme sua arquitetura\n if (hostname.includes('vendas') || pathname.includes('/vendas')) return 'vendas';\n if (hostname.includes('estoque') || pathname.includes('/estoque')) return 'estoque';\n if (hostname.includes('financeiro') || pathname.includes('/financeiro')) return 'financeiro';\n \n // Tenta extrair do primeiro segmento da URL\n const segments = pathname.split('/').filter(Boolean);\n if (segments.length > 0) {\n return segments[0];\n }\n }\n \n // Fallback para um ID padrão\n return 'default';\n};\n\n// Hook principal com detecção automática (versão corrigida)\nexport const useAutoLoadingConfig = () => {\n // Memoiza o ID para evitar recálculos desnecessários\n const microfrontendId = useMemo(() => getCurrentMicrofrontendId(), []);\n \n // Retorna diretamente a configuração para o microfrontend detectado\n return useLoadingConfigForMicrofrontend(microfrontendId);\n};"],"names":["initialState","useLoadingConfigStore","create","persist","set","get","enabled","microfrontendId","state","useLoadingConfigForMicrofrontend","globalLoadingEnabled","setGlobalLoadingEnabled","enableGlobalLoading","disableGlobalLoading","useMemo","getCurrentMicrofrontendId","hostname","pathname","segments","useAutoLoadingConfig"],"mappings":";;;AAoBA,MAAMA,IAAmC;AAAA,EACvC,sBAAsB,CAAA;AACxB,GAEaC,IAAwBC,EAAA;AAAA,EACnCC;AAAA,IACE,CAACC,GAAKC,OAAS;AAAA,MACb,GAAGL;AAAA,MAEH,yBAAyB,CAACM,GAASC,MACjCH,EAAI,CAACI,OAAW;AAAA,QACd,sBAAsB;AAAA,UACpB,GAAGA,EAAM;AAAA,UACT,CAACD,CAAe,GAAGD;AAAA,QAAA;AAAA,MACrB,EACA;AAAA,MAEJ,qBAAqB,CAACC,MACpBF,IAAM,wBAAwB,IAAME,CAAe;AAAA,MAErD,sBAAsB,CAACA,MACrBF,IAAM,wBAAwB,IAAOE,CAAe;AAAA,MAEtD,yBAAyB,CAACA,MACVF,EAAA,EAED,qBAAqBE,CAAe,KAAK;AAAA,IACxD;AAAA,IAEF;AAAA,MACE,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAGaE,IAAmC,CAACF,MAA4B;AAC3E,QAAMG,IAAuBT;AAAA,IAAsB,CAACO,MAClDA,EAAM,qBAAqBD,CAAe,KAAK;AAAA,EAAA,GAI3CI,IAA0BV,EAAsB,CAACO,MAAUA,EAAM,uBAAuB,GACxFI,IAAsBX,EAAsB,CAACO,MAAUA,EAAM,mBAAmB,GAChFK,IAAuBZ,EAAsB,CAACO,MAAUA,EAAM,oBAAoB;AAGxF,SAAOM,EAAQ,OAAO;AAAA,IACpB,sBAAAJ;AAAA,IACA,yBAAyB,CAACJ,MAAqBK,EAAwBL,GAASC,CAAe;AAAA,IAC/F,qBAAqB,MAAMK,EAAoBL,CAAe;AAAA,IAC9D,sBAAsB,MAAMM,EAAqBN,CAAe;AAAA,EAAA,IAC9D,CAACG,GAAsBC,GAAyBC,GAAqBC,GAAsBN,CAAe,CAAC;AACjH,GAGaQ,IAA4B,MAAc;AAErD,MAAI,OAAO,SAAW,KAAa;AACjC,UAAMC,IAAW,OAAO,SAAS,UAC3BC,IAAW,OAAO,SAAS;AAGjC,QAAID,EAAS,SAAS,QAAQ,KAAKC,EAAS,SAAS,SAAS,EAAG,QAAO;AACxE,QAAID,EAAS,SAAS,SAAS,KAAKC,EAAS,SAAS,UAAU,EAAG,QAAO;AAC1E,QAAID,EAAS,SAAS,YAAY,KAAKC,EAAS,SAAS,aAAa,EAAG,QAAO;AAGhF,UAAMC,IAAWD,EAAS,MAAM,GAAG,EAAE,OAAO,OAAO;AACnD,QAAIC,EAAS,SAAS;AACpB,aAAOA,EAAS,CAAC;AAAA,EAErB;AAGA,SAAO;AACT,GAGaC,IAAuB,MAAM;AAExC,QAAMZ,IAAkBO,EAAQ,MAAMC,EAAA,GAA6B,CAAA,CAAE;AAGrE,SAAON,EAAiCF,CAAe;AACzD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalLoading.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/components/shared/loaders/GlobalLoading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalLoading.d.ts","sourceRoot":"","sources":["../../../../../../lib/@ecme/components/shared/loaders/GlobalLoading.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,aAAa,sDAuBlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxiosBase.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/services/axios/AxiosBase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AxiosBase.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/services/axios/AxiosBase.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS,+BAGb,CAAC;AAuDH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/store/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/store/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface MicrofrontendLoadingConfig {
|
|
2
|
+
[microfrontendId: string]: boolean;
|
|
3
|
+
}
|
|
4
|
+
interface LoadingConfigState {
|
|
5
|
+
microfrontendConfigs: MicrofrontendLoadingConfig;
|
|
6
|
+
}
|
|
7
|
+
interface LoadingConfigActions {
|
|
8
|
+
setGlobalLoadingEnabled: (enabled: boolean, microfrontendId: string) => void;
|
|
9
|
+
enableGlobalLoading: (microfrontendId: string) => void;
|
|
10
|
+
disableGlobalLoading: (microfrontendId: string) => void;
|
|
11
|
+
getGlobalLoadingEnabled: (microfrontendId: string) => boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const useLoadingConfigStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<LoadingConfigState & LoadingConfigActions>, "setState" | "persist"> & {
|
|
14
|
+
setState(partial: (LoadingConfigState & LoadingConfigActions) | Partial<LoadingConfigState & LoadingConfigActions> | ((state: LoadingConfigState & LoadingConfigActions) => (LoadingConfigState & LoadingConfigActions) | Partial<LoadingConfigState & LoadingConfigActions>), replace?: false | undefined): unknown;
|
|
15
|
+
setState(state: (LoadingConfigState & LoadingConfigActions) | ((state: LoadingConfigState & LoadingConfigActions) => LoadingConfigState & LoadingConfigActions), replace: true): unknown;
|
|
16
|
+
persist: {
|
|
17
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<LoadingConfigState & LoadingConfigActions, LoadingConfigState & LoadingConfigActions, unknown>>) => void;
|
|
18
|
+
clearStorage: () => void;
|
|
19
|
+
rehydrate: () => Promise<void> | void;
|
|
20
|
+
hasHydrated: () => boolean;
|
|
21
|
+
onHydrate: (fn: (state: LoadingConfigState & LoadingConfigActions) => void) => () => void;
|
|
22
|
+
onFinishHydration: (fn: (state: LoadingConfigState & LoadingConfigActions) => void) => () => void;
|
|
23
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<LoadingConfigState & LoadingConfigActions, LoadingConfigState & LoadingConfigActions, unknown>>;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
export declare const useLoadingConfigForMicrofrontend: (microfrontendId: string) => {
|
|
27
|
+
globalLoadingEnabled: boolean;
|
|
28
|
+
setGlobalLoadingEnabled: (enabled: boolean) => void;
|
|
29
|
+
enableGlobalLoading: () => void;
|
|
30
|
+
disableGlobalLoading: () => void;
|
|
31
|
+
};
|
|
32
|
+
export declare const getCurrentMicrofrontendId: () => string;
|
|
33
|
+
export declare const useAutoLoadingConfig: () => {
|
|
34
|
+
globalLoadingEnabled: boolean;
|
|
35
|
+
setGlobalLoadingEnabled: (enabled: boolean) => void;
|
|
36
|
+
enableGlobalLoading: () => void;
|
|
37
|
+
disableGlobalLoading: () => void;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=loadingConfigStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadingConfigStore.d.ts","sourceRoot":"","sources":["../../../../lib/@ecme/store/loadingConfigStore.ts"],"names":[],"mappings":"AAKA,UAAU,0BAA0B;IAClC,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC;AAED,UAAU,kBAAkB;IAC1B,oBAAoB,EAAE,0BAA0B,CAAC;CAClD;AAED,UAAU,oBAAoB;IAC5B,uBAAuB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,mBAAmB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,oBAAoB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,uBAAuB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,OAAO,CAAC;CAC/D;AAMD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EA6BjC,CAAC;AAGF,eAAO,MAAM,gCAAgC,GAAI,iBAAiB,MAAM;;uCAajC,OAAO;;;CAI7C,CAAC;AAGF,eAAO,MAAM,yBAAyB,QAAO,MAoB5C,CAAC;AAGF,eAAO,MAAM,oBAAoB;;uCA9BM,OAAO;;;CAoC7C,CAAC"}
|