@zeniai/web-components 4.4.44-betaAK0 → 4.4.45-betaAK0
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-BHISSH2H.cjs → SessionTimeoutPopup-Bsr96w3Y.cjs} +168 -144
- package/dist/SessionTimeoutPopup-Bsr96w3Y.cjs.map +4 -0
- package/dist/{SessionTimeoutPopup-BDrzUHmk.js → SessionTimeoutPopup-DEfBJy53.js} +232 -215
- package/dist/SessionTimeoutPopup-DEfBJy53.js.map +4 -0
- package/dist/cockpit.cjs.js +2 -2
- package/dist/cockpit.cjs.js.map +1 -1
- package/dist/cockpit.esm.js +2027 -2027
- package/dist/cockpit.esm.js.map +1 -1
- package/dist/components/expenseAutomation/ExpenseAutomationPage.d.ts +1 -0
- package/dist/components/expenseAutomation/sections/jeSchedules/JESchedulePage.d.ts +4 -2
- package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEOneTimeAccrualDetailPage.d.ts +6 -1
- package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEOneTimeAccrualLinkedEntriesButton.d.ts +13 -0
- package/dist/components/expenseAutomation/sections/jeSchedules/common/LinkedRecordsMenuButton.d.ts +30 -0
- package/dist/components/expenseAutomation/sections/jeSchedules/sections/JEExistingSection.d.ts +3 -1
- package/dist/components/expenseAutomation/sections/jeSchedules/sections/JESchedulesSection.d.ts +3 -1
- package/dist/{index-CpEJHEWA.js → index-BfdJ8Cyp.js} +2 -2
- package/dist/{index-CpEJHEWA.js.map → index-BfdJ8Cyp.js.map} +1 -1
- package/dist/{index-BkaY3PZA.cjs → index-a4spysVG.cjs} +2 -2
- package/dist/{index-BkaY3PZA.cjs.map → index-a4spysVG.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
- package/dist/SessionTimeoutPopup-BDrzUHmk.js.map +0 -4
- package/dist/SessionTimeoutPopup-BHISSH2H.cjs.map +0 -4
- package/dist/context/featureProvider/FeatureProvider.test.d.ts +0 -1
|
@@ -112,6 +112,7 @@ export interface ExpenseAutomationPageProps extends MonthEndReportPageProps, Act
|
|
|
112
112
|
* Transaction categorization only: inline right rail (activity or transfer panel body).
|
|
113
113
|
*/
|
|
114
114
|
rightSidePanel?: ReactNode;
|
|
115
|
+
schedulePanelActionBarContent?: ReactNode;
|
|
115
116
|
schedulePanelContent?: ReactNode;
|
|
116
117
|
schedulePendingDiscardConfirmation?: {
|
|
117
118
|
onCancel: () => void;
|
|
@@ -4,7 +4,7 @@ import { ActualMatchingActionProps } from '../actualMatching/actualMatchingTypes
|
|
|
4
4
|
import { FormData as JEScheduleAccountSettingsFormData } from './common/JEScheduleAccountSettings';
|
|
5
5
|
import { JESchedulesSectionProps } from './sections/JESchedulesSection';
|
|
6
6
|
import { NewScheduleSaveFormValues } from './sections/NewJEScheduleSection';
|
|
7
|
-
export interface JESchedulePageProps extends Omit<JESchedulesSectionProps, "jeSchedules" | "isAccountingClassesEnabled" | "isPanelOpen" | "panelContent" | "pendingDiscardConfirmation">, Partial<ActualMatchingActionProps> {
|
|
7
|
+
export interface JESchedulePageProps extends Omit<JESchedulesSectionProps, "jeSchedules" | "isAccountingClassesEnabled" | "isPanelOpen" | "panelActionBarContent" | "panelContent" | "pendingDiscardConfirmation">, Partial<ActualMatchingActionProps> {
|
|
8
8
|
accountListNestedAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
9
9
|
baseTransactionSearchFetchState: FetchStateAndError;
|
|
10
10
|
baseTransactionSearchResults: ScheduleTransaction[];
|
|
@@ -41,6 +41,8 @@ export interface JESchedulePageProps extends Omit<JESchedulesSectionProps, "jeSc
|
|
|
41
41
|
matchPanelContent?: React.ReactNode;
|
|
42
42
|
newAccrualAccountsView?: NewAccrualAccountsView;
|
|
43
43
|
newScheduleLocalData?: NewScheduleSaveFormValues;
|
|
44
|
+
/** Content that the open schedule adds to the panel's action bar, such as its linked-records menu. */
|
|
45
|
+
schedulePanelActionBarContent?: React.ReactNode;
|
|
44
46
|
schedulePanelContent?: React.ReactNode;
|
|
45
47
|
schedulePendingDiscardConfirmation?: {
|
|
46
48
|
onCancel: () => void;
|
|
@@ -59,5 +61,5 @@ export interface JESchedulePageProps extends Omit<JESchedulesSectionProps, "jeSc
|
|
|
59
61
|
setResetJeAccountSettingsForm: (resetFn: () => void) => void;
|
|
60
62
|
onNewScheduleFormChange?: (scheduleType: string, formValues: NewScheduleSaveFormValues) => void;
|
|
61
63
|
}
|
|
62
|
-
declare function JESchedulePage({ accountListNestedAccountHierarchy, baseTransactionSearchFetchState, baseTransactionSearchResults, classListNestedAccountHierarchy, expenseAutomationViewSelector, currentFooterFormId, isAccountingClassesEnabled, isCreatingNewSchedule, newScheduleSaveStatus, allDepreciationAccountListNestedAccountHierarchy, closeMonth, initialScheduleDetailsMode, initialScheduleType, newAccrualAccountsView, onCreateAccruedSchedule, onCreateOneTimeAccrual, setResetJeAccountSettingsForm, vendorSearchAutoCompleteData, onJESchedulesFormDataChange, onPostJESchedule, handleJeScheduleClick, onOneTimeAccrualClick, onOneTimeAccrualFeedback, onJeAccountSettingsChange, onSaveJeAccountSettingsClick, onSaveSchedule, onScheduleTypeChange, onSearchBaseTransaction, onViewTransaction, newScheduleLocalData, initialSelectedBaseTransaction, isAccrualEnabled, onNewScheduleFormChange, ignoreRecommendedJeSchedule, vendorSearchAutoCompleteActions, isMatchPanelOpen, isSchedulePanelOpen, matchPanelContent, schedulePanelContent, schedulePendingDiscardConfirmation, setCurrentFooterFormId, setIsCreatingNewSchedule, setIsJeAccountSettingsOpened, onRevertJeSchedule, onToggleCreatedGroupCollapsed, onTogglePendingGroupCollapsed, onUpdateJEScheduleTypeFilter, onUpdateJESchedulesUIState, onClearMatchNewModal, onCloseMatchNewModal, onIgnoreMatchSuggestion, onMatchAndReverse, onOpenBill, onOpenMatch, onOpenMatchNewModal, onSearchMatchAccruals, onSearchMatchTransactions, onUndoReversal, onUpdateActualMatchingUIState, }: Readonly<JESchedulePageProps>): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare function JESchedulePage({ accountListNestedAccountHierarchy, baseTransactionSearchFetchState, baseTransactionSearchResults, classListNestedAccountHierarchy, expenseAutomationViewSelector, currentFooterFormId, isAccountingClassesEnabled, isCreatingNewSchedule, newScheduleSaveStatus, allDepreciationAccountListNestedAccountHierarchy, closeMonth, initialScheduleDetailsMode, initialScheduleType, newAccrualAccountsView, onCreateAccruedSchedule, onCreateOneTimeAccrual, setResetJeAccountSettingsForm, vendorSearchAutoCompleteData, onJESchedulesFormDataChange, onPostJESchedule, handleJeScheduleClick, onOneTimeAccrualClick, onOneTimeAccrualFeedback, onJeAccountSettingsChange, onSaveJeAccountSettingsClick, onSaveSchedule, onScheduleTypeChange, onSearchBaseTransaction, onViewTransaction, newScheduleLocalData, initialSelectedBaseTransaction, isAccrualEnabled, onNewScheduleFormChange, ignoreRecommendedJeSchedule, vendorSearchAutoCompleteActions, isMatchPanelOpen, isSchedulePanelOpen, matchPanelContent, schedulePanelActionBarContent, schedulePanelContent, schedulePendingDiscardConfirmation, setCurrentFooterFormId, setIsCreatingNewSchedule, setIsJeAccountSettingsOpened, onRevertJeSchedule, onToggleCreatedGroupCollapsed, onTogglePendingGroupCollapsed, onUpdateJEScheduleTypeFilter, onUpdateJESchedulesUIState, onClearMatchNewModal, onCloseMatchNewModal, onIgnoreMatchSuggestion, onMatchAndReverse, onOpenBill, onOpenMatch, onOpenMatchNewModal, onSearchMatchAccruals, onSearchMatchTransactions, onUndoReversal, onUpdateActualMatchingUIState, }: Readonly<JESchedulePageProps>): import("react/jsx-runtime").JSX.Element;
|
|
63
65
|
export default JESchedulePage;
|
|
@@ -24,6 +24,11 @@ export interface JEOneTimeAccrualDetailPageProps {
|
|
|
24
24
|
onNavigateBack: () => void;
|
|
25
25
|
onRevert: (reason: OneTimeAccrualRevertReasonType, note?: string) => void;
|
|
26
26
|
onSkip: (reason: OneTimeAccrualIgnoreReasonType, note?: string) => void;
|
|
27
|
+
/** Opens a posted Accrual or Reversal JE. Absent leaves the nav bar without the links menu. */
|
|
28
|
+
onOpenJournalEntry?: (transaction: {
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}) => void;
|
|
27
32
|
}
|
|
28
33
|
/**
|
|
29
34
|
* A single one-time accrual, with the two decisions a human makes about it: post it, or skip the
|
|
@@ -32,5 +37,5 @@ export interface JEOneTimeAccrualDetailPageProps {
|
|
|
32
37
|
* The accrual arrives as a prop. The host resolves it from the store the list fills, falling back
|
|
33
38
|
* to a by-id fetch on a cold load, so this page itself never fetches.
|
|
34
39
|
*/
|
|
35
|
-
declare const JEOneTimeAccrualDetailPage: ({ accrual, actionFetchState, isAccountingClassesEnabled, isRenderedInPanel, localData, newAccrualAccountsView, onAccrualFormChange, onAccrualFormClear, onApproveAndPost, onNavigateBack, onRevert, onSkip, }: Readonly<JEOneTimeAccrualDetailPageProps>) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare const JEOneTimeAccrualDetailPage: ({ accrual, actionFetchState, isAccountingClassesEnabled, isRenderedInPanel, localData, newAccrualAccountsView, onAccrualFormChange, onAccrualFormClear, onApproveAndPost, onNavigateBack, onOpenJournalEntry, onRevert, onSkip, }: Readonly<JEOneTimeAccrualDetailPageProps>) => import("react/jsx-runtime").JSX.Element;
|
|
36
41
|
export default JEOneTimeAccrualDetailPage;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JEOneTimeAccrual } from '@zeniai/client-epic-state';
|
|
2
|
+
import { LinkedRecordTarget } from '../common/LinkedRecordsMenuButton';
|
|
3
|
+
interface JEOneTimeAccrualLinkedEntriesButtonProps {
|
|
4
|
+
accrual: JEOneTimeAccrual;
|
|
5
|
+
onOpenJournalEntry: (transaction: LinkedRecordTarget) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The accrual's Accrual JE and Reversal JE, as the Actual Matching detail lists them. An accrual
|
|
9
|
+
* has no source transaction, so there is only the one section. Nothing renders until the accrual
|
|
10
|
+
* JE is posted; until the reversal posts, its row reads as pending and cannot be opened.
|
|
11
|
+
*/
|
|
12
|
+
export default function JEOneTimeAccrualLinkedEntriesButton({ accrual, onOpenJournalEntry, }: Readonly<JEOneTimeAccrualLinkedEntriesButtonProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
package/dist/components/expenseAutomation/sections/jeSchedules/common/LinkedRecordsMenuButton.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface LinkedRecordTarget {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LinkedRecordsMenuItem {
|
|
6
|
+
description: string;
|
|
7
|
+
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
/** Null renders the row disabled: the record is expected but does not exist yet. */
|
|
10
|
+
target: LinkedRecordTarget | null;
|
|
11
|
+
}
|
|
12
|
+
export interface LinkedRecordsMenuSection {
|
|
13
|
+
items: LinkedRecordsMenuItem[];
|
|
14
|
+
key: string;
|
|
15
|
+
title: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LinkedRecordsMenuButtonProps {
|
|
18
|
+
buttonTestId: string;
|
|
19
|
+
/** Tooltip and aria-label of the icon button. */
|
|
20
|
+
label: string;
|
|
21
|
+
menuTestId: string;
|
|
22
|
+
sections: LinkedRecordsMenuSection[];
|
|
23
|
+
onOpenRecord: (target: LinkedRecordTarget) => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The open-link icon in a detail page's action bar, with a popover listing the records the page
|
|
27
|
+
* links to, grouped into collapsible sections. Shared by the Actual Matching match detail and the
|
|
28
|
+
* one-time accrual detail so the two menus cannot drift apart.
|
|
29
|
+
*/
|
|
30
|
+
export default function LinkedRecordsMenuButton({ buttonTestId, label, menuTestId, sections, onOpenRecord, }: Readonly<LinkedRecordsMenuButtonProps>): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/expenseAutomation/sections/jeSchedules/sections/JEExistingSection.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface JEExistingSectionProps {
|
|
|
14
14
|
* There is no full-view flag: expanding leaves the panel for the schedule's own page.
|
|
15
15
|
*/
|
|
16
16
|
isPanelOpen?: boolean;
|
|
17
|
+
/** Extra controls for the panel's action bar, ahead of its expand and close buttons. */
|
|
18
|
+
panelActionBarContent?: React.ReactNode;
|
|
17
19
|
panelContent?: React.ReactNode;
|
|
18
20
|
pendingDiscardConfirmation?: {
|
|
19
21
|
onCancel: () => void;
|
|
@@ -28,5 +30,5 @@ export interface JEExistingSectionProps {
|
|
|
28
30
|
onUpdateJEScheduleTypeFilter: (filter: ScheduleTypes | null) => void;
|
|
29
31
|
setCurrentFooterFormId: (formId: FooterFormIdType) => void;
|
|
30
32
|
}
|
|
31
|
-
declare function JEExistingSection({ isAccountingClassesEnabled, jeSchedules, isPanelOpen, panelContent, pendingDiscardConfirmation, vendorSearchAutoCompleteActions, vendorSearchAutoCompleteData, handleJeScheduleClick, onOneTimeAccrualClick, onOneTimeAccrualFeedback, ignoreRecommendedJeSchedule, onJESchedulesFormDataChange, onPostJESchedule, onUpdateJEScheduleTypeFilter, }: Readonly<JEExistingSectionProps>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function JEExistingSection({ isAccountingClassesEnabled, jeSchedules, isPanelOpen, panelActionBarContent, panelContent, pendingDiscardConfirmation, vendorSearchAutoCompleteActions, vendorSearchAutoCompleteData, handleJeScheduleClick, onOneTimeAccrualClick, onOneTimeAccrualFeedback, ignoreRecommendedJeSchedule, onJESchedulesFormDataChange, onPostJESchedule, onUpdateJEScheduleTypeFilter, }: Readonly<JEExistingSectionProps>): import("react/jsx-runtime").JSX.Element;
|
|
32
34
|
export default JEExistingSection;
|
package/dist/components/expenseAutomation/sections/jeSchedules/sections/JESchedulesSection.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface JESchedulesSectionProps {
|
|
|
14
14
|
* There is no full-view flag: expanding leaves the panel for the schedule's own page.
|
|
15
15
|
*/
|
|
16
16
|
isPanelOpen?: boolean;
|
|
17
|
+
/** Extra controls for the panel's action bar, ahead of its expand and close buttons. */
|
|
18
|
+
panelActionBarContent?: React.ReactNode;
|
|
17
19
|
panelContent?: React.ReactNode;
|
|
18
20
|
pendingDiscardConfirmation?: {
|
|
19
21
|
onCancel: () => void;
|
|
@@ -33,5 +35,5 @@ export interface JESchedulesSectionProps {
|
|
|
33
35
|
onConfirmCategoryRecommendation?: (jeScheduleTransactionKey: JEScheduleTransactionKey, recommendedCategoryId: ID) => void;
|
|
34
36
|
onRevertJeSchedule?: (jeScheduleId: ID, jeScheduleTransactionKey: JEScheduleKey | JEScheduleTransactionKey, jeScheduleType: ScheduleTypes, reason: JEAccrualFeedbackReason, note?: string) => void;
|
|
35
37
|
}
|
|
36
|
-
declare function JESchedulesSection({ isAccountingClassesEnabled, jeSchedules, isPanelOpen, panelContent, pendingDiscardConfirmation, vendorSearchAutoCompleteData, handleJeScheduleClick, onOneTimeAccrualClick, onOneTimeAccrualFeedback, onConfirmCategoryRecommendation, onJESchedulesFormDataChange, onPostJESchedule, onRevertJeSchedule, ignoreRecommendedJeSchedule, onUpdateJESchedulesUIState, onTogglePendingGroupCollapsed, onToggleCreatedGroupCollapsed, onUpdateJEScheduleTypeFilter, vendorSearchAutoCompleteActions, setCurrentFooterFormId, }: Readonly<JESchedulesSectionProps>): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function JESchedulesSection({ isAccountingClassesEnabled, jeSchedules, isPanelOpen, panelActionBarContent, panelContent, pendingDiscardConfirmation, vendorSearchAutoCompleteData, handleJeScheduleClick, onOneTimeAccrualClick, onOneTimeAccrualFeedback, onConfirmCategoryRecommendation, onJESchedulesFormDataChange, onPostJESchedule, onRevertJeSchedule, ignoreRecommendedJeSchedule, onUpdateJESchedulesUIState, onTogglePendingGroupCollapsed, onToggleCreatedGroupCollapsed, onUpdateJEScheduleTypeFilter, vendorSearchAutoCompleteActions, setCurrentFooterFormId, }: Readonly<JESchedulesSectionProps>): import("react/jsx-runtime").JSX.Element;
|
|
37
39
|
export default JESchedulesSection;
|