@booki-aui/core 0.2.1 → 0.3.1

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/activity.js +2 -2
  3. package/dist/aging.js +2 -2
  4. package/dist/approval.js +2 -2
  5. package/dist/attachments.js +2 -2
  6. package/dist/audit.js +2 -2
  7. package/dist/{chunk-T3M424SP.js → chunk-27RDC7G3.js} +3 -3
  8. package/dist/{chunk-V37IQ36D.js → chunk-2C55B6IJ.js} +2 -2
  9. package/dist/{chunk-4OAXKS34.js → chunk-2EAEXF7I.js} +2 -2
  10. package/dist/{chunk-4ONDQS7Q.js → chunk-52EKBGGW.js} +2 -2
  11. package/dist/{chunk-O7PLFRE7.js → chunk-5DWWPSJA.js} +2 -2
  12. package/dist/{chunk-HWGE4OOL.js → chunk-5VNN4PIJ.js} +3 -3
  13. package/dist/{chunk-6BK7VPNH.js → chunk-A6KSR2CU.js} +3 -3
  14. package/dist/{chunk-CUKV2KU3.js → chunk-ARZVBRIE.js} +2 -2
  15. package/dist/{chunk-I4YPEKDY.js → chunk-BG3DOWAV.js} +2 -2
  16. package/dist/{chunk-DJPVY5F2.js → chunk-BR7ANGBK.js} +2 -2
  17. package/dist/{chunk-XXMOQEIG.js → chunk-BVIUV4IF.js} +2 -2
  18. package/dist/{chunk-ROCF6IEK.js → chunk-D3CWZFQK.js} +2 -2
  19. package/dist/{chunk-MV3NCGG4.js → chunk-DW5ZA4OV.js} +3 -3
  20. package/dist/{chunk-2H3DAON4.js → chunk-EAOGPZWX.js} +2 -2
  21. package/dist/{chunk-FP52SC7S.js → chunk-EE47SBAO.js} +2 -2
  22. package/dist/{chunk-3WGVKVPL.js → chunk-FAWKQP2I.js} +2 -2
  23. package/dist/{chunk-5Z6LU5LH.js → chunk-FY7LZARF.js} +2 -2
  24. package/dist/{chunk-3PAJMQ5H.js → chunk-H7MJOFWG.js} +3 -3
  25. package/dist/{chunk-AGNXTHJA.js → chunk-I5JCIRZM.js} +2 -2
  26. package/dist/{chunk-JQFQM2K3.js → chunk-JDABNGRY.js} +2 -2
  27. package/dist/{chunk-JIYWHAO3.js → chunk-MNIVGOTQ.js} +2 -2
  28. package/dist/{chunk-OUWAGY5G.js → chunk-O5XMBNDG.js} +4 -4
  29. package/dist/{chunk-U5T5SUPP.js → chunk-P2BRRLHR.js} +13 -2
  30. package/dist/{chunk-U5T5SUPP.js.map → chunk-P2BRRLHR.js.map} +1 -1
  31. package/dist/{chunk-N77E7ZP7.js → chunk-PHBSYX4W.js} +2 -2
  32. package/dist/{chunk-5MYAIV42.js → chunk-PYBRKOFC.js} +25 -4
  33. package/dist/{chunk-5MYAIV42.js.map → chunk-PYBRKOFC.js.map} +1 -1
  34. package/dist/{chunk-NY6TSOQO.js → chunk-UOTXXSAV.js} +2 -2
  35. package/dist/{chunk-QUMUL4OH.js → chunk-V6ZJMVR3.js} +2 -2
  36. package/dist/{chunk-LJAY7P3Q.js → chunk-VS2DXFZF.js} +2 -2
  37. package/dist/{chunk-EGSWMJ7L.js → chunk-XTAIAJ4M.js} +2 -2
  38. package/dist/{chunk-BMSGD3FU.js → chunk-YUQXQEDW.js} +2 -2
  39. package/dist/client-request.js +2 -2
  40. package/dist/close.js +2 -2
  41. package/dist/document-signoff.js +2 -2
  42. package/dist/expense.js +2 -2
  43. package/dist/findings.js +2 -2
  44. package/dist/fixed-assets.js +3 -3
  45. package/dist/funnel.js +2 -2
  46. package/dist/fx.js +3 -3
  47. package/dist/index.js +30 -30
  48. package/dist/invoice.js +2 -2
  49. package/dist/ledger.js +3 -3
  50. package/dist/locale/index.js +2 -2
  51. package/dist/messages.js +2 -2
  52. package/dist/money.js +2 -2
  53. package/dist/msg.d.ts +11 -0
  54. package/dist/msg.js +1 -1
  55. package/dist/payment-batch.js +2 -2
  56. package/dist/period-lock.js +3 -3
  57. package/dist/period.js +2 -2
  58. package/dist/permissions.js +2 -2
  59. package/dist/pipeline.js +2 -2
  60. package/dist/reconciliation.js +2 -2
  61. package/dist/recurring.js +2 -2
  62. package/dist/server.d.ts +8 -2
  63. package/dist/server.js +17 -17
  64. package/dist/server.js.map +1 -1
  65. package/dist/supplier-invoice.js +2 -2
  66. package/dist/table.js +2 -2
  67. package/dist/vat-return.js +3 -3
  68. package/dist/voucher.js +6 -6
  69. package/package.json +1 -1
  70. /package/dist/{chunk-T3M424SP.js.map → chunk-27RDC7G3.js.map} +0 -0
  71. /package/dist/{chunk-V37IQ36D.js.map → chunk-2C55B6IJ.js.map} +0 -0
  72. /package/dist/{chunk-4OAXKS34.js.map → chunk-2EAEXF7I.js.map} +0 -0
  73. /package/dist/{chunk-4ONDQS7Q.js.map → chunk-52EKBGGW.js.map} +0 -0
  74. /package/dist/{chunk-O7PLFRE7.js.map → chunk-5DWWPSJA.js.map} +0 -0
  75. /package/dist/{chunk-HWGE4OOL.js.map → chunk-5VNN4PIJ.js.map} +0 -0
  76. /package/dist/{chunk-6BK7VPNH.js.map → chunk-A6KSR2CU.js.map} +0 -0
  77. /package/dist/{chunk-CUKV2KU3.js.map → chunk-ARZVBRIE.js.map} +0 -0
  78. /package/dist/{chunk-I4YPEKDY.js.map → chunk-BG3DOWAV.js.map} +0 -0
  79. /package/dist/{chunk-DJPVY5F2.js.map → chunk-BR7ANGBK.js.map} +0 -0
  80. /package/dist/{chunk-XXMOQEIG.js.map → chunk-BVIUV4IF.js.map} +0 -0
  81. /package/dist/{chunk-ROCF6IEK.js.map → chunk-D3CWZFQK.js.map} +0 -0
  82. /package/dist/{chunk-MV3NCGG4.js.map → chunk-DW5ZA4OV.js.map} +0 -0
  83. /package/dist/{chunk-2H3DAON4.js.map → chunk-EAOGPZWX.js.map} +0 -0
  84. /package/dist/{chunk-FP52SC7S.js.map → chunk-EE47SBAO.js.map} +0 -0
  85. /package/dist/{chunk-3WGVKVPL.js.map → chunk-FAWKQP2I.js.map} +0 -0
  86. /package/dist/{chunk-5Z6LU5LH.js.map → chunk-FY7LZARF.js.map} +0 -0
  87. /package/dist/{chunk-3PAJMQ5H.js.map → chunk-H7MJOFWG.js.map} +0 -0
  88. /package/dist/{chunk-AGNXTHJA.js.map → chunk-I5JCIRZM.js.map} +0 -0
  89. /package/dist/{chunk-JQFQM2K3.js.map → chunk-JDABNGRY.js.map} +0 -0
  90. /package/dist/{chunk-JIYWHAO3.js.map → chunk-MNIVGOTQ.js.map} +0 -0
  91. /package/dist/{chunk-OUWAGY5G.js.map → chunk-O5XMBNDG.js.map} +0 -0
  92. /package/dist/{chunk-N77E7ZP7.js.map → chunk-PHBSYX4W.js.map} +0 -0
  93. /package/dist/{chunk-NY6TSOQO.js.map → chunk-UOTXXSAV.js.map} +0 -0
  94. /package/dist/{chunk-QUMUL4OH.js.map → chunk-V6ZJMVR3.js.map} +0 -0
  95. /package/dist/{chunk-LJAY7P3Q.js.map → chunk-VS2DXFZF.js.map} +0 -0
  96. /package/dist/{chunk-EGSWMJ7L.js.map → chunk-XTAIAJ4M.js.map} +0 -0
  97. /package/dist/{chunk-BMSGD3FU.js.map → chunk-YUQXQEDW.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @booki/core
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#127](https://github.com/Walgermo/booki/pull/127) [`536a34a`](https://github.com/Walgermo/booki/commit/536a34a8fb35f575862ec5cfee06fe74000dac75) Thanks [@Walgermo](https://github.com/Walgermo)! - `useBookiField`: `expect` now works on every kind. Each snapshot holds `value` beside its own key (`minor`, `code`, `account`, `date`), and `expect` compares `value`, so `expect` after `setAccount("2400")` passes instead of reading null. An amount's `value` and `minor` are both integer minor units.
8
+
9
+ With `language: "nb"`, a failed multi-step `act` now ends in Norwegian: "Stegene før dette er utført." and "Send det på nytt med …" replace the English "The steps before this one stay done." and "Send it again with …". This holds when the failing step's own sentence ends in a list ("Its labels: …", "Buttons: …") or is one the catalogue does not know.
10
+
11
+ `useBookiField` with `group: false` no longer puts `aria-label` on the root, so `getByLabelText("Your label")` finds the input alone and your visible `<label>` is the only accessible name. The agent still reads the same label, from a `hidden` element inside the root, which is not shown or read aloud with or without `@booki-aui/styles`. If you query that text with `getByText`, it now matches two elements: use `getByLabelText(label)` or `getByText(label, { selector: "label" })`.
12
+
13
+ `useBookiField`: `value` is now in each kind's `controlled`, so when your `onValueChange` refuses a change on a field you do not update, the agent's `setAccount`, `setCode`, `setDate` or `setMinor` now fails with "didn't take: it is still …" instead of reporting ok.
14
+
15
+ Docs: render the product's own input inside `useBookiField`, never one that is on the bridge such as ui-sdk's `Input`, or the field appears twice.
16
+
17
+ ## 0.3.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#120](https://github.com/Walgermo/booki/pull/120) [`6a7055c`](https://github.com/Walgermo/booki/commit/6a7055c05fad4d0dacda520afc5fe5823750fa4c) Thanks [@Walgermo](https://github.com/Walgermo)! - Breaking while Booki is 0.x, so this is a minor.
22
+
23
+ `AmountField` and the other form controls now put `aria-invalid`, `aria-describedby` and `aria-errormessage` on the visible input instead of the wrapper, so a screen reader announces an error on the field. If you set `aria-describedby` on one of them and relied on it reaching the wrapper, move it to a wrapper of your own. On the US bank field the account-number input now takes `aria-invalid` too.
24
+
25
+ With `allowEmpty`, `AmountField` now calls `onValueChange(null)` at runtime when the field is emptied (clearing it, or deleting its text). A handler that does arithmetic on the value or calls `money()` on it must handle `null`. `onEmpty` still fires, after `onValueChange`. In types, `onValueChange` is `(minor: number | null, details?) => void` whenever `allowEmpty` is `true` or a `boolean` variable, so a handler typed `(minor: number)` there no longer type-checks: accept `number | null`. With `allowEmpty` left out or `false` the handler still gets a `number`. `<AmountField>` infers this from its own props. The exported `AmountFieldProps` defaults to `boolean`, so a wrapper `function MyAmount(props: AmountFieldProps)` accepts `allowEmpty` and a `number | null` handler; write `AmountFieldProps<false>` to keep a wrapper on a `number` handler. The props are now listed in the catalog and the skill.
26
+
27
+ `useBookiField` takes `group: false` for a field that already has its own labelled group (a `fieldset` with a `legend`): the root loses `role="group"`, so the group is not announced twice. It also has a new `account` kind (`setAccount`): digits of a length range, or a closed `chart` whose unknown numbers are refused with the nearest accounts, in English and Norwegian. An empty number is refused with "an account number is needed" with or without a chart. The check applies to a whole number, so a render that a person types into keeps a draft and calls `change` on blur (see `docs/own-controls.md`).
28
+
29
+ ### Patch Changes
30
+
31
+ - [#116](https://github.com/Walgermo/booki/pull/116) [`1c95020`](https://github.com/Walgermo/booki/commit/1c95020e1ea0a99556ea58b79e0a590711fdb621) Thanks [@Walgermo](https://github.com/Walgermo)! - With `createBookiAgent({ language: "nb" })` a declined confirm now comes back in Norwegian also when the app's confirm text is a question or several sentences ("Bokføre bilag 12. Dette kan ikke angres: vil du fortsette?"); the confirm text of a refusal is read as page text. `toHttp(verdict).body` is typed (`HttpBody<T>`: the value on success, `{ ok: false, code, message, issues? }` on a refusal) instead of `unknown`, so it can be mapped to your own error shape. A person-only refusal no longer lists the refused agent's own roles under "ask someone with one of these roles".
32
+
3
33
  ## 0.2.1
4
34
 
5
35
  No changes in this release.
package/dist/activity.js CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  rescheduleTask,
12
12
  scheduleTask,
13
13
  timeline
14
- } from "./chunk-XXMOQEIG.js";
15
- import "./chunk-U5T5SUPP.js";
14
+ } from "./chunk-BVIUV4IF.js";
15
+ import "./chunk-P2BRRLHR.js";
16
16
  export {
17
17
  ACTIVITY_KINDS,
18
18
  LOGGED_KINDS,
package/dist/aging.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  daysOverdue,
6
6
  overdueParties,
7
7
  partyItems
8
- } from "./chunk-3WGVKVPL.js";
9
- import "./chunk-U5T5SUPP.js";
8
+ } from "./chunk-FAWKQP2I.js";
9
+ import "./chunk-P2BRRLHR.js";
10
10
  export {
11
11
  DEFAULT_AGING_LIMITS,
12
12
  ageItems,
package/dist/approval.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  assertApproved,
4
4
  decide,
5
5
  requiredLevels
6
- } from "./chunk-2H3DAON4.js";
7
- import "./chunk-U5T5SUPP.js";
6
+ } from "./chunk-EAOGPZWX.js";
7
+ import "./chunk-P2BRRLHR.js";
8
8
  export {
9
9
  approvalState,
10
10
  assertApproved,
@@ -9,8 +9,8 @@ import {
9
9
  removeAttachment,
10
10
  setAttachmentKind,
11
11
  validateAttachmentFile
12
- } from "./chunk-N77E7ZP7.js";
13
- import "./chunk-U5T5SUPP.js";
12
+ } from "./chunk-PHBSYX4W.js";
13
+ import "./chunk-P2BRRLHR.js";
14
14
  export {
15
15
  ATTACHMENT_KINDS,
16
16
  assertEvidenced,
package/dist/audit.js CHANGED
@@ -17,8 +17,8 @@ import {
17
17
  summarizeSample,
18
18
  withdrawSignOff,
19
19
  workpaperIssues
20
- } from "./chunk-CUKV2KU3.js";
21
- import "./chunk-U5T5SUPP.js";
20
+ } from "./chunk-ARZVBRIE.js";
21
+ import "./chunk-P2BRRLHR.js";
22
22
  export {
23
23
  EMPTY_WORKPAPER,
24
24
  SAMPLE_METHODS,
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  parsePeriodCode,
6
6
  periodBounds
7
- } from "./chunk-JQFQM2K3.js";
7
+ } from "./chunk-JDABNGRY.js";
8
8
  import {
9
9
  BookiError
10
- } from "./chunk-U5T5SUPP.js";
10
+ } from "./chunk-P2BRRLHR.js";
11
11
 
