@spaceinvoices/react-ui 0.4.11 → 0.4.12
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/cli/dist/index.js +1 -1
- package/package.json +3 -2
- package/registry.json +30 -31
- package/src/common/autocomplete.tsx +41 -25
- package/src/components/activities/locales/bg.ts +21 -0
- package/src/components/activities/locales/cs.ts +21 -0
- package/src/components/activities/locales/en.ts +21 -0
- package/src/components/activities/locales/et.ts +21 -0
- package/src/components/activities/locales/fi.ts +21 -0
- package/src/components/activities/locales/is.ts +21 -0
- package/src/components/activities/locales/nb.ts +21 -0
- package/src/components/activities/locales/sk.ts +21 -0
- package/src/components/activities/locales/sv.ts +21 -0
- package/src/components/advance-invoices/advance-invoices.hooks.ts +2 -3
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +290 -69
- package/src/components/advance-invoices/create/locales/bg.ts +48 -0
- package/src/components/advance-invoices/create/locales/cs.ts +48 -0
- package/src/components/advance-invoices/create/locales/en.ts +48 -0
- package/src/components/advance-invoices/create/locales/et.ts +48 -0
- package/src/components/advance-invoices/create/locales/fi.ts +48 -0
- package/src/components/advance-invoices/create/locales/hr.ts +17 -17
- package/src/components/advance-invoices/create/locales/is.ts +48 -0
- package/src/components/advance-invoices/create/locales/nb.ts +48 -0
- package/src/components/advance-invoices/create/locales/sk.ts +48 -0
- package/src/components/advance-invoices/create/locales/sl.ts +9 -7
- package/src/components/advance-invoices/create/locales/sv.ts +48 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +16 -2
- package/src/components/advance-invoices/list/list-row-actions.tsx +48 -16
- package/src/components/advance-invoices/list/list-table.tsx +33 -8
- package/src/components/advance-invoices/list/locales/bg.ts +51 -0
- package/src/components/advance-invoices/list/locales/cs.ts +51 -0
- package/src/components/advance-invoices/list/locales/en.ts +33 -2
- package/src/components/advance-invoices/list/locales/et.ts +51 -0
- package/src/components/advance-invoices/list/locales/fi.ts +51 -0
- package/src/components/advance-invoices/list/locales/hr.ts +15 -15
- package/src/components/advance-invoices/list/locales/is.ts +51 -0
- package/src/components/advance-invoices/list/locales/nb.ts +51 -0
- package/src/components/advance-invoices/list/locales/sk.ts +51 -0
- package/src/components/advance-invoices/list/locales/sv.ts +51 -0
- package/src/components/advance-invoices/list/use-advance-invoice-download.ts +3 -5
- package/src/components/common/autocomplete-locales.ts +101 -0
- package/src/components/company-registry/company-registry.hooks.ts +3 -7
- package/src/components/credit-notes/create/create-credit-note-form.tsx +211 -22
- package/src/components/credit-notes/create/locales/bg.ts +87 -0
- package/src/components/credit-notes/create/locales/cs.ts +87 -0
- package/src/components/credit-notes/create/locales/en.ts +87 -0
- package/src/components/credit-notes/create/locales/et.ts +87 -0
- package/src/components/credit-notes/create/locales/fi.ts +87 -0
- package/src/components/credit-notes/create/locales/hr.ts +24 -24
- package/src/components/credit-notes/create/locales/is.ts +87 -0
- package/src/components/credit-notes/create/locales/nb.ts +87 -0
- package/src/components/credit-notes/create/locales/sk.ts +87 -0
- package/src/components/credit-notes/create/locales/sl.ts +9 -9
- package/src/components/credit-notes/create/locales/sv.ts +87 -0
- package/src/components/credit-notes/create/prepare-credit-note-submission.ts +32 -0
- package/src/components/credit-notes/credit-notes.hooks.ts +15 -3
- package/src/components/credit-notes/list/list-row-actions.tsx +19 -7
- package/src/components/credit-notes/list/list-table.tsx +58 -7
- package/src/components/credit-notes/list/locales/bg.ts +48 -0
- package/src/components/credit-notes/list/locales/cs.ts +48 -0
- package/src/components/credit-notes/list/locales/en.ts +31 -2
- package/src/components/credit-notes/list/locales/et.ts +48 -0
- package/src/components/credit-notes/list/locales/fi.ts +48 -0
- package/src/components/credit-notes/list/locales/hr.ts +12 -12
- package/src/components/credit-notes/list/locales/is.ts +48 -0
- package/src/components/credit-notes/list/locales/nb.ts +48 -0
- package/src/components/credit-notes/list/locales/sk.ts +48 -0
- package/src/components/credit-notes/list/locales/sv.ts +48 -0
- package/src/components/credit-notes/list/use-credit-note-download.ts +3 -5
- package/src/components/customers/create-customer-form/locales/bg.ts +21 -0
- package/src/components/customers/create-customer-form/locales/cs.ts +21 -0
- package/src/components/customers/create-customer-form/locales/en.ts +21 -0
- package/src/components/customers/create-customer-form/locales/et.ts +21 -0
- package/src/components/customers/create-customer-form/locales/fi.ts +21 -0
- package/src/components/customers/create-customer-form/locales/hr.ts +11 -11
- package/src/components/customers/create-customer-form/locales/is.ts +21 -0
- package/src/components/customers/create-customer-form/locales/nb.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sk.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sv.ts +21 -0
- package/src/components/customers/customer-autocomplete.tsx +32 -4
- package/src/components/customers/customer-list-table/customer-list-table.tsx +8 -6
- package/src/components/customers/customer-list-table/locales/bg.ts +25 -0
- package/src/components/customers/customer-list-table/locales/cs.ts +25 -0
- package/src/components/customers/customer-list-table/locales/en.ts +17 -2
- package/src/components/customers/customer-list-table/locales/et.ts +25 -0
- package/src/components/customers/customer-list-table/locales/fi.ts +25 -0
- package/src/components/customers/customer-list-table/locales/hr.ts +11 -11
- package/src/components/customers/customer-list-table/locales/is.ts +25 -0
- package/src/components/customers/customer-list-table/locales/nb.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sk.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sv.ts +25 -0
- package/src/components/customers/customers.hooks.ts +14 -17
- package/src/components/customers/edit-customer-form/locales/bg.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/cs.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/en.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/et.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/fi.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/hr.ts +5 -5
- package/src/components/customers/edit-customer-form/locales/is.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/nb.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sk.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sv.ts +13 -0
- package/src/components/dashboard/collection-rate-card/collection-rate-card.tsx +7 -6
- package/src/components/dashboard/collection-rate-card/locales/en.ts +3 -0
- package/src/components/dashboard/collection-rate-card/use-collection-rate.ts +8 -7
- package/src/components/dashboard/invoice-status-chart/invoice-status-chart.tsx +7 -4
- package/src/components/dashboard/invoice-status-chart/locales/bg.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/cs.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/de.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/en.ts +10 -0
- package/src/components/dashboard/invoice-status-chart/locales/es.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/et.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/fi.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/fr.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/hr.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/is.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/it.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/nb.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/nl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/pl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/pt.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/sk.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/sl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/sv.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/bg.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/cs.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/en.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/et.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/fi.ts +6 -6
- package/src/components/dashboard/payment-methods-chart/locales/hr.ts +3 -3
- package/src/components/dashboard/payment-methods-chart/locales/is.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/nb.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/sk.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/sv.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/payment-methods-chart.tsx +4 -3
- package/src/components/dashboard/payment-trend-chart/locales/bg.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/cs.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/en.ts +6 -0
- package/src/components/dashboard/payment-trend-chart/locales/et.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/fi.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/is.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/nb.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/sk.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/sv.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/payment-trend-chart.tsx +4 -3
- package/src/components/dashboard/payment-trend-chart/use-payment-trend.ts +12 -9
- package/src/components/dashboard/revenue-card.tsx +3 -3
- package/src/components/dashboard/revenue-trend-chart/locales/bg.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/cs.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/en.ts +6 -0
- package/src/components/dashboard/revenue-trend-chart/locales/et.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/fi.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/is.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/nb.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/sk.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/sv.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/revenue-trend-chart.tsx +4 -3
- package/src/components/dashboard/revenue-trend-chart/use-revenue-trend.ts +4 -3
- package/src/components/dashboard/shared/local-date.ts +11 -0
- package/src/components/dashboard/shared/use-revenue-data.ts +6 -5
- package/src/components/dashboard/shared/use-stats-query.ts +7 -11
- package/src/components/dashboard/stat-card.tsx +3 -3
- package/src/components/dashboard/tax-collected-card/tax-collected-card.tsx +11 -9
- package/src/components/dashboard/tax-collected-card/use-tax-collected.ts +3 -2
- package/src/components/dashboard/top-customers-chart/locales/bg.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/cs.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/en.ts +7 -0
- package/src/components/dashboard/top-customers-chart/locales/et.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/fi.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/is.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/nb.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/sk.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/sv.ts +2 -2
- package/src/components/dashboard/top-customers-chart/top-customers-chart.tsx +4 -3
- package/src/components/dashboard/top-customers-chart/use-top-customers.ts +7 -20
- package/src/components/delivery-notes/create/create-delivery-note-form.tsx +61 -31
- package/src/components/delivery-notes/create/locales/bg.ts +68 -0
- package/src/components/delivery-notes/create/locales/cs.ts +68 -0
- package/src/components/delivery-notes/create/locales/en.ts +68 -0
- package/src/components/delivery-notes/create/locales/et.ts +68 -0
- package/src/components/delivery-notes/create/locales/fi.ts +68 -0
- package/src/components/delivery-notes/create/locales/hr.ts +6 -6
- package/src/components/delivery-notes/create/locales/is.ts +68 -0
- package/src/components/delivery-notes/create/locales/nb.ts +68 -0
- package/src/components/delivery-notes/create/locales/sk.ts +68 -0
- package/src/components/delivery-notes/create/locales/sl.ts +5 -5
- package/src/components/delivery-notes/create/locales/sv.ts +68 -0
- package/src/components/delivery-notes/delivery-notes.hooks.ts +20 -3
- package/src/components/delivery-notes/list/list-row-actions.tsx +62 -16
- package/src/components/delivery-notes/list/list-table.tsx +42 -9
- package/src/components/delivery-notes/list/locales/bg.ts +40 -0
- package/src/components/delivery-notes/list/locales/cs.ts +40 -0
- package/src/components/delivery-notes/list/locales/et.ts +40 -0
- package/src/components/delivery-notes/list/locales/fi.ts +40 -0
- package/src/components/delivery-notes/list/locales/is.ts +40 -0
- package/src/components/delivery-notes/list/locales/nb.ts +40 -0
- package/src/components/delivery-notes/list/locales/sk.ts +40 -0
- package/src/components/delivery-notes/list/locales/sv.ts +40 -0
- package/src/components/delivery-notes/list/use-delivery-note-download.ts +3 -5
- package/src/components/documents/create/document-add-item-form.tsx +256 -147
- package/src/components/documents/create/document-add-item-tax-rate-field.tsx +2 -1
- package/src/components/documents/create/document-details-section.tsx +30 -12
- package/src/components/documents/create/document-item-validation.ts +50 -0
- package/src/components/documents/create/document-items-section.tsx +44 -6
- package/src/components/documents/create/document-recipient-section.tsx +10 -2
- package/src/components/documents/create/linked-documents-info.tsx +4 -3
- package/src/components/documents/create/live-preview.tsx +19 -15
- package/src/components/documents/create/mark-as-paid-section.tsx +77 -20
- package/src/components/documents/create/payment-rows.ts +291 -0
- package/src/components/documents/create/prepare-document-submission.ts +24 -13
- package/src/components/documents/create/scroll-to-first-invalid-field.ts +27 -0
- package/src/components/documents/create/smart-code-insert-button.tsx +5 -53
- package/src/components/documents/create/use-document-customer-form.ts +74 -25
- package/src/components/documents/documents.hooks.ts +3 -5
- package/src/components/documents/index.ts +1 -0
- package/src/components/documents/public/index.ts +1 -0
- package/src/components/documents/public/public-document-summary.tsx +343 -0
- package/src/components/documents/shared/document-preview-display.tsx +65 -39
- package/src/components/documents/shared/index.ts +6 -1
- package/src/components/documents/shared/scaled-document-preview.tsx +33 -19
- package/src/components/documents/types.ts +24 -0
- package/src/components/documents/view/document-actions-bar.tsx +241 -62
- package/src/components/documents/view/document-activities-list.tsx +23 -11
- package/src/components/documents/view/document-details-card.tsx +7 -27
- package/src/components/documents/view/document-payments-list.tsx +114 -57
- package/src/components/documents/view/document-relations-list.tsx +26 -6
- package/src/components/documents/view/document-sidebar.tsx +25 -3
- package/src/components/documents/view/document-version-history.tsx +137 -0
- package/src/components/documents/view/index.ts +1 -0
- package/src/components/documents/view/locales/bg.ts +143 -0
- package/src/components/documents/view/locales/cs.ts +143 -0
- package/src/components/documents/view/locales/de.ts +13 -0
- package/src/components/documents/view/locales/en.ts +143 -0
- package/src/components/documents/view/locales/es.ts +13 -0
- package/src/components/documents/view/locales/et.ts +143 -0
- package/src/components/documents/view/locales/fi.ts +143 -0
- package/src/components/documents/view/locales/fr.ts +13 -0
- package/src/components/documents/view/locales/hr.ts +13 -0
- package/src/components/documents/view/locales/is.ts +143 -0
- package/src/components/documents/view/locales/it.ts +13 -0
- package/src/components/documents/view/locales/nb.ts +143 -0
- package/src/components/documents/view/locales/nl.ts +13 -0
- package/src/components/documents/view/locales/pl.ts +13 -0
- package/src/components/documents/view/locales/pt.ts +13 -0
- package/src/components/documents/view/locales/sk.ts +143 -0
- package/src/components/documents/view/locales/sl.ts +13 -0
- package/src/components/documents/view/locales/sv.ts +143 -0
- package/src/components/documents/view/use-document-download.ts +18 -17
- package/src/components/entities/create-entity-form.tsx +200 -12
- package/src/components/entities/entities.hooks.ts +15 -7
- package/src/components/entities/entity-settings-form/entity-settings-form.tsx +121 -65
- package/src/components/entities/entity-settings-form/input-with-preview.tsx +28 -4
- package/src/components/entities/entity-settings-form/locales/bg.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/cs.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/en.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/es.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/et.ts +198 -0
- package/src/components/entities/entity-settings-form/locales/fi.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/hr.ts +16 -11
- package/src/components/entities/entity-settings-form/locales/is.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/nb.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/pl.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/pt.ts +8 -3
- package/src/components/entities/entity-settings-form/locales/sk.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +20 -15
- package/src/components/entities/entity-settings-form/locales/sv.ts +205 -0
- package/src/components/entities/fina-settings-form/fina-operator-required-dialog.tsx +34 -9
- package/src/components/entities/fina-settings-form/fina-settings-form.tsx +2 -0
- package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +14 -45
- package/src/components/entities/fina-settings-form/locales/bg.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/cs.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/et.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/fi.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +11 -10
- package/src/components/entities/fina-settings-form/locales/is.ts +164 -0
- package/src/components/entities/fina-settings-form/locales/nb.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/sk.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +8 -7
- package/src/components/entities/fina-settings-form/locales/sv.ts +165 -0
- package/src/components/entities/furs-settings-form/furs-operator-required-dialog.tsx +34 -9
- package/src/components/entities/furs-settings-form/furs-settings-form.tsx +13 -1
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +141 -42
- package/src/components/entities/furs-settings-form/locales/bg.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/cs.ts +241 -0
- package/src/components/entities/furs-settings-form/locales/de.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/en.ts +24 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/et.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/fi.ts +243 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +43 -15
- package/src/components/entities/furs-settings-form/locales/hr.ts +44 -19
- package/src/components/entities/furs-settings-form/locales/is.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/nb.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/pl.ts +40 -15
- package/src/components/entities/furs-settings-form/locales/pt.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/sk.ts +243 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +34 -10
- package/src/components/entities/furs-settings-form/locales/sv.ts +242 -0
- package/src/components/entities/furs-settings-form/sections/enable-fiscalization-section.tsx +11 -0
- package/src/components/entities/furs-settings-form/sections/furs-internal-act-download-card.tsx +111 -0
- package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +27 -0
- package/src/components/entities/furs-settings-form/sections/premises-management-section.tsx +23 -16
- package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +89 -31
- package/src/components/entities/settings/branding-settings-form.tsx +11 -30
- package/src/components/entities/settings/company-settings-form.tsx +2 -1
- package/src/components/entities/settings/defaults-settings-form.tsx +106 -3
- package/src/components/entities/settings/email-settings-form.tsx +245 -3
- package/src/components/entities/settings/eslog-settings-form.tsx +2 -1
- package/src/components/entities/settings/number-format-settings-form.tsx +2 -1
- package/src/components/entities/settings/pdf-template-selector/locales/bg.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/cs.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/en.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/et.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/fi.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/is.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/nb.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/sk.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/sv.ts +19 -0
- package/src/components/entities/settings/tax-rules-settings-form.tsx +21 -6
- package/src/components/estimates/create/create-estimate-form.tsx +70 -34
- package/src/components/estimates/create/locales/bg.ts +76 -0
- package/src/components/estimates/create/locales/cs.ts +76 -0
- package/src/components/estimates/create/locales/en.ts +76 -0
- package/src/components/estimates/create/locales/et.ts +76 -0
- package/src/components/estimates/create/locales/fi.ts +76 -0
- package/src/components/estimates/create/locales/hr.ts +8 -8
- package/src/components/estimates/create/locales/is.ts +76 -0
- package/src/components/estimates/create/locales/nb.ts +76 -0
- package/src/components/estimates/create/locales/sk.ts +76 -0
- package/src/components/estimates/create/locales/sl.ts +8 -8
- package/src/components/estimates/create/locales/sv.ts +76 -0
- package/src/components/estimates/create/prepare-estimate-submission.ts +4 -1
- package/src/components/estimates/estimates.hooks.ts +15 -3
- package/src/components/estimates/list/list-row-actions.tsx +34 -7
- package/src/components/estimates/list/list-table.tsx +78 -10
- package/src/components/estimates/list/locales/bg.ts +38 -0
- package/src/components/estimates/list/locales/cs.ts +38 -0
- package/src/components/estimates/list/locales/en.ts +27 -2
- package/src/components/estimates/list/locales/et.ts +38 -0
- package/src/components/estimates/list/locales/fi.ts +38 -0
- package/src/components/estimates/list/locales/hr.ts +2 -2
- package/src/components/estimates/list/locales/is.ts +38 -0
- package/src/components/estimates/list/locales/nb.ts +38 -0
- package/src/components/estimates/list/locales/sk.ts +38 -0
- package/src/components/estimates/list/locales/sv.ts +38 -0
- package/src/components/estimates/list/use-estimate-download.ts +3 -5
- package/src/components/export/document-export-form.tsx +72 -15
- package/src/components/export/sales-per-item-export-form.tsx +3 -2
- package/src/components/invoices/create/create-invoice-form.tsx +294 -76
- package/src/components/invoices/create/eslog-validation.ts +97 -8
- package/src/components/invoices/create/locales/bg.ts +164 -0
- package/src/components/invoices/create/locales/cs.ts +164 -0
- package/src/components/invoices/create/locales/de.ts +24 -0
- package/src/components/invoices/create/locales/en.ts +164 -0
- package/src/components/invoices/create/locales/es.ts +24 -0
- package/src/components/invoices/create/locales/et.ts +164 -0
- package/src/components/invoices/create/locales/fi.ts +164 -0
- package/src/components/invoices/create/locales/fr.ts +23 -0
- package/src/components/invoices/create/locales/hr.ts +32 -9
- package/src/components/invoices/create/locales/is.ts +164 -0
- package/src/components/invoices/create/locales/it.ts +24 -0
- package/src/components/invoices/create/locales/nb.ts +164 -0
- package/src/components/invoices/create/locales/nl.ts +23 -0
- package/src/components/invoices/create/locales/pl.ts +23 -0
- package/src/components/invoices/create/locales/pt.ts +24 -0
- package/src/components/invoices/create/locales/sk.ts +164 -0
- package/src/components/invoices/create/locales/sl.ts +32 -9
- package/src/components/invoices/create/locales/sv.ts +166 -0
- package/src/components/invoices/create/prepare-invoice-submission.ts +19 -2
- package/src/components/invoices/invoices-furs.hooks.ts +11 -8
- package/src/components/invoices/invoices.hooks.ts +27 -10
- package/src/components/invoices/list/list-row-actions.tsx +54 -21
- package/src/components/invoices/list/list-table.tsx +92 -11
- package/src/components/invoices/list/locales/bg.ts +49 -0
- package/src/components/invoices/list/locales/cs.ts +49 -0
- package/src/components/invoices/list/locales/en.ts +34 -2
- package/src/components/invoices/list/locales/et.ts +49 -0
- package/src/components/invoices/list/locales/fi.ts +49 -0
- package/src/components/invoices/list/locales/is.ts +49 -0
- package/src/components/invoices/list/locales/nb.ts +49 -0
- package/src/components/invoices/list/locales/sk.ts +49 -0
- package/src/components/invoices/list/locales/sv.ts +49 -0
- package/src/components/invoices/list/use-invoice-download.ts +3 -5
- package/src/components/invoices/send-email-dialog/locales/bg.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/cs.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/de.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/en.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/et.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/fi.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/is.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/nb.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/sk.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/sl.ts +21 -0
- package/src/components/invoices/send-email-dialog/locales/sv.ts +58 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +188 -93
- package/src/components/invoices/view/eslog-info-display.tsx +2 -0
- package/src/components/invoices/view/fiscalization-status-card.tsx +2 -0
- package/src/components/items/create-item-form/create-item-form.tsx +29 -0
- package/src/components/items/create-item-form/locales/bg.ts +13 -0
- package/src/components/items/create-item-form/locales/cs.ts +13 -0
- package/src/components/items/create-item-form/locales/et.ts +13 -0
- package/src/components/items/create-item-form/locales/fi.ts +13 -0
- package/src/components/items/create-item-form/locales/is.ts +13 -0
- package/src/components/items/create-item-form/locales/nb.ts +13 -0
- package/src/components/items/create-item-form/locales/sk.ts +13 -0
- package/src/components/items/create-item-form/locales/sv.ts +13 -0
- package/src/components/items/edit-item-form/edit-item-form.tsx +39 -1
- package/src/components/items/edit-item-form/locales/bg.ts +12 -0
- package/src/components/items/edit-item-form/locales/cs.ts +12 -0
- package/src/components/items/edit-item-form/locales/en.ts +12 -0
- package/src/components/items/edit-item-form/locales/et.ts +12 -0
- package/src/components/items/edit-item-form/locales/fi.ts +12 -0
- package/src/components/items/edit-item-form/locales/is.ts +12 -0
- package/src/components/items/edit-item-form/locales/nb.ts +12 -0
- package/src/components/items/edit-item-form/locales/sk.ts +12 -0
- package/src/components/items/edit-item-form/locales/sv.ts +12 -0
- package/src/components/items/item-combobox.tsx +51 -18
- package/src/components/items/item-list-table/item-list-table.tsx +47 -23
- package/src/components/items/item-list-table/locales/bg.ts +16 -0
- package/src/components/items/item-list-table/locales/cs.ts +16 -0
- package/src/components/items/item-list-table/locales/en.ts +4 -3
- package/src/components/items/item-list-table/locales/et.ts +16 -0
- package/src/components/items/item-list-table/locales/fi.ts +16 -0
- package/src/components/items/item-list-table/locales/is.ts +16 -0
- package/src/components/items/item-list-table/locales/nb.ts +16 -0
- package/src/components/items/item-list-table/locales/sk.ts +16 -0
- package/src/components/items/item-list-table/locales/sv.ts +16 -0
- package/src/components/items/items.hooks.ts +15 -15
- package/src/components/payments/create-payment-form/create-payment-form.tsx +11 -7
- package/src/components/payments/create-payment-form/locales/bg.ts +20 -0
- package/src/components/payments/create-payment-form/locales/cs.ts +20 -0
- package/src/components/payments/create-payment-form/locales/en.ts +20 -0
- package/src/components/payments/create-payment-form/locales/et.ts +20 -0
- package/src/components/payments/create-payment-form/locales/fi.ts +20 -0
- package/src/components/payments/create-payment-form/locales/hr.ts +2 -2
- package/src/components/payments/create-payment-form/locales/is.ts +20 -0
- package/src/components/payments/create-payment-form/locales/nb.ts +20 -0
- package/src/components/payments/create-payment-form/locales/sk.ts +20 -0
- package/src/components/payments/create-payment-form/locales/sl.ts +4 -4
- package/src/components/payments/create-payment-form/locales/sv.ts +20 -0
- package/src/components/payments/edit-payment-form/edit-payment-form.tsx +5 -1
- package/src/components/payments/edit-payment-form/locales/bg.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/cs.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/en.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/et.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/fi.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/hr.ts +2 -2
- package/src/components/payments/edit-payment-form/locales/is.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/nb.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/sk.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/sl.ts +4 -4
- package/src/components/payments/edit-payment-form/locales/sv.ts +20 -0
- package/src/components/payments/list/list-row-actions.tsx +10 -2
- package/src/components/payments/list/list-table.tsx +51 -45
- package/src/components/payments/list/locales/bg.ts +42 -0
- package/src/components/payments/list/locales/cs.ts +42 -0
- package/src/components/payments/list/locales/de.ts +18 -0
- package/src/components/payments/list/locales/en.ts +37 -2
- package/src/components/payments/list/locales/es.ts +18 -0
- package/src/components/payments/list/locales/et.ts +42 -0
- package/src/components/payments/list/locales/fi.ts +42 -0
- package/src/components/payments/list/locales/fr.ts +18 -0
- package/src/components/payments/list/locales/hr.ts +18 -0
- package/src/components/payments/list/locales/is.ts +42 -0
- package/src/components/payments/list/locales/it.ts +18 -0
- package/src/components/payments/list/locales/nb.ts +42 -0
- package/src/components/payments/list/locales/nl.ts +18 -0
- package/src/components/payments/list/locales/pl.ts +18 -0
- package/src/components/payments/list/locales/pt.ts +18 -0
- package/src/components/payments/list/locales/sk.ts +42 -0
- package/src/components/payments/list/locales/sl.ts +18 -1
- package/src/components/payments/list/locales/sv.ts +42 -0
- package/src/components/payments/payments.hooks.ts +13 -6
- package/src/components/recurring-invoices/create-recurring-invoice-form/create-recurring-invoice-form.tsx +23 -17
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/bg.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/cs.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/en.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/et.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/fi.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/hr.ts +6 -6
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/is.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/nb.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sk.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sl.ts +4 -4
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sv.ts +44 -0
- package/src/components/recurring-invoices/list/list-row-actions.tsx +3 -5
- package/src/components/recurring-invoices/list/list-table.tsx +10 -7
- package/src/components/recurring-invoices/list/locales/bg.ts +28 -0
- package/src/components/recurring-invoices/list/locales/cs.ts +28 -0
- package/src/components/recurring-invoices/list/locales/en.ts +23 -0
- package/src/components/recurring-invoices/list/locales/et.ts +28 -0
- package/src/components/recurring-invoices/list/locales/fi.ts +28 -0
- package/src/components/recurring-invoices/list/locales/is.ts +28 -0
- package/src/components/recurring-invoices/list/locales/nb.ts +28 -0
- package/src/components/recurring-invoices/list/locales/sk.ts +28 -0
- package/src/components/recurring-invoices/list/locales/sv.ts +28 -0
- package/src/components/recurring-invoices/recurring-invoices.hooks.ts +11 -8
- package/src/components/request-logs/request-log-detail.tsx +30 -23
- package/src/components/request-logs/request-log-list-table.tsx +88 -45
- package/src/components/table/README.md +47 -9
- package/src/components/table/data-table.tsx +232 -92
- package/src/components/table/filter-bar.tsx +1 -1
- package/src/components/table/filter-panel.tsx +51 -22
- package/src/components/table/hooks/use-table-state.ts +64 -11
- package/src/components/table/index.ts +3 -0
- package/src/components/table/locales.ts +119 -4
- package/src/components/table/selection-toolbar.tsx +65 -9
- package/src/components/table/sorting.ts +80 -0
- package/src/components/table/table-skeleton.tsx +15 -9
- package/src/components/table/types.ts +17 -0
- package/src/components/tax-reports/index.ts +8 -0
- package/src/components/tax-reports/kir-export-form.tsx +4 -5
- package/src/components/tax-reports/slovenia-accounting-mappings-fields.tsx +271 -0
- package/src/components/tax-reports/slovenia-tax-profile-step.tsx +21 -10
- package/src/components/tax-reports/slovenia-vod-export-form.tsx +452 -0
- package/src/components/tax-reports/slovenia-yearly-export-form.tsx +17 -16
- package/src/components/tax-reports/slovenia-yearly-review-step.tsx +40 -18
- package/src/components/taxes/create-tax-form/create-tax-form.tsx +48 -2
- package/src/components/taxes/create-tax-form/locales/bg.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/cs.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/et.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/fi.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/is.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/nb.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/sk.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/sv.ts +8 -0
- package/src/components/taxes/edit-tax-form/edit-tax-form.tsx +80 -11
- package/src/components/taxes/edit-tax-form/locales/bg.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/cs.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/en.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/et.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/fi.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/is.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/nb.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sk.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sv.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/bg.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/cs.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/en.ts +4 -3
- package/src/components/taxes/tax-list-table/locales/et.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/fi.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/is.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/nb.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sk.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sv.ts +17 -0
- package/src/components/taxes/tax-list-table/tax-list-table.tsx +53 -19
- package/src/components/taxes/taxes.hooks.ts +53 -12
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/drawer.tsx +2 -2
- package/src/components/ui/form.tsx +118 -2
- package/src/components/ui/progress.tsx +6 -4
- package/src/components/ui/select.tsx +118 -1
- package/src/components/ui/sonner.tsx +17 -36
- package/src/components/ui/sticky-form-footer.tsx +6 -1
- package/src/components/ui/tooltip.tsx +15 -2
- package/src/components/webhook-logs/webhook-delivery-detail.tsx +22 -22
- package/src/components/webhook-logs/webhook-delivery-list-table.tsx +92 -17
- package/src/components/wl-subscription/locked-feature.tsx +11 -10
- package/src/components/wl-subscription/paywall.tsx +184 -72
- package/src/components/wl-subscription/upgrade-modal.tsx +28 -31
- package/src/generate-schemas.ts +14 -4
- package/src/generated/schemas/account_webhook.ts +43 -0
- package/src/generated/schemas/accountwebhook.ts +67 -0
- package/src/generated/schemas/entity.ts +255 -16
- package/src/generated/schemas/exportsloveniavodxml_body.ts +16 -0
- package/src/generated/schemas/furssettings.ts +1 -0
- package/src/generated/schemas/incomingpurchasedocument.ts +198 -0
- package/src/generated/schemas/incomingpurchasedocumentpayment.ts +38 -0
- package/src/generated/schemas/index.ts +10 -0
- package/src/generated/schemas/item.ts +36 -0
- package/src/generated/schemas/me.ts +23 -19
- package/src/generated/schemas/order.ts +2 -0
- package/src/generated/schemas/orderintegration.ts +8 -4
- package/src/generated/schemas/payment.ts +5 -0
- package/src/generated/schemas/ptatcudseries.ts +30 -0
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +35 -3
- package/src/generated/schemas/rendercreditnotepreview_body.ts +35 -3
- package/src/generated/schemas/renderdeliverynotepreview_body.ts +12 -5
- package/src/generated/schemas/renderestimatepreview_body.ts +38 -5
- package/src/generated/schemas/renderinvoicepreview_body.ts +39 -5
- package/src/generated/schemas/senddocument_body.ts +1 -0
- package/src/generated/schemas/sendemail_body.ts +67 -39
- package/src/generated/schemas/sloveniataxprofile.ts +97 -21
- package/src/generated/schemas/starteslogexport_body.ts +33 -0
- package/src/generated/schemas/startpdfexport_body.ts +94 -78
- package/src/generated/schemas/supplier.ts +59 -0
- package/src/generated/schemas/syncshopifyorders_body.ts +20 -0
- package/src/generated/schemas/tax.ts +2 -0
- package/src/generated/schemas/uploadfile_body.ts +1 -0
- package/src/generated/schemas/userptsettings.ts +26 -0
- package/src/generated/schemas/voidinvoice_body.ts +20 -0
- package/src/generated/schemas/webhook.ts +2 -0
- package/src/hooks/create-resource-hooks.ts +22 -19
- package/src/hooks/use-duplicate-document.ts +10 -8
- package/src/hooks/use-eslog-validation.ts +5 -1
- package/src/hooks/use-next-document-number.ts +13 -6
- package/src/hooks/use-resolved-entity-id.ts +14 -0
- package/src/hooks/use-resource-mutation.ts +11 -30
- package/src/hooks/use-transaction-type-check.ts +3 -8
- package/src/lib/browser-cookies.ts +1 -1
- package/src/lib/country-capabilities.ts +114 -0
- package/src/lib/date-fns-locale.ts +1 -20
- package/src/lib/eslog-export.ts +32 -0
- package/src/lib/fiscalization-options.ts +21 -1
- package/src/lib/formatting.ts +27 -0
- package/src/lib/furs-error-utils.ts +29 -0
- package/src/lib/locale.ts +4 -0
- package/src/lib/payment-display.ts +95 -0
- package/src/lib/pt-document-input.ts +67 -0
- package/src/lib/schemas/shared.ts +1 -0
- package/src/lib/template-variables.tsx +102 -4
- package/src/lib/translation.ts +51 -33
- package/src/lib/white-label-capabilities.ts +626 -0
- package/src/lib/zod-validation-message.ts +291 -0
- package/src/providers/entities-provider.tsx +32 -14
- package/src/providers/sdk-provider.tsx +112 -12
- package/src/providers/space-invoices-provider.tsx +129 -0
- package/src/providers/white-label-provider.tsx +96 -4
- package/src/providers/wl-subscription-provider.tsx +144 -10
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
PDF: "PDF",
|
|
3
|
+
Send: "Send",
|
|
4
|
+
Payment: "Platba",
|
|
5
|
+
Share: "Share",
|
|
6
|
+
Unshare: "Zrušiť zdieľanie",
|
|
7
|
+
Copied: "Copied",
|
|
8
|
+
"Copy shareable link": "Copy shareable link",
|
|
9
|
+
"Unshare document": "Unshare document",
|
|
10
|
+
"Unshare document confirmation": "Unshare document confirmation",
|
|
11
|
+
"Document unshared": "Document unshared",
|
|
12
|
+
"Unshare failed": "Unshare failed",
|
|
13
|
+
"Download failed": "Download failed",
|
|
14
|
+
"e-SLOG download failed": "e-SLOG download failed",
|
|
15
|
+
Recurring: "Recurring",
|
|
16
|
+
Duplicate: "Duplicate",
|
|
17
|
+
"Duplicate invoice": "Duplicate invoice",
|
|
18
|
+
"Duplicate estimate": "Duplicate estimate",
|
|
19
|
+
"Duplicate credit_note": "Duplicate credit_note",
|
|
20
|
+
"Duplicate advance_invoice": "Duplicate advance_invoice",
|
|
21
|
+
"Duplicate delivery_note": "Duplicate delivery_note",
|
|
22
|
+
"Create invoice": "Create invoice",
|
|
23
|
+
"Create estimate": "Vytvorte odhad",
|
|
24
|
+
"Create credit_note": "Create credit_note",
|
|
25
|
+
"Create advance_invoice": "Vytvoriť zálohovú faktúru",
|
|
26
|
+
"Create delivery_note": "Vytvoriť dodací list",
|
|
27
|
+
Details: "Údaje",
|
|
28
|
+
Number: "Číslo",
|
|
29
|
+
Date: "Dátum",
|
|
30
|
+
"Due date": "Dátum splatnosti",
|
|
31
|
+
"Service date": "Service date",
|
|
32
|
+
"Service period": "Service period",
|
|
33
|
+
"Valid until": "Valid until",
|
|
34
|
+
Customer: "Zákazník",
|
|
35
|
+
Discount: "Discount",
|
|
36
|
+
Subtotal: "Subtotal",
|
|
37
|
+
Tax: "Tax",
|
|
38
|
+
of: "of",
|
|
39
|
+
Total: "Celkom",
|
|
40
|
+
Paid: "Zaplatené",
|
|
41
|
+
Due: "Due",
|
|
42
|
+
Status: "Stav",
|
|
43
|
+
"Paid in full": "Paid in full",
|
|
44
|
+
"Partially paid": "Partially paid",
|
|
45
|
+
Unpaid: "Unpaid",
|
|
46
|
+
Voided: "Stornovaná",
|
|
47
|
+
Overdue: "Po splatnosti",
|
|
48
|
+
Shareable: "Shareable",
|
|
49
|
+
Quote: "Quote",
|
|
50
|
+
"Packing list": "Packing list",
|
|
51
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
52
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
53
|
+
Payments: "Platby",
|
|
54
|
+
Refunds: "Refunds",
|
|
55
|
+
"No payments": "No payments",
|
|
56
|
+
"No refunds": "No refunds",
|
|
57
|
+
"Add payment": "Pridat platbu",
|
|
58
|
+
Edit: "Upraviť",
|
|
59
|
+
Delete: "Vymazať",
|
|
60
|
+
"Delete payment": "Delete payment",
|
|
61
|
+
"Delete payment confirmation": "Delete payment confirmation",
|
|
62
|
+
Cancel: "Zrušiť",
|
|
63
|
+
cash: "Hotovosť",
|
|
64
|
+
bank_transfer: "Bankový prevod",
|
|
65
|
+
card: "Karta",
|
|
66
|
+
check: "Šek",
|
|
67
|
+
credit_note: "Dobropis",
|
|
68
|
+
other: "Iné",
|
|
69
|
+
advance_invoice: "Zálohová faktúra",
|
|
70
|
+
advance_payment: "advance_payment",
|
|
71
|
+
"Delete failed": "Delete failed",
|
|
72
|
+
Finalize: "Finalizovať",
|
|
73
|
+
"Delete Draft": "Vymazať koncept",
|
|
74
|
+
"Finalize document": "Finalize document",
|
|
75
|
+
"Finalize document confirmation": "Finalize document confirmation",
|
|
76
|
+
"Delete draft document": "Delete draft document",
|
|
77
|
+
"Delete draft confirmation": "Delete draft confirmation",
|
|
78
|
+
"Document finalized": "Document finalized",
|
|
79
|
+
"Finalize failed": "Finalize failed",
|
|
80
|
+
"Draft deleted": "Draft deleted",
|
|
81
|
+
"Delete draft failed": "Delete draft failed",
|
|
82
|
+
Draft: "Draft",
|
|
83
|
+
Void: "Void",
|
|
84
|
+
"Voiding...": "Stornujem...",
|
|
85
|
+
Activity: "Activity",
|
|
86
|
+
"No activity": "No activity",
|
|
87
|
+
Created: "Vytvorené",
|
|
88
|
+
Updated: "Aktualizované",
|
|
89
|
+
Sent: "Sent",
|
|
90
|
+
Deleted: "Deleted",
|
|
91
|
+
by: "by",
|
|
92
|
+
me: "me",
|
|
93
|
+
User: "Používateľ",
|
|
94
|
+
System: "Systémový",
|
|
95
|
+
Scheduled: "Scheduled",
|
|
96
|
+
"Version history": "Version history",
|
|
97
|
+
"No version history": "No version history",
|
|
98
|
+
Version: "Version",
|
|
99
|
+
Fiscalization: "Fiscalization",
|
|
100
|
+
Fiscalized: "Fiskalizované",
|
|
101
|
+
Pending: "Čaká",
|
|
102
|
+
Failed: "Neúspešné",
|
|
103
|
+
Skipped: "Skipped",
|
|
104
|
+
"Skipped by user": "Skipped by user",
|
|
105
|
+
"Retry fiscalization": "Retry fiscalization",
|
|
106
|
+
English: "Angličtina",
|
|
107
|
+
German: "Nemčina",
|
|
108
|
+
Slovenian: "Slovinčina",
|
|
109
|
+
Italian: "Taliančina",
|
|
110
|
+
French: "Francúzština",
|
|
111
|
+
Spanish: "Španielčina",
|
|
112
|
+
Portuguese: "Portugalčina",
|
|
113
|
+
Dutch: "Holandčina",
|
|
114
|
+
Polish: "Poľština",
|
|
115
|
+
Croatian: "Chorvátčina",
|
|
116
|
+
Swedish: "Švédčina",
|
|
117
|
+
Finnish: "Fínčina",
|
|
118
|
+
Estonian: "Estónčina",
|
|
119
|
+
Bulgarian: "Bulharčina",
|
|
120
|
+
Czech: "Čeština",
|
|
121
|
+
Slovak: "Slovenčina",
|
|
122
|
+
Norwegian: "Nórčina",
|
|
123
|
+
Icelandic: "Islandčina",
|
|
124
|
+
"Linked documents": "Linked documents",
|
|
125
|
+
"No linked documents": "No linked documents",
|
|
126
|
+
Invoice: "Faktura",
|
|
127
|
+
Estimate: "Cenová ponuka",
|
|
128
|
+
"Credit note": "Dobropis",
|
|
129
|
+
"Advance invoice": "Zálohová faktúra",
|
|
130
|
+
"Delivery note": "Dodací list",
|
|
131
|
+
"Credit for": "Credit for",
|
|
132
|
+
"Converted from": "Converted from",
|
|
133
|
+
"Converted to": "Converted to",
|
|
134
|
+
"Has credit": "Has credit",
|
|
135
|
+
"Advance applied": "Advance applied",
|
|
136
|
+
"Applied to": "Applied to",
|
|
137
|
+
"Delivered for": "Delivered for",
|
|
138
|
+
"Has delivery": "Has delivery",
|
|
139
|
+
Fulfills: "Fulfills",
|
|
140
|
+
"Fulfilled by": "Fulfilled by",
|
|
141
|
+
References: "References",
|
|
142
|
+
View: "Zobraziť",
|
|
143
|
+
} as const;
|
|
@@ -49,10 +49,18 @@ export default {
|
|
|
49
49
|
"Partially paid": "Delno plačano",
|
|
50
50
|
Unpaid: "Neplačano",
|
|
51
51
|
Voided: "Stornirano",
|
|
52
|
+
Overdue: "Zapadlo",
|
|
53
|
+
Shareable: "Deljivo",
|
|
54
|
+
Quote: "Ponudba",
|
|
55
|
+
"Packing list": "Pakirni list",
|
|
56
|
+
"FURS fiscalization failed": "FURS fiskalizacija ni uspela",
|
|
57
|
+
"FINA fiscalization failed": "FINA fiskalizacija ni uspela",
|
|
52
58
|
|
|
53
59
|
// Payments list
|
|
54
60
|
Payments: "Plačila",
|
|
61
|
+
Refunds: "Vračila",
|
|
55
62
|
"No payments": "Ni plačil",
|
|
63
|
+
"No refunds": "Ni vračil",
|
|
56
64
|
"Add payment": "Dodaj plačilo",
|
|
57
65
|
Edit: "Uredi",
|
|
58
66
|
Delete: "Izbriši",
|
|
@@ -68,6 +76,7 @@ export default {
|
|
|
68
76
|
credit_note: "Dobropis",
|
|
69
77
|
other: "Drugo",
|
|
70
78
|
advance_invoice: "Avansni račun",
|
|
79
|
+
advance_payment: "Avansno plačilo",
|
|
71
80
|
|
|
72
81
|
// Errors
|
|
73
82
|
"Delete failed": "Brisanje ni uspelo",
|
|
@@ -100,8 +109,12 @@ export default {
|
|
|
100
109
|
Deleted: "Izbrisano",
|
|
101
110
|
by: "od",
|
|
102
111
|
me: "jaz",
|
|
112
|
+
User: "Uporabnik",
|
|
103
113
|
System: "Sistem",
|
|
104
114
|
Scheduled: "Načrtovano",
|
|
115
|
+
"Version history": "Zgodovina različic",
|
|
116
|
+
"No version history": "Ni zgodovine različic",
|
|
117
|
+
Version: "Različica",
|
|
105
118
|
|
|
106
119
|
// Fiscalization
|
|
107
120
|
Fiscalization: "Fiskalizacija",
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
PDF: "PDF",
|
|
3
|
+
Send: "Skicka",
|
|
4
|
+
Payment: "Betalning",
|
|
5
|
+
Share: "Dela",
|
|
6
|
+
Unshare: "Sluta dela",
|
|
7
|
+
Copied: "Kopierad",
|
|
8
|
+
"Copy shareable link": "Kopiera delbar länk",
|
|
9
|
+
"Unshare document": "Sluta dela dokument",
|
|
10
|
+
"Unshare document confirmation": "Är du säker på att du vill sluta dela dokumentet?",
|
|
11
|
+
"Document unshared": "Dokumentet delas inte längre",
|
|
12
|
+
"Unshare failed": "Det gick inte att sluta dela",
|
|
13
|
+
"Download failed": "Nedladdningen misslyckades",
|
|
14
|
+
"e-SLOG download failed": "Nedladdning av e-SLOG misslyckades",
|
|
15
|
+
Recurring: "Återkommande",
|
|
16
|
+
Duplicate: "Duplicera",
|
|
17
|
+
"Duplicate invoice": "Duplicera faktura",
|
|
18
|
+
"Duplicate estimate": "Duplicera offert",
|
|
19
|
+
"Duplicate credit_note": "Duplicera kreditnota",
|
|
20
|
+
"Duplicate advance_invoice": "Duplicera förskottsfaktura",
|
|
21
|
+
"Duplicate delivery_note": "Duplicera följesedel",
|
|
22
|
+
"Create invoice": "Skapa faktura",
|
|
23
|
+
"Create estimate": "Skapa uppskattning",
|
|
24
|
+
"Create credit_note": "Skapa kreditnota",
|
|
25
|
+
"Create advance_invoice": "Skapa förskottsfaktura",
|
|
26
|
+
"Create delivery_note": "Skapa följesedel",
|
|
27
|
+
Details: "Detaljer",
|
|
28
|
+
Number: "Nummer",
|
|
29
|
+
Date: "Datum",
|
|
30
|
+
"Due date": "Förfallodatum",
|
|
31
|
+
"Service date": "Tjänstedatum",
|
|
32
|
+
"Service period": "Tjänsteperiod",
|
|
33
|
+
"Valid until": "Giltig till",
|
|
34
|
+
Customer: "Kund",
|
|
35
|
+
Discount: "Rabatt",
|
|
36
|
+
Subtotal: "Delsumma",
|
|
37
|
+
Tax: "Skatt",
|
|
38
|
+
of: "of",
|
|
39
|
+
Total: "Totalt",
|
|
40
|
+
Paid: "Betald",
|
|
41
|
+
Due: "Att betala",
|
|
42
|
+
Status: "Status",
|
|
43
|
+
"Paid in full": "Fullt betald",
|
|
44
|
+
"Partially paid": "Delvis betald",
|
|
45
|
+
Unpaid: "Obetald",
|
|
46
|
+
Voided: "Makulerad",
|
|
47
|
+
Overdue: "Förfallen",
|
|
48
|
+
Shareable: "Shareable",
|
|
49
|
+
Quote: "Offert",
|
|
50
|
+
"Packing list": "Packlista",
|
|
51
|
+
"FURS fiscalization failed": "FURS-fiskaliseringen misslyckades",
|
|
52
|
+
"FINA fiscalization failed": "FINA-fiskaliseringen misslyckades",
|
|
53
|
+
Payments: "Betalningar",
|
|
54
|
+
Refunds: "Återbetalningar",
|
|
55
|
+
"No payments": "Inga betalningar",
|
|
56
|
+
"No refunds": "Inga återbetalningar",
|
|
57
|
+
"Add payment": "Lägg till betalning",
|
|
58
|
+
Edit: "Redigera",
|
|
59
|
+
Delete: "Ta bort",
|
|
60
|
+
"Delete payment": "Ta bort betalning",
|
|
61
|
+
"Delete payment confirmation": "Är du säker på att du vill ta bort betalningen?",
|
|
62
|
+
Cancel: "Avbryt",
|
|
63
|
+
cash: "kontant",
|
|
64
|
+
bank_transfer: "Banköverföring",
|
|
65
|
+
card: "kort",
|
|
66
|
+
check: "check",
|
|
67
|
+
credit_note: "kreditnota",
|
|
68
|
+
other: "Övrigt",
|
|
69
|
+
advance_invoice: "förskottsfaktura",
|
|
70
|
+
advance_payment: "förskottsbetalning",
|
|
71
|
+
"Delete failed": "Borttagningen misslyckades",
|
|
72
|
+
Finalize: "Slutför",
|
|
73
|
+
"Delete Draft": "Ta bort utkast",
|
|
74
|
+
"Finalize document": "Slutför dokument",
|
|
75
|
+
"Finalize document confirmation": "Är du säker på att du vill slutföra dokumentet?",
|
|
76
|
+
"Delete draft document": "Ta bort utkast",
|
|
77
|
+
"Delete draft confirmation": "Är du säker på att du vill ta bort utkastet?",
|
|
78
|
+
"Document finalized": "Dokumentet har slutförts",
|
|
79
|
+
"Finalize failed": "Det gick inte att slutföra",
|
|
80
|
+
"Draft deleted": "Utkastet har tagits bort",
|
|
81
|
+
"Delete draft failed": "Det gick inte att ta bort utkastet",
|
|
82
|
+
Draft: "Utkast",
|
|
83
|
+
Void: "Makulera",
|
|
84
|
+
"Voiding...": "Makulerar...",
|
|
85
|
+
Activity: "Aktivitet",
|
|
86
|
+
"No activity": "Ingen aktivitet",
|
|
87
|
+
Created: "Skapad",
|
|
88
|
+
Updated: "Uppdaterad",
|
|
89
|
+
Sent: "Skickad",
|
|
90
|
+
Deleted: "Borttagen",
|
|
91
|
+
by: "av",
|
|
92
|
+
me: "mig",
|
|
93
|
+
User: "Användare",
|
|
94
|
+
System: "System",
|
|
95
|
+
Scheduled: "Schemalagd",
|
|
96
|
+
"Version history": "Versionshistorik",
|
|
97
|
+
"No version history": "Ingen versionshistorik",
|
|
98
|
+
Version: "Version",
|
|
99
|
+
Fiscalization: "Fiskalisering",
|
|
100
|
+
Fiscalized: "Fiskaliserad",
|
|
101
|
+
Pending: "Väntande",
|
|
102
|
+
Failed: "Misslyckad",
|
|
103
|
+
Skipped: "Överhoppad",
|
|
104
|
+
"Skipped by user": "Överhoppad av användaren",
|
|
105
|
+
"Retry fiscalization": "Försök fiskalisera igen",
|
|
106
|
+
English: "Engelska",
|
|
107
|
+
German: "Tyska",
|
|
108
|
+
Slovenian: "Slovenska",
|
|
109
|
+
Italian: "Italienska",
|
|
110
|
+
French: "Franska",
|
|
111
|
+
Spanish: "Spanska",
|
|
112
|
+
Portuguese: "Portugisiska",
|
|
113
|
+
Dutch: "Nederländska",
|
|
114
|
+
Polish: "Polska",
|
|
115
|
+
Croatian: "Kroatiska",
|
|
116
|
+
Swedish: "Svenska",
|
|
117
|
+
Finnish: "Suomi",
|
|
118
|
+
Estonian: "Eesti",
|
|
119
|
+
Bulgarian: "Български",
|
|
120
|
+
Czech: "Čeština",
|
|
121
|
+
Slovak: "Slovenčina",
|
|
122
|
+
Norwegian: "Norsk bokmål",
|
|
123
|
+
Icelandic: "Íslenska",
|
|
124
|
+
"Linked documents": "Länkade dokument",
|
|
125
|
+
"No linked documents": "Inga länkade dokument",
|
|
126
|
+
Invoice: "Faktura",
|
|
127
|
+
Estimate: "Offert",
|
|
128
|
+
"Credit note": "Kreditnota",
|
|
129
|
+
"Advance invoice": "Förskottsfaktura",
|
|
130
|
+
"Delivery note": "Följesedel",
|
|
131
|
+
"Credit for": "Kreditering för",
|
|
132
|
+
"Converted from": "Konverterad från",
|
|
133
|
+
"Converted to": "Konverterad till",
|
|
134
|
+
"Has credit": "Har kreditnota",
|
|
135
|
+
"Advance applied": "Förskott tillämpat",
|
|
136
|
+
"Applied to": "Tillämpad på",
|
|
137
|
+
"Delivered for": "Levererad för",
|
|
138
|
+
"Has delivery": "Har följesedel",
|
|
139
|
+
Fulfills: "Uppfyller",
|
|
140
|
+
"Fulfilled by": "Uppfylld av",
|
|
141
|
+
References: "Referenser",
|
|
142
|
+
View: "Visa",
|
|
143
|
+
} as const;
|
|
@@ -4,14 +4,16 @@ import {
|
|
|
4
4
|
type DeliveryNote,
|
|
5
5
|
downloadBlob,
|
|
6
6
|
type Estimate,
|
|
7
|
+
eSlog,
|
|
7
8
|
type Invoice,
|
|
9
|
+
invoices,
|
|
8
10
|
} from "@spaceinvoices/js-sdk";
|
|
9
11
|
import { useState } from "react";
|
|
10
12
|
import { useEntities } from "@/ui/providers/entities-context";
|
|
11
|
-
import { useSDK } from "@/ui/providers/sdk-provider";
|
|
12
13
|
|
|
13
14
|
type Document = Invoice | Estimate | CreditNote | AdvanceInvoice | DeliveryNote;
|
|
14
15
|
type DocumentType = "invoice" | "estimate" | "credit_note" | "advance_invoice" | "delivery_note";
|
|
16
|
+
type ESlogDocumentType = "invoice" | "estimate" | "credit_note";
|
|
15
17
|
|
|
16
18
|
// Document type labels for PDF filename
|
|
17
19
|
const TYPE_LABELS: Record<string, string> = {
|
|
@@ -36,18 +38,17 @@ export function useDocumentDownload({
|
|
|
36
38
|
onDownloadSuccess,
|
|
37
39
|
onDownloadError,
|
|
38
40
|
}: UseDocumentDownloadOptions = {}) {
|
|
39
|
-
const { sdk } = useSDK();
|
|
40
41
|
const { activeEntity } = useEntities();
|
|
41
42
|
|
|
42
43
|
const [isDownloadingPdf, setIsDownloadingPdf] = useState(false);
|
|
43
44
|
const [isDownloadingEslog, setIsDownloadingEslog] = useState(false);
|
|
44
45
|
|
|
45
46
|
/**
|
|
46
|
-
* Download PDF with optional
|
|
47
|
-
*
|
|
47
|
+
* Download PDF with an optional language override.
|
|
48
|
+
* Formatting locale always falls back to backend/entity defaults.
|
|
48
49
|
*/
|
|
49
|
-
const downloadPdf = async (document: Document, documentType: DocumentType,
|
|
50
|
-
if (!
|
|
50
|
+
const downloadPdf = async (document: Document, documentType: DocumentType, language?: string) => {
|
|
51
|
+
if (!activeEntity?.id) {
|
|
51
52
|
onDownloadError?.("Download failed");
|
|
52
53
|
return;
|
|
53
54
|
}
|
|
@@ -59,11 +60,14 @@ export function useDocumentDownload({
|
|
|
59
60
|
// SDK signature: renderPdf(id, params?, SDKMethodOptions?)
|
|
60
61
|
// entity_id goes in SDKMethodOptions (last arg), not params
|
|
61
62
|
// Note: renderPdf is on invoices module but works with any document ID via /documents/{id}/pdf
|
|
62
|
-
const
|
|
63
|
-
|
|
63
|
+
const typeLabel =
|
|
64
|
+
documentType === "estimate" && (document as Estimate).title_type === "quote"
|
|
65
|
+
? "Quote"
|
|
66
|
+
: TYPE_LABELS[documentType] || "Document";
|
|
67
|
+
const params = language ? { language } : {};
|
|
64
68
|
const fileName = `${typeLabel} ${document.number}.pdf`;
|
|
65
69
|
|
|
66
|
-
await
|
|
70
|
+
await invoices.downloadPdf(document.id, fileName, params, { entity_id: activeEntity.id });
|
|
67
71
|
|
|
68
72
|
onDownloadSuccess?.(fileName);
|
|
69
73
|
} catch (error) {
|
|
@@ -78,7 +82,7 @@ export function useDocumentDownload({
|
|
|
78
82
|
* Download e-SLOG XML
|
|
79
83
|
*/
|
|
80
84
|
const downloadEslog = async (document: Document, documentType: DocumentType) => {
|
|
81
|
-
if (!
|
|
85
|
+
if (!activeEntity?.id) {
|
|
82
86
|
onDownloadError?.("Download failed");
|
|
83
87
|
return;
|
|
84
88
|
}
|
|
@@ -86,20 +90,17 @@ export function useDocumentDownload({
|
|
|
86
90
|
setIsDownloadingEslog(true);
|
|
87
91
|
|
|
88
92
|
try {
|
|
89
|
-
const typeMap: Record<DocumentType,
|
|
93
|
+
const typeMap: Partial<Record<DocumentType, ESlogDocumentType>> = {
|
|
90
94
|
invoice: "invoice",
|
|
91
|
-
advance_invoice: "advance_invoice",
|
|
92
95
|
credit_note: "credit_note",
|
|
93
96
|
estimate: "estimate",
|
|
94
|
-
delivery_note: "delivery_note",
|
|
95
97
|
};
|
|
98
|
+
const eslogType = typeMap[documentType];
|
|
96
99
|
|
|
97
|
-
|
|
98
|
-
const eSlogModule = (sdk as any).eSlog;
|
|
99
|
-
if (!eSlogModule?.download) {
|
|
100
|
+
if (!eslogType) {
|
|
100
101
|
throw new Error("e-SLOG download not available");
|
|
101
102
|
}
|
|
102
|
-
const xml = await
|
|
103
|
+
const xml = await eSlog.download(document.id, { type: eslogType }, { entity_id: activeEntity.id });
|
|
103
104
|
|
|
104
105
|
const blob = new Blob([xml], { type: "application/xml" });
|
|
105
106
|
downloadBlob(blob, `${document.number}.xml`);
|
|
@@ -23,6 +23,7 @@ export type CreateEntityFormProps = {
|
|
|
23
23
|
defaultName?: string;
|
|
24
24
|
countryCode?: string;
|
|
25
25
|
locale?: string;
|
|
26
|
+
translationLocale?: string;
|
|
26
27
|
defaultValues?: Partial<CreateEntitySchema>;
|
|
27
28
|
onSuccess?: (data: Entity) => void;
|
|
28
29
|
onError?: (error: unknown) => void;
|
|
@@ -47,17 +48,203 @@ const translations = {
|
|
|
47
48
|
} as const;
|
|
48
49
|
|
|
49
50
|
const ISO_COUNTRY_CODES = [
|
|
50
|
-
"AD",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
51
|
+
"AD",
|
|
52
|
+
"AE",
|
|
53
|
+
"AF",
|
|
54
|
+
"AG",
|
|
55
|
+
"AL",
|
|
56
|
+
"AM",
|
|
57
|
+
"AO",
|
|
58
|
+
"AR",
|
|
59
|
+
"AT",
|
|
60
|
+
"AU",
|
|
61
|
+
"AZ",
|
|
62
|
+
"BA",
|
|
63
|
+
"BB",
|
|
64
|
+
"BD",
|
|
65
|
+
"BE",
|
|
66
|
+
"BF",
|
|
67
|
+
"BG",
|
|
68
|
+
"BH",
|
|
69
|
+
"BI",
|
|
70
|
+
"BJ",
|
|
71
|
+
"BN",
|
|
72
|
+
"BO",
|
|
73
|
+
"BR",
|
|
74
|
+
"BS",
|
|
75
|
+
"BT",
|
|
76
|
+
"BW",
|
|
77
|
+
"BY",
|
|
78
|
+
"BZ",
|
|
79
|
+
"CA",
|
|
80
|
+
"CD",
|
|
81
|
+
"CF",
|
|
82
|
+
"CG",
|
|
83
|
+
"CH",
|
|
84
|
+
"CI",
|
|
85
|
+
"CL",
|
|
86
|
+
"CM",
|
|
87
|
+
"CN",
|
|
88
|
+
"CO",
|
|
89
|
+
"CR",
|
|
90
|
+
"CU",
|
|
91
|
+
"CV",
|
|
92
|
+
"CY",
|
|
93
|
+
"CZ",
|
|
94
|
+
"DE",
|
|
95
|
+
"DJ",
|
|
96
|
+
"DK",
|
|
97
|
+
"DM",
|
|
98
|
+
"DO",
|
|
99
|
+
"DZ",
|
|
100
|
+
"EC",
|
|
101
|
+
"EE",
|
|
102
|
+
"EG",
|
|
103
|
+
"ER",
|
|
104
|
+
"ES",
|
|
105
|
+
"ET",
|
|
106
|
+
"FI",
|
|
107
|
+
"FJ",
|
|
108
|
+
"FM",
|
|
109
|
+
"FR",
|
|
110
|
+
"GA",
|
|
111
|
+
"GB",
|
|
112
|
+
"GD",
|
|
113
|
+
"GE",
|
|
114
|
+
"GH",
|
|
115
|
+
"GM",
|
|
116
|
+
"GN",
|
|
117
|
+
"GQ",
|
|
118
|
+
"GR",
|
|
119
|
+
"GT",
|
|
120
|
+
"GW",
|
|
121
|
+
"GY",
|
|
122
|
+
"HK",
|
|
123
|
+
"HN",
|
|
124
|
+
"HR",
|
|
125
|
+
"HT",
|
|
126
|
+
"HU",
|
|
127
|
+
"ID",
|
|
128
|
+
"IE",
|
|
129
|
+
"IL",
|
|
130
|
+
"IN",
|
|
131
|
+
"IQ",
|
|
132
|
+
"IR",
|
|
133
|
+
"IS",
|
|
134
|
+
"IT",
|
|
135
|
+
"JM",
|
|
136
|
+
"JO",
|
|
137
|
+
"JP",
|
|
138
|
+
"KE",
|
|
139
|
+
"KG",
|
|
140
|
+
"KH",
|
|
141
|
+
"KI",
|
|
142
|
+
"KM",
|
|
143
|
+
"KN",
|
|
144
|
+
"KP",
|
|
145
|
+
"KR",
|
|
146
|
+
"KW",
|
|
147
|
+
"KZ",
|
|
148
|
+
"LA",
|
|
149
|
+
"LB",
|
|
150
|
+
"LC",
|
|
151
|
+
"LI",
|
|
152
|
+
"LK",
|
|
153
|
+
"LR",
|
|
154
|
+
"LS",
|
|
155
|
+
"LT",
|
|
156
|
+
"LU",
|
|
157
|
+
"LV",
|
|
158
|
+
"LY",
|
|
159
|
+
"MA",
|
|
160
|
+
"MC",
|
|
161
|
+
"MD",
|
|
162
|
+
"ME",
|
|
163
|
+
"MG",
|
|
164
|
+
"MH",
|
|
165
|
+
"MK",
|
|
166
|
+
"ML",
|
|
167
|
+
"MM",
|
|
168
|
+
"MN",
|
|
169
|
+
"MR",
|
|
170
|
+
"MT",
|
|
171
|
+
"MU",
|
|
172
|
+
"MV",
|
|
173
|
+
"MW",
|
|
174
|
+
"MX",
|
|
175
|
+
"MY",
|
|
176
|
+
"MZ",
|
|
177
|
+
"NA",
|
|
178
|
+
"NE",
|
|
179
|
+
"NG",
|
|
180
|
+
"NI",
|
|
181
|
+
"NL",
|
|
182
|
+
"NO",
|
|
183
|
+
"NP",
|
|
184
|
+
"NR",
|
|
185
|
+
"NZ",
|
|
186
|
+
"OM",
|
|
187
|
+
"PA",
|
|
188
|
+
"PE",
|
|
189
|
+
"PG",
|
|
190
|
+
"PH",
|
|
191
|
+
"PK",
|
|
192
|
+
"PL",
|
|
193
|
+
"PT",
|
|
194
|
+
"PW",
|
|
195
|
+
"PY",
|
|
196
|
+
"QA",
|
|
197
|
+
"RO",
|
|
198
|
+
"RS",
|
|
199
|
+
"RU",
|
|
200
|
+
"RW",
|
|
201
|
+
"SA",
|
|
202
|
+
"SB",
|
|
203
|
+
"SC",
|
|
204
|
+
"SD",
|
|
205
|
+
"SE",
|
|
206
|
+
"SG",
|
|
207
|
+
"SI",
|
|
208
|
+
"SK",
|
|
209
|
+
"SL",
|
|
210
|
+
"SM",
|
|
211
|
+
"SN",
|
|
212
|
+
"SO",
|
|
213
|
+
"SR",
|
|
214
|
+
"SS",
|
|
215
|
+
"ST",
|
|
216
|
+
"SV",
|
|
217
|
+
"SY",
|
|
218
|
+
"SZ",
|
|
219
|
+
"TD",
|
|
220
|
+
"TG",
|
|
221
|
+
"TH",
|
|
222
|
+
"TJ",
|
|
223
|
+
"TL",
|
|
224
|
+
"TM",
|
|
225
|
+
"TN",
|
|
226
|
+
"TO",
|
|
227
|
+
"TR",
|
|
228
|
+
"TT",
|
|
229
|
+
"TV",
|
|
230
|
+
"TW",
|
|
231
|
+
"TZ",
|
|
232
|
+
"UA",
|
|
233
|
+
"UG",
|
|
234
|
+
"US",
|
|
235
|
+
"UY",
|
|
236
|
+
"UZ",
|
|
237
|
+
"VA",
|
|
238
|
+
"VC",
|
|
239
|
+
"VE",
|
|
240
|
+
"VN",
|
|
241
|
+
"VU",
|
|
242
|
+
"WS",
|
|
243
|
+
"XK",
|
|
244
|
+
"YE",
|
|
245
|
+
"ZA",
|
|
246
|
+
"ZM",
|
|
247
|
+
"ZW",
|
|
61
248
|
] as const;
|
|
62
249
|
|
|
63
250
|
const COUNTRY_CODE_ALIASES: Record<string, string> = {
|
|
@@ -113,11 +300,12 @@ export function CreateEntityForm({
|
|
|
113
300
|
defaultName,
|
|
114
301
|
countryCode,
|
|
115
302
|
locale = "en",
|
|
303
|
+
translationLocale,
|
|
116
304
|
defaultValues: extraDefaults,
|
|
117
305
|
onSuccess,
|
|
118
306
|
onError,
|
|
119
307
|
}: CreateEntityFormProps) {
|
|
120
|
-
const translate = createTranslation({ t, namespace, locale, translations });
|
|
308
|
+
const translate = createTranslation({ t, namespace, locale, translationLocale, translations });
|
|
121
309
|
|
|
122
310
|
const countryName = countryCode ? new Intl.DisplayNames([locale], { type: "region" }).of(countryCode) : undefined;
|
|
123
311
|
|