@fayz-ai/plugin-financial 0.21.1 → 0.21.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CnabRemittanceModal.d.ts","sourceRoot":"","sources":["../../src/components/CnabRemittanceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAgC,OAAO,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"CnabRemittanceModal.d.ts","sourceRoot":"","sources":["../../src/components/CnabRemittanceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAgC,OAAO,EAAE,MAAM,UAAU,CAAA;AAmIlF,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;IACjF,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,QAAQ,EAAE,qBAAqB,CAAA;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,qBAqfA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React25 from 'react';
|
|
2
2
|
import React25__default, { useState, useEffect, useMemo, useRef, useCallback } from 'react';
|
|
3
|
-
import { recordRailFields, RECORD_GROUP, activeFacet, createConnectionStore, connectionSettings, connectionStatus, settingsStatus, connectionRuns, registerTranslations, getSupabaseClientOptional, createSafeDataProvider, registerMessageDefaults, reportDataError, useTranslation, createPendingCommand, useUnitMode, useDataChanged, countByTenant, tl, resolveDataProvider, useActiveUnitId, getActiveTenantId, emitDataChanged, exportCSV } from '@fayz-ai/core';
|
|
3
|
+
import { recordRailFields, RECORD_GROUP, activeFacet, createConnectionStore, connectionSettings, connectionStatus, settingsStatus, connectionRuns, registerTranslations, getSupabaseClientOptional, createSafeDataProvider, registerMessageDefaults, reportDataError, useTranslation, createPendingCommand, useUnitMode, useDataChanged, countByTenant, tl, resolveDataProvider, useActiveUnitId, getActiveTenantId, emitDataChanged, describeError, exportCSV } from '@fayz-ai/core';
|
|
4
4
|
import { INLINE_LINK_TONE, SearchSelect, ModalTask, toast, Button, useInModalTaskHost, useSaveBar, tourAnchor, DatePicker, SubpageHeader, defineKpiWidget, defineChartWidget, defineCustomWidget, defineTableWidget, Modal, ModalContent, ModalHeader, ModalTitle, ModalDescription, ModalBody, DataTable, Card, CardContent, Skeleton, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, MultiSelect, PageTransition, ModulePage, Badge, TooltipProvider, ConfirmDialog, CurrencyInput, Input, PageHeaderActions, ChoiceSelect, ModalFooter, Hint, PageTabs, Tooltip, TooltipTrigger, TooltipContent, Checkbox, Popover, PopoverTrigger, PopoverContent, openPrintWindow, printDocument, DashboardCanvas, ComingSoon, StatTiles, ListView, DateRangeControl, FilterPanel, FilterPanelField, SegmentedControl, RequiredFilter, FilterMenuRow, ChoiceList, ModalFlow, Switch, WizardSteps, KpiCard, ChartWidget, CardHeader, CardTitle, TableWidget, useDashboardNavigate, GoldCard } from '@fayz-ai/ui';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { createPluginContext, fayzConnectorOAuth, formatCurrency, RightRailPage, createCrudPage, PluginSettingsPanel, dedup, useUnitFilter, useLimitGuard, usePermissionOptional, useLookupCreate, OrderFormSkeleton, WidgetSlot, OrderFormBlock, OrderFormView, OrderFormItemsCard, OrderFormItemRow, adminNavigateTo, OrderFormAddItemStep, useUnitStore, OrderDetailSkeleton, PageActions, OrderDetailBlock, OrderDetailView, PersonLink, useTenantPluginSettings, useModuleNavigation, usePluginOnboardingGate, useModuleNavAccess, PluginOnboardingGateSkeleton, ModuleActionBar, SettingsGroup, ToggleRow, createArchetypeLookup, invalidateLimit, useAgentSurface, parseViewId, EntitlementGate, UpgradePrompt, useChatStore, revealPage, useAuth, GetStarted, resolveEntityRoute, PermissionGate, createOneShotAsk, askAI, requestChatUpload, toInlineFile, shrinkForVision } from '@fayz-ai/admin';
|
|
@@ -1477,7 +1477,7 @@ function CnabRemittanceModal({ invoices, bankAccounts, provider, onClose }) {
|
|
|
1477
1477
|
const byContact = new Map(loaded.payees.map((payee) => [payee.contactId, payee]));
|
|
1478
1478
|
setLines(invoices.map((invoice) => lineFromInvoice(invoice, byContact.get(invoice.contactId ?? ""))));
|
|
1479
1479
|
} catch (cause) {
|
|
1480
|
-
setError(cause
|
|
1480
|
+
setError(describeError(cause, "N\xE3o foi poss\xEDvel carregar os favorecidos."));
|
|
1481
1481
|
setLines(invoices.map((invoice) => lineFromInvoice(invoice, void 0)));
|
|
1482
1482
|
} finally {
|
|
1483
1483
|
setLoadingContext(false);
|
|
@@ -1531,7 +1531,7 @@ function CnabRemittanceModal({ invoices, bankAccounts, provider, onClose }) {
|
|
|
1531
1531
|
await saveCompany();
|
|
1532
1532
|
setStep(1);
|
|
1533
1533
|
} catch (cause) {
|
|
1534
|
-
setError(cause
|
|
1534
|
+
setError(describeError(cause, "N\xE3o foi poss\xEDvel salvar os dados banc\xE1rios."));
|
|
1535
1535
|
} finally {
|
|
1536
1536
|
setBusy(false);
|
|
1537
1537
|
}
|
|
@@ -1608,7 +1608,7 @@ function CnabRemittanceModal({ invoices, bankAccounts, provider, onClose }) {
|
|
|
1608
1608
|
URL.revokeObjectURL(url);
|
|
1609
1609
|
onClose();
|
|
1610
1610
|
} catch (cause) {
|
|
1611
|
-
setError(cause
|
|
1611
|
+
setError(describeError(cause, "N\xE3o foi poss\xEDvel gerar o arquivo."));
|
|
1612
1612
|
} finally {
|
|
1613
1613
|
setBusy(false);
|
|
1614
1614
|
}
|
|
@@ -2412,7 +2412,7 @@ function InvoiceListView({ direction, onNew, onNewReceipt, onEdit }) {
|
|
|
2412
2412
|
else void fetchInvoices(query);
|
|
2413
2413
|
}).catch((err) => {
|
|
2414
2414
|
toast.error(t2("financial.invoice.consolidateFailed"), {
|
|
2415
|
-
description:
|
|
2415
|
+
description: describeError(err)
|
|
2416
2416
|
});
|
|
2417
2417
|
}).finally(() => setConsolidating(null));
|
|
2418
2418
|
}, [provider, t2, fetchInvoices, query, onEdit]);
|