@open-mercato/core 0.6.1-develop.3256.1.fe3dec2464 → 0.6.1-develop.3276.1.1fcd145078

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 (120) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/helpers/integration/authFixtures.js.map +1 -1
  3. package/dist/helpers/integration/authUi.js +10 -2
  4. package/dist/helpers/integration/authUi.js.map +2 -2
  5. package/dist/helpers/integration/salesUi.js +3 -1
  6. package/dist/helpers/integration/salesUi.js.map +2 -2
  7. package/dist/modules/api_docs/frontend/docs/api/Explorer.js +10 -1
  8. package/dist/modules/api_docs/frontend/docs/api/Explorer.js.map +2 -2
  9. package/dist/modules/audit_logs/lib/display-helpers.js +28 -27
  10. package/dist/modules/audit_logs/lib/display-helpers.js.map +2 -2
  11. package/dist/modules/auth/api/users/route.js +21 -3
  12. package/dist/modules/auth/api/users/route.js.map +2 -2
  13. package/dist/modules/auth/backend/users/[id]/edit/page.js +6 -1
  14. package/dist/modules/auth/backend/users/[id]/edit/page.js.map +2 -2
  15. package/dist/modules/auth/backend/users/create/page.js +4 -1
  16. package/dist/modules/auth/backend/users/create/page.js.map +2 -2
  17. package/dist/modules/auth/backend/users/page.js +56 -2
  18. package/dist/modules/auth/backend/users/page.js.map +3 -3
  19. package/dist/modules/auth/commands/users.js +14 -0
  20. package/dist/modules/auth/commands/users.js.map +2 -2
  21. package/dist/modules/auth/data/validators.js +8 -0
  22. package/dist/modules/auth/data/validators.js.map +2 -2
  23. package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js +1 -1
  24. package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js.map +2 -2
  25. package/dist/modules/customers/backend/customers/deals/[id]/page.js +15 -9
  26. package/dist/modules/customers/backend/customers/deals/[id]/page.js.map +2 -2
  27. package/dist/modules/customers/backend/customers/deals/pipeline/page.js +26 -3
  28. package/dist/modules/customers/backend/customers/deals/pipeline/page.js.map +2 -2
  29. package/dist/modules/customers/backend/customers/people-v2/[id]/page.js +1 -1
  30. package/dist/modules/customers/backend/customers/people-v2/[id]/page.js.map +2 -2
  31. package/dist/modules/customers/components/PipelineSettings.js +108 -99
  32. package/dist/modules/customers/components/PipelineSettings.js.map +2 -2
  33. package/dist/modules/customers/components/detail/AssignRoleDialog.js +13 -5
  34. package/dist/modules/customers/components/detail/AssignRoleDialog.js.map +2 -2
  35. package/dist/modules/customers/components/detail/EntityTagsDialog.js +10 -2
  36. package/dist/modules/customers/components/detail/EntityTagsDialog.js.map +2 -2
  37. package/dist/modules/customers/components/detail/PersonCompaniesSection.js +15 -8
  38. package/dist/modules/customers/components/detail/PersonCompaniesSection.js.map +2 -2
  39. package/dist/modules/customers/components/detail/RolesSection.js +35 -22
  40. package/dist/modules/customers/components/detail/RolesSection.js.map +2 -2
  41. package/dist/modules/customers/components/detail/TasksSection.js +2 -2
  42. package/dist/modules/customers/components/detail/TasksSection.js.map +2 -2
  43. package/dist/modules/customers/components/detail/schedule/DateTimeFields.js +73 -64
  44. package/dist/modules/customers/components/detail/schedule/DateTimeFields.js.map +2 -2
  45. package/dist/modules/customers/components/linking/LinkEntityDialog.js +11 -2
  46. package/dist/modules/customers/components/linking/LinkEntityDialog.js.map +2 -2
  47. package/dist/modules/data_sync/backend/data-sync/page.js +2 -9
  48. package/dist/modules/data_sync/backend/data-sync/page.js.map +2 -2
  49. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.js +14 -29
  50. package/dist/modules/data_sync/backend/data-sync/runs/[id]/page.js.map +2 -2
  51. package/dist/modules/dictionaries/components/DictionariesManager.js +10 -2
  52. package/dist/modules/dictionaries/components/DictionariesManager.js.map +2 -2
  53. package/dist/modules/integrations/backend/integrations/[id]/page.js +79 -95
  54. package/dist/modules/integrations/backend/integrations/[id]/page.js.map +2 -2
  55. package/dist/modules/payment_gateways/backend/payment-gateways/page.js +49 -70
  56. package/dist/modules/payment_gateways/backend/payment-gateways/page.js.map +2 -2
  57. package/dist/modules/planner/components/AvailabilityRuleSetForm.js +1 -1
  58. package/dist/modules/planner/components/AvailabilityRuleSetForm.js.map +1 -1
  59. package/dist/modules/planner/components/AvailabilityRulesEditor.js +19 -19
  60. package/dist/modules/planner/components/AvailabilityRulesEditor.js.map +2 -2
  61. package/dist/modules/resources/components/ResourceCrudForm.js +1 -1
  62. package/dist/modules/resources/components/ResourceCrudForm.js.map +1 -1
  63. package/dist/modules/resources/components/ResourceTypeCrudForm.js +1 -1
  64. package/dist/modules/resources/components/ResourceTypeCrudForm.js.map +2 -2
  65. package/dist/modules/sales/components/documents/ReturnDialog.js +11 -8
  66. package/dist/modules/sales/components/documents/ReturnDialog.js.map +2 -2
  67. package/dist/modules/staff/backend/staff/profile/create/page.js +1 -1
  68. package/dist/modules/staff/backend/staff/profile/create/page.js.map +2 -2
  69. package/dist/modules/staff/components/TeamForm.js +1 -1
  70. package/dist/modules/staff/components/TeamForm.js.map +2 -2
  71. package/dist/modules/staff/components/TeamMemberForm.js +1 -1
  72. package/dist/modules/staff/components/TeamMemberForm.js.map +1 -1
  73. package/dist/modules/staff/components/TeamRoleForm.js +1 -1
  74. package/dist/modules/staff/components/TeamRoleForm.js.map +2 -2
  75. package/package.json +5 -5
  76. package/src/helpers/integration/authFixtures.ts +1 -1
  77. package/src/helpers/integration/authUi.ts +11 -2
  78. package/src/helpers/integration/salesUi.ts +10 -1
  79. package/src/modules/api_docs/frontend/docs/api/Explorer.tsx +7 -3
  80. package/src/modules/audit_logs/lib/display-helpers.tsx +22 -14
  81. package/src/modules/auth/api/users/route.ts +22 -3
  82. package/src/modules/auth/backend/users/[id]/edit/page.tsx +9 -1
  83. package/src/modules/auth/backend/users/create/page.tsx +6 -2
  84. package/src/modules/auth/backend/users/page.tsx +60 -3
  85. package/src/modules/auth/commands/users.ts +15 -0
  86. package/src/modules/auth/data/validators.ts +8 -0
  87. package/src/modules/auth/i18n/de.json +4 -0
  88. package/src/modules/auth/i18n/en.json +4 -0
  89. package/src/modules/auth/i18n/es.json +4 -0
  90. package/src/modules/auth/i18n/pl.json +4 -0
  91. package/src/modules/customers/backend/customers/companies-v2/[id]/page.tsx +1 -1
  92. package/src/modules/customers/backend/customers/deals/[id]/page.tsx +12 -13
  93. package/src/modules/customers/backend/customers/deals/pipeline/page.tsx +17 -13
  94. package/src/modules/customers/backend/customers/people-v2/[id]/page.tsx +1 -1
  95. package/src/modules/customers/components/PipelineSettings.tsx +95 -95
  96. package/src/modules/customers/components/detail/AssignRoleDialog.tsx +7 -4
  97. package/src/modules/customers/components/detail/EntityTagsDialog.tsx +13 -8
  98. package/src/modules/customers/components/detail/PersonCompaniesSection.tsx +16 -12
  99. package/src/modules/customers/components/detail/RolesSection.tsx +34 -31
  100. package/src/modules/customers/components/detail/TasksSection.tsx +16 -8
  101. package/src/modules/customers/components/detail/schedule/DateTimeFields.tsx +77 -51
  102. package/src/modules/customers/components/linking/LinkEntityDialog.tsx +7 -3
  103. package/src/modules/data_sync/backend/data-sync/page.tsx +4 -7
  104. package/src/modules/data_sync/backend/data-sync/runs/[id]/page.tsx +19 -54
  105. package/src/modules/dictionaries/components/DictionariesManager.tsx +7 -4
  106. package/src/modules/integrations/backend/integrations/[id]/page.tsx +101 -146
  107. package/src/modules/payment_gateways/backend/payment-gateways/page.tsx +60 -103
  108. package/src/modules/planner/components/AvailabilityRuleSetForm.tsx +1 -1
  109. package/src/modules/planner/components/AvailabilityRulesEditor.tsx +17 -17
  110. package/src/modules/resources/components/ResourceCrudForm.tsx +1 -1
  111. package/src/modules/resources/components/ResourceTypeCrudForm.tsx +1 -1
  112. package/src/modules/sales/components/documents/ReturnDialog.tsx +10 -7
  113. package/src/modules/sales/i18n/de.json +2 -0
  114. package/src/modules/sales/i18n/en.json +2 -0
  115. package/src/modules/sales/i18n/es.json +2 -0
  116. package/src/modules/sales/i18n/pl.json +2 -0
  117. package/src/modules/staff/backend/staff/profile/create/page.tsx +1 -1
  118. package/src/modules/staff/components/TeamForm.tsx +1 -1
  119. package/src/modules/staff/components/TeamMemberForm.tsx +1 -1
  120. package/src/modules/staff/components/TeamRoleForm.tsx +1 -1
