@open-mercato/core 0.9.1-develop.7532.1.8eac7e198f → 0.9.1-develop.7536.1.f9a5776a07

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 (28) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/modules/auth/api/logout.js +8 -5
  3. package/dist/modules/auth/api/logout.js.map +2 -2
  4. package/dist/modules/currencies/backend/currencies/[id]/page.js +5 -2
  5. package/dist/modules/currencies/backend/currencies/[id]/page.js.map +2 -2
  6. package/dist/modules/currencies/commands/currencies.js +399 -137
  7. package/dist/modules/currencies/commands/currencies.js.map +2 -2
  8. package/dist/modules/currencies/lib/seeds.js +2 -0
  9. package/dist/modules/currencies/lib/seeds.js.map +2 -2
  10. package/dist/modules/customers/commands/companies.js +10 -3
  11. package/dist/modules/customers/commands/companies.js.map +2 -2
  12. package/dist/modules/customers/commands/interactionRestoreDetails.js +75 -0
  13. package/dist/modules/customers/commands/interactionRestoreDetails.js.map +7 -0
  14. package/dist/modules/customers/commands/people.js +10 -3
  15. package/dist/modules/customers/commands/people.js.map +2 -2
  16. package/package.json +7 -7
  17. package/src/modules/auth/api/logout.ts +9 -5
  18. package/src/modules/currencies/backend/currencies/[id]/page.tsx +5 -1
  19. package/src/modules/currencies/commands/currencies.ts +475 -168
  20. package/src/modules/currencies/i18n/de.json +4 -0
  21. package/src/modules/currencies/i18n/en.json +4 -0
  22. package/src/modules/currencies/i18n/es.json +4 -0
  23. package/src/modules/currencies/i18n/ko.json +4 -0
  24. package/src/modules/currencies/i18n/pl.json +4 -0
  25. package/src/modules/currencies/lib/seeds.ts +2 -0
  26. package/src/modules/customers/commands/companies.ts +16 -4
  27. package/src/modules/customers/commands/interactionRestoreDetails.ts +110 -0
  28. package/src/modules/customers/commands/people.ts +16 -4
@@ -75,6 +75,8 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
75
75
  loadCurrency()
76
76
  }, [params, t])
77
77
 
78
+ const isCurrentBase = currency?.isBase === true
79
+
78
80
  const groups = React.useMemo<CrudFormGroup[]>(
79
81
  () => [
80
82
  {
@@ -136,6 +138,8 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
136
138
  id: 'isBase',
137
139
  type: 'checkbox',
138
140
  label: t('currencies.form.field.isBase'),
141
+ disabled: isCurrentBase,
142
+ description: isCurrentBase ? t('currencies.form.field.isBaseLocked') : undefined,
139
143
  },
140
144
  {
141
145
  id: 'isActive',
@@ -145,7 +149,7 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
145
149
  ],
146
150
  },
147
151
  ],
148
- [t]
152
+ [t, isCurrentBase]
149
153
  )
150
154
 
151
155
  const handleDelete = React.useCallback(async () => {