@booki-aui/svelte 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 +108 -0
- package/LICENSE +21 -0
- package/README.md +18 -2
- package/dist/account-picker.d.ts +15 -0
- package/dist/account-picker.js +7 -0
- package/dist/account-picker.js.map +1 -0
- package/dist/accounting-period-select.d.ts +14 -0
- package/dist/accounting-period-select.js +7 -0
- package/dist/accounting-period-select.js.map +1 -0
- package/dist/activity-timeline.d.ts +12 -0
- package/dist/activity-timeline.js +7 -0
- package/dist/activity-timeline.js.map +1 -0
- package/dist/aged-balances.d.ts +18 -0
- package/dist/aged-balances.js +7 -0
- package/dist/aged-balances.js.map +1 -0
- package/dist/agent.d.ts +21 -0
- package/dist/agent.js +13 -0
- package/dist/agent.js.map +1 -0
- package/dist/aging-chart.d.ts +12 -0
- package/dist/aging-chart.js +7 -0
- package/dist/aging-chart.js.map +1 -0
- package/dist/amount-field.d.ts +12 -0
- package/dist/amount-field.js +7 -0
- package/dist/amount-field.js.map +1 -0
- package/dist/approval-chain.d.ts +13 -0
- package/dist/approval-chain.js +7 -0
- package/dist/approval-chain.js.map +1 -0
- package/dist/attestation-status.d.ts +14 -0
- package/dist/attestation-status.js +7 -0
- package/dist/attestation-status.js.map +1 -0
- package/dist/audit-findings.d.ts +14 -0
- package/dist/audit-findings.js +7 -0
- package/dist/audit-findings.js.map +1 -0
- package/dist/audit-workpaper.d.ts +20 -0
- package/dist/audit-workpaper.js +7 -0
- package/dist/audit-workpaper.js.map +1 -0
- package/dist/bank-account-input.d.ts +13 -0
- package/dist/bank-account-input.js +7 -0
- package/dist/bank-account-input.js.map +1 -0
- package/dist/bank-reconciliation.d.ts +13 -0
- package/dist/bank-reconciliation.js +7 -0
- package/dist/bank-reconciliation.js.map +1 -0
- package/dist/bar-chart.d.ts +12 -0
- package/dist/bar-chart.js +7 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/cashflow-waterfall.d.ts +11 -0
- package/dist/cashflow-waterfall.js +7 -0
- package/dist/cashflow-waterfall.js.map +1 -0
- package/dist/chunk-22AAHCUO.js +15 -0
- package/dist/chunk-22AAHCUO.js.map +1 -0
- package/dist/chunk-2GMGUG6C.js +16 -0
- package/dist/chunk-2GMGUG6C.js.map +1 -0
- package/dist/chunk-4LCPNUZZ.js +13 -0
- package/dist/chunk-4LCPNUZZ.js.map +1 -0
- package/dist/chunk-4O4XIPMS.js +10 -0
- package/dist/chunk-4O4XIPMS.js.map +1 -0
- package/dist/chunk-56PNB7XV.js +10 -0
- package/dist/chunk-56PNB7XV.js.map +1 -0
- package/dist/chunk-66MSGI5K.js +17 -0
- package/dist/chunk-66MSGI5K.js.map +1 -0
- package/dist/chunk-6ZZMJQLO.js +23 -0
- package/dist/chunk-6ZZMJQLO.js.map +1 -0
- package/dist/chunk-77NMB4TX.js +16 -0
- package/dist/chunk-77NMB4TX.js.map +1 -0
- package/dist/chunk-AJYAPN4A.js +10 -0
- package/dist/chunk-AJYAPN4A.js.map +1 -0
- package/dist/chunk-CVN4OEHM.js +14 -0
- package/dist/chunk-CVN4OEHM.js.map +1 -0
- package/dist/chunk-CZFF4TX6.js +10 -0
- package/dist/chunk-CZFF4TX6.js.map +1 -0
- package/dist/chunk-DNQOXN62.js +22 -0
- package/dist/chunk-DNQOXN62.js.map +1 -0
- package/dist/chunk-ESRLJFWU.js +16 -0
- package/dist/chunk-ESRLJFWU.js.map +1 -0
- package/dist/chunk-F2A5EK2T.js +15 -0
- package/dist/chunk-F2A5EK2T.js.map +1 -0
- package/dist/chunk-FOL3RJB7.js +15 -0
- package/dist/chunk-FOL3RJB7.js.map +1 -0
- package/dist/chunk-GC4G3JZP.js +16 -0
- package/dist/chunk-GC4G3JZP.js.map +1 -0
- package/dist/chunk-GQEJAEW4.js +25 -0
- package/dist/chunk-GQEJAEW4.js.map +1 -0
- package/dist/chunk-HHXTTMNF.js +20 -0
- package/dist/chunk-HHXTTMNF.js.map +1 -0
- package/dist/chunk-LWWCX47Y.js +13 -0
- package/dist/chunk-LWWCX47Y.js.map +1 -0
- package/dist/chunk-MN52QULY.js +10 -0
- package/dist/chunk-MN52QULY.js.map +1 -0
- package/dist/chunk-MOT7Z5YZ.js +15 -0
- package/dist/chunk-MOT7Z5YZ.js.map +1 -0
- package/dist/chunk-NELNVJB3.js +20 -0
- package/dist/chunk-NELNVJB3.js.map +1 -0
- package/dist/chunk-PYTVWPHE.js +13 -0
- package/dist/chunk-PYTVWPHE.js.map +1 -0
- package/dist/chunk-QELX27D6.js +10 -0
- package/dist/chunk-QELX27D6.js.map +1 -0
- package/dist/chunk-QOJFDW2V.js +20 -0
- package/dist/chunk-QOJFDW2V.js.map +1 -0
- package/dist/chunk-QUGR7K63.js +15 -0
- package/dist/chunk-QUGR7K63.js.map +1 -0
- package/dist/chunk-RT2KJRYA.js +13 -0
- package/dist/chunk-RT2KJRYA.js.map +1 -0
- package/dist/chunk-S6CIEWJL.js +15 -0
- package/dist/chunk-S6CIEWJL.js.map +1 -0
- package/dist/chunk-S6OQTARE.js +15 -0
- package/dist/chunk-S6OQTARE.js.map +1 -0
- package/dist/chunk-T3NNVLBJ.js +10 -0
- package/dist/chunk-T3NNVLBJ.js.map +1 -0
- package/dist/chunk-TB27FKX6.js +20 -0
- package/dist/chunk-TB27FKX6.js.map +1 -0
- package/dist/chunk-UMYLRKZX.js +13 -0
- package/dist/chunk-UMYLRKZX.js.map +1 -0
- package/dist/chunk-VA54O7NP.js +19 -0
- package/dist/chunk-VA54O7NP.js.map +1 -0
- package/dist/chunk-VBJRJUDI.js +17 -0
- package/dist/chunk-VBJRJUDI.js.map +1 -0
- package/dist/chunk-WBB3TGFB.js +18 -0
- package/dist/chunk-WBB3TGFB.js.map +1 -0
- package/dist/chunk-WFHFXY3N.js +10 -0
- package/dist/chunk-WFHFXY3N.js.map +1 -0
- package/dist/chunk-XAW2BUZB.js +25 -0
- package/dist/chunk-XAW2BUZB.js.map +1 -0
- package/dist/chunk-XRN7VNVF.js +10 -0
- package/dist/chunk-XRN7VNVF.js.map +1 -0
- package/dist/chunk-XUVTXOUV.js +10 -0
- package/dist/chunk-XUVTXOUV.js.map +1 -0
- package/dist/chunk-XVTMFMDH.js +10 -0
- package/dist/chunk-XVTMFMDH.js.map +1 -0
- package/dist/chunk-YOC2TFWW.js +10 -0
- package/dist/chunk-YOC2TFWW.js.map +1 -0
- package/dist/chunk-Z3F76FRR.js +17 -0
- package/dist/chunk-Z3F76FRR.js.map +1 -0
- package/dist/chunk-ZRYPWAB7.js +17 -0
- package/dist/chunk-ZRYPWAB7.js.map +1 -0
- package/dist/chunk-ZW52VL4I.js +16 -0
- package/dist/chunk-ZW52VL4I.js.map +1 -0
- package/dist/client-requests.d.ts +15 -0
- package/dist/client-requests.js +7 -0
- package/dist/client-requests.js.map +1 -0
- package/dist/close-checklist.d.ts +13 -0
- package/dist/close-checklist.js +7 -0
- package/dist/close-checklist.js.map +1 -0
- package/dist/currency-select.d.ts +14 -0
- package/dist/currency-select.js +7 -0
- package/dist/currency-select.js.map +1 -0
- package/dist/data-table.d.ts +18 -0
- package/dist/data-table.js +7 -0
- package/dist/data-table.js.map +1 -0
- package/dist/deal-pipeline.d.ts +15 -0
- package/dist/deal-pipeline.js +7 -0
- package/dist/deal-pipeline.js.map +1 -0
- package/dist/document-signoff.d.ts +13 -0
- package/dist/document-signoff.js +7 -0
- package/dist/document-signoff.js.map +1 -0
- package/dist/evidence-list.d.ts +13 -0
- package/dist/evidence-list.js +7 -0
- package/dist/evidence-list.js.map +1 -0
- package/dist/expense-claim.d.ts +18 -0
- package/dist/expense-claim.js +7 -0
- package/dist/expense-claim.js.map +1 -0
- package/dist/financial-date-field.d.ts +11 -0
- package/dist/financial-date-field.js +7 -0
- package/dist/financial-date-field.js.map +1 -0
- package/dist/fixed-asset-register.d.ts +18 -0
- package/dist/fixed-asset-register.js +7 -0
- package/dist/fixed-asset-register.js.map +1 -0
- package/dist/forecast-chart.d.ts +12 -0
- package/dist/forecast-chart.js +7 -0
- package/dist/forecast-chart.js.map +1 -0
- package/dist/funnel-chart.d.ts +11 -0
- package/dist/funnel-chart.js +7 -0
- package/dist/funnel-chart.js.map +1 -0
- package/dist/iban-input.d.ts +11 -0
- package/dist/iban-input.js +7 -0
- package/dist/iban-input.js.map +1 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +185 -0
- package/dist/index.js.map +1 -0
- package/dist/invoice-editor.d.ts +15 -0
- package/dist/invoice-editor.js +7 -0
- package/dist/invoice-editor.js.map +1 -0
- package/dist/invoice-number-input.d.ts +11 -0
- package/dist/invoice-number-input.js +7 -0
- package/dist/invoice-number-input.js.map +1 -0
- package/dist/kpi-stat.d.ts +10 -0
- package/dist/kpi-stat.js +7 -0
- package/dist/kpi-stat.js.map +1 -0
- package/dist/ledger-table.d.ts +23 -0
- package/dist/ledger-table.js +7 -0
- package/dist/ledger-table.js.map +1 -0
- package/dist/organization-number-input.d.ts +11 -0
- package/dist/organization-number-input.js +7 -0
- package/dist/organization-number-input.js.map +1 -0
- package/dist/payment-batch.d.ts +17 -0
- package/dist/payment-batch.js +7 -0
- package/dist/payment-batch.js.map +1 -0
- package/dist/payment-reference-input.d.ts +11 -0
- package/dist/payment-reference-input.js +7 -0
- package/dist/payment-reference-input.js.map +1 -0
- package/dist/period-lock.d.ts +11 -0
- package/dist/period-lock.js +7 -0
- package/dist/period-lock.js.map +1 -0
- package/dist/recurring-revenue.d.ts +12 -0
- package/dist/recurring-revenue.js +7 -0
- package/dist/recurring-revenue.js.map +1 -0
- package/dist/sheet-stack.d.ts +13 -0
- package/dist/sheet-stack.js +7 -0
- package/dist/sheet-stack.js.map +1 -0
- package/dist/stage-duration.d.ts +11 -0
- package/dist/stage-duration.js +7 -0
- package/dist/stage-duration.js.map +1 -0
- package/dist/supplier-invoice-inbox.d.ts +21 -0
- package/dist/supplier-invoice-inbox.js +7 -0
- package/dist/supplier-invoice-inbox.js.map +1 -0
- package/dist/tax-code-select.d.ts +14 -0
- package/dist/tax-code-select.js +7 -0
- package/dist/tax-code-select.js.map +1 -0
- package/dist/trend-chart.d.ts +12 -0
- package/dist/trend-chart.js +7 -0
- package/dist/trend-chart.js.map +1 -0
- package/dist/vat-return.d.ts +14 -0
- package/dist/vat-return.js +7 -0
- package/dist/vat-return.js.map +1 -0
- package/dist/voucher-composer.d.ts +23 -0
- package/dist/voucher-composer.js +7 -0
- package/dist/voucher-composer.js.map +1 -0
- package/package.json +58 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# @booki/svelte
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#93](https://github.com/Walgermo/booki/pull/93) [`ec89785`](https://github.com/Walgermo/booki/commit/ec8978566d2a81ee14eb94cc5163a2490ea824a9) Thanks [@Walgermo](https://github.com/Walgermo)! - The packages are now named `@booki-aui/*` and are published to npm (the `@booki` scope on npm belongs to someone else). Install with `pnpm add @booki-aui/core @booki-aui/react @booki-aui/styles`, and replace `@booki/` with `@booki-aui/` in your imports, for example `import { createBookiAgent } from "@booki-aui/react"` and `import "@booki-aui/styles"`. Nothing else changed.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`ec89785`](https://github.com/Walgermo/booki/commit/ec8978566d2a81ee14eb94cc5163a2490ea824a9)]:
|
|
12
|
+
- @booki-aui/core@0.2.0
|
|
13
|
+
- @booki-aui/primitives@0.2.0
|
|
14
|
+
|
|
15
|
+
## 0.1.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`3fe7338`](https://github.com/Walgermo/booki/commit/3fe7338a650bbc8a6c900693bc8f93abba937a0a)]:
|
|
20
|
+
- @booki/core@0.1.7
|
|
21
|
+
- @booki/primitives@0.1.7
|
|
22
|
+
|
|
23
|
+
## 0.1.6
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`1054c6e`](https://github.com/Walgermo/booki/commit/1054c6e79f3418e1fb9560beea50b7b027f82bff)]:
|
|
28
|
+
- @booki/core@0.1.6
|
|
29
|
+
- @booki/primitives@0.1.6
|
|
30
|
+
|
|
31
|
+
## 0.1.5
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [#78](https://github.com/Walgermo/booki/pull/78) [`326ce38`](https://github.com/Walgermo/booki/commit/326ce386d087c74fb359a3508ccf4a416a41adea) Thanks [@Walgermo](https://github.com/Walgermo)! - Built on `@ui-sdk/*` 0.1.0-beta.17 (was beta.16), and the peer dependencies ask for it exactly, so move your `@ui-sdk` packages with Booki.
|
|
36
|
+
|
|
37
|
+
What changes for an agent, from ui-sdk: `act` checks the shape of the whole call before it runs, so a step with an unknown key or `args` that is not a list fails with a message instead of being half-read; a `setX` action that leaves `x` unchanged, or sets a different value, now fails and says what the value is; a number outside a control's min and max is refused, not clamped; `agentTools` lists `act` first. New in the bridge: an `expect` step, `closed` and `from` on `query`, and `more` and `section` in long snapshots.
|
|
38
|
+
|
|
39
|
+
What changes in Booki:
|
|
40
|
+
|
|
41
|
+
- `LedgerTable`'s `page` state is 1-based, the same as `table.page` and `setPage`. It was 0-based, so `setPage(3)` left `page: 2`, which ui-sdk now reports as a failed step.
|
|
42
|
+
- `@booki/svelte` no longer needs `ssr: { noExternal: [...] }`: `@ui-sdk/svelte` imports its own files with extensions now. Load it through Vite with the Svelte plugin as before.
|
|
43
|
+
- `@booki/primitives` and `@booki/react` no longer copy ui-sdk declaration files into `dist`, since `@ui-sdk/core` exports `SlotProps` now.
|
|
44
|
+
|
|
45
|
+
beta.17 was published on 2026-11-24; under a release-age rule (pnpm 11 waits one day by default) it installs from 2026-11-25.
|
|
46
|
+
- Updated dependencies [[`326ce38`](https://github.com/Walgermo/booki/commit/326ce386d087c74fb359a3508ccf4a416a41adea)]:
|
|
47
|
+
- @booki/primitives@0.1.5
|
|
48
|
+
- @booki/core@0.1.5
|
|
49
|
+
|
|
50
|
+
## 0.1.4
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [[`520026a`](https://github.com/Walgermo/booki/commit/520026a6eea792c8186387a7dbc285b97628de36)]:
|
|
55
|
+
- @booki/primitives@0.1.4
|
|
56
|
+
- @booki/core@0.1.4
|
|
57
|
+
|
|
58
|
+
## 0.1.3
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- [#69](https://github.com/Walgermo/booki/pull/69) [`85bde56`](https://github.com/Walgermo/booki/commit/85bde56ab298f00f1b08e326bb26610457d416f8) Thanks [@Walgermo](https://github.com/Walgermo)! - Four sales reports. `FunnelChart`: how many records reached each step, the conversion from the step before and from the first, the drop-off and the biggest drop; a step that rises is reported. `ForecastChart`: won, committed, best case and weighted revenue per month or quarter, from the same deals and stages as `DealPipeline`, naming the deals it leaves out (no close date, no amount or one without a source, another currency). `RecurringRevenue`: opening, new, expansion, contraction, churn and closing between two dates, as MRR or ARR; agreements billed per month, quarter or year are summed exactly per year, and the monthly view says what rounding moved. `StageDurationChart`: median and longest days per stage, a target per stage, and the deals over it. Rules in `@booki/core/funnel`, `@booki/core/recurring` and `forecastByPeriod` / `timeInStage` in `@booki/core/pipeline`. The catalog has recipes for win rate, a leaderboard, MRR over time, and working without stage history.
|
|
63
|
+
- Updated dependencies [[`85bde56`](https://github.com/Walgermo/booki/commit/85bde56ab298f00f1b08e326bb26610457d416f8)]:
|
|
64
|
+
- @booki/core@0.1.3
|
|
65
|
+
- @booki/primitives@0.1.3
|
|
66
|
+
|
|
67
|
+
## 0.1.2
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- Updated dependencies [[`d7816ae`](https://github.com/Walgermo/booki/commit/d7816ae204780a08b4b1097699e57aaf47002626)]:
|
|
72
|
+
- @booki/core@0.1.2
|
|
73
|
+
- @booki/primitives@0.1.2
|
|
74
|
+
|
|
75
|
+
## 0.1.1
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- [#65](https://github.com/Walgermo/booki/pull/65) [`201f7c9`](https://github.com/Walgermo/booki/commit/201f7c9d1aa843ab3a7c75ebbeb87df831110c08) Thanks [@Walgermo](https://github.com/Walgermo)! - Two controls for sales and customer work. `DealPipeline` is a board of deals in stages with each stage's totals per currency and a weighted forecast: an agent moves open deals, records a value with its source (`setValue`), and sets the expected close date and the owner; a value without a source is shown and never summed; marking a deal won or lost, and reopening it, are a person's buttons. `ActivityTimeline` is a customer's history and next steps: an agent logs calls, emails, meetings and notes, and schedules, reschedules and completes tasks, each recorded as the agent's; removing an entry is a person's. Rules in `@booki/core/pipeline` and `@booki/core/activity`, the `deal.close` and `activity.remove` permissions, a `sales` starter role, and `guardCloseDeal` for the server. `deal.close` is a person's decision: `PERSON_ONLY` and the readiness check now list it.
|
|
80
|
+
- Updated dependencies [[`201f7c9`](https://github.com/Walgermo/booki/commit/201f7c9d1aa843ab3a7c75ebbeb87df831110c08)]:
|
|
81
|
+
- @booki/core@0.1.1
|
|
82
|
+
- @booki/primitives@0.1.1
|
|
83
|
+
|
|
84
|
+
## 0.1.0
|
|
85
|
+
|
|
86
|
+
The first release. It is not on npm: Booki is published once v1 has run in a real
|
|
87
|
+
product. Install it from a clone with `pnpm pack:local` (the install guide in
|
|
88
|
+
`skills/booki/SKILL.md` has the steps), with `@ui-sdk/core` and `@ui-sdk/react` at
|
|
89
|
+
exactly `0.1.0-beta.16`.
|
|
90
|
+
|
|
91
|
+
- **Supported:** React 19 (`@booki/react` with `@booki/core`, `@booki/primitives` and
|
|
92
|
+
`@booki/styles`), and the Norway (NO) and United States (US) country profiles.
|
|
93
|
+
- **Experimental:** Vue, Svelte, Solid and Web Components (`@booki/vue`,
|
|
94
|
+
`@booki/svelte`, `@booki/solid`, `@booki/web`), generated from the same primitives,
|
|
95
|
+
and the SE, DK, GB and DE starter profiles.
|
|
96
|
+
- Accounting and audit controls an agent operates by name through the ui-sdk bridge:
|
|
97
|
+
amounts in minor units, vouchers that must balance, bank account, IBAN and KID
|
|
98
|
+
redacted from the snapshot, periods, VAT, invoices, payment batches, reconciliation,
|
|
99
|
+
approvals, close, findings and workpapers. `useBookiField` gives a field you keep
|
|
100
|
+
Booki's agent action and rules.
|
|
101
|
+
- Approving, signing off, finalizing and releasing are a person's: never an agent
|
|
102
|
+
action, refused by `createBookiAgent` whatever the app allows, and by the server
|
|
103
|
+
guards in `@booki/core/server` (`PERSON_ONLY`). `data-agent-confirm` steps wait for
|
|
104
|
+
the person; `attachAudit` and `actAndRecord` record what the agent did, what it was
|
|
105
|
+
refused and who decided.
|
|
106
|
+
- Refusals, the bridge's own sentences and the agent cursor in English and Norwegian
|
|
107
|
+
(`createBookiAgent({ language: "nb" })`).
|
|
108
|
+
- Fixed in seven rounds of a product pilot in a real app, from the install guide.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stian Walgermo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @booki-aui/svelte
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
Experimental. This adapter is less tested than `@booki-aui/react`, and its API may
|
|
4
|
+
change between releases. See the
|
|
5
|
+
[Support section](https://github.com/Walgermo/booki#support) of the README.
|
|
6
|
+
|
|
7
|
+
Agent-first accounting controls for Svelte. The same rules, state and agent
|
|
8
|
+
actions as `@booki-aui/react`, generated from the same framework-free definitions
|
|
9
|
+
in `@booki-aui/primitives`.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add @booki-aui/svelte @booki-aui/styles
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Each control is a namespace of parts, like `AmountField.Root` and
|
|
16
|
+
`AmountField.Input`. Create the agent bridge once with `createBookiAgent`.
|
|
17
|
+
Peer dependencies: `@ui-sdk/core` and `@ui-sdk/svelte` 0.1.0-beta.17.
|
|
18
|
+
|
|
19
|
+
Load it through Vite with the Svelte plugin (SvelteKit has it), as with any Svelte component library.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { accountPicker } from '@booki-aui/primitives/account-picker';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly input: "input";
|
|
7
|
+
readonly list: "div";
|
|
8
|
+
readonly option: "div";
|
|
9
|
+
readonly empty: "div";
|
|
10
|
+
readonly select: "select";
|
|
11
|
+
};
|
|
12
|
+
/** AccountPicker's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
13
|
+
declare const AccountPicker: Parts<typeof accountPicker, typeof parts>;
|
|
14
|
+
|
|
15
|
+
export { AccountPicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { accountingPeriod } from '@booki-aui/primitives/accounting-period-select';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly trigger: "button";
|
|
7
|
+
readonly list: "div";
|
|
8
|
+
readonly option: "div";
|
|
9
|
+
readonly select: "select";
|
|
10
|
+
};
|
|
11
|
+
/** AccountingPeriodSelect's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
12
|
+
declare const AccountingPeriodSelect: Parts<typeof accountingPeriod, typeof parts>;
|
|
13
|
+
|
|
14
|
+
export { AccountingPeriodSelect };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { activityTimeline } from '@booki-aui/primitives/activity-timeline';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly complete: "button";
|
|
7
|
+
readonly remove: "button";
|
|
8
|
+
};
|
|
9
|
+
/** ActivityTimeline's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
10
|
+
declare const ActivityTimeline: Parts<typeof activityTimeline, typeof parts>;
|
|
11
|
+
|
|
12
|
+
export { ActivityTimeline };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { agedBalances } from '@booki-aui/primitives/aged-balances';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly date: "input";
|
|
7
|
+
readonly party: "button";
|
|
8
|
+
readonly back: "button";
|
|
9
|
+
readonly search: "input";
|
|
10
|
+
readonly bucket: "select";
|
|
11
|
+
readonly sort: "button";
|
|
12
|
+
readonly prev: "button";
|
|
13
|
+
readonly next: "button";
|
|
14
|
+
};
|
|
15
|
+
/** AgedBalances's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
16
|
+
declare const AgedBalances: Parts<typeof agedBalances, typeof parts>;
|
|
17
|
+
|
|
18
|
+
export { AgedBalances };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/agent.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AgentPolicyOptions } from '@booki-aui/primitives/agent-policy';
|
|
2
|
+
export { AgentDecision, actAndRecord, withRecordedAct } from '@booki-aui/primitives/agent-policy';
|
|
3
|
+
import { createAgent } from '@ui-sdk/svelte/agent';
|
|
4
|
+
|
|
5
|
+
type BookiAgent = ReturnType<typeof createAgent>;
|
|
6
|
+
type CreateBookiAgentOptions = AgentPolicyOptions & {
|
|
7
|
+
/** How long a step waits for `allow`, in ms. */
|
|
8
|
+
timeout?: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The agent bridge for Booki's Svelte parts, with the same rules as
|
|
12
|
+
* @booki-aui/react: a marked step runs only on a yes from `allow`, and a person's
|
|
13
|
+
* decision (approve, sign, release) is refused whatever `allow` says.
|
|
14
|
+
*/
|
|
15
|
+
declare function createBookiAgent(options?: CreateBookiAgentOptions): BookiAgent;
|
|
16
|
+
/** Registers the agent's tools with the browser's own agent (WebMCP), with the same rules. */
|
|
17
|
+
declare const registerTools: (agent: BookiAgent, options: AgentPolicyOptions & {
|
|
18
|
+
allow: NonNullable<AgentPolicyOptions["allow"]>;
|
|
19
|
+
}) => () => void;
|
|
20
|
+
|
|
21
|
+
export { type BookiAgent, type CreateBookiAgentOptions, createBookiAgent, registerTools };
|
package/dist/agent.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { agingChart } from '@booki-aui/primitives/aging-chart';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly bucket: "button";
|
|
7
|
+
readonly clear: "button";
|
|
8
|
+
};
|
|
9
|
+
/** AgingChart's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
10
|
+
declare const AgingChart: Parts<typeof agingChart, typeof parts>;
|
|
11
|
+
|
|
12
|
+
export { AgingChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { amountField } from '@booki-aui/primitives/amount-field';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly currency: "span";
|
|
7
|
+
readonly input: "input";
|
|
8
|
+
};
|
|
9
|
+
/** AmountField's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
10
|
+
declare const AmountField: Parts<typeof amountField, typeof parts>;
|
|
11
|
+
|
|
12
|
+
export { AmountField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { approvalChain } from '@booki-aui/primitives/approval-chain';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly approve: "button";
|
|
7
|
+
readonly reject: "button";
|
|
8
|
+
readonly escalate: "button";
|
|
9
|
+
};
|
|
10
|
+
/** ApprovalChain's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
11
|
+
declare const ApprovalChain: Parts<typeof approvalChain, typeof parts>;
|
|
12
|
+
|
|
13
|
+
export { ApprovalChain };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { attestationStatus } from '@booki-aui/primitives/attestation-status';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly badge: "span";
|
|
7
|
+
readonly approve: "button";
|
|
8
|
+
readonly reject: "button";
|
|
9
|
+
readonly escalate: "button";
|
|
10
|
+
};
|
|
11
|
+
/** AttestationStatus's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
12
|
+
declare const AttestationStatus: Parts<typeof attestationStatus, typeof parts>;
|
|
13
|
+
|
|
14
|
+
export { AttestationStatus };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { auditFindings } from '@booki-aui/primitives/audit-findings';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly confirm: "button";
|
|
7
|
+
readonly reason: "textarea";
|
|
8
|
+
readonly withdraw: "button";
|
|
9
|
+
readonly reopen: "button";
|
|
10
|
+
};
|
|
11
|
+
/** AuditFindings's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
12
|
+
declare const AuditFindings: Parts<typeof auditFindings, typeof parts>;
|
|
13
|
+
|
|
14
|
+
export { AuditFindings };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { auditWorkpaper } from '@booki-aui/primitives/audit-workpaper';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly result: "select";
|
|
7
|
+
readonly tick: "select";
|
|
8
|
+
readonly cell: "input";
|
|
9
|
+
readonly conclusion: "textarea";
|
|
10
|
+
readonly method: "select";
|
|
11
|
+
readonly sampler: "input";
|
|
12
|
+
readonly draw: "button";
|
|
13
|
+
readonly prepare: "button";
|
|
14
|
+
readonly review: "button";
|
|
15
|
+
readonly withdraw: "button";
|
|
16
|
+
};
|
|
17
|
+
/** AuditWorkpaper's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
18
|
+
declare const AuditWorkpaper: Parts<typeof auditWorkpaper, typeof parts>;
|
|
19
|
+
|
|
20
|
+
export { AuditWorkpaper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { bankAccount } from '@booki-aui/primitives/bank-account-input';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly kontonummer: "input";
|
|
7
|
+
readonly routing: "input";
|
|
8
|
+
readonly account: "input";
|
|
9
|
+
};
|
|
10
|
+
/** BankAccountInput's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
11
|
+
declare const BankAccountInput: Parts<typeof bankAccount, typeof parts>;
|
|
12
|
+
|
|
13
|
+
export { BankAccountInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { bankReconciliation } from '@booki-aui/primitives/bank-reconciliation';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly match: "button";
|
|
7
|
+
readonly approve: "button";
|
|
8
|
+
readonly reject: "button";
|
|
9
|
+
};
|
|
10
|
+
/** BankReconciliation's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
11
|
+
declare const BankReconciliation: Parts<typeof bankReconciliation, typeof parts>;
|
|
12
|
+
|
|
13
|
+
export { BankReconciliation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { barChart } from '@booki-aui/primitives/bar-chart';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly bar: "button";
|
|
7
|
+
readonly more: "button";
|
|
8
|
+
};
|
|
9
|
+
/** BarChart's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
10
|
+
declare const BarChart: Parts<typeof barChart, typeof parts>;
|
|
11
|
+
|
|
12
|
+
export { BarChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Parts } from '@ui-sdk/svelte/primitive';
|
|
2
|
+
import { cashflowWaterfall } from '@booki-aui/primitives/cashflow-waterfall';
|
|
3
|
+
|
|
4
|
+
declare const parts: {
|
|
5
|
+
readonly root: "div";
|
|
6
|
+
readonly step: "button";
|
|
7
|
+
};
|
|
8
|
+
/** CashflowWaterfall's parts for Svelte: the same state, actions and agent bridge as in React. */
|
|
9
|
+
declare const CashflowWaterfall: Parts<typeof cashflowWaterfall, typeof parts>;
|
|
10
|
+
|
|
11
|
+
export { CashflowWaterfall };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/approval-chain.ts
|
|
2
|
+
import { createParts } from "@ui-sdk/svelte/primitive";
|
|
3
|
+
import { approvalChain } from "@booki-aui/primitives/approval-chain";
|
|
4
|
+
var parts = {
|
|
5
|
+
root: "div",
|
|
6
|
+
approve: "button",
|
|
7
|
+
reject: "button",
|
|
8
|
+
escalate: "button"
|
|
9
|
+
};
|
|
10
|
+
var ApprovalChain = createParts(approvalChain, parts);
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
ApprovalChain
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chunk-22AAHCUO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/approval-chain.ts"],"sourcesContent":["// Generated by scripts/generate-frameworks.mjs from @booki-aui/react's parts. Do not edit.\nimport { createParts, type Parts } from \"@ui-sdk/svelte/primitive\";\nimport { approvalChain } from \"@booki-aui/primitives/approval-chain\";\n\nconst parts = {\n root: \"div\",\n approve: \"button\",\n reject: \"button\",\n escalate: \"button\",\n} as const;\n\n/** ApprovalChain's parts for Svelte: the same state, actions and agent bridge as in React. */\nexport const ApprovalChain: Parts<typeof approvalChain, typeof parts> = createParts(approvalChain, parts);\n"],"mappings":";AACA,SAAS,mBAA+B;AACxC,SAAS,qBAAqB;AAE9B,IAAM,QAAQ;AAAA,EACZ,MAAM;AAAA,EACN,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AACZ;AAGO,IAAM,gBAA2D,YAAY,eAAe,KAAK;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/tax-code-select.ts
|
|
2
|
+
import { createParts } from "@ui-sdk/svelte/primitive";
|
|
3
|
+
import { taxCodeSelect } from "@booki-aui/primitives/tax-code-select";
|
|
4
|
+
var parts = {
|
|
5
|
+
root: "div",
|
|
6
|
+
trigger: "button",
|
|
7
|
+
list: "div",
|
|
8
|
+
option: "div",
|
|
9
|
+
select: "select"
|
|
10
|
+
};
|
|
11
|
+
var TaxCodeSelect = createParts(taxCodeSelect, parts);
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
TaxCodeSelect
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-2GMGUG6C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tax-code-select.ts"],"sourcesContent":["// Generated by scripts/generate-frameworks.mjs from @booki-aui/react's parts. Do not edit.\nimport { createParts, type Parts } from \"@ui-sdk/svelte/primitive\";\nimport { taxCodeSelect } from \"@booki-aui/primitives/tax-code-select\";\n\nconst parts = {\n root: \"div\",\n trigger: \"button\",\n list: \"div\",\n option: \"div\",\n select: \"select\",\n} as const;\n\n/** TaxCodeSelect's parts for Svelte: the same state, actions and agent bridge as in React. */\nexport const TaxCodeSelect: Parts<typeof taxCodeSelect, typeof parts> = createParts(taxCodeSelect, parts);\n"],"mappings":";AACA,SAAS,mBAA+B;AACxC,SAAS,qBAAqB;AAE9B,IAAM,QAAQ;AAAA,EACZ,MAAM;AAAA,EACN,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AACV;AAGO,IAAM,gBAA2D,YAAY,eAAe,KAAK;","names":[]}
|