12
12
  // src/period-lock.ts
13
13
  var RANK = { open: 0, "soft-closed": 1, "hard-closed": 2 };
@@ -57,4 +57,4 @@ export {
57
57
  assertPostingAllowed,
58
58
  setPeriodStatus
59
59
  };
60
- //# sourceMappingURL=chunk-T3M424SP.js.map
60
+ //# sourceMappingURL=chunk-27RDC7G3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/invoice.ts
7
7
  var TAX_CATEGORIES = ["S", "Z", "E", "AE", "K"];
@@ -199,4 +199,4 @@ export {
199
199
  draftCreditNote,
200
200
  invoiceLineFields
201
201
  };
202
- //# sourceMappingURL=chunk-V37IQ36D.js.map
202
+ //# sourceMappingURL=chunk-2C55B6IJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BookiError
3
- } from "./chunk-U5T5SUPP.js";
3
+ } from "./chunk-P2BRRLHR.js";
4
4
 
5
5
  // src/locale/profiles.ts
6
6
  var NO_PROFILE = {
@@ -385,4 +385,4 @@ export {
385
385
  BOOKI_PROFILES,
386
386
  getBookiProfile
387
387
  };
388
- //# sourceMappingURL=chunk-4OAXKS34.js.map
388
+ //# sourceMappingURL=chunk-2EAEXF7I.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/permissions.ts
7
7
  var PERMISSIONS = [
@@ -175,4 +175,4 @@ export {
175
175
  can,
176
176
  assertCan
177
177
  };
178
- //# sourceMappingURL=chunk-4ONDQS7Q.js.map
178
+ //# sourceMappingURL=chunk-52EKBGGW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BookiError
3
- } from "./chunk-U5T5SUPP.js";
3
+ } from "./chunk-P2BRRLHR.js";
4
4
 
5
5
  // src/document-signoff.ts
6
6
  var SIGNOFF_LEVELS = ["performed", "reviewed", "approved"];
@@ -81,4 +81,4 @@ export {
81
81
  signDocument,
82
82
  withdrawSignature
83
83
  };
84
- //# sourceMappingURL=chunk-O7PLFRE7.js.map
84
+ //# sourceMappingURL=chunk-5DWWPSJA.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  minorDigitsFor
3
- } from "./chunk-DJPVY5F2.js";
3
+ } from "./chunk-BR7ANGBK.js";
4
4
  import {
5
5
  BookiError
6
- } from "./chunk-U5T5SUPP.js";
6
+ } from "./chunk-P2BRRLHR.js";
7
7
 
8
8
  // src/fx.ts
9
9
  var RATE_SCALE = 1e6;
@@ -94,4 +94,4 @@ export {
94
94
  assertForeignAmount,
95
95
  revalue
96
96
  };
97
- //# sourceMappingURL=chunk-HWGE4OOL.js.map
97
+ //# sourceMappingURL=chunk-5VNN4PIJ.js.map
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-ICBA5A2V.js";
4
4
  import {
5
5
  periodBounds
6
- } from "./chunk-JQFQM2K3.js";
6
+ } from "./chunk-JDABNGRY.js";
7
7
  import {
8
8
  BookiError,
9
9
  msg
10
- } from "./chunk-U5T5SUPP.js";
10
+ } from "./chunk-P2BRRLHR.js";
11
11
 
12
12
  // src/vat-return.ts
13
13
  var DRAFT_VAT_FILING = { status: "draft" };
@@ -224,4 +224,4 @@ export {
224
224
  NO_VAT_SCHEMA_EXAMPLE,
225
225
  GENERIC_VAT_SCHEMA_EXAMPLE
226
226
  };
227
- //# sourceMappingURL=chunk-6BK7VPNH.js.map
227
+ //# sourceMappingURL=chunk-A6KSR2CU.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/audit.ts
7
7
  function divRound(numerator, denominator) {
@@ -357,4 +357,4 @@ export {
357
357
  signOffWorkpaper,
358
358
  withdrawSignOff
359
359
  };
360
- //# sourceMappingURL=chunk-CUKV2KU3.js.map
360
+ //# sourceMappingURL=chunk-ARZVBRIE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BookiError
3
- } from "./chunk-U5T5SUPP.js";
3
+ } from "./chunk-P2BRRLHR.js";
4
4
 
5
5
  // src/table.ts
6
6
  var MAX_PAGE_SIZE = 500;
@@ -132,4 +132,4 @@ export {
132
132
  assertPage,
133
133
  toCsv
134
134
  };
135
- //# sourceMappingURL=chunk-I4YPEKDY.js.map
135
+ //# sourceMappingURL=chunk-BG3DOWAV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BookiError
3
- } from "./chunk-U5T5SUPP.js";
3
+ } from "./chunk-P2BRRLHR.js";
4
4
 
5
5
  // src/money.ts
6
6
  var MINOR_DIGITS = {
@@ -274,4 +274,4 @@ export {
274
274
  parseToMinor,
275
275
  parseToMoney
276
276
  };
277
- //# sourceMappingURL=chunk-DJPVY5F2.js.map
277
+ //# sourceMappingURL=chunk-BR7ANGBK.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/activity.ts
7
7
  var ACTIVITY_KINDS = ["call", "email", "meeting", "note", "task"];
@@ -136,4 +136,4 @@ export {
136
136
  activityIssues,
137
137
  findActivity
138
138
  };
139
- //# sourceMappingURL=chunk-XXMOQEIG.js.map
139
+ //# sourceMappingURL=chunk-BVIUV4IF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  msg
3
- } from "./chunk-U5T5SUPP.js";
3
+ } from "./chunk-P2BRRLHR.js";
4
4
 
5
5
  // src/funnel.ts
6
6
  var pct = (part, whole) => whole > 0 ? Math.round(part / whole * 1e3) / 10 : null;
@@ -56,4 +56,4 @@ export {
56
56
  funnel,
57
57
  reachedCounts
58
58
  };
59
- //# sourceMappingURL=chunk-ROCF6IEK.js.map
59
+ //# sourceMappingURL=chunk-D3CWZFQK.js.map
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-ICBA5A2V.js";
4
4
  import {
5
5
  periodBounds
6
- } from "./chunk-JQFQM2K3.js";
6
+ } from "./chunk-JDABNGRY.js";
7
7
  import {
8
8
  BookiError,
9
9
  msg
10
- } from "./chunk-U5T5SUPP.js";
10
+ } from "./chunk-P2BRRLHR.js";
11
11
 
12
12
  // src/ledger.ts
13
13
  function checkRange(range = {}) {
@@ -260,4 +260,4 @@ export {
260
260
  accountLedger,
261
261
  explainVariance
262
262
  };
263
- //# sourceMappingURL=chunk-MV3NCGG4.js.map
263
+ //# sourceMappingURL=chunk-DW5ZA4OV.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/approval.ts
7
7
  function checkChain(chain) {
@@ -129,4 +129,4 @@ export {
129
129
  decide,
130
130
  assertApproved
131
131
  };
132
- //# sourceMappingURL=chunk-2H3DAON4.js.map
132
+ //# sourceMappingURL=chunk-EAOGPZWX.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/client-request.ts
7
7
  var CLIENT_REQUEST_STATUSES = [
@@ -153,4 +153,4 @@ export {
153
153
  assertAnswered,
154
154
  redactRequest
155
155
  };
156
- //# sourceMappingURL=chunk-FP52SC7S.js.map
156
+ //# sourceMappingURL=chunk-EE47SBAO.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/aging.ts
7
7
  var DEFAULT_AGING_LIMITS = [0, 30, 60, 90];
@@ -153,4 +153,4 @@ export {
153
153
  partyItems,
154
154
  overdueParties
155
155
  };
156
- //# sourceMappingURL=chunk-3WGVKVPL.js.map
156
+ //# sourceMappingURL=chunk-FAWKQP2I.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/payment-batch.ts
7
7
  function batchTotalMinor(batch) {
@@ -102,4 +102,4 @@ export {
102
102
  assertReleasable,
103
103
  releaseBatch
104
104
  };
105
- //# sourceMappingURL=chunk-5Z6LU5LH.js.map
105
+ //# sourceMappingURL=chunk-FY7LZARF.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  parsePeriodCode,
3
3
  periodBounds
4
- } from "./chunk-JQFQM2K3.js";
4
+ } from "./chunk-JDABNGRY.js";
5
5
  import {
6
6
  BookiError,
7
7
  msg
8
- } from "./chunk-U5T5SUPP.js";
8
+ } from "./chunk-P2BRRLHR.js";
9
9
 
10
10
  // src/fixed-assets.ts
11
11
  var DEPRECIATION_METHODS = ["straight-line", "declining-balance"];
@@ -269,4 +269,4 @@ export {
269
269
  depreciationRun,
270
270
  assertRunnable
271
271
  };
272
- //# sourceMappingURL=chunk-3PAJMQ5H.js.map
272
+ //# sourceMappingURL=chunk-H7MJOFWG.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/findings.ts
7
7
  var FINDING_CATEGORIES = ["misstatement", "control-deficiency", "compliance", "other"];
@@ -226,4 +226,4 @@ export {
226
226
  reopenFinding,
227
227
  redactFinding
228
228
  };
229
- //# sourceMappingURL=chunk-AGNXTHJA.js.map
229
+ //# sourceMappingURL=chunk-I5JCIRZM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  msg
3
- } from "./chunk-U5T5SUPP.js";
3
+ } from "./chunk-P2BRRLHR.js";
4
4
 
5
5
  // src/period.ts
6
6
  var MONTH_NAMES_EN = [
@@ -148,4 +148,4 @@ export {
148
148
  periodBounds,
149
149
  periodItemsForYear
150
150
  };
151
- //# sourceMappingURL=chunk-JQFQM2K3.js.map
151
+ //# sourceMappingURL=chunk-JDABNGRY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BookiError,
3
3
  msg
4
- } from "./chunk-U5T5SUPP.js";
4
+ } from "./chunk-P2BRRLHR.js";
5
5
 
6
6
  // src/recurring.ts
7
7
  var RECURRING_INTERVALS = ["month", "quarter", "year"];
@@ -161,4 +161,4 @@ export {
161
161
  mrrSeries,
162
162
  recurringIssues
163
163
  };
164
- //# sourceMappingURL=chunk-JIYWHAO3.js.map
164
+ //# sourceMappingURL=chunk-MNIVGOTQ.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  assertPostingAllowed
3
- } from "./chunk-T3M424SP.js";
3
+ } from "./chunk-27RDC7G3.js";
4
4
  import {
5
5
  assertForeignAmount,
6
6
  convertMinor
7
- } from "./chunk-HWGE4OOL.js";
7
+ } from "./chunk-5VNN4PIJ.js";
8
8
  import {
9
9
  BookiError,
10
10
  msg
11
- } from "./chunk-U5T5SUPP.js";
11
+ } from "./chunk-P2BRRLHR.js";
12
12
  import {
13
13
  LISTED_WHOLE,
14
14
  closest
@@ -420,4 +420,4 @@ export {
420
420
  buildBalancedSalesVoucher,
421
421
  vatPostings
422
422
  };
423
- //# sourceMappingURL=chunk-OUWAGY5G.js.map
423
+ //# sourceMappingURL=chunk-O5XMBNDG.js.map
@@ -449,6 +449,14 @@ var EN = {
449
449
  "field.person-only-code": `"{item}" is a person's choice here. Ask them to pick it themselves.`,
450
450
  "field.unknown-code": 'No option "{value}". The options, as value (label): {items}.',
451
451
  "field.unknown-code-more": 'No option "{value}" among the {count}. Closest: {items}. query({ within, text }) finds one by code or whole word.',
452
+ "field.account-not-digits": 'Account number "{value}" has more than digits. Send digits only, with no letters or separators.',
453
+ "field.account-empty": "An account number is needed here: {min} to {max} digits.",
454
+ "field.account-empty-chart": "An account number is needed here: pick one of the {count} accounts in the chart.",
455
+ "field.account-not-text": 'setAccount takes the account number as digits, like "4711". Got {got}.',
456
+ "field.account-range": "minLength {min} is greater than maxLength {max}, so no account number fits.",
457
+ "field.account-length": 'Account number "{value}" must be {min} to {max} digits.',
458
+ "field.unknown-account": 'No account "{value}" in the chart. The accounts, as number (name): {items}.',
459
+ "field.unknown-account-more": 'No account "{value}" in the chart of {count}. Closest: {items}. query({ within, text }) finds one by number or whole word.',
452
460
  "amount.not-minor": "Amount must be a safe integer in minor units (e.g. 12500 = 125.00 {currency}), got {value}.",
453
461
  "amount.below-min": "Amount {minor} (minor units) is below minMinor {min}.",
454
462
  "amount.above-max": "Amount {minor} (minor units) exceeds maxMinor {max}.",
@@ -621,7 +629,10 @@ var EN = {
621
629
  "bridge.act-extra": 'act takes "steps" and nothing else, not "{key}". No step ran.',
622
630
  "bridge.step-needs-ref": "{at} needs a ref: a component's ref from snapshot, or its label. No step ran.",
623
631
  "bridge.step-needs-action": '{at}, on "{ref}", needs an action, like "press". No step ran.',
624
- "bridge.step-needs-value": '{action} on "{ref}" needs its value, as "args": [value]. No step ran.'
632
+ "bridge.step-needs-value": '{action} on "{ref}" needs its value, as "args": [value]. No step ran.',
633
+ "bridge.steps-stay-done": "The steps before this one stay done.",
634
+ "bridge.send-again-one": "Send it again with the step after it, {total} steps in one call.",
635
+ "bridge.send-again-many": "Send it again with the {rest} steps after it, {total} steps in one call."
625
636
  };
626
637
 
627
638
  // src/msg.ts
@@ -678,4 +689,4 @@ export {
678
689
  BookiError,
679
690
  isBookiError
680
691
  };
681
- //# sourceMappingURL=chunk-U5T5SUPP.js.map
692
+ //# sourceMappingURL=chunk-P2BRRLHR.js.map