@accounter/client 0.0.7-alpha-20251020201144-e623a2bb538d1219a5f541df2364646012ebe9ea → 0.0.7-alpha-20251021062721-ab43b5f013b9852ff5216bc141852da9dcfe0df7

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 (50) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/dist/assets/index-CJB5mMpd.js +1224 -0
  3. package/dist/assets/index-CzRRUK04.css +1 -0
  4. package/dist/assets/{index.es-CNXdeXse.js → index.es-NOVMdy_X.js} +1 -1
  5. package/dist/index.html +2 -2
  6. package/package.json +3 -2
  7. package/src/app.tsx +8 -4
  8. package/src/components/business/business-header.tsx +65 -0
  9. package/src/components/business/charges-section.tsx +82 -0
  10. package/src/components/business/charts-section.tsx +115 -0
  11. package/src/components/business/configurations-section.tsx +835 -0
  12. package/src/components/business/contact-info-section.tsx +544 -0
  13. package/src/components/business/contracts-section.tsx +195 -0
  14. package/src/components/business/documents-section.tsx +26 -0
  15. package/src/components/business/index.tsx +171 -0
  16. package/src/components/business/integrations-section.tsx +479 -0
  17. package/src/components/business/transactions-section.tsx +26 -0
  18. package/src/components/business-transactions/business-extended-info.tsx +9 -13
  19. package/src/components/charges/charge-extended-info-menu.tsx +27 -21
  20. package/src/components/charges/charges-row.tsx +12 -10
  21. package/src/components/charges/charges-table.tsx +15 -9
  22. package/src/components/clients/contracts/modify-contract-dialog.tsx +466 -0
  23. package/src/components/clients/modify-client-dialog.tsx +276 -0
  24. package/src/components/common/documents/issue-document/index.tsx +3 -3
  25. package/src/components/common/documents/issue-document/{recent-client-docs.tsx → recent-business-docs.tsx} +19 -13
  26. package/src/components/common/forms/business-card.tsx +1 -0
  27. package/src/components/common/forms/modify-business-fields.tsx +15 -33
  28. package/src/components/common/inputs/combo-box.tsx +1 -1
  29. package/src/components/common/modals/insert-business.tsx +4 -2
  30. package/src/components/reports/trial-balance-report/trial-balance-report-group.tsx +4 -6
  31. package/src/components/reports/trial-balance-report/trial-balance-report-sort-code.tsx +8 -11
  32. package/src/components/screens/businesses/business.tsx +50 -0
  33. package/src/components/screens/documents/issue-documents/edit-issue-document-modal.tsx +4 -4
  34. package/src/components/ui/progress.tsx +25 -0
  35. package/src/components/ui/skeleton.tsx +12 -0
  36. package/src/gql/gql.ts +96 -12
  37. package/src/gql/graphql.ts +290 -11
  38. package/src/helpers/contracts.ts +22 -0
  39. package/src/helpers/currency.ts +5 -0
  40. package/src/helpers/index.ts +2 -0
  41. package/src/helpers/pcn874.ts +17 -0
  42. package/src/hooks/use-create-contract.ts +62 -0
  43. package/src/hooks/use-delete-contract.ts +64 -0
  44. package/src/hooks/use-get-all-contracts.ts +0 -1
  45. package/src/hooks/use-insert-client.ts +80 -0
  46. package/src/hooks/use-update-client.ts +75 -0
  47. package/src/hooks/use-update-contract.ts +69 -0
  48. package/src/providers/user-provider.tsx +2 -0
  49. package/dist/assets/index-0eCf1BcD.css +0 -1
  50. package/dist/assets/index-Dh8zU8Ik.js +0 -1188
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/client
2
2
 
3
- ## 0.0.7-alpha-20251020201144-e623a2bb538d1219a5f541df2364646012ebe9ea
3
+ ## 0.0.7-alpha-20251021062721-ab43b5f013b9852ff5216bc141852da9dcfe0df7
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -364,6 +364,29 @@
364
364
  [`lucide-react@0.546.0` ↗︎](https://www.npmjs.com/package/lucide-react/v/0.546.0) (from
365
365
  `0.545.0`, in `dependencies`)
366
366
 
367
+ - [#2582](https://github.com/Urigo/accounter-fullstack/pull/2582)
368
+ [`da5947c`](https://github.com/Urigo/accounter-fullstack/commit/da5947ca02bd032e9fadae329a98b91b7a30083b)
369
+ Thanks [@gilgardosh](https://github.com/gilgardosh)! - dependencies updates:
370
+ - Added dependency
371
+ [`@radix-ui/react-progress@^1.1.7` ↗︎](https://www.npmjs.com/package/@radix-ui/react-progress/v/1.1.7)
372
+ (to `dependencies`)
373
+
374
+ - [#2584](https://github.com/Urigo/accounter-fullstack/pull/2584)
375
+ [`549a2a6`](https://github.com/Urigo/accounter-fullstack/commit/549a2a6fed7959795d7ca130b0ad567c5f4f62c8)
376
+ Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Database Schema Update**: Introduced a
377
+ 'locality' column to the 'user_context' table and established foreign key relationships for
378
+ country codes in both 'user_context' and 'businesses' tables, linking them to a 'countries' table.
379
+ - **Dynamic Country Selection**: The 'Locality' field in the 'ModifyBusinessFields' component now
380
+ dynamically fetches and displays a list of all countries, replacing previous hardcoded options.
381
+ - **User-Contextual Default Country**: New businesses created via the 'InsertBusiness' modal will
382
+ now default their country based on the user's 'locality' from their 'userContext'.
383
+ - **Centralized Locality Management**: The 'admin-context' and 'user-context' modules on the
384
+ server-side have been updated to store and retrieve the user's 'locality', ensuring consistent
385
+ access across the application.
386
+ - **VAT Logic Enhancement**: VAT validation and deduction logic now utilize the dynamically
387
+ retrieved 'adminContext.locality' instead of a hardcoded country name, improving flexibility and
388
+ accuracy.
389
+
367
390
  - [#2520](https://github.com/Urigo/accounter-fullstack/pull/2520)
368
391
  [`b7b2776`](https://github.com/Urigo/accounter-fullstack/commit/b7b2776d29905ba6966f5f37635e03b8c58289d9)
369
392
  Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **New Feature**: An 'Issue Document'