@@ -3,6 +3,7 @@
3
3
  import * as React from 'react'
4
4
  import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@open-mercato/ui/primitives/dialog'
5
5
  import { Input } from '@open-mercato/ui/primitives/input'
6
+ import { CounterInput } from '@open-mercato/ui/primitives/counter-input'
6
7
  import { Textarea } from '@open-mercato/ui/primitives/textarea'
7
8
  import { Label } from '@open-mercato/ui/primitives/label'
8
9
  import { Button } from '@open-mercato/ui/primitives/button'
@@ -173,19 +174,21 @@ export function ReturnDialog({ open, orderId, lines, onClose, onSaved }: ReturnD
173
174
  <Label className="sr-only" htmlFor={`return-qty-${line.id}`}>
174
175
  {t('sales.returns.quantity', 'Quantity')}
175
176
  </Label>
176
- <Input
177
+ <CounterInput
177
178
  id={`return-qty-${line.id}`}
178
- type="number"
179
- inputMode="numeric"
180
179
  min={1}
181
180
  max={line.available}
182
181
  step={1}
183
182
  placeholder="0"
184
- value={value}
185
- onChange={(e) => {
186
- const next = e.target.value.replace(/[^0-9]/g, '')
187
- setQuantities((prev) => ({ ...prev, [line.id]: next }))
183
+ value={value === '' ? null : Number(value)}
184
+ onChange={(next) => {
185
+ setQuantities((prev) => ({
186
+ ...prev,
187
+ [line.id]: next === null ? '' : String(next),
188
+ }))
188
189
  }}
190
+ decrementAriaLabel={t('sales.returns.qty.decrease', 'Decrease quantity')}
191
+ incrementAriaLabel={t('sales.returns.qty.increase', 'Increase quantity')}
189
192
  />
190
193
  </div>
191
194
  </div>
@@ -1297,6 +1297,8 @@
1297
1297
  "sales.returns.notes": "Notizen",
1298
1298
  "sales.returns.notes.placeholder": "Optional",
1299
1299
  "sales.returns.orderMissing": "Bestellung nicht gefunden.",
1300
+ "sales.returns.qty.decrease": "Menge verringern",
1301
+ "sales.returns.qty.increase": "Menge erhöhen",
1300
1302
  "sales.returns.quantity": "Menge",
1301
1303
  "sales.returns.quantityExceeded": "Es kann nicht mehr als die verbleibende Menge zurückgegeben werden.",
1302
1304
  "sales.returns.reason": "Grund",
@@ -1297,6 +1297,8 @@
1297
1297
  "sales.returns.notes": "Notes",
1298
1298
  "sales.returns.notes.placeholder": "Optional",
1299
1299
  "sales.returns.orderMissing": "Order not found.",
1300
+ "sales.returns.qty.decrease": "Decrease quantity",
1301
+ "sales.returns.qty.increase": "Increase quantity",
1300
1302
  "sales.returns.quantity": "Quantity",
1301
1303
  "sales.returns.quantityExceeded": "Cannot return more than the remaining quantity.",
1302
1304
  "sales.returns.reason": "Reason",
@@ -1297,6 +1297,8 @@
1297
1297
  "sales.returns.notes": "Notas",
1298
1298
  "sales.returns.notes.placeholder": "Opcional",
1299
1299
  "sales.returns.orderMissing": "Pedido no encontrado.",
1300
+ "sales.returns.qty.decrease": "Disminuir cantidad",
1301
+ "sales.returns.qty.increase": "Aumentar cantidad",
1300
1302
  "sales.returns.quantity": "Cantidad",
1301
1303
  "sales.returns.quantityExceeded": "No se puede devolver más que la cantidad restante.",
1302
1304
  "sales.returns.reason": "Motivo",
@@ -1297,6 +1297,8 @@
1297
1297
  "sales.returns.notes": "Notatki",
1298
1298
  "sales.returns.notes.placeholder": "Opcjonalne",
1299
1299
  "sales.returns.orderMissing": "Nie znaleziono zamówienia.",
1300
+ "sales.returns.qty.decrease": "Zmniejsz ilość",
1301
+ "sales.returns.qty.increase": "Zwiększ ilość",
1300
1302
  "sales.returns.quantity": "Ilość",
1301
1303
  "sales.returns.quantityExceeded": "Nie można zwrócić więcej niż pozostała ilość.",
1302
1304
  "sales.returns.reason": "Powód",
@@ -53,7 +53,7 @@ export default function StaffProfileCreatePage() {
53
53
 
54
54
  const fields = React.useMemo<CrudField[]>(() => ([
55
55
  { id: 'displayName', label: t('staff.teamMembers.form.fields.displayName', 'Display name'), type: 'text', required: true },
56
- { id: 'description', label: t('staff.teamMembers.form.fields.description', 'Description'), type: 'richtext', editor: 'uiw' },
56
+ { id: 'description', label: t('staff.teamMembers.form.fields.description', 'Description'), type: 'richtext', editor: 'html' },
57
57
  ]), [t])
58
58
 
59
59
  const handleSubmit = React.useCallback(async (values: SelfProfileValues) => {
@@ -67,7 +67,7 @@ export function TeamForm(props: TeamFormProps) {
67
67
 
68
68
  const fields = React.useMemo<CrudField[]>(() => [
69
69
  { id: 'name', label: t('staff.teams.form.fields.name', 'Name'), type: 'text', required: true },
70
- { id: 'description', label: t('staff.teams.form.fields.description', 'Description'), type: 'richtext' },
70
+ { id: 'description', label: t('staff.teams.form.fields.description', 'Description'), type: 'richtext', editor: 'html' },
71
71
  { id: 'isActive', label: t('staff.teams.form.fields.active', 'Active'), type: 'checkbox' },
72
72
  ], [t])
73
73
 
@@ -343,7 +343,7 @@ export function TeamMemberForm(props: TeamMemberFormProps) {
343
343
  id: 'description',
344
344
  label: translate('staff.teamMembers.form.fields.description', 'Description'),
345
345
  type: 'richtext',
346
- editor: 'uiw',
346
+ editor: 'html',
347
347
  },
348
348
  {
349
349
  id: 'roleIds',
@@ -110,7 +110,7 @@ export function TeamRoleForm(props: TeamRoleFormProps) {
110
110
  }
111
111
  base.push(
112
112
  { id: 'name', label: t('staff.teamRoles.form.fields.name', 'Name'), type: 'text', required: true },
113
- { id: 'description', label: t('staff.teamRoles.form.fields.description', 'Description'), type: 'richtext' },
113
+ { id: 'description', label: t('staff.teamRoles.form.fields.description', 'Description'), type: 'richtext', editor: 'html' },
114
114
  {
115
115
  id: 'appearance',
116
116
  label: t('staff.teamRoles.form.appearance.label', 'Appearance'),