@elevasis/ui 2.74.0 → 2.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +277 -249
- package/dist/app/index.js +12 -11
- package/dist/auth/index.js +6 -7
- package/dist/charts/index.js +6 -7
- package/dist/{chunk-GO4XJ5D4.js → chunk-2GIHWU5O.js} +4 -3
- package/dist/chunk-2Y6AKWGU.js +42 -0
- package/dist/chunk-3QYRZSHP.js +854 -0
- package/dist/{chunk-CRA7WQZH.js → chunk-3RK2NNJX.js} +1 -1
- package/dist/{chunk-R6NMRXNO.js → chunk-4WLAVUPS.js} +1 -1
- package/dist/{chunk-GPQQGQGT.js → chunk-5R4I2PAN.js} +9 -43
- package/dist/{chunk-R5UGIFYU.js → chunk-5ZK7K7YP.js} +25 -1
- package/dist/chunk-6B4ZPBQJ.js +7 -0
- package/dist/{chunk-ARAFQBNI.js → chunk-73G3I5HJ.js} +160 -160
- package/dist/{chunk-ZWI62BQ6.js → chunk-BFLYDVEN.js} +32 -42
- package/dist/{chunk-W2QRBQQA.js → chunk-BG6PWDJ3.js} +381 -381
- package/dist/{chunk-7ARBBELS.js → chunk-BV2RNLPP.js} +1 -1
- package/dist/{chunk-FA7LMNQO.js → chunk-CTT4RDXE.js} +150 -151
- package/dist/chunk-E2LJ3FRA.js +237 -0
- package/dist/{chunk-E6YGA5WH.js → chunk-EFQLXRYT.js} +1 -2
- package/dist/{chunk-FZSG6M6W.js → chunk-EVNLJHDD.js} +3 -3
- package/dist/{chunk-ZYNVCWDZ.js → chunk-GDQQX5SL.js} +4 -42
- package/dist/{chunk-DCQKTDIG.js → chunk-GFSOQH3N.js} +1 -1
- package/dist/{chunk-3LOKYZJC.js → chunk-H5AEYSVX.js} +164 -3
- package/dist/{chunk-ZFISGKYW.js → chunk-IIEZXXDD.js} +1 -1
- package/dist/{chunk-3QHX4ZKV.js → chunk-INCEZAM3.js} +1 -1
- package/dist/{chunk-O32UQ26A.js → chunk-JZQNUQE4.js} +1 -1
- package/dist/{chunk-6JN2TLV2.js → chunk-K55TU6CC.js} +2023 -1700
- package/dist/chunk-KB5CAN5D.js +33 -0
- package/dist/{chunk-2MRRDF32.js → chunk-KMA4FOSV.js} +5682 -5675
- package/dist/{chunk-HYQOGRWG.js → chunk-KXNRTJAE.js} +1 -1
- package/dist/{chunk-7RJ7P6S6.js → chunk-MGAELVTZ.js} +12 -12
- package/dist/chunk-MKH2KOAO.js +39 -0
- package/dist/{chunk-4MXNHJTA.js → chunk-NAPXMYFW.js} +939 -1570
- package/dist/{chunk-CQPULKKL.js → chunk-OGG3QJYW.js} +14 -5
- package/dist/{chunk-4M2BSHVT.js → chunk-P6HHXMLJ.js} +1 -1
- package/dist/{chunk-WZU3MCKI.js → chunk-QAILYRC2.js} +1 -1
- package/dist/{chunk-RBGVNPA6.js → chunk-RXZ3XDBM.js} +1 -1
- package/dist/{chunk-BA3AZJUR.js → chunk-SPW6UA6B.js} +1 -1
- package/dist/{chunk-RFNJ2PTO.js → chunk-SVZR4GYA.js} +1 -1
- package/dist/{chunk-5A6KCFS5.js → chunk-UEY4AB3R.js} +789 -66
- package/dist/{chunk-LN4UW6S4.js → chunk-UL6MPMKY.js} +1 -1
- package/dist/{chunk-ZFA56VSR.js → chunk-WELN7DDV.js} +2 -2
- package/dist/{chunk-43LC6XAX.js → chunk-WJN2VVVJ.js} +1 -1
- package/dist/{chunk-BRTGCFBH.js → chunk-XODQUPFW.js} +11 -11
- package/dist/components/index.d.ts +181 -34
- package/dist/components/index.js +2249 -1804
- package/dist/components/navigation/index.js +7 -8
- package/dist/features/auth/index.d.ts +35 -3716
- package/dist/features/auth/index.js +9 -10
- package/dist/features/clients/index.js +18 -12
- package/dist/features/content/index.js +34 -31
- package/dist/features/crm/index.css +59 -59
- package/dist/features/crm/index.d.ts +18 -1
- package/dist/features/crm/index.js +13 -11
- package/dist/features/dashboard/index.css +59 -59
- package/dist/features/dashboard/index.js +8 -9
- package/dist/features/delivery/index.d.ts +3 -0
- package/dist/features/delivery/index.js +21 -20
- package/dist/features/knowledge/index.js +6 -7
- package/dist/features/lead-gen/index.css +59 -59
- package/dist/features/lead-gen/index.d.ts +3903 -2
- package/dist/features/lead-gen/index.js +15 -13
- package/dist/features/monitoring/index.js +10 -11
- package/dist/features/monitoring/requests/index.css +59 -59
- package/dist/features/monitoring/requests/index.js +8 -9
- package/dist/features/notes/index.js +4 -4
- package/dist/features/operations/index.css +59 -59
- package/dist/features/operations/index.js +13 -15
- package/dist/features/seo/index.css +659 -0
- package/dist/features/seo/index.d.ts +3962 -1
- package/dist/features/seo/index.js +31 -2
- package/dist/features/settings/index.css +59 -59
- package/dist/features/settings/index.d.ts +87 -3745
- package/dist/features/settings/index.js +10 -12
- package/dist/hooks/access/index.js +6 -7
- package/dist/hooks/delivery/index.css +59 -59
- package/dist/hooks/delivery/index.d.ts +13 -4
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/published.d.ts +69 -27
- package/dist/hooks/published.js +19 -19
- package/dist/initialization/index.d.ts +35 -3716
- package/dist/knowledge/index.js +11 -11
- package/dist/layout/index.d.ts +55 -2
- package/dist/layout/index.js +10 -10
- package/dist/organization/index.css +59 -59
- package/dist/profile/index.d.ts +64 -3716
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.js +6 -7
- package/dist/provider/published.d.ts +3 -0
- package/dist/provider/published.js +6 -7
- package/dist/test-utils/index.js +3 -3
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/types/index.d.ts +312 -251
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +9 -9
- package/src/hooks/README.md +22 -23
- package/dist/chunk-6ZAP3FOA.js +0 -93
- package/dist/chunk-AH52XQB7.js +0 -1
- package/dist/chunk-GDOR57D7.js +0 -165
- package/dist/chunk-MISHPEJX.js +0 -244
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -879
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +0 -2
package/dist/app/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { AppErrorBoundary } from '../chunk-
|
|
2
|
-
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { AppErrorBoundary } from '../chunk-UL6MPMKY.js';
|
|
2
|
+
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-2GIHWU5O.js';
|
|
3
|
+
import '../chunk-SPW6UA6B.js';
|
|
4
|
+
import '../chunk-EFQLXRYT.js';
|
|
5
|
+
import '../chunk-E2LJ3FRA.js';
|
|
6
|
+
import '../chunk-6B4ZPBQJ.js';
|
|
5
7
|
import '../chunk-BZZCNLT6.js';
|
|
6
|
-
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-K55TU6CC.js';
|
|
9
|
+
import '../chunk-4WLAVUPS.js';
|
|
10
|
+
import '../chunk-RXZ3XDBM.js';
|
|
11
|
+
import '../chunk-JZQNUQE4.js';
|
|
10
12
|
import '../chunk-L7BZZ4SI.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-MISHPEJX.js';
|
|
13
|
+
import '../chunk-KXNRTJAE.js';
|
|
13
14
|
import '../chunk-62GVNH5U.js';
|
|
14
15
|
import { useInitialization } from '../chunk-P45GQ3ZW.js';
|
|
15
16
|
import '../chunk-2GIJBHZT.js';
|
|
@@ -20,7 +21,7 @@ import '../chunk-UD657ICS.js';
|
|
|
20
21
|
import '../chunk-DD3CCMCZ.js';
|
|
21
22
|
import '../chunk-RNP5R5I3.js';
|
|
22
23
|
import '../chunk-RT4KRGZT.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-5ZK7K7YP.js';
|
|
24
25
|
import '../chunk-Y6I3IC45.js';
|
|
25
26
|
import '../chunk-6SSQGWK7.js';
|
|
26
27
|
import '../chunk-BI5VDO2K.js';
|
package/dist/auth/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-K55TU6CC.js';
|
|
2
|
+
import '../chunk-4WLAVUPS.js';
|
|
3
|
+
import '../chunk-RXZ3XDBM.js';
|
|
4
|
+
import '../chunk-JZQNUQE4.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-MISHPEJX.js';
|
|
6
|
+
import '../chunk-KXNRTJAE.js';
|
|
8
7
|
import '../chunk-62GVNH5U.js';
|
|
9
8
|
import '../chunk-P45GQ3ZW.js';
|
|
10
9
|
import '../chunk-2GIJBHZT.js';
|
|
@@ -15,7 +14,7 @@ import '../chunk-UD657ICS.js';
|
|
|
15
14
|
import '../chunk-DD3CCMCZ.js';
|
|
16
15
|
import '../chunk-RNP5R5I3.js';
|
|
17
16
|
import '../chunk-RT4KRGZT.js';
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-5ZK7K7YP.js';
|
|
19
18
|
import '../chunk-Y6I3IC45.js';
|
|
20
19
|
import '../chunk-6SSQGWK7.js';
|
|
21
20
|
import '../chunk-BI5VDO2K.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-K55TU6CC.js';
|
|
2
|
+
import '../chunk-4WLAVUPS.js';
|
|
3
|
+
import '../chunk-RXZ3XDBM.js';
|
|
4
|
+
import '../chunk-JZQNUQE4.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-MISHPEJX.js';
|
|
6
|
+
import '../chunk-KXNRTJAE.js';
|
|
8
7
|
import '../chunk-62GVNH5U.js';
|
|
9
8
|
import '../chunk-P45GQ3ZW.js';
|
|
10
9
|
import '../chunk-2GIJBHZT.js';
|
|
@@ -15,7 +14,7 @@ import '../chunk-UD657ICS.js';
|
|
|
15
14
|
import '../chunk-DD3CCMCZ.js';
|
|
16
15
|
import '../chunk-RNP5R5I3.js';
|
|
17
16
|
import '../chunk-RT4KRGZT.js';
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-5ZK7K7YP.js';
|
|
19
18
|
import '../chunk-Y6I3IC45.js';
|
|
20
19
|
import '../chunk-6SSQGWK7.js';
|
|
21
20
|
import '../chunk-BI5VDO2K.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem } from './chunk-
|
|
1
|
+
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
2
|
+
import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, NavigationButton, useAppearance, sidebarGroupChevronSize, sidebarIconInnerSize, SubshellNavItem, useElevasisSystems } from './chunk-K55TU6CC.js';
|
|
3
3
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { createContext, memo, useEffect, useRef, createElement, useContext, useLayoutEffect, useState, Fragment as Fragment$1 } from 'react';
|
|
@@ -290,6 +290,7 @@ var AppTopbarAdjusterWrapper = ({ children }) => {
|
|
|
290
290
|
const padding = `${topbarHeight}px`;
|
|
291
291
|
return /* @__PURE__ */ jsx("div", { style: { paddingTop: padding }, children });
|
|
292
292
|
};
|
|
293
|
+
var AppPageLayout = ({ children, contained = true }) => /* @__PURE__ */ jsx(AppTopbarAdjusterWrapper, { children: /* @__PURE__ */ jsx(AppShellContentContainer, { children: contained ? /* @__PURE__ */ jsx(PageContainer, { children }) : children }) });
|
|
293
294
|
var SidebarContext = createContext(void 0);
|
|
294
295
|
var SIDEBAR_COLLAPSED_KEY = "sidebar-collapsed";
|
|
295
296
|
var SidebarProvider = ({ children }) => {
|
|
@@ -1191,4 +1192,4 @@ function TopbarActions({ isPlatformAdmin, isDev }) {
|
|
|
1191
1192
|
return /* @__PURE__ */ jsx(Fragment, { children: actions.map(({ node, render }) => /* @__PURE__ */ jsx(Fragment$1, { children: render({ node }) }, node.id)) });
|
|
1192
1193
|
}
|
|
1193
1194
|
|
|
1194
|
-
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse };
|
|
1195
|
+
export { AppPageLayout, AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useState, useCallback, useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/hooks/table/useTableSort.ts
|
|
4
|
+
function useTableSort(defaultColumn, defaultDirection = "desc") {
|
|
5
|
+
const [sort, setSort] = useState({ column: defaultColumn, direction: defaultDirection });
|
|
6
|
+
const toggleSort = useCallback((column) => {
|
|
7
|
+
setSort((prev) => {
|
|
8
|
+
if (prev.column === column) {
|
|
9
|
+
return { column, direction: prev.direction === "asc" ? "desc" : "asc" };
|
|
10
|
+
}
|
|
11
|
+
return { column, direction: "desc" };
|
|
12
|
+
});
|
|
13
|
+
}, []);
|
|
14
|
+
return { sort, toggleSort };
|
|
15
|
+
}
|
|
16
|
+
function sortData(data, sort, accessors) {
|
|
17
|
+
const accessor = accessors[sort.column];
|
|
18
|
+
if (!accessor) return data;
|
|
19
|
+
return [...data].sort((a, b) => {
|
|
20
|
+
const aVal = accessor(a);
|
|
21
|
+
const bVal = accessor(b);
|
|
22
|
+
if (aVal == null && bVal == null) return 0;
|
|
23
|
+
if (aVal == null) return 1;
|
|
24
|
+
if (bVal == null) return -1;
|
|
25
|
+
let comparison = 0;
|
|
26
|
+
if (typeof aVal === "string" && typeof bVal === "string") {
|
|
27
|
+
comparison = aVal.localeCompare(bVal);
|
|
28
|
+
} else if (typeof aVal === "number" && typeof bVal === "number") {
|
|
29
|
+
comparison = aVal - bVal;
|
|
30
|
+
} else {
|
|
31
|
+
comparison = String(aVal).localeCompare(String(bVal));
|
|
32
|
+
}
|
|
33
|
+
return sort.direction === "asc" ? comparison : -comparison;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function useSortedData(data, defaultColumn, accessors, defaultDirection = "desc") {
|
|
37
|
+
const { sort, toggleSort } = useTableSort(defaultColumn, defaultDirection);
|
|
38
|
+
const sorted = useMemo(() => sortData(data, sort, accessors), [data, sort, accessors]);
|
|
39
|
+
return { sorted, sort, toggleSort };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { sortData, useSortedData, useTableSort };
|