@booki-aui/react 0.0.0-stage → 0.2.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/CHANGELOG.md +122 -0
- package/LICENSE +21 -0
- package/README.md +16 -2
- package/dist/access.d.ts +43 -0
- package/dist/access.js +15 -0
- package/dist/access.js.map +1 -0
- package/dist/account-picker.d.ts +40 -0
- package/dist/account-picker.js +25 -0
- package/dist/account-picker.js.map +1 -0
- package/dist/accounting-period-select.d.ts +34 -0
- package/dist/accounting-period-select.js +23 -0
- package/dist/accounting-period-select.js.map +1 -0
- package/dist/activity-timeline.d.ts +37 -0
- package/dist/activity-timeline.js +19 -0
- package/dist/activity-timeline.js.map +1 -0
- package/dist/aged-balances.d.ts +62 -0
- package/dist/aged-balances.js +31 -0
- package/dist/aged-balances.js.map +1 -0
- package/dist/agent-cursor.d.ts +34 -0
- package/dist/agent-cursor.js +14 -0
- package/dist/agent-cursor.js.map +1 -0
- package/dist/agent-presence.d.ts +110 -0
- package/dist/agent-presence.js +15 -0
- package/dist/agent-presence.js.map +1 -0
- package/dist/aging-chart.d.ts +41 -0
- package/dist/aging-chart.js +19 -0
- package/dist/aging-chart.js.map +1 -0
- package/dist/amount-field.d.ts +46 -0
- package/dist/amount-field.js +19 -0
- package/dist/amount-field.js.map +1 -0
- package/dist/amount-input.d.ts +18 -0
- package/dist/amount-input.js +12 -0
- package/dist/amount-input.js.map +1 -0
- package/dist/approval-chain.d.ts +36 -0
- package/dist/approval-chain.js +22 -0
- package/dist/approval-chain.js.map +1 -0
- package/dist/approval-gate.d.ts +19 -0
- package/dist/approval-gate.js +10 -0
- package/dist/approval-gate.js.map +1 -0
- package/dist/attestation-status.d.ts +31 -0
- package/dist/attestation-status.js +22 -0
- package/dist/attestation-status.js.map +1 -0
- package/dist/audit-findings.d.ts +40 -0
- package/dist/audit-findings.js +28 -0
- package/dist/audit-findings.js.map +1 -0
- package/dist/audit-trail.d.ts +22 -0
- package/dist/audit-trail.js +10 -0
- package/dist/audit-trail.js.map +1 -0
- package/dist/audit-workpaper.d.ts +56 -0
- package/dist/audit-workpaper.js +35 -0
- package/dist/audit-workpaper.js.map +1 -0
- package/dist/bank-account-input.d.ts +36 -0
- package/dist/bank-account-input.js +22 -0
- package/dist/bank-account-input.js.map +1 -0
- package/dist/bank-reconciliation.d.ts +38 -0
- package/dist/bank-reconciliation.js +20 -0
- package/dist/bank-reconciliation.js.map +1 -0
- package/dist/bar-chart.d.ts +38 -0
- package/dist/bar-chart.js +19 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/booki-agent.d.ts +153 -0
- package/dist/booki-agent.js +27 -0
- package/dist/booki-agent.js.map +1 -0
- package/dist/cashflow-waterfall.d.ts +36 -0
- package/dist/cashflow-waterfall.js +17 -0
- package/dist/cashflow-waterfall.js.map +1 -0
- package/dist/change-details-CWpEgc80.d.ts +14 -0
- package/dist/chunk-2HM7YSBC.js +92 -0
- package/dist/chunk-2HM7YSBC.js.map +1 -0
- package/dist/chunk-35QKOOAI.js +27 -0
- package/dist/chunk-35QKOOAI.js.map +1 -0
- package/dist/chunk-37GDU76M.js +86 -0
- package/dist/chunk-37GDU76M.js.map +1 -0
- package/dist/chunk-4EVVT6ME.js +136 -0
- package/dist/chunk-4EVVT6ME.js.map +1 -0
- package/dist/chunk-4GQUOBOG.js +132 -0
- package/dist/chunk-4GQUOBOG.js.map +1 -0
- package/dist/chunk-4KWEZTO5.js +86 -0
- package/dist/chunk-4KWEZTO5.js.map +1 -0
- package/dist/chunk-4WC76FUE.js +242 -0
- package/dist/chunk-4WC76FUE.js.map +1 -0
- package/dist/chunk-62G3T2AA.js +230 -0
- package/dist/chunk-62G3T2AA.js.map +1 -0
- package/dist/chunk-663UXACN.js +334 -0
- package/dist/chunk-663UXACN.js.map +1 -0
- package/dist/chunk-6CVPNV7N.js +106 -0
- package/dist/chunk-6CVPNV7N.js.map +1 -0
- package/dist/chunk-6HWFMC7V.js +140 -0
- package/dist/chunk-6HWFMC7V.js.map +1 -0
- package/dist/chunk-7MYFKLPB.js +301 -0
- package/dist/chunk-7MYFKLPB.js.map +1 -0
- package/dist/chunk-7YTOVA5F.js +312 -0
- package/dist/chunk-7YTOVA5F.js.map +1 -0
- package/dist/chunk-AIGQPM4Y.js +311 -0
- package/dist/chunk-AIGQPM4Y.js.map +1 -0
- package/dist/chunk-AKC6N4QO.js +414 -0
- package/dist/chunk-AKC6N4QO.js.map +1 -0
- package/dist/chunk-BZIOOU4I.js +421 -0
- package/dist/chunk-BZIOOU4I.js.map +1 -0
- package/dist/chunk-CDTDN4LY.js +212 -0
- package/dist/chunk-CDTDN4LY.js.map +1 -0
- package/dist/chunk-EDWQSKY7.js +161 -0
- package/dist/chunk-EDWQSKY7.js.map +1 -0
- package/dist/chunk-EKIWL37F.js +488 -0
- package/dist/chunk-EKIWL37F.js.map +1 -0
- package/dist/chunk-F3C77WLR.js +116 -0
- package/dist/chunk-F3C77WLR.js.map +1 -0
- package/dist/chunk-FBV7BFEQ.js +84 -0
- package/dist/chunk-FBV7BFEQ.js.map +1 -0
- package/dist/chunk-GVP2N3K6.js +89 -0
- package/dist/chunk-GVP2N3K6.js.map +1 -0
- package/dist/chunk-HKYEHBQT.js +19 -0
- package/dist/chunk-HKYEHBQT.js.map +1 -0
- package/dist/chunk-HQYIFZZT.js +169 -0
- package/dist/chunk-HQYIFZZT.js.map +1 -0
- package/dist/chunk-HT6HGOLM.js +151 -0
- package/dist/chunk-HT6HGOLM.js.map +1 -0
- package/dist/chunk-ISPUO3AQ.js +244 -0
- package/dist/chunk-ISPUO3AQ.js.map +1 -0
- package/dist/chunk-JPUVGWLO.js +207 -0
- package/dist/chunk-JPUVGWLO.js.map +1 -0
- package/dist/chunk-JWFGUI7A.js +73 -0
- package/dist/chunk-JWFGUI7A.js.map +1 -0
- package/dist/chunk-K72VT6RJ.js +57 -0
- package/dist/chunk-K72VT6RJ.js.map +1 -0
- package/dist/chunk-KLDUGI7L.js +150 -0
- package/dist/chunk-KLDUGI7L.js.map +1 -0
- package/dist/chunk-M2WLQIFE.js +40 -0
- package/dist/chunk-M2WLQIFE.js.map +1 -0
- package/dist/chunk-M3MCIKF2.js +143 -0
- package/dist/chunk-M3MCIKF2.js.map +1 -0
- package/dist/chunk-MBLQSZHE.js +77 -0
- package/dist/chunk-MBLQSZHE.js.map +1 -0
- package/dist/chunk-N7GIVDUU.js +191 -0
- package/dist/chunk-N7GIVDUU.js.map +1 -0
- package/dist/chunk-NMHTPP6I.js +62 -0
- package/dist/chunk-NMHTPP6I.js.map +1 -0
- package/dist/chunk-NNP6GNEW.js +65 -0
- package/dist/chunk-NNP6GNEW.js.map +1 -0
- package/dist/chunk-OTD7VUEC.js +35 -0
- package/dist/chunk-OTD7VUEC.js.map +1 -0
- package/dist/chunk-OXHKA3UZ.js +30 -0
- package/dist/chunk-OXHKA3UZ.js.map +1 -0
- package/dist/chunk-OYERLEER.js +21 -0
- package/dist/chunk-OYERLEER.js.map +1 -0
- package/dist/chunk-PFY3VJ2T.js +231 -0
- package/dist/chunk-PFY3VJ2T.js.map +1 -0
- package/dist/chunk-PUMSFFEU.js +228 -0
- package/dist/chunk-PUMSFFEU.js.map +1 -0
- package/dist/chunk-QE7KUQOI.js +84 -0
- package/dist/chunk-QE7KUQOI.js.map +1 -0
- package/dist/chunk-QGT7VI6I.js +35 -0
- package/dist/chunk-QGT7VI6I.js.map +1 -0
- package/dist/chunk-QGYS5HS3.js +214 -0
- package/dist/chunk-QGYS5HS3.js.map +1 -0
- package/dist/chunk-QPSBRSBH.js +167 -0
- package/dist/chunk-QPSBRSBH.js.map +1 -0
- package/dist/chunk-ROXGVKR2.js +59 -0
- package/dist/chunk-ROXGVKR2.js.map +1 -0
- package/dist/chunk-RPONJDFZ.js +310 -0
- package/dist/chunk-RPONJDFZ.js.map +1 -0
- package/dist/chunk-RTCKV4H2.js +65 -0
- package/dist/chunk-RTCKV4H2.js.map +1 -0
- package/dist/chunk-SHZFZRHV.js +259 -0
- package/dist/chunk-SHZFZRHV.js.map +1 -0
- package/dist/chunk-SOXPKIQK.js +91 -0
- package/dist/chunk-SOXPKIQK.js.map +1 -0
- package/dist/chunk-SR2HEE4U.js +76 -0
- package/dist/chunk-SR2HEE4U.js.map +1 -0
- package/dist/chunk-SX3U6DRW.js +462 -0
- package/dist/chunk-SX3U6DRW.js.map +1 -0
- package/dist/chunk-T4U2CT35.js +175 -0
- package/dist/chunk-T4U2CT35.js.map +1 -0
- package/dist/chunk-TSX6BD72.js +251 -0
- package/dist/chunk-TSX6BD72.js.map +1 -0
- package/dist/chunk-U6PR3V2Q.js +123 -0
- package/dist/chunk-U6PR3V2Q.js.map +1 -0
- package/dist/chunk-U7NPK4WO.js +135 -0
- package/dist/chunk-U7NPK4WO.js.map +1 -0
- package/dist/chunk-W6TKXS75.js +55 -0
- package/dist/chunk-W6TKXS75.js.map +1 -0
- package/dist/chunk-WDME4U42.js +14 -0
- package/dist/chunk-WDME4U42.js.map +1 -0
- package/dist/chunk-WS2YJSNS.js +62 -0
- package/dist/chunk-WS2YJSNS.js.map +1 -0
- package/dist/chunk-Y5EYY6WJ.js +174 -0
- package/dist/chunk-Y5EYY6WJ.js.map +1 -0
- package/dist/chunk-YBMO3W5O.js +191 -0
- package/dist/chunk-YBMO3W5O.js.map +1 -0
- package/dist/chunk-YOOWFGCU.js +90 -0
- package/dist/chunk-YOOWFGCU.js.map +1 -0
- package/dist/chunk-ZKNVWQDU.js +230 -0
- package/dist/chunk-ZKNVWQDU.js.map +1 -0
- package/dist/chunk-ZYLWSGWQ.js +29 -0
- package/dist/chunk-ZYLWSGWQ.js.map +1 -0
- package/dist/chunk-ZYPW7GCI.js +82 -0
- package/dist/chunk-ZYPW7GCI.js.map +1 -0
- package/dist/client-requests.d.ts +40 -0
- package/dist/client-requests.js +25 -0
- package/dist/client-requests.js.map +1 -0
- package/dist/close-checklist.d.ts +34 -0
- package/dist/close-checklist.js +22 -0
- package/dist/close-checklist.js.map +1 -0
- package/dist/confirm-dialog.d.ts +43 -0
- package/dist/confirm-dialog.js +10 -0
- package/dist/confirm-dialog.js.map +1 -0
- package/dist/country-toggle.d.ts +16 -0
- package/dist/country-toggle.js +10 -0
- package/dist/country-toggle.js.map +1 -0
- package/dist/currency-select.d.ts +32 -0
- package/dist/currency-select.js +23 -0
- package/dist/currency-select.js.map +1 -0
- package/dist/data-table.d.ts +77 -0
- package/dist/data-table.js +30 -0
- package/dist/data-table.js.map +1 -0
- package/dist/deal-pipeline.d.ts +46 -0
- package/dist/deal-pipeline.js +25 -0
- package/dist/deal-pipeline.js.map +1 -0
- package/dist/document-signoff.d.ts +45 -0
- package/dist/document-signoff.js +21 -0
- package/dist/document-signoff.js.map +1 -0
- package/dist/evidence-list.d.ts +35 -0
- package/dist/evidence-list.js +21 -0
- package/dist/evidence-list.js.map +1 -0
- package/dist/exception-banner.d.ts +15 -0
- package/dist/exception-banner.js +10 -0
- package/dist/exception-banner.js.map +1 -0
- package/dist/expense-claim.d.ts +43 -0
- package/dist/expense-claim.js +31 -0
- package/dist/expense-claim.js.map +1 -0
- package/dist/financial-date-field.d.ts +27 -0
- package/dist/financial-date-field.js +17 -0
- package/dist/financial-date-field.js.map +1 -0
- package/dist/fixed-asset-register.d.ts +59 -0
- package/dist/fixed-asset-register.js +31 -0
- package/dist/fixed-asset-register.js.map +1 -0
- package/dist/forecast-chart.d.ts +38 -0
- package/dist/forecast-chart.js +19 -0
- package/dist/forecast-chart.js.map +1 -0
- package/dist/form-props-Ct7zeZBH.d.ts +25 -0
- package/dist/funnel-chart.d.ts +27 -0
- package/dist/funnel-chart.js +17 -0
- package/dist/funnel-chart.js.map +1 -0
- package/dist/iban-input.d.ts +27 -0
- package/dist/iban-input.js +16 -0
- package/dist/iban-input.js.map +1 -0
- package/dist/index.d.ts +644 -0
- package/dist/index.js +1082 -0
- package/dist/index.js.map +1 -0
- package/dist/invoice-editor.d.ts +38 -0
- package/dist/invoice-editor.js +26 -0
- package/dist/invoice-editor.js.map +1 -0
- package/dist/invoice-number-input.d.ts +25 -0
- package/dist/invoice-number-input.js +17 -0
- package/dist/invoice-number-input.js.map +1 -0
- package/dist/kpi-stat.d.ts +34 -0
- package/dist/kpi-stat.js +15 -0
- package/dist/kpi-stat.js.map +1 -0
- package/dist/ledger-table.d.ts +85 -0
- package/dist/ledger-table.js +41 -0
- package/dist/ledger-table.js.map +1 -0
- package/dist/locale.d.ts +22 -0
- package/dist/locale.js +13 -0
- package/dist/locale.js.map +1 -0
- package/dist/money-amount.d.ts +15 -0
- package/dist/money-amount.js +10 -0
- package/dist/money-amount.js.map +1 -0
- package/dist/organization-number-input.d.ts +25 -0
- package/dist/organization-number-input.js +17 -0
- package/dist/organization-number-input.js.map +1 -0
- package/dist/payment-batch.d.ts +58 -0
- package/dist/payment-batch.js +31 -0
- package/dist/payment-batch.js.map +1 -0
- package/dist/payment-confirm.d.ts +19 -0
- package/dist/payment-confirm.js +11 -0
- package/dist/payment-confirm.js.map +1 -0
- package/dist/payment-reference-input.d.ts +27 -0
- package/dist/payment-reference-input.js +17 -0
- package/dist/payment-reference-input.js.map +1 -0
- package/dist/period-lock.d.ts +28 -0
- package/dist/period-lock.js +18 -0
- package/dist/period-lock.js.map +1 -0
- package/dist/recurring-revenue.d.ts +37 -0
- package/dist/recurring-revenue.js +18 -0
- package/dist/recurring-revenue.js.map +1 -0
- package/dist/sca-prompt.d.ts +16 -0
- package/dist/sca-prompt.js +10 -0
- package/dist/sca-prompt.js.map +1 -0
- package/dist/sheet-stack.d.ts +34 -0
- package/dist/sheet-stack.js +20 -0
- package/dist/sheet-stack.js.map +1 -0
- package/dist/stage-duration.d.ts +33 -0
- package/dist/stage-duration.js +16 -0
- package/dist/stage-duration.js.map +1 -0
- package/dist/supplier-invoice-inbox.d.ts +66 -0
- package/dist/supplier-invoice-inbox.js +38 -0
- package/dist/supplier-invoice-inbox.js.map +1 -0
- package/dist/tax-code-select.d.ts +33 -0
- package/dist/tax-code-select.js +23 -0
- package/dist/tax-code-select.js.map +1 -0
- package/dist/text-link.d.ts +33 -0
- package/dist/text-link.js +13 -0
- package/dist/text-link.js.map +1 -0
- package/dist/toasts.d.ts +53 -0
- package/dist/toasts.js +17 -0
- package/dist/toasts.js.map +1 -0
- package/dist/trend-chart.d.ts +43 -0
- package/dist/trend-chart.js +19 -0
- package/dist/trend-chart.js.map +1 -0
- package/dist/vat-return.d.ts +54 -0
- package/dist/vat-return.js +23 -0
- package/dist/vat-return.js.map +1 -0
- package/dist/voucher-composer.d.ts +69 -0
- package/dist/voucher-composer.js +15 -0
- package/dist/voucher-composer.js.map +1 -0
- package/dist/voucher-lines.d.ts +11 -0
- package/dist/voucher-lines.js +10 -0
- package/dist/voucher-lines.js.map +1 -0
- package/docs/llms.txt +214 -0
- package/package.json +308 -3
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { stageChanges } from '@ui-sdk/react/history';
|
|
4
|
+
import { AgentBridge } from './booki-agent.js';
|
|
5
|
+
import '@ui-sdk/core/history';
|
|
6
|
+
import '@ui-sdk/react/agent';
|
|
7
|
+
import '@booki-aui/primitives/agent-policy';
|
|
8
|
+
import '@booki-aui/core/msg';
|
|
9
|
+
import './audit-trail.js';
|
|
10
|
+
|
|
11
|
+
/** The control an agent is working on right now. */
|
|
12
|
+
type AgentActivity = {
|
|
13
|
+
ref: string;
|
|
14
|
+
component: string;
|
|
15
|
+
key: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
};
|
|
18
|
+
type AgentPresenceController = {
|
|
19
|
+
/** Refs of controls an agent changed that no person has touched since. */
|
|
20
|
+
marked: () => string[];
|
|
21
|
+
/** A person has looked: clear every agent mark. */
|
|
22
|
+
acknowledge: () => void;
|
|
23
|
+
/** Follow which control the agent is on. `null` when it has moved on. */
|
|
24
|
+
subscribe: (listener: (active: AgentActivity | null) => void) => () => void;
|
|
25
|
+
detach: () => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Make an agent's work visible in the DOM, without React.
|
|
29
|
+
*
|
|
30
|
+
* - While the agent changes a control, that control is the "active" one.
|
|
31
|
+
* - A control the agent changed carries `data-agent-set` until a person edits
|
|
32
|
+
* it or calls `acknowledge()`. Style it however you like; `@booki-aui/styles`
|
|
33
|
+
* draws a fjord-blue line on its leading edge.
|
|
34
|
+
*/
|
|
35
|
+
declare function attachAgentPresence(agent: AgentBridge, options?: {
|
|
36
|
+
linger?: number;
|
|
37
|
+
}): AgentPresenceController;
|
|
38
|
+
type AgentPresenceProps = {
|
|
39
|
+
agent: AgentBridge;
|
|
40
|
+
/** Text on the marker. */
|
|
41
|
+
label?: ReactNode;
|
|
42
|
+
/** How long the marker stays after the agent's last change, in ms. */
|
|
43
|
+
linger?: number;
|
|
44
|
+
/** Called with the controller, for an "acknowledge" button of your own. */
|
|
45
|
+
onController?: (controller: AgentPresenceController | null) => void;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A small marker that sits on whichever control the agent is changing, and
|
|
49
|
+
* the attribution marks from `attachAgentPresence`. Render it once.
|
|
50
|
+
*/
|
|
51
|
+
declare function AgentPresence({ agent, label, linger, onController }: AgentPresenceProps): react.JSX.Element;
|
|
52
|
+
type Staged = Awaited<ReturnType<typeof stageChanges>>;
|
|
53
|
+
type ProposedChange = Staged["applied"][number];
|
|
54
|
+
/**
|
|
55
|
+
* Put an agent's suggestion on the real controls as a proposal a person can
|
|
56
|
+
* keep or revert. While it is pending, each proposed control carries
|
|
57
|
+
* `data-agent-proposed` so it can look different from a committed value.
|
|
58
|
+
*/
|
|
59
|
+
declare function useAgentProposal(agent: AgentBridge): {
|
|
60
|
+
applied: readonly {
|
|
61
|
+
ref: string;
|
|
62
|
+
key: string;
|
|
63
|
+
before: unknown;
|
|
64
|
+
value: unknown;
|
|
65
|
+
}[];
|
|
66
|
+
pending: boolean;
|
|
67
|
+
propose: (changes: Parameters<typeof stageChanges>[1]) => Promise<{
|
|
68
|
+
applied: readonly {
|
|
69
|
+
ref: string;
|
|
70
|
+
key: string;
|
|
71
|
+
before: unknown;
|
|
72
|
+
value: unknown;
|
|
73
|
+
}[];
|
|
74
|
+
revert(): Promise<{
|
|
75
|
+
ref: string;
|
|
76
|
+
key: string;
|
|
77
|
+
before: unknown;
|
|
78
|
+
value: unknown;
|
|
79
|
+
}[]>;
|
|
80
|
+
}>;
|
|
81
|
+
keep: () => void;
|
|
82
|
+
revert: () => Promise<never[] | {
|
|
83
|
+
ref: string;
|
|
84
|
+
key: string;
|
|
85
|
+
before: unknown;
|
|
86
|
+
value: unknown;
|
|
87
|
+
}[]>;
|
|
88
|
+
};
|
|
89
|
+
type AgentProposalProps = {
|
|
90
|
+
/** From `useAgentProposal(agent).applied`. Renders nothing when empty. */
|
|
91
|
+
applied: readonly ProposedChange[];
|
|
92
|
+
onKeep: () => void;
|
|
93
|
+
onRevert: () => void;
|
|
94
|
+
title?: ReactNode;
|
|
95
|
+
keepLabel?: ReactNode;
|
|
96
|
+
revertLabel?: ReactNode;
|
|
97
|
+
/** Name a changed control. Defaults to its ref. */
|
|
98
|
+
describe?: (change: ProposedChange) => ReactNode;
|
|
99
|
+
/** Show a value. Defaults to `String(value)`. */
|
|
100
|
+
format?: (value: unknown, change: ProposedChange) => ReactNode;
|
|
101
|
+
className?: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* The notice that goes with a pending proposal: what would change, from what
|
|
105
|
+
* to what, and Keep / Revert. Both buttons are marked for a person, so an
|
|
106
|
+
* agent cannot accept its own suggestion.
|
|
107
|
+
*/
|
|
108
|
+
declare function AgentProposal({ applied, onKeep, onRevert, title, keepLabel, revertLabel, describe, format, className, }: AgentProposalProps): react.JSX.Element | null;
|
|
109
|
+
|
|
110
|
+
export { type AgentActivity, AgentPresence, type AgentPresenceController, type AgentPresenceProps, AgentProposal, type AgentProposalProps, type ProposedChange, attachAgentPresence, useAgentProposal };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AgentPresence,
|
|
4
|
+
AgentProposal,
|
|
5
|
+
attachAgentPresence,
|
|
6
|
+
useAgentProposal
|
|
7
|
+
} from "./chunk-Y5EYY6WJ.js";
|
|
8
|
+
import "./chunk-HKYEHBQT.js";
|
|
9
|
+
export {
|
|
10
|
+
AgentPresence,
|
|
11
|
+
AgentProposal,
|
|
12
|
+
attachAgentPresence,
|
|
13
|
+
useAgentProposal
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=agent-presence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { OpenItem, OpenItemKind } from '@booki-aui/core/aging';
|
|
3
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
4
|
+
import { Details, agingChart } from '@booki-aui/primitives/aging-chart';
|
|
5
|
+
export { AgingBucketTotal, AgingChartDrilled, agingChart } from '@booki-aui/primitives/aging-chart';
|
|
6
|
+
|
|
7
|
+
declare const TAGS: {
|
|
8
|
+
readonly root: "div";
|
|
9
|
+
readonly bucket: "button";
|
|
10
|
+
readonly clear: "button";
|
|
11
|
+
};
|
|
12
|
+
declare const parts: Parts<typeof agingChart, typeof TAGS>;
|
|
13
|
+
declare const AgingChartRoot: (typeof parts)["Root"];
|
|
14
|
+
declare const AgingChartBucket: (typeof parts)["Bucket"];
|
|
15
|
+
declare const AgingChartClear: (typeof parts)["Clear"];
|
|
16
|
+
type AgingChartProps = {
|
|
17
|
+
items: OpenItem[];
|
|
18
|
+
kind?: OpenItemKind;
|
|
19
|
+
asOf?: string;
|
|
20
|
+
/** Defaults to today in UTC when neither `asOf` nor this is given. */
|
|
21
|
+
defaultAsOf?: string;
|
|
22
|
+
limits?: number[];
|
|
23
|
+
drill?: string | null;
|
|
24
|
+
defaultDrill?: string | null;
|
|
25
|
+
/** A bucket was drilled into, by a person's click or an agent's `drill`. */
|
|
26
|
+
onDrill?: (bucket: string, details: Details) => void;
|
|
27
|
+
/** Parties drawn as rows and listed as most overdue. Defaults to 5. */
|
|
28
|
+
topParties?: number;
|
|
29
|
+
snapshotRows?: number;
|
|
30
|
+
title?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
"aria-label"?: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Composed aging chart: one tall stacked bar of everything open, a legend
|
|
36
|
+
* whose buckets drill in, thin stacked bars for the largest parties, a
|
|
37
|
+
* tooltip on hover and the same figures as a table.
|
|
38
|
+
*/
|
|
39
|
+
declare function AgingChart({ items, kind, asOf, defaultAsOf, limits, drill, defaultDrill, onDrill, topParties, snapshotRows, title, className, "aria-label": ariaLabel, }: AgingChartProps): react.JSX.Element;
|
|
40
|
+
|
|
41
|
+
export { AgingChart, AgingChartBucket, AgingChartClear, type AgingChartProps, AgingChartRoot };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AgingChart,
|
|
4
|
+
AgingChartBucket,
|
|
5
|
+
AgingChartClear,
|
|
6
|
+
AgingChartRoot,
|
|
7
|
+
agingChart
|
|
8
|
+
} from "./chunk-RPONJDFZ.js";
|
|
9
|
+
import "./chunk-WDME4U42.js";
|
|
10
|
+
import "./chunk-GVP2N3K6.js";
|
|
11
|
+
import "./chunk-HKYEHBQT.js";
|
|
12
|
+
export {
|
|
13
|
+
AgingChart,
|
|
14
|
+
AgingChartBucket,
|
|
15
|
+
AgingChartClear,
|
|
16
|
+
AgingChartRoot,
|
|
17
|
+
agingChart
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=aging-chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
4
|
+
import { B as BookiFormProps } from './form-props-Ct7zeZBH.js';
|
|
5
|
+
import { amountField } from '@booki-aui/primitives/amount-field';
|
|
6
|
+
export { amountField } from '@booki-aui/primitives/amount-field';
|
|
7
|
+
|
|
8
|
+
declare const TAGS: {
|
|
9
|
+
readonly root: "div";
|
|
10
|
+
readonly currency: "span";
|
|
11
|
+
readonly input: "input";
|
|
12
|
+
};
|
|
13
|
+
declare const parts: Parts<typeof amountField, typeof TAGS>;
|
|
14
|
+
declare const AmountFieldRoot: (typeof parts)["Root"];
|
|
15
|
+
declare const AmountFieldCurrency: (typeof parts)["Currency"];
|
|
16
|
+
declare const AmountFieldInput: (typeof parts)["Input"];
|
|
17
|
+
type AmountFieldProps = {
|
|
18
|
+
/** Minor units. `null` shows the field empty, with `allowEmpty`. */
|
|
19
|
+
value?: number | null;
|
|
20
|
+
defaultValue?: number | null;
|
|
21
|
+
/** The field may be empty, which is not 0: `clear` and deleting the text empty it. */
|
|
22
|
+
allowEmpty?: boolean;
|
|
23
|
+
/** Called when the field becomes empty. */
|
|
24
|
+
onEmpty?: (details: {
|
|
25
|
+
reason: string;
|
|
26
|
+
source?: string;
|
|
27
|
+
}) => void;
|
|
28
|
+
currency?: string;
|
|
29
|
+
/** Lowest accepted amount in minor units. Defaults to 0 (no negatives). */
|
|
30
|
+
minMinor?: number;
|
|
31
|
+
maxMinor?: number;
|
|
32
|
+
secret?: boolean;
|
|
33
|
+
onValueChange?: (minor: number, details?: {
|
|
34
|
+
reason: string;
|
|
35
|
+
source?: string;
|
|
36
|
+
}) => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
"aria-label"?: string;
|
|
39
|
+
} & BookiFormProps & Omit<ComponentProps<"div">, "onChange" | "defaultValue" | "children" | "id">;
|
|
40
|
+
/**
|
|
41
|
+
* Composed amount field with BookiLocale defaults. Prefer this in apps;
|
|
42
|
+
* use Root/Currency/Input parts when you need custom markup.
|
|
43
|
+
*/
|
|
44
|
+
declare function AmountField({ value, defaultValue, allowEmpty, onEmpty, currency: currencyProp, minMinor, maxMinor, secret, onValueChange, name, id, disabled, readOnly, required, className, "aria-label": ariaLabel, ...props }: AmountFieldProps): react.JSX.Element;
|
|
45
|
+
|
|
46
|
+
export { AmountField, AmountFieldCurrency, AmountFieldInput, type AmountFieldProps, AmountFieldRoot };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AmountField,
|
|
4
|
+
AmountFieldCurrency,
|
|
5
|
+
AmountFieldInput,
|
|
6
|
+
AmountFieldRoot,
|
|
7
|
+
amountField
|
|
8
|
+
} from "./chunk-MBLQSZHE.js";
|
|
9
|
+
import "./chunk-OYERLEER.js";
|
|
10
|
+
import "./chunk-GVP2N3K6.js";
|
|
11
|
+
import "./chunk-HKYEHBQT.js";
|
|
12
|
+
export {
|
|
13
|
+
AmountField,
|
|
14
|
+
AmountFieldCurrency,
|
|
15
|
+
AmountFieldInput,
|
|
16
|
+
AmountFieldRoot,
|
|
17
|
+
amountField
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=amount-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Money } from '@booki-aui/core/money';
|
|
3
|
+
import { AmountFieldProps } from './amount-field.js';
|
|
4
|
+
import '@ui-sdk/react/primitive';
|
|
5
|
+
import './form-props-Ct7zeZBH.js';
|
|
6
|
+
import '@booki-aui/primitives/amount-field';
|
|
7
|
+
|
|
8
|
+
type AmountInputProps = Omit<AmountFieldProps, "onValueChange"> & {
|
|
9
|
+
/** @deprecated Prefer AmountField + onValueChange(minor). Kept for apps that need Money. */
|
|
10
|
+
onValueChange?: (minor: number | null, money: Money | null) => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Compatibility wrapper around AmountField (definePrimitive).
|
|
14
|
+
* New code should import AmountField for agent `setMinor` / snapshot `value`.
|
|
15
|
+
*/
|
|
16
|
+
declare function AmountInput({ onValueChange, currency, ...props }: AmountInputProps): react.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { AmountInput, type AmountInputProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AmountInput
|
|
4
|
+
} from "./chunk-35QKOOAI.js";
|
|
5
|
+
import "./chunk-MBLQSZHE.js";
|
|
6
|
+
import "./chunk-OYERLEER.js";
|
|
7
|
+
import "./chunk-GVP2N3K6.js";
|
|
8
|
+
import "./chunk-HKYEHBQT.js";
|
|
9
|
+
export {
|
|
10
|
+
AmountInput
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=amount-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ApprovalLevel, ApprovalRequest } from '@booki-aui/core/approval';
|
|
4
|
+
export { ApprovalDecision, ApprovalLevel, ApprovalRequest } from '@booki-aui/core/approval';
|
|
5
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
6
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
7
|
+
import { approvalChain } from '@booki-aui/primitives/approval-chain';
|
|
8
|
+
export { approvalChain } from '@booki-aui/primitives/approval-chain';
|
|
9
|
+
|
|
10
|
+
declare const TAGS: {
|
|
11
|
+
readonly root: "div";
|
|
12
|
+
readonly approve: "button";
|
|
13
|
+
readonly reject: "button";
|
|
14
|
+
readonly escalate: "button";
|
|
15
|
+
};
|
|
16
|
+
declare const parts: Parts<typeof approvalChain, typeof TAGS>;
|
|
17
|
+
declare const ApprovalChainRoot: (typeof parts)["Root"];
|
|
18
|
+
declare const ApprovalChainApprove: (typeof parts)["Approve"];
|
|
19
|
+
declare const ApprovalChainReject: (typeof parts)["Reject"];
|
|
20
|
+
declare const ApprovalChainEscalate: (typeof parts)["Escalate"];
|
|
21
|
+
type ApprovalChainProps = {
|
|
22
|
+
chain: ApprovalLevel[];
|
|
23
|
+
request?: ApprovalRequest;
|
|
24
|
+
defaultRequest?: ApprovalRequest;
|
|
25
|
+
/** Id of the person at the keyboard. */
|
|
26
|
+
actor?: string;
|
|
27
|
+
onRequestChange?: (request: ApprovalRequest, details: BookiChangeDetails) => void;
|
|
28
|
+
/** Show a person's name instead of their id. */
|
|
29
|
+
nameOf?: (id: string) => ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
"aria-label"?: string;
|
|
32
|
+
};
|
|
33
|
+
/** Composed approval chain: one row per level, who decided, and the three buttons. */
|
|
34
|
+
declare function ApprovalChain({ chain, request, defaultRequest, actor, onRequestChange, nameOf, className, "aria-label": ariaLabel, }: ApprovalChainProps): react.JSX.Element;
|
|
35
|
+
|
|
36
|
+
export { ApprovalChain, ApprovalChainApprove, ApprovalChainEscalate, type ApprovalChainProps, ApprovalChainReject, ApprovalChainRoot };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ApprovalChain,
|
|
4
|
+
ApprovalChainApprove,
|
|
5
|
+
ApprovalChainEscalate,
|
|
6
|
+
ApprovalChainReject,
|
|
7
|
+
ApprovalChainRoot,
|
|
8
|
+
approvalChain
|
|
9
|
+
} from "./chunk-6CVPNV7N.js";
|
|
10
|
+
import "./chunk-U7NPK4WO.js";
|
|
11
|
+
import "./chunk-K72VT6RJ.js";
|
|
12
|
+
import "./chunk-GVP2N3K6.js";
|
|
13
|
+
import "./chunk-HKYEHBQT.js";
|
|
14
|
+
export {
|
|
15
|
+
ApprovalChain,
|
|
16
|
+
ApprovalChainApprove,
|
|
17
|
+
ApprovalChainEscalate,
|
|
18
|
+
ApprovalChainReject,
|
|
19
|
+
ApprovalChainRoot,
|
|
20
|
+
approvalChain
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=approval-chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ApprovalGateProps = {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
summary?: ReactNode;
|
|
8
|
+
confirmWord?: string;
|
|
9
|
+
triggerLabel?: string;
|
|
10
|
+
onApprove?: () => void | Promise<void>;
|
|
11
|
+
onReject?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Segregation of duties: agent proposes, person approves via typed confirm.
|
|
16
|
+
*/
|
|
17
|
+
declare function ApprovalGate({ title, description, summary, confirmWord, triggerLabel, onApprove, onReject, className, }: ApprovalGateProps): react.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { ApprovalGate, type ApprovalGateProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
3
|
+
import { AttestationStatusValue, attestationStatus } from '@booki-aui/primitives/attestation-status';
|
|
4
|
+
export { AttestationStatusValue, attestationStatus } from '@booki-aui/primitives/attestation-status';
|
|
5
|
+
|
|
6
|
+
declare const TAGS: {
|
|
7
|
+
readonly root: "div";
|
|
8
|
+
readonly badge: "span";
|
|
9
|
+
readonly approve: "button";
|
|
10
|
+
readonly reject: "button";
|
|
11
|
+
readonly escalate: "button";
|
|
12
|
+
};
|
|
13
|
+
declare const parts: Parts<typeof attestationStatus, typeof TAGS>;
|
|
14
|
+
declare const AttestationStatusRoot: (typeof parts)["Root"];
|
|
15
|
+
declare const AttestationStatusBadge: (typeof parts)["Badge"];
|
|
16
|
+
declare const AttestationStatusApprove: (typeof parts)["Approve"];
|
|
17
|
+
declare const AttestationStatusReject: (typeof parts)["Reject"];
|
|
18
|
+
declare const AttestationStatusEscalate: (typeof parts)["Escalate"];
|
|
19
|
+
type AttestationStatusProps = {
|
|
20
|
+
value?: AttestationStatusValue;
|
|
21
|
+
defaultValue?: AttestationStatusValue;
|
|
22
|
+
onValueChange?: (value: AttestationStatusValue) => void;
|
|
23
|
+
onApprove?: () => void;
|
|
24
|
+
onReject?: () => void;
|
|
25
|
+
onEscalate?: () => void;
|
|
26
|
+
showActions?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
declare function AttestationStatus({ value, defaultValue, onValueChange, onApprove, onReject, onEscalate, showActions, className, }: AttestationStatusProps): react.JSX.Element;
|
|
30
|
+
|
|
31
|
+
export { AttestationStatus, AttestationStatusApprove, AttestationStatusBadge, AttestationStatusEscalate, type AttestationStatusProps, AttestationStatusReject, AttestationStatusRoot };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AttestationStatus,
|
|
4
|
+
AttestationStatusApprove,
|
|
5
|
+
AttestationStatusBadge,
|
|
6
|
+
AttestationStatusEscalate,
|
|
7
|
+
AttestationStatusReject,
|
|
8
|
+
AttestationStatusRoot,
|
|
9
|
+
attestationStatus
|
|
10
|
+
} from "./chunk-37GDU76M.js";
|
|
11
|
+
import "./chunk-GVP2N3K6.js";
|
|
12
|
+
import "./chunk-HKYEHBQT.js";
|
|
13
|
+
export {
|
|
14
|
+
AttestationStatus,
|
|
15
|
+
AttestationStatusApprove,
|
|
16
|
+
AttestationStatusBadge,
|
|
17
|
+
AttestationStatusEscalate,
|
|
18
|
+
AttestationStatusReject,
|
|
19
|
+
AttestationStatusRoot,
|
|
20
|
+
attestationStatus
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=attestation-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Finding } from '@booki-aui/core/findings';
|
|
4
|
+
export { FINDING_BASES, FINDING_CATEGORIES, Finding, FindingBasis, FindingCategory, FindingStatus } from '@booki-aui/core/findings';
|
|
5
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
6
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
7
|
+
import { FindingEvidence, auditFindings } from '@booki-aui/primitives/audit-findings';
|
|
8
|
+
export { FindingEvidence, auditFindings } from '@booki-aui/primitives/audit-findings';
|
|
9
|
+
|
|
10
|
+
declare const TAGS: {
|
|
11
|
+
readonly root: "div";
|
|
12
|
+
readonly confirm: "button";
|
|
13
|
+
readonly reason: "textarea";
|
|
14
|
+
readonly withdraw: "button";
|
|
15
|
+
readonly reopen: "button";
|
|
16
|
+
};
|
|
17
|
+
declare const parts: Parts<typeof auditFindings, typeof TAGS>;
|
|
18
|
+
declare const AuditFindingsRoot: (typeof parts)["Root"];
|
|
19
|
+
declare const AuditFindingsConfirm: (typeof parts)["Confirm"];
|
|
20
|
+
declare const AuditFindingsReason: (typeof parts)["Reason"];
|
|
21
|
+
declare const AuditFindingsWithdraw: (typeof parts)["Withdraw"];
|
|
22
|
+
declare const AuditFindingsReopen: (typeof parts)["Reopen"];
|
|
23
|
+
type AuditFindingsProps = {
|
|
24
|
+
findings?: Finding[];
|
|
25
|
+
defaultFindings?: Finding[];
|
|
26
|
+
/** Evidence a finding can cite. When given, an agent can cite nothing else. */
|
|
27
|
+
evidence?: FindingEvidence[];
|
|
28
|
+
/** Currency of an amount drafted without one. Defaults to the country's. */
|
|
29
|
+
currency?: string;
|
|
30
|
+
actor?: string;
|
|
31
|
+
agentActor?: string;
|
|
32
|
+
onFindingsChange?: (findings: Finding[], details: BookiChangeDetails) => void;
|
|
33
|
+
nameOf?: (id: string) => ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
"aria-label"?: string;
|
|
36
|
+
};
|
|
37
|
+
/** Composed register: each finding, its basis and evidence, what to weigh, and a person's buttons. */
|
|
38
|
+
declare function AuditFindings({ findings, defaultFindings, evidence, currency, actor, agentActor, onFindingsChange, nameOf, className, "aria-label": ariaLabel, }: AuditFindingsProps): react.JSX.Element;
|
|
39
|
+
|
|
40
|
+
export { AuditFindings, AuditFindingsConfirm, type AuditFindingsProps, AuditFindingsReason, AuditFindingsReopen, AuditFindingsRoot, AuditFindingsWithdraw };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
AuditFindings,
|
|
4
|
+
AuditFindingsConfirm,
|
|
5
|
+
AuditFindingsReason,
|
|
6
|
+
AuditFindingsReopen,
|
|
7
|
+
AuditFindingsRoot,
|
|
8
|
+
AuditFindingsWithdraw,
|
|
9
|
+
FINDING_BASES,
|
|
10
|
+
FINDING_CATEGORIES,
|
|
11
|
+
auditFindings
|
|
12
|
+
} from "./chunk-PFY3VJ2T.js";
|
|
13
|
+
import "./chunk-OXHKA3UZ.js";
|
|
14
|
+
import "./chunk-K72VT6RJ.js";
|
|
15
|
+
import "./chunk-GVP2N3K6.js";
|
|
16
|
+
import "./chunk-HKYEHBQT.js";
|
|
17
|
+
export {
|
|
18
|
+
AuditFindings,
|
|
19
|
+
AuditFindingsConfirm,
|
|
20
|
+
AuditFindingsReason,
|
|
21
|
+
AuditFindingsReopen,
|
|
22
|
+
AuditFindingsRoot,
|
|
23
|
+
AuditFindingsWithdraw,
|
|
24
|
+
FINDING_BASES,
|
|
25
|
+
FINDING_CATEGORIES,
|
|
26
|
+
auditFindings
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=audit-findings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type AuditEvent = {
|
|
4
|
+
id: string;
|
|
5
|
+
at: string;
|
|
6
|
+
actor: string;
|
|
7
|
+
action: string;
|
|
8
|
+
target: string;
|
|
9
|
+
detail?: string;
|
|
10
|
+
/** Optional rule/workflow version for agent auditability */
|
|
11
|
+
ruleVersion?: string;
|
|
12
|
+
/** Who confirmed or refused the step: a person's id, or a rule such as `rule:under-5000`. */
|
|
13
|
+
decidedBy?: string;
|
|
14
|
+
};
|
|
15
|
+
type AuditTrailProps = {
|
|
16
|
+
events: AuditEvent[];
|
|
17
|
+
className?: string;
|
|
18
|
+
emptyLabel?: string;
|
|
19
|
+
};
|
|
20
|
+
declare function AuditTrail({ events, className, emptyLabel }: AuditTrailProps): react.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { type AuditEvent, AuditTrail, type AuditTrailProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { B as BookiChangeDetails } from './change-details-CWpEgc80.js';
|
|
4
|
+
import { Workpaper, PopulationItem, MaterialityInput, TickMark } from '@booki-aui/core/audit';
|
|
5
|
+
export { Materiality, MaterialityInput, PopulationItem, SampleMethod, SampleSummary, TestResult, TickMark, Workpaper, WorkpaperItem } from '@booki-aui/core/audit';
|
|
6
|
+
import { Parts } from '@ui-sdk/react/primitive';
|
|
7
|
+
import { auditWorkpaper } from '@booki-aui/primitives/audit-workpaper';
|
|
8
|
+
export { DrawSampleOptions, auditWorkpaper } from '@booki-aui/primitives/audit-workpaper';
|
|
9
|
+
|
|
10
|
+
declare const TAGS: {
|
|
11
|
+
readonly root: "div";
|
|
12
|
+
readonly result: "select";
|
|
13
|
+
readonly tick: "select";
|
|
14
|
+
readonly cell: "input";
|
|
15
|
+
readonly conclusion: "textarea";
|
|
16
|
+
readonly method: "select";
|
|
17
|
+
readonly sampler: "input";
|
|
18
|
+
readonly draw: "button";
|
|
19
|
+
readonly prepare: "button";
|
|
20
|
+
readonly review: "button";
|
|
21
|
+
readonly withdraw: "button";
|
|
22
|
+
};
|
|
23
|
+
declare const parts: Parts<typeof auditWorkpaper, typeof TAGS>;
|
|
24
|
+
declare const AuditWorkpaperRoot: (typeof parts)["Root"];
|
|
25
|
+
declare const AuditWorkpaperResult: (typeof parts)["Result"];
|
|
26
|
+
declare const AuditWorkpaperTick: (typeof parts)["Tick"];
|
|
27
|
+
declare const AuditWorkpaperCell: (typeof parts)["Cell"];
|
|
28
|
+
declare const AuditWorkpaperConclusion: (typeof parts)["Conclusion"];
|
|
29
|
+
declare const AuditWorkpaperMethod: (typeof parts)["Method"];
|
|
30
|
+
declare const AuditWorkpaperSampler: (typeof parts)["Sampler"];
|
|
31
|
+
declare const AuditWorkpaperDraw: (typeof parts)["Draw"];
|
|
32
|
+
declare const AuditWorkpaperPrepare: (typeof parts)["Prepare"];
|
|
33
|
+
declare const AuditWorkpaperReview: (typeof parts)["Review"];
|
|
34
|
+
declare const AuditWorkpaperWithdraw: (typeof parts)["Withdraw"];
|
|
35
|
+
type AuditWorkpaperProps = {
|
|
36
|
+
workpaper?: Workpaper;
|
|
37
|
+
defaultWorkpaper?: Workpaper;
|
|
38
|
+
population?: PopulationItem[];
|
|
39
|
+
materiality?: MaterialityInput;
|
|
40
|
+
tolerableMinor?: number;
|
|
41
|
+
tickMarks?: TickMark[];
|
|
42
|
+
actor?: string;
|
|
43
|
+
/** Defaults to the profile's currency. */
|
|
44
|
+
currency?: string;
|
|
45
|
+
onWorkpaperChange?: (workpaper: Workpaper, details: BookiChangeDetails) => void;
|
|
46
|
+
/** How a person's id is shown. */
|
|
47
|
+
nameOf?: (id: string) => ReactNode;
|
|
48
|
+
/** How an attachment id is described next to its field, e.g. a file name. */
|
|
49
|
+
evidenceName?: (attachmentId: string) => ReactNode;
|
|
50
|
+
className?: string;
|
|
51
|
+
"aria-label"?: string;
|
|
52
|
+
};
|
|
53
|
+
/** Composed workpaper: materiality, the sample, the legend, the summary, the conclusion and the sign-offs. */
|
|
54
|
+
declare function AuditWorkpaper({ workpaper, defaultWorkpaper, population, materiality: materialityInput, tolerableMinor, tickMarks, actor, currency, onWorkpaperChange, nameOf, evidenceName, className, "aria-label": ariaLabel, }: AuditWorkpaperProps): react.JSX.Element;
|
|
55
|
+
|
|
56
|
+
export { AuditWorkpaper, AuditWorkpaperCell, AuditWorkpaperConclusion, AuditWorkpaperDraw, AuditWorkpaperMethod, AuditWorkpaperPrepare, type AuditWorkpaperProps, AuditWorkpaperResult, AuditWorkpaperReview, AuditWorkpaperRoot, AuditWorkpaperSampler, AuditWorkpaperTick, AuditWorkpaperWithdraw };
|