@zeniai/web-components 4.0.90 → 4.0.91
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/{SessionTimeoutPopup-L3cQDmsu.cjs → SessionTimeoutPopup-B2jaFqpa.cjs} +11509 -11504
- package/dist/{SessionTimeoutPopup-DpcAL8En.js → SessionTimeoutPopup-CnPUFm-X.js} +38769 -38475
- package/dist/appLocale.d.ts +89 -0
- package/dist/cockpit.cjs.js +1409 -883
- package/dist/cockpit.d.ts +2 -0
- package/dist/cockpit.esm.js +8107 -6676
- package/dist/components/cockpit/common/cockpitCommonTypes.d.ts +2 -1
- package/dist/components/cockpit/common/cockpitHelpers.d.ts +1 -1
- package/dist/components/cockpit/common/cockpitTypes.d.ts +3 -3
- package/dist/components/cockpit/creditAgent/CardsTable.d.ts +25 -0
- package/dist/components/cockpit/creditAgent/CreditAgentPage.d.ts +42 -0
- package/dist/components/cockpit/creditAgent/components/CardScoreCell.d.ts +3 -0
- package/dist/components/cockpit/creditAgent/components/CardsTableRow.d.ts +19 -0
- package/dist/components/cockpit/creditAgent/components/KebabMenu.d.ts +5 -0
- package/dist/components/cockpit/creditAgent/components/creditAgentConstants.d.ts +38 -0
- package/dist/components/commentsAndNotes/components/ThreadHelpers.d.ts +1 -1
- package/dist/components/commentsAndNotes/utils/CollaborationTypes.d.ts +1 -1
- package/dist/components/commentsAndNotes/utils/reportThreadRouting.d.ts +5 -0
- package/dist/components/commentsAndNotes/utils/useReportThreadNavigation.d.ts +3 -1
- package/dist/components/detail/dashboardReportPage/DashboardReportPage.d.ts +4 -0
- package/dist/components/detail/dashboardReportPage/DetailPageReportTable.d.ts +5 -2
- package/dist/components/spendManagement/treasury/TreasuryOverviewPage.d.ts +2 -0
- package/dist/context/featureProvider/DynamicConfigNameConstants.d.ts +5 -1
- package/dist/context/featureProvider/FeatureProvider.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/strings/strings.d.ts +89 -0
- package/package.json +5 -5
- package/dist/components/spendManagement/common/SpendManagementListRowLoader.d.ts +0 -14
|
@@ -25,9 +25,9 @@ export interface CockpitGroupColorProps {
|
|
|
25
25
|
borderColor: Color;
|
|
26
26
|
color: Color;
|
|
27
27
|
}
|
|
28
|
-
export declare const COCKPIT_OPTIONS: readonly ["management", "subscription", "portfolio", "onboarding", "audit", "healthMonitor", "taskManager", "aiAccountant"];
|
|
29
|
-
export declare const toCockpitOptionType: (v: string) => "onboarding" | "management" | "subscription" | "portfolio" | "audit" | "healthMonitor" | "taskManager" | "aiAccountant";
|
|
30
|
-
export declare const toCockpitOptionTypeStrict: (v: string) => "onboarding" | "management" | "subscription" | "portfolio" | "audit" | "healthMonitor" | "taskManager" | "aiAccountant" | undefined;
|
|
28
|
+
export declare const COCKPIT_OPTIONS: readonly ["management", "subscription", "portfolio", "onboarding", "audit", "healthMonitor", "taskManager", "aiAccountant", "creditAgent"];
|
|
29
|
+
export declare const toCockpitOptionType: (v: string) => "onboarding" | "management" | "subscription" | "portfolio" | "audit" | "healthMonitor" | "taskManager" | "aiAccountant" | "creditAgent";
|
|
30
|
+
export declare const toCockpitOptionTypeStrict: (v: string) => "onboarding" | "management" | "subscription" | "portfolio" | "audit" | "healthMonitor" | "taskManager" | "aiAccountant" | "creditAgent" | undefined;
|
|
31
31
|
export type CockpitOptionType = ReturnType<typeof toCockpitOptionType>;
|
|
32
32
|
export declare const isKeyOfObject: (key: SubscriptionViewSortKey | PortfolioViewSortKey | ManagementViewSortKey | OnboardingViewSortKey | ReviewCompanyColumnKey | TaskManagerViewSortKey | HealthViewSortKey, object: OnboardingStepsInfo) => key is keyof OnboardingStepsInfo;
|
|
33
33
|
export type DownloadCockpitParams = {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CreditAgentUIState } from '@zeniai/client-epic-state';
|
|
2
|
+
import { CardProfilesActions, CardProfilesData } from './CreditAgentPage';
|
|
3
|
+
export interface CardsTableItemData {
|
|
4
|
+
cardProfilesActions: CardProfilesActions;
|
|
5
|
+
editingNs: string | null;
|
|
6
|
+
editingValue: string;
|
|
7
|
+
rowCount: number;
|
|
8
|
+
rows: CardProfilesData["rows"];
|
|
9
|
+
onEditCancel: () => void;
|
|
10
|
+
onEditChange: (value: string) => void;
|
|
11
|
+
onEditStart: (ns: string, value: string) => void;
|
|
12
|
+
onNoteOpen: (data: {
|
|
13
|
+
companyId: string;
|
|
14
|
+
companyName: string;
|
|
15
|
+
roomId: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
}
|
|
18
|
+
interface CardsTableProps {
|
|
19
|
+
cardProfilesActions: CardProfilesActions;
|
|
20
|
+
cardProfilesData: CardProfilesData;
|
|
21
|
+
uiState: CreditAgentUIState;
|
|
22
|
+
onUIStateChange: (patch: Partial<CreditAgentUIState>) => void;
|
|
23
|
+
}
|
|
24
|
+
export default function CardsTable({ cardProfilesData, cardProfilesActions, onUIStateChange, uiState, }: CardsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CardStatus, CardTenantProfileRow, CreditAgentFocusFilter, CreditAgentMacro, CreditAgentUIState, FetchState } from '@zeniai/client-epic-state';
|
|
2
|
+
import { NavHeaderActions, NavHeaderData } from '../common/navHeader/NavHeader';
|
|
3
|
+
export interface CreditAgentMacroData {
|
|
4
|
+
fetchState: FetchState;
|
|
5
|
+
updateState: FetchState;
|
|
6
|
+
data?: CreditAgentMacro;
|
|
7
|
+
}
|
|
8
|
+
export interface CardProfilesData {
|
|
9
|
+
fetchState: FetchState;
|
|
10
|
+
rows: CardTenantProfileRow[];
|
|
11
|
+
uiState: CreditAgentUIState;
|
|
12
|
+
}
|
|
13
|
+
export interface CardProfilesActions {
|
|
14
|
+
onDownloadReport: () => void;
|
|
15
|
+
onFetch: () => void;
|
|
16
|
+
onUpdateProfile: (tenantEmailDomain: string, tenantId: string, update: {
|
|
17
|
+
cardStatus?: CardStatus;
|
|
18
|
+
creditLimit?: number;
|
|
19
|
+
reason?: string;
|
|
20
|
+
updatedByName?: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
onAnalyse?: (tenantId: string) => void;
|
|
23
|
+
}
|
|
24
|
+
export interface CreditAgentPageData {
|
|
25
|
+
cardProfilesData: CardProfilesData;
|
|
26
|
+
macroData: CreditAgentMacroData;
|
|
27
|
+
}
|
|
28
|
+
export interface CreditAgentPageActions {
|
|
29
|
+
cardProfilesActions: CardProfilesActions;
|
|
30
|
+
onFetchMacro: () => void;
|
|
31
|
+
onResetSaveMacro: () => void;
|
|
32
|
+
onSaveMacro: (instructions: string) => void;
|
|
33
|
+
onUIStateChange: (patch: Partial<CreditAgentUIState>) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface Props {
|
|
36
|
+
creditAgentPageActions: CreditAgentPageActions;
|
|
37
|
+
creditAgentPageData: CreditAgentPageData;
|
|
38
|
+
headerActions: NavHeaderActions;
|
|
39
|
+
headerData: Omit<NavHeaderData, "filterData">;
|
|
40
|
+
}
|
|
41
|
+
export type FocusType = CreditAgentFocusFilter;
|
|
42
|
+
export default function CreditAgentPage({ headerActions, headerData, creditAgentPageData, creditAgentPageActions, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { CardTenantProfileRow } from '@zeniai/client-epic-state';
|
|
3
|
+
import { CardProfilesActions } from '../CreditAgentPage';
|
|
4
|
+
export default function CardsTableRow({ style, row, isLastRow, cardProfilesActions, editingNs, editingValue, onEditStart, onEditChange, onEditCancel, onNoteOpen, }: {
|
|
5
|
+
cardProfilesActions: CardProfilesActions;
|
|
6
|
+
editingNs: string | null;
|
|
7
|
+
editingValue: string;
|
|
8
|
+
isLastRow: boolean;
|
|
9
|
+
row: CardTenantProfileRow;
|
|
10
|
+
style: CSSProperties;
|
|
11
|
+
onEditCancel: () => void;
|
|
12
|
+
onEditChange: (value: string) => void;
|
|
13
|
+
onEditStart: (ns: string, value: string) => void;
|
|
14
|
+
onNoteOpen: (data: {
|
|
15
|
+
companyId: string;
|
|
16
|
+
companyName: string;
|
|
17
|
+
roomId: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { appLocale } from '../../../../appLocale';
|
|
3
|
+
import { Space } from '../../../../designSystem/zeniConstants';
|
|
4
|
+
export declare const creditAgentDimensions: {
|
|
5
|
+
/** Numeric px value for react-window itemSize (= parseInt(Space.sp8)) */
|
|
6
|
+
rowHeightPx: number;
|
|
7
|
+
/** Numeric px value for header height */
|
|
8
|
+
headerHeightPx: number;
|
|
9
|
+
sortIconSize: Space;
|
|
10
|
+
};
|
|
11
|
+
export declare const COLUMN_WIDTH_PX: {
|
|
12
|
+
name: number;
|
|
13
|
+
notes: number;
|
|
14
|
+
status: number;
|
|
15
|
+
creditLimit: number;
|
|
16
|
+
creditScore: number;
|
|
17
|
+
recAmount: number;
|
|
18
|
+
rationale: number;
|
|
19
|
+
reportDate: number;
|
|
20
|
+
updatedBy: number;
|
|
21
|
+
actions: number;
|
|
22
|
+
};
|
|
23
|
+
export declare const TABLE_SKELETON_COL_PCTS: readonly [18, 6, 8, 10, 10, 10, 14, 10, 8, 6];
|
|
24
|
+
export declare const TABLE_SKELETON_ROW_COUNT = 8;
|
|
25
|
+
export type SortColumn = "name" | "status" | "creditLimit" | "creditScore" | "recAmount" | "reportDate" | "updatedBy";
|
|
26
|
+
export interface CreditAgentHeaderItemData {
|
|
27
|
+
justifyContent: CSSProperties["justifyContent"];
|
|
28
|
+
key: SortColumn | "notes" | "rationale" | "actions";
|
|
29
|
+
label: string;
|
|
30
|
+
sortable: boolean;
|
|
31
|
+
width: number;
|
|
32
|
+
growToFill?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const buildHeaderItems: (strings: ReturnType<typeof appLocale.getLocalizedStrings>["cockpit"]["creditAgent"]) => CreditAgentHeaderItemData[];
|
|
35
|
+
export declare const ActionButton: import('@emotion/styled').StyledComponent<{
|
|
36
|
+
theme?: import('@emotion/react').Theme;
|
|
37
|
+
as?: React.ElementType;
|
|
38
|
+
}, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|