@spaceinvoices/react-ui 0.1.1 → 0.4.0
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 +1 -1
- package/registry.json +86 -122
- package/src/components/activities/activity-timeline.tsx +8 -1
- package/src/components/activities/locales/es.ts +30 -0
- package/src/components/activities/locales/fr.ts +30 -0
- package/src/components/activities/locales/hr.ts +30 -0
- package/src/components/activities/locales/it.ts +30 -0
- package/src/components/activities/locales/nl.ts +30 -0
- package/src/components/activities/locales/pl.ts +30 -0
- package/src/components/activities/locales/pt.ts +30 -0
- package/src/components/advance-invoices/advance-invoices.hooks.ts +2 -2
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +21 -7
- package/src/components/advance-invoices/create/locales/es.ts +29 -0
- package/src/components/advance-invoices/create/locales/fr.ts +28 -0
- package/src/components/advance-invoices/create/locales/hr.ts +27 -0
- package/src/components/advance-invoices/create/locales/it.ts +29 -0
- package/src/components/advance-invoices/create/locales/nl.ts +28 -0
- package/src/components/advance-invoices/create/locales/pl.ts +28 -0
- package/src/components/advance-invoices/create/locales/pt.ts +29 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +3 -3
- package/src/components/advance-invoices/list/list-table.tsx +20 -3
- package/src/components/advance-invoices/list/locales/de.ts +9 -0
- package/src/components/advance-invoices/list/locales/en.ts +8 -0
- package/src/components/advance-invoices/list/locales/es.ts +41 -0
- package/src/components/advance-invoices/list/locales/fr.ts +41 -0
- package/src/components/advance-invoices/list/locales/hr.ts +41 -0
- package/src/components/advance-invoices/list/locales/it.ts +41 -0
- package/src/components/advance-invoices/list/locales/nl.ts +41 -0
- package/src/components/advance-invoices/list/locales/pl.ts +41 -0
- package/src/components/advance-invoices/list/locales/pt.ts +41 -0
- package/src/components/advance-invoices/list/locales/sl.ts +9 -0
- package/src/components/credit-notes/create/create-credit-note-form.tsx +19 -5
- package/src/components/credit-notes/create/locales/es.ts +68 -0
- package/src/components/credit-notes/create/locales/fr.ts +69 -0
- package/src/components/credit-notes/create/locales/hr.ts +68 -0
- package/src/components/credit-notes/create/locales/it.ts +68 -0
- package/src/components/credit-notes/create/locales/nl.ts +69 -0
- package/src/components/credit-notes/create/locales/pl.ts +68 -0
- package/src/components/credit-notes/create/locales/pt.ts +68 -0
- package/src/components/credit-notes/list/list-table.tsx +25 -8
- package/src/components/credit-notes/list/locales/de.ts +10 -2
- package/src/components/credit-notes/list/locales/en.ts +8 -0
- package/src/components/credit-notes/list/locales/es.ts +41 -0
- package/src/components/credit-notes/list/locales/fr.ts +41 -0
- package/src/components/credit-notes/list/locales/hr.ts +41 -0
- package/src/components/credit-notes/list/locales/it.ts +41 -0
- package/src/components/credit-notes/list/locales/nl.ts +41 -0
- package/src/components/credit-notes/list/locales/pl.ts +41 -0
- package/src/components/credit-notes/list/locales/pt.ts +41 -0
- package/src/components/credit-notes/list/locales/sl.ts +10 -2
- package/src/components/customers/create-customer-form/create-customer-form.tsx +21 -3
- package/src/components/customers/create-customer-form/locales/de.ts +1 -0
- package/src/components/customers/create-customer-form/locales/es.ts +21 -0
- package/src/components/customers/create-customer-form/locales/fr.ts +21 -0
- package/src/components/customers/create-customer-form/locales/hr.ts +21 -0
- package/src/components/customers/create-customer-form/locales/it.ts +21 -0
- package/src/components/customers/create-customer-form/locales/nl.ts +21 -0
- package/src/components/customers/create-customer-form/locales/pl.ts +21 -0
- package/src/components/customers/create-customer-form/locales/pt.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sl.ts +1 -0
- package/src/components/customers/customer-list-table/customer-list-row-actions.tsx +72 -16
- package/src/components/customers/customer-list-table/customer-list-table.tsx +35 -2
- package/src/components/customers/customer-list-table/locales/de.ts +9 -0
- package/src/components/customers/customer-list-table/locales/en.ts +10 -0
- package/src/components/customers/customer-list-table/locales/es.ts +25 -0
- package/src/components/customers/customer-list-table/locales/fr.ts +25 -0
- package/src/components/customers/customer-list-table/locales/hr.ts +25 -0
- package/src/components/customers/customer-list-table/locales/it.ts +25 -0
- package/src/components/customers/customer-list-table/locales/nl.ts +25 -0
- package/src/components/customers/customer-list-table/locales/pl.ts +25 -0
- package/src/components/customers/customer-list-table/locales/pt.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sl.ts +9 -0
- package/src/components/customers/customers.hooks.test.ts +8 -8
- package/src/components/customers/customers.hooks.ts +6 -1
- package/src/components/customers/edit-customer-form/edit-customer-form.tsx +143 -0
- package/src/components/customers/edit-customer-form/locales/de.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/es.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/fr.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/hr.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/it.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/nl.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/pl.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/pt.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sl.ts +13 -0
- package/src/components/customers/index.ts +1 -0
- package/src/components/dashboard/collection-rate-card/collection-rate-card.tsx +9 -1
- package/src/components/dashboard/collection-rate-card/locales/de.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/es.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/fr.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/hr.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/it.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/nl.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/pl.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/pt.ts +3 -0
- package/src/components/dashboard/invoice-status-chart/invoice-status-chart.tsx +9 -1
- package/src/components/dashboard/invoice-status-chart/locales/de.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/es.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/fr.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/hr.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/it.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/nl.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/pl.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/pt.ts +9 -0
- package/src/components/dashboard/payment-methods-chart/locales/de.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/es.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/fr.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/hr.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/it.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/nl.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/pl.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/pt.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/payment-methods-chart.tsx +9 -1
- package/src/components/dashboard/payment-trend-chart/locales/de.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/es.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/fr.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/hr.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/it.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/nl.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/pl.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/pt.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/payment-trend-chart.tsx +10 -2
- package/src/components/dashboard/revenue-trend-chart/locales/de.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/es.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/fr.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/hr.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/it.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/nl.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/pl.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/pt.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/revenue-trend-chart.tsx +10 -2
- package/src/components/dashboard/top-customers-chart/locales/de.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/es.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/fr.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/hr.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/it.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/nl.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/pl.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/pt.ts +5 -0
- package/src/components/dashboard/top-customers-chart/top-customers-chart.tsx +10 -2
- package/src/components/documents/create/document-add-item-form.tsx +1 -1
- package/src/components/documents/create/form-types.ts +1 -5
- package/src/components/documents/create/mark-as-paid-section.tsx +60 -23
- package/src/components/documents/create/prepare-document-submission.test.ts +2 -2
- package/src/components/documents/create/prepare-document-submission.ts +12 -7
- package/src/components/documents/create/prepare-preview-data.test.ts +1 -1
- package/src/components/documents/documents.hooks.ts +5 -48
- package/src/components/documents/shared/document-preview-display.tsx +12 -1
- package/src/components/documents/view/document-actions-bar.tsx +28 -13
- package/src/components/documents/view/document-activities-list.tsx +166 -0
- package/src/components/documents/view/document-details-card.tsx +14 -7
- package/src/components/documents/view/document-payments-list.tsx +8 -1
- package/src/components/documents/view/index.ts +1 -0
- package/src/components/documents/view/locales/de.ts +32 -0
- package/src/components/documents/view/locales/es.ts +115 -0
- package/src/components/documents/view/locales/fr.ts +115 -0
- package/src/components/documents/view/locales/hr.ts +115 -0
- package/src/components/documents/view/locales/it.ts +115 -0
- package/src/components/documents/view/locales/nl.ts +116 -0
- package/src/components/documents/view/locales/pl.ts +115 -0
- package/src/components/documents/view/locales/pt.ts +115 -0
- package/src/components/documents/view/locales/sl.ts +32 -0
- package/src/components/entities/create-entity-form.tsx +12 -2
- package/src/components/entities/entity-settings-form/entity-settings-form.tsx +18 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +3 -1
- package/src/components/entities/entity-settings-form/locales/es.ts +197 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +196 -0
- package/src/components/entities/entity-settings-form/locales/hr.ts +189 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +195 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +192 -0
- package/src/components/entities/entity-settings-form/locales/pl.ts +193 -0
- package/src/components/entities/entity-settings-form/locales/pt.ts +194 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +2 -0
- package/src/components/entities/fina-settings-form/fina-settings-form.tsx +461 -0
- package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +215 -0
- package/src/components/entities/fina-settings-form/index.ts +3 -0
- package/src/components/entities/fina-settings-form/locales/de.ts +148 -0
- package/src/components/entities/fina-settings-form/locales/en.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/es.ts +146 -0
- package/src/components/entities/fina-settings-form/locales/fr.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/it.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/nl.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/pl.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/pt.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +147 -0
- package/src/components/entities/fina-settings-form/sections/certificate-settings-section.tsx +233 -0
- package/src/components/entities/fina-settings-form/sections/premises-management-section.tsx +363 -0
- package/src/components/entities/fina-settings-form/sections/register-premise-dialog.tsx +395 -0
- package/src/components/entities/furs-settings-form/furs-settings-form.tsx +24 -9
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +15 -11
- package/src/components/entities/furs-settings-form/locales/de.ts +54 -88
- package/src/components/entities/furs-settings-form/locales/en.ts +15 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +198 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +198 -0
- package/src/components/entities/furs-settings-form/locales/hr.ts +197 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +198 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +197 -0
- package/src/components/entities/furs-settings-form/locales/pl.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/pt.ts +197 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +16 -0
- package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +19 -4
- package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +121 -1
- package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +17 -66
- package/src/components/entities/keys.ts +1 -1
- package/src/components/entities/settings/company-settings-form.tsx +28 -0
- package/src/components/entities/settings/pdf-template-selector/locales/es.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/fr.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/hr.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/it.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/nl.ts +17 -0
- package/src/components/entities/settings/pdf-template-selector/locales/pl.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/pt.ts +18 -0
- package/src/components/estimates/create/create-estimate-form.tsx +14 -0
- package/src/components/estimates/create/locales/es.ts +57 -0
- package/src/components/estimates/create/locales/fr.ts +58 -0
- package/src/components/estimates/create/locales/hr.ts +57 -0
- package/src/components/estimates/create/locales/it.ts +57 -0
- package/src/components/estimates/create/locales/nl.ts +58 -0
- package/src/components/estimates/create/locales/pl.ts +57 -0
- package/src/components/estimates/create/locales/pt.ts +58 -0
- package/src/components/estimates/create/prepare-estimate-submission.ts +1 -1
- package/src/components/estimates/list/list-table.tsx +20 -3
- package/src/components/estimates/list/locales/de.ts +9 -0
- package/src/components/estimates/list/locales/en.ts +8 -0
- package/src/components/estimates/list/locales/es.ts +32 -0
- package/src/components/estimates/list/locales/fr.ts +32 -0
- package/src/components/estimates/list/locales/hr.ts +32 -0
- package/src/components/estimates/list/locales/it.ts +32 -0
- package/src/components/estimates/list/locales/nl.ts +32 -0
- package/src/components/estimates/list/locales/pl.ts +32 -0
- package/src/components/estimates/list/locales/pt.ts +32 -0
- package/src/components/estimates/list/locales/sl.ts +9 -0
- package/src/components/export/document-export-form.tsx +0 -2
- package/src/components/invoices/create/create-invoice-form.tsx +24 -10
- package/src/components/invoices/create/eslog-validation.test.ts +2 -0
- package/src/components/invoices/create/locales/es.ts +103 -0
- package/src/components/invoices/create/locales/fr.ts +105 -0
- package/src/components/invoices/create/locales/hr.ts +103 -0
- package/src/components/invoices/create/locales/it.ts +105 -0
- package/src/components/invoices/create/locales/nl.ts +104 -0
- package/src/components/invoices/create/locales/pl.ts +104 -0
- package/src/components/invoices/create/locales/pt.ts +105 -0
- package/src/components/invoices/create/prepare-invoice-submission.test.ts +54 -55
- package/src/components/invoices/create/prepare-invoice-submission.ts +3 -3
- package/src/components/invoices/index.ts +1 -1
- package/src/components/invoices/list/list-table.tsx +20 -3
- package/src/components/invoices/list/locales/de.ts +9 -0
- package/src/components/invoices/list/locales/en.ts +8 -0
- package/src/components/invoices/list/locales/es.ts +42 -0
- package/src/components/invoices/list/locales/fr.ts +42 -0
- package/src/components/invoices/list/locales/hr.ts +42 -0
- package/src/components/invoices/list/locales/it.ts +42 -0
- package/src/components/invoices/list/locales/nl.ts +42 -0
- package/src/components/invoices/list/locales/pl.ts +42 -0
- package/src/components/invoices/list/locales/pt.ts +42 -0
- package/src/components/invoices/list/locales/sl.ts +9 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +17 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +18 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +22 -14
- package/src/components/invoices/shared/scaled-document-preview.tsx +1 -0
- package/src/components/invoices/view/eslog-info-display.tsx +1 -0
- package/src/components/invoices/view/fiscalization-status-card.tsx +121 -0
- package/src/components/items/create-item-form/create-item-form.tsx +14 -0
- package/src/components/items/create-item-form/locales/en.ts +5 -0
- package/src/components/items/create-item-form/locales/es.ts +14 -0
- package/src/components/items/create-item-form/locales/fr.ts +14 -0
- package/src/components/items/create-item-form/locales/hr.ts +14 -0
- package/src/components/items/create-item-form/locales/it.ts +14 -0
- package/src/components/items/create-item-form/locales/nl.ts +14 -0
- package/src/components/items/create-item-form/locales/pl.ts +14 -0
- package/src/components/items/create-item-form/locales/pt.ts +14 -0
- package/src/components/items/edit-item-form/edit-item-form.tsx +170 -0
- package/src/components/items/edit-item-form/locales/de.ts +12 -0
- package/src/components/items/edit-item-form/locales/es.ts +12 -0
- package/src/components/items/edit-item-form/locales/fr.ts +12 -0
- package/src/components/items/edit-item-form/locales/hr.ts +12 -0
- package/src/components/items/edit-item-form/locales/it.ts +12 -0
- package/src/components/items/edit-item-form/locales/nl.ts +12 -0
- package/src/components/items/edit-item-form/locales/pl.ts +12 -0
- package/src/components/items/edit-item-form/locales/pt.ts +12 -0
- package/src/components/items/edit-item-form/locales/sl.ts +12 -0
- package/src/components/items/item-list-table/item-list-table.tsx +20 -13
- package/src/components/items/item-list-table/locales/de.ts +6 -0
- package/src/components/items/item-list-table/locales/en.ts +5 -0
- package/src/components/items/item-list-table/locales/es.ts +16 -0
- package/src/components/items/item-list-table/locales/fr.ts +16 -0
- package/src/components/items/item-list-table/locales/hr.ts +16 -0
- package/src/components/items/item-list-table/locales/it.ts +16 -0
- package/src/components/items/item-list-table/locales/nl.ts +16 -0
- package/src/components/items/item-list-table/locales/pl.ts +16 -0
- package/src/components/items/item-list-table/locales/pt.ts +16 -0
- package/src/components/items/item-list-table/locales/sl.ts +6 -0
- package/src/components/items/items.hooks.ts +7 -2
- package/src/components/payments/create-payment-form/create-payment-form.tsx +14 -0
- package/src/components/payments/create-payment-form/locales/es.ts +20 -0
- package/src/components/payments/create-payment-form/locales/fr.ts +20 -0
- package/src/components/payments/create-payment-form/locales/hr.ts +20 -0
- package/src/components/payments/create-payment-form/locales/it.ts +20 -0
- package/src/components/payments/create-payment-form/locales/nl.ts +20 -0
- package/src/components/payments/create-payment-form/locales/pl.ts +20 -0
- package/src/components/payments/create-payment-form/locales/pt.ts +20 -0
- package/src/components/payments/edit-payment-form/edit-payment-form.tsx +18 -2
- package/src/components/payments/edit-payment-form/locales/es.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/fr.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/hr.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/it.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/nl.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/pl.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/pt.ts +20 -0
- package/src/components/payments/list/list-row-actions.tsx +14 -0
- package/src/components/payments/list/list-table.tsx +21 -2
- package/src/components/payments/list/locales/de.ts +6 -0
- package/src/components/payments/list/locales/en.ts +7 -0
- package/src/components/payments/list/locales/es.ts +25 -0
- package/src/components/payments/list/locales/fr.ts +25 -0
- package/src/components/payments/list/locales/hr.ts +25 -0
- package/src/components/payments/list/locales/it.ts +25 -0
- package/src/components/payments/list/locales/nl.ts +25 -0
- package/src/components/payments/list/locales/pl.ts +25 -0
- package/src/components/payments/list/locales/pt.ts +25 -0
- package/src/components/payments/list/locales/sl.ts +6 -0
- package/src/components/payments/payments.hooks.ts +7 -2
- package/src/components/request-logs/index.ts +1 -1
- package/src/components/table/data-table.tsx +8 -3
- package/src/components/table/filter-panel.tsx +4 -4
- package/src/components/table/hooks/use-table-query.ts +3 -0
- package/src/components/table/table-empty-state.tsx +11 -4
- package/src/components/table/table-no-results.tsx +6 -4
- package/src/components/table/types.ts +2 -2
- package/src/components/tax-reports/kir-export-form.tsx +0 -1
- package/src/components/taxes/create-tax-form/create-tax-form.tsx +14 -0
- package/src/components/taxes/create-tax-form/locales/en.ts +1 -0
- package/src/components/taxes/create-tax-form/locales/es.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/fr.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/hr.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/it.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/nl.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/pl.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/pt.ts +8 -0
- package/src/components/taxes/edit-tax-form/edit-tax-form.tsx +119 -0
- package/src/components/taxes/edit-tax-form/locales/de.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/es.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/fr.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/hr.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/it.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/nl.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/pl.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/pt.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sl.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/de.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/en.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/es.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/fr.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/hr.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/it.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/nl.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/pl.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/pt.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sl.ts +6 -0
- package/src/components/taxes/tax-list-table/tax-list-table.tsx +18 -0
- package/src/components/taxes/taxes.hooks.ts +12 -7
- package/src/components/ui/tooltip.tsx +2 -2
- package/src/components/wl-subscription/locked-feature.tsx +1 -0
- package/src/components/wl-subscription/upgrade-modal.tsx +1 -0
- package/src/generated/schemas/acceptentityinvitation_body.ts +17 -0
- package/src/generated/schemas/addentityuser_body.ts +18 -0
- package/src/generated/schemas/advanceinvoice.ts +184 -12
- package/src/generated/schemas/creditnote.ts +99 -127
- package/src/generated/schemas/customadvanceinvoice.ts +246 -0
- package/src/generated/schemas/customcreditnote.ts +237 -0
- package/src/generated/schemas/customer.ts +26 -0
- package/src/generated/schemas/customestimate.ts +181 -0
- package/src/generated/schemas/custominvoice.ts +237 -0
- package/src/generated/schemas/entity.ts +66 -7
- package/src/generated/schemas/entityuserrole.ts +19 -0
- package/src/generated/schemas/estimate.ts +149 -1
- package/src/generated/schemas/finasettings.ts +25 -0
- package/src/generated/schemas/furssettings.ts +1 -2
- package/src/generated/schemas/index.ts +24 -5
- package/src/generated/schemas/invoice.ts +224 -22
- package/src/generated/schemas/me.ts +22 -0
- package/src/generated/schemas/registerfinamovablepremise_body.ts +26 -0
- package/src/generated/schemas/registerfinarealestatepremise_body.ts +37 -0
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +342 -0
- package/src/generated/schemas/rendercreditnotepreview_body.ts +344 -0
- package/src/generated/schemas/renderestimatepreview_body.ts +284 -0
- package/src/generated/schemas/renderinvoicepreview_body.ts +344 -0
- package/src/generated/schemas/senddocument_body.ts +23 -0
- package/src/generated/schemas/sendemail_body.ts +8 -10
- package/src/generated/schemas/stripeappconnect_body.ts +18 -0
- package/src/generated/schemas/stripeappcreateinvoice_body.ts +20 -0
- package/src/generated/schemas/stripeappupdatesettings_body.ts +26 -0
- package/src/generated/schemas/webhook.ts +143 -0
- package/src/hooks/create-resource-hooks.ts +85 -1
- package/src/hooks/use-duplicate-document.ts +19 -11
- package/src/hooks/use-next-document-number.ts +1 -1
- package/src/hooks/use-resource-mutation.ts +4 -3
- package/src/lib/browser-cookies.ts +12 -1
- package/src/lib/cookies.ts +2 -2
- package/src/lib/translation.ts +1 -1
- package/src/providers/entities-provider.tsx +105 -39
- package/src/providers/sdk-provider.tsx +7 -3
- package/src/providers/white-label-provider.tsx +5 -2
- package/src/providers/wl-subscription-provider.tsx +1 -0
- package/src/components/invoices/view/furs-info-display.tsx +0 -213
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
"Enter name": "Inserisci il nome del cliente",
|
|
4
|
+
Address: "Indirizzo",
|
|
5
|
+
"Enter address": "Inserisci l'indirizzo",
|
|
6
|
+
"Post Code": "CAP",
|
|
7
|
+
"Enter post code": "Inserisci il CAP",
|
|
8
|
+
City: "Citta",
|
|
9
|
+
"Enter city": "Inserisci la citta",
|
|
10
|
+
State: "Regione",
|
|
11
|
+
"Enter state": "Inserisci la regione",
|
|
12
|
+
Country: "Paese",
|
|
13
|
+
"Enter country": "Inserisci il paese",
|
|
14
|
+
"Tax Number": "Partita IVA",
|
|
15
|
+
"Company Number": "Numero di registrazione",
|
|
16
|
+
"Enter tax number": "Inserisci la partita IVA",
|
|
17
|
+
"Create Customer": "Crea cliente",
|
|
18
|
+
Cancel: "Annulla",
|
|
19
|
+
"Search by company name or tax number": "Cerca per nome azienda o partita IVA",
|
|
20
|
+
"There was an error creating the customer": "Si e verificato un errore durante la creazione del cliente",
|
|
21
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naam",
|
|
3
|
+
"Enter name": "Voer de naam van de klant in",
|
|
4
|
+
Address: "Adres",
|
|
5
|
+
"Enter address": "Voer het adres in",
|
|
6
|
+
"Post Code": "Postcode",
|
|
7
|
+
"Enter post code": "Voer de postcode in",
|
|
8
|
+
City: "Stad",
|
|
9
|
+
"Enter city": "Voer de stad in",
|
|
10
|
+
State: "Provincie",
|
|
11
|
+
"Enter state": "Voer de provincie in",
|
|
12
|
+
Country: "Land",
|
|
13
|
+
"Enter country": "Voer het land in",
|
|
14
|
+
"Tax Number": "Btw-nummer",
|
|
15
|
+
"Company Number": "KvK-nummer",
|
|
16
|
+
"Enter tax number": "Voer het btw-nummer in",
|
|
17
|
+
"Create Customer": "Klant aanmaken",
|
|
18
|
+
Cancel: "Annuleren",
|
|
19
|
+
"Search by company name or tax number": "Zoek op bedrijfsnaam of btw-nummer",
|
|
20
|
+
"There was an error creating the customer": "Er is een fout opgetreden bij het aanmaken van de klant",
|
|
21
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nazwa",
|
|
3
|
+
"Enter name": "Wprowadz nazwe klienta",
|
|
4
|
+
Address: "Adres",
|
|
5
|
+
"Enter address": "Wprowadz adres",
|
|
6
|
+
"Post Code": "Kod pocztowy",
|
|
7
|
+
"Enter post code": "Wprowadz kod pocztowy",
|
|
8
|
+
City: "Miasto",
|
|
9
|
+
"Enter city": "Wprowadz miasto",
|
|
10
|
+
State: "Wojewodztwo",
|
|
11
|
+
"Enter state": "Wprowadz wojewodztwo",
|
|
12
|
+
Country: "Kraj",
|
|
13
|
+
"Enter country": "Wprowadz kraj",
|
|
14
|
+
"Tax Number": "Numer podatkowy",
|
|
15
|
+
"Company Number": "Numer firmy",
|
|
16
|
+
"Enter tax number": "Wprowadz numer podatkowy",
|
|
17
|
+
"Create Customer": "Utworz klienta",
|
|
18
|
+
Cancel: "Anuluj",
|
|
19
|
+
"Search by company name or tax number": "Szukaj po nazwie firmy lub numerze podatkowym",
|
|
20
|
+
"There was an error creating the customer": "Wystapil blad podczas tworzenia klienta",
|
|
21
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
"Enter name": "Introduza o nome do cliente",
|
|
4
|
+
Address: "Morada",
|
|
5
|
+
"Enter address": "Introduza a morada",
|
|
6
|
+
"Post Code": "Codigo postal",
|
|
7
|
+
"Enter post code": "Introduza o codigo postal",
|
|
8
|
+
City: "Cidade",
|
|
9
|
+
"Enter city": "Introduza a cidade",
|
|
10
|
+
State: "Distrito",
|
|
11
|
+
"Enter state": "Introduza o distrito",
|
|
12
|
+
Country: "Pais",
|
|
13
|
+
"Enter country": "Introduza o pais",
|
|
14
|
+
"Tax Number": "Numero de contribuinte",
|
|
15
|
+
"Company Number": "Numero da empresa",
|
|
16
|
+
"Enter tax number": "Introduza o numero de contribuinte",
|
|
17
|
+
"Create Customer": "Criar cliente",
|
|
18
|
+
Cancel: "Cancelar",
|
|
19
|
+
"Search by company name or tax number": "Pesquisar por nome da empresa ou numero de contribuinte",
|
|
20
|
+
"There was an error creating the customer": "Ocorreu um erro ao criar o cliente",
|
|
21
|
+
} as const;
|
|
@@ -12,6 +12,7 @@ export default {
|
|
|
12
12
|
Country: "Država",
|
|
13
13
|
"Enter country": "Vnesite državo",
|
|
14
14
|
"Tax Number": "Davčna številka",
|
|
15
|
+
"Company Number": "Matična številka",
|
|
15
16
|
"Enter tax number": "Vnesite davčno številko",
|
|
16
17
|
"Create Customer": "Ustvari stranko",
|
|
17
18
|
Cancel: "Prekliči",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Customer } from "@spaceinvoices/js-sdk";
|
|
2
|
-
|
|
3
|
-
import { MoreHorizontal } from "lucide-react";
|
|
2
|
+
import { MoreHorizontal, Pencil, Trash2 } from "lucide-react";
|
|
4
3
|
import { Button } from "@/ui/components/ui/button";
|
|
5
4
|
import {
|
|
6
5
|
DropdownMenu,
|
|
7
6
|
DropdownMenuContent,
|
|
7
|
+
DropdownMenuGroup,
|
|
8
8
|
DropdownMenuItem,
|
|
9
9
|
DropdownMenuLabel,
|
|
10
10
|
DropdownMenuSeparator,
|
|
@@ -13,35 +13,91 @@ import {
|
|
|
13
13
|
import type { ComponentTranslationProps } from "@/ui/lib/translation";
|
|
14
14
|
import { createTranslation } from "@/ui/lib/translation";
|
|
15
15
|
|
|
16
|
+
import { useDeleteCustomer } from "../customers.hooks";
|
|
17
|
+
import de from "./locales/de";
|
|
18
|
+
import es from "./locales/es";
|
|
19
|
+
import fr from "./locales/fr";
|
|
20
|
+
import hr from "./locales/hr";
|
|
21
|
+
import it from "./locales/it";
|
|
22
|
+
import nl from "./locales/nl";
|
|
23
|
+
import pl from "./locales/pl";
|
|
24
|
+
import pt from "./locales/pt";
|
|
25
|
+
import sl from "./locales/sl";
|
|
26
|
+
|
|
27
|
+
const translations = {
|
|
28
|
+
sl,
|
|
29
|
+
de,
|
|
30
|
+
it,
|
|
31
|
+
fr,
|
|
32
|
+
es,
|
|
33
|
+
pt,
|
|
34
|
+
nl,
|
|
35
|
+
pl,
|
|
36
|
+
hr,
|
|
37
|
+
} as const;
|
|
38
|
+
|
|
16
39
|
type CustomerListRowActionsProps = {
|
|
17
40
|
customer: Customer;
|
|
41
|
+
entityId?: string;
|
|
42
|
+
onEditCustomer?: (customer: Customer) => void;
|
|
43
|
+
onDeleteSuccess?: () => void;
|
|
44
|
+
onDeleteError?: (error: string) => void;
|
|
18
45
|
} & ComponentTranslationProps;
|
|
19
46
|
|
|
20
|
-
export default function CustomerListRowActions({
|
|
21
|
-
|
|
47
|
+
export default function CustomerListRowActions({
|
|
48
|
+
customer,
|
|
49
|
+
entityId,
|
|
50
|
+
onEditCustomer,
|
|
51
|
+
onDeleteSuccess,
|
|
52
|
+
onDeleteError,
|
|
53
|
+
...i18nProps
|
|
54
|
+
}: CustomerListRowActionsProps) {
|
|
55
|
+
const t = createTranslation({
|
|
56
|
+
translations,
|
|
57
|
+
...i18nProps,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const { mutate: deleteCustomer, isPending: isDeleting } = useDeleteCustomer({
|
|
61
|
+
entityId,
|
|
62
|
+
onSuccess: () => {
|
|
63
|
+
onDeleteSuccess?.();
|
|
64
|
+
},
|
|
65
|
+
onError: (error: Error) => {
|
|
66
|
+
onDeleteError?.(error.message);
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const handleDelete = () => {
|
|
71
|
+
deleteCustomer({ id: customer.id });
|
|
72
|
+
};
|
|
22
73
|
|
|
23
74
|
return (
|
|
24
75
|
<DropdownMenu>
|
|
25
76
|
<DropdownMenuTrigger asChild>
|
|
26
|
-
<Button variant="ghost" className="h-8 w-8 p-0" id="action-menu-trigger">
|
|
77
|
+
<Button variant="ghost" className="h-8 w-8 cursor-pointer p-0" id="action-menu-trigger">
|
|
27
78
|
<span className="sr-only">{t("Open menu")}</span>
|
|
28
79
|
<MoreHorizontal className="h-4 w-4" />
|
|
29
80
|
</Button>
|
|
30
81
|
</DropdownMenuTrigger>
|
|
31
82
|
<DropdownMenuContent align="end">
|
|
32
83
|
<DropdownMenuLabel>{t("Actions")}</DropdownMenuLabel>
|
|
33
|
-
<
|
|
34
|
-
{
|
|
35
|
-
|
|
84
|
+
<DropdownMenuGroup>
|
|
85
|
+
<DropdownMenuItem className="cursor-pointer" onClick={() => onEditCustomer?.(customer)}>
|
|
86
|
+
<Pencil className="h-4 w-4" />
|
|
87
|
+
{t("Edit customer")}
|
|
88
|
+
</DropdownMenuItem>
|
|
89
|
+
</DropdownMenuGroup>
|
|
36
90
|
<DropdownMenuSeparator />
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
91
|
+
<DropdownMenuGroup>
|
|
92
|
+
<DropdownMenuItem
|
|
93
|
+
className="cursor-pointer text-destructive focus:text-destructive"
|
|
94
|
+
onClick={handleDelete}
|
|
95
|
+
disabled={isDeleting}
|
|
96
|
+
>
|
|
97
|
+
<Trash2 className="h-4 w-4" />
|
|
98
|
+
{isDeleting ? t("Deleting...") : t("Delete customer")}
|
|
99
|
+
</DropdownMenuItem>
|
|
100
|
+
</DropdownMenuGroup>
|
|
45
101
|
</DropdownMenuContent>
|
|
46
102
|
</DropdownMenu>
|
|
47
103
|
);
|
|
@@ -10,11 +10,27 @@ import type { Column, ListTableProps, TableQueryParams, TableQueryResponse } fro
|
|
|
10
10
|
import { CUSTOMERS_CACHE_KEY } from "../customers.hooks";
|
|
11
11
|
import CustomerListRowActions from "./customer-list-row-actions";
|
|
12
12
|
import de from "./locales/de";
|
|
13
|
+
import en from "./locales/en";
|
|
14
|
+
import es from "./locales/es";
|
|
15
|
+
import fr from "./locales/fr";
|
|
16
|
+
import hr from "./locales/hr";
|
|
17
|
+
import it from "./locales/it";
|
|
18
|
+
import nl from "./locales/nl";
|
|
19
|
+
import pl from "./locales/pl";
|
|
20
|
+
import pt from "./locales/pt";
|
|
13
21
|
import sl from "./locales/sl";
|
|
14
22
|
|
|
15
23
|
const translations = {
|
|
24
|
+
en,
|
|
16
25
|
sl,
|
|
17
26
|
de,
|
|
27
|
+
it,
|
|
28
|
+
fr,
|
|
29
|
+
es,
|
|
30
|
+
pt,
|
|
31
|
+
nl,
|
|
32
|
+
pl,
|
|
33
|
+
hr,
|
|
18
34
|
} as const;
|
|
19
35
|
|
|
20
36
|
type CustomerListTableProps = {
|
|
@@ -22,6 +38,9 @@ type CustomerListTableProps = {
|
|
|
22
38
|
namespace?: string;
|
|
23
39
|
locale?: string;
|
|
24
40
|
entityId?: string;
|
|
41
|
+
onEditCustomer?: (customer: Customer) => void;
|
|
42
|
+
onDeleteSuccess?: () => void;
|
|
43
|
+
onDeleteError?: (error: string) => void;
|
|
25
44
|
} & ListTableProps<Customer>;
|
|
26
45
|
|
|
27
46
|
export default function CustomerListTable({
|
|
@@ -30,6 +49,9 @@ export default function CustomerListTable({
|
|
|
30
49
|
onRowClick,
|
|
31
50
|
onChangeParams,
|
|
32
51
|
entityId,
|
|
52
|
+
onEditCustomer,
|
|
53
|
+
onDeleteSuccess,
|
|
54
|
+
onDeleteError,
|
|
33
55
|
...i18nProps
|
|
34
56
|
}: CustomerListTableProps) {
|
|
35
57
|
const t = createTranslation({
|
|
@@ -103,10 +125,19 @@ export default function CustomerListTable({
|
|
|
103
125
|
id: "actions",
|
|
104
126
|
header: "",
|
|
105
127
|
align: "right",
|
|
106
|
-
cell: (customer) =>
|
|
128
|
+
cell: (customer) => (
|
|
129
|
+
<CustomerListRowActions
|
|
130
|
+
customer={customer}
|
|
131
|
+
entityId={entityId}
|
|
132
|
+
onEditCustomer={onEditCustomer}
|
|
133
|
+
onDeleteSuccess={onDeleteSuccess}
|
|
134
|
+
onDeleteError={onDeleteError}
|
|
135
|
+
t={t}
|
|
136
|
+
/>
|
|
137
|
+
),
|
|
107
138
|
},
|
|
108
139
|
],
|
|
109
|
-
[t, onRowClick],
|
|
140
|
+
[t, onRowClick, entityId, onEditCustomer, onDeleteSuccess, onDeleteError],
|
|
110
141
|
);
|
|
111
142
|
|
|
112
143
|
return (
|
|
@@ -119,6 +150,8 @@ export default function CustomerListTable({
|
|
|
119
150
|
onFetch={handleFetch}
|
|
120
151
|
onChangeParams={onChangeParams}
|
|
121
152
|
entityId={entityId}
|
|
153
|
+
t={t}
|
|
154
|
+
locale={i18nProps.locale}
|
|
122
155
|
/>
|
|
123
156
|
);
|
|
124
157
|
}
|
|
@@ -12,5 +12,14 @@ export default {
|
|
|
12
12
|
"Create new customer": "Neuen Kunden erstellen",
|
|
13
13
|
"Copy customer ID": "Kunden-ID kopieren",
|
|
14
14
|
"View customer": "Kunde anzeigen",
|
|
15
|
+
"Edit customer": "Kunde bearbeiten",
|
|
16
|
+
"Delete customer": "Kunde löschen",
|
|
17
|
+
"Deleting...": "Wird gelöscht...",
|
|
15
18
|
"Open menu": "Menü öffnen",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Ihre Kundenliste ist leer",
|
|
21
|
+
"Get started by creating your first entry": "Erstellen Sie Ihren ersten Kunden",
|
|
22
|
+
"No results found": "Keine Kunden gefunden",
|
|
23
|
+
"Try adjusting your search criteria": "Versuchen Sie, Ihre Suchkriterien anzupassen",
|
|
24
|
+
"Clear search": "Suche zurücksetzen",
|
|
16
25
|
} as const;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Empty state translations
|
|
3
|
+
"Your list is empty": "Your customer list is empty",
|
|
4
|
+
"Get started by creating your first entry": "Get started by creating your first customer",
|
|
5
|
+
"Edit customer": "Edit customer",
|
|
6
|
+
"Delete customer": "Delete customer",
|
|
7
|
+
"Deleting...": "Deleting...",
|
|
8
|
+
// No results translations
|
|
9
|
+
"No results found": "No customers found",
|
|
10
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nombre",
|
|
3
|
+
Address: "Direccion",
|
|
4
|
+
"Post Code": "Codigo postal",
|
|
5
|
+
City: "Ciudad",
|
|
6
|
+
State: "Estado",
|
|
7
|
+
Country: "Pais",
|
|
8
|
+
"Tax number": "Numero fiscal",
|
|
9
|
+
Email: "Correo electronico",
|
|
10
|
+
"Created At": "Creado el",
|
|
11
|
+
Actions: "Acciones",
|
|
12
|
+
"Create new customer": "Crear nuevo cliente",
|
|
13
|
+
"Copy customer ID": "Copiar ID del cliente",
|
|
14
|
+
"View customer": "Ver cliente",
|
|
15
|
+
"Edit customer": "Editar cliente",
|
|
16
|
+
"Delete customer": "Eliminar cliente",
|
|
17
|
+
"Deleting...": "Eliminando...",
|
|
18
|
+
"Open menu": "Abrir menu",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Su lista de clientes esta vacia",
|
|
21
|
+
"Get started by creating your first entry": "Comience creando su primer cliente",
|
|
22
|
+
"No results found": "No se encontraron clientes",
|
|
23
|
+
"Try adjusting your search criteria": "Intente ajustar sus criterios de busqueda",
|
|
24
|
+
"Clear search": "Limpiar busqueda",
|
|
25
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nom",
|
|
3
|
+
Address: "Adresse",
|
|
4
|
+
"Post Code": "Code postal",
|
|
5
|
+
City: "Ville",
|
|
6
|
+
State: "Region",
|
|
7
|
+
Country: "Pays",
|
|
8
|
+
"Tax number": "Numero de TVA",
|
|
9
|
+
Email: "Email",
|
|
10
|
+
"Created At": "Cree le",
|
|
11
|
+
Actions: "Actions",
|
|
12
|
+
"Create new customer": "Creer un nouveau client",
|
|
13
|
+
"Copy customer ID": "Copier l'ID du client",
|
|
14
|
+
"View customer": "Voir le client",
|
|
15
|
+
"Edit customer": "Modifier le client",
|
|
16
|
+
"Delete customer": "Supprimer le client",
|
|
17
|
+
"Deleting...": "Suppression...",
|
|
18
|
+
"Open menu": "Ouvrir le menu",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Votre liste de clients est vide",
|
|
21
|
+
"Get started by creating your first entry": "Commencez par creer votre premier client",
|
|
22
|
+
"No results found": "Aucun client trouve",
|
|
23
|
+
"Try adjusting your search criteria": "Essayez de modifier vos criteres de recherche",
|
|
24
|
+
"Clear search": "Effacer la recherche",
|
|
25
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naziv",
|
|
3
|
+
Address: "Adresa",
|
|
4
|
+
"Post Code": "Postanski broj",
|
|
5
|
+
City: "Grad",
|
|
6
|
+
State: "Zupanija",
|
|
7
|
+
Country: "Drzava",
|
|
8
|
+
"Tax number": "OIB",
|
|
9
|
+
Email: "Email",
|
|
10
|
+
"Created At": "Kreirano",
|
|
11
|
+
Actions: "Akcije",
|
|
12
|
+
"Create new customer": "Kreiraj novog kupca",
|
|
13
|
+
"Copy customer ID": "Kopiraj ID kupca",
|
|
14
|
+
"View customer": "Prikazi kupca",
|
|
15
|
+
"Edit customer": "Uredi kupca",
|
|
16
|
+
"Delete customer": "Obrisi kupca",
|
|
17
|
+
"Deleting...": "Brisanje...",
|
|
18
|
+
"Open menu": "Otvori izbornik",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Vasa lista kupaca je prazna",
|
|
21
|
+
"Get started by creating your first entry": "Pocnite kreiranjem prvog kupca",
|
|
22
|
+
"No results found": "Nije pronadjen nijedan kupac",
|
|
23
|
+
"Try adjusting your search criteria": "Pokusajte prilagoditi kriterije pretrazivanja",
|
|
24
|
+
"Clear search": "Ocisti pretragu",
|
|
25
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
Address: "Indirizzo",
|
|
4
|
+
"Post Code": "CAP",
|
|
5
|
+
City: "Citta",
|
|
6
|
+
State: "Regione",
|
|
7
|
+
Country: "Paese",
|
|
8
|
+
"Tax number": "Partita IVA",
|
|
9
|
+
Email: "Email",
|
|
10
|
+
"Created At": "Creato il",
|
|
11
|
+
Actions: "Azioni",
|
|
12
|
+
"Create new customer": "Crea nuovo cliente",
|
|
13
|
+
"Copy customer ID": "Copia ID cliente",
|
|
14
|
+
"View customer": "Visualizza cliente",
|
|
15
|
+
"Edit customer": "Modifica cliente",
|
|
16
|
+
"Delete customer": "Elimina cliente",
|
|
17
|
+
"Deleting...": "Eliminazione...",
|
|
18
|
+
"Open menu": "Apri menu",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "La lista dei clienti e vuota",
|
|
21
|
+
"Get started by creating your first entry": "Inizia creando il tuo primo cliente",
|
|
22
|
+
"No results found": "Nessun cliente trovato",
|
|
23
|
+
"Try adjusting your search criteria": "Prova a modificare i criteri di ricerca",
|
|
24
|
+
"Clear search": "Cancella ricerca",
|
|
25
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naam",
|
|
3
|
+
Address: "Adres",
|
|
4
|
+
"Post Code": "Postcode",
|
|
5
|
+
City: "Stad",
|
|
6
|
+
State: "Provincie",
|
|
7
|
+
Country: "Land",
|
|
8
|
+
"Tax number": "Btw-nummer",
|
|
9
|
+
Email: "Email",
|
|
10
|
+
"Created At": "Aangemaakt op",
|
|
11
|
+
Actions: "Acties",
|
|
12
|
+
"Create new customer": "Nieuwe klant aanmaken",
|
|
13
|
+
"Copy customer ID": "Klant-ID kopieren",
|
|
14
|
+
"View customer": "Klant bekijken",
|
|
15
|
+
"Edit customer": "Klant bewerken",
|
|
16
|
+
"Delete customer": "Klant verwijderen",
|
|
17
|
+
"Deleting...": "Verwijderen...",
|
|
18
|
+
"Open menu": "Menu openen",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Uw klantenlijst is leeg",
|
|
21
|
+
"Get started by creating your first entry": "Begin met het aanmaken van uw eerste klant",
|
|
22
|
+
"No results found": "Geen klanten gevonden",
|
|
23
|
+
"Try adjusting your search criteria": "Probeer uw zoekcriteria aan te passen",
|
|
24
|
+
"Clear search": "Zoekopdracht wissen",
|
|
25
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nazwa",
|
|
3
|
+
Address: "Adres",
|
|
4
|
+
"Post Code": "Kod pocztowy",
|
|
5
|
+
City: "Miasto",
|
|
6
|
+
State: "Wojewodztwo",
|
|
7
|
+
Country: "Kraj",
|
|
8
|
+
"Tax number": "Numer podatkowy",
|
|
9
|
+
Email: "Email",
|
|
10
|
+
"Created At": "Utworzono",
|
|
11
|
+
Actions: "Akcje",
|
|
12
|
+
"Create new customer": "Utworz nowego klienta",
|
|
13
|
+
"Copy customer ID": "Kopiuj ID klienta",
|
|
14
|
+
"View customer": "Pokaz klienta",
|
|
15
|
+
"Edit customer": "Edytuj klienta",
|
|
16
|
+
"Delete customer": "Usun klienta",
|
|
17
|
+
"Deleting...": "Usuwanie...",
|
|
18
|
+
"Open menu": "Otworz menu",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Twoja lista klientow jest pusta",
|
|
21
|
+
"Get started by creating your first entry": "Zacznij od utworzenia pierwszego klienta",
|
|
22
|
+
"No results found": "Nie znaleziono klientow",
|
|
23
|
+
"Try adjusting your search criteria": "Sprobuj dostosowac kryteria wyszukiwania",
|
|
24
|
+
"Clear search": "Wyczysc wyszukiwanie",
|
|
25
|
+
} as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
Address: "Morada",
|
|
4
|
+
"Post Code": "Codigo postal",
|
|
5
|
+
City: "Cidade",
|
|
6
|
+
State: "Distrito",
|
|
7
|
+
Country: "Pais",
|
|
8
|
+
"Tax number": "Numero de contribuinte",
|
|
9
|
+
Email: "Email",
|
|
10
|
+
"Created At": "Criado em",
|
|
11
|
+
Actions: "Acoes",
|
|
12
|
+
"Create new customer": "Criar novo cliente",
|
|
13
|
+
"Copy customer ID": "Copiar ID do cliente",
|
|
14
|
+
"View customer": "Ver cliente",
|
|
15
|
+
"Edit customer": "Editar cliente",
|
|
16
|
+
"Delete customer": "Eliminar cliente",
|
|
17
|
+
"Deleting...": "A eliminar...",
|
|
18
|
+
"Open menu": "Abrir menu",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "A sua lista de clientes esta vazia",
|
|
21
|
+
"Get started by creating your first entry": "Comece criando o seu primeiro cliente",
|
|
22
|
+
"No results found": "Nenhum cliente encontrado",
|
|
23
|
+
"Try adjusting your search criteria": "Tente ajustar os seus criterios de pesquisa",
|
|
24
|
+
"Clear search": "Limpar pesquisa",
|
|
25
|
+
} as const;
|
|
@@ -12,5 +12,14 @@ export default {
|
|
|
12
12
|
"Create new customer": "Ustvari novo stranko",
|
|
13
13
|
"Copy customer ID": "Kopiraj ID stranke",
|
|
14
14
|
"View customer": "Prikaži stranko",
|
|
15
|
+
"Edit customer": "Uredi stranko",
|
|
16
|
+
"Delete customer": "Izbriši stranko",
|
|
17
|
+
"Deleting...": "Brišem...",
|
|
15
18
|
"Open menu": "Odpri meni",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Vaš seznam strank je prazen",
|
|
21
|
+
"Get started by creating your first entry": "Začnite z ustvarjanjem prve stranke",
|
|
22
|
+
"No results found": "Ni najdenih strank",
|
|
23
|
+
"Try adjusting your search criteria": "Poskusite prilagoditi iskalne kriterije",
|
|
24
|
+
"Clear search": "Počisti iskanje",
|
|
16
25
|
} as const;
|
|
@@ -21,7 +21,7 @@ describe("customers.hooks", () => {
|
|
|
21
21
|
data: [
|
|
22
22
|
{ id: "customer-1", name: "John Doe", email: "john@example.com" },
|
|
23
23
|
{ id: "customer-2", name: "John Smith", email: "johnsmith@example.com" },
|
|
24
|
-
],
|
|
24
|
+
] as any,
|
|
25
25
|
pagination: { total: 2 },
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -88,7 +88,7 @@ describe("customers.hooks", () => {
|
|
|
88
88
|
id: `customer-${i}`,
|
|
89
89
|
name: `Test Customer ${i}`,
|
|
90
90
|
email: `test${i}@example.com`,
|
|
91
|
-
})),
|
|
91
|
+
})) as any,
|
|
92
92
|
pagination: { total: 10 },
|
|
93
93
|
});
|
|
94
94
|
|
|
@@ -110,7 +110,7 @@ describe("customers.hooks", () => {
|
|
|
110
110
|
const entityId = "entity-123";
|
|
111
111
|
|
|
112
112
|
sdk.customers.list.mockResolvedValue({
|
|
113
|
-
data: [{ id: "customer-1", name: "Test", email: "test@example.com" }],
|
|
113
|
+
data: [{ id: "customer-1", name: "Test", email: "test@example.com" }] as any,
|
|
114
114
|
pagination: { total: 1 },
|
|
115
115
|
});
|
|
116
116
|
|
|
@@ -162,13 +162,13 @@ describe("customers.hooks", () => {
|
|
|
162
162
|
const { wrapper } = createTestSetup({ sdk });
|
|
163
163
|
const entityId = "entity-123";
|
|
164
164
|
|
|
165
|
-
const mockCustomers = [
|
|
165
|
+
const mockCustomers: any[] = [
|
|
166
166
|
{ id: "customer-1", name: "Recent Customer 1", email: "recent1@example.com", created_at: "2024-01-15" },
|
|
167
167
|
{ id: "customer-2", name: "Recent Customer 2", email: "recent2@example.com", created_at: "2024-01-14" },
|
|
168
168
|
];
|
|
169
169
|
|
|
170
170
|
sdk.customers.list.mockResolvedValueOnce({
|
|
171
|
-
data: mockCustomers,
|
|
171
|
+
data: mockCustomers as any,
|
|
172
172
|
pagination: { total: 2 },
|
|
173
173
|
});
|
|
174
174
|
|
|
@@ -198,7 +198,7 @@ describe("customers.hooks", () => {
|
|
|
198
198
|
name: `Customer ${i}`,
|
|
199
199
|
email: `customer${i}@example.com`,
|
|
200
200
|
created_at: new Date(Date.now() - i * 1000).toISOString(),
|
|
201
|
-
})),
|
|
201
|
+
})) as any,
|
|
202
202
|
pagination: { total: 5 },
|
|
203
203
|
});
|
|
204
204
|
|
|
@@ -255,7 +255,7 @@ describe("customers.hooks", () => {
|
|
|
255
255
|
const entityId = "entity-123";
|
|
256
256
|
|
|
257
257
|
sdk.customers.list.mockResolvedValue({
|
|
258
|
-
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }],
|
|
258
|
+
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }] as any,
|
|
259
259
|
pagination: { total: 1 },
|
|
260
260
|
});
|
|
261
261
|
|
|
@@ -281,7 +281,7 @@ describe("customers.hooks", () => {
|
|
|
281
281
|
const { wrapper, queryClient } = createTestSetup({ sdk });
|
|
282
282
|
|
|
283
283
|
sdk.customers.list.mockResolvedValue({
|
|
284
|
-
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }],
|
|
284
|
+
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }] as any,
|
|
285
285
|
pagination: { total: 1 },
|
|
286
286
|
});
|
|
287
287
|
|
|
@@ -54,4 +54,9 @@ export const {
|
|
|
54
54
|
useCreateResource: useCreateCustomer,
|
|
55
55
|
useUpdateResource: useUpdateCustomer,
|
|
56
56
|
useDeleteResource: useDeleteCustomer,
|
|
57
|
-
|
|
57
|
+
useRestoreResource: useRestoreCustomer,
|
|
58
|
+
usePermanentDeleteResource: usePermanentDeleteCustomer,
|
|
59
|
+
} = createResourceHooks<Customer, CreateCustomerBody>("customers", CUSTOMERS_CACHE_KEY, {
|
|
60
|
+
restoreMethodName: "restoreCustomer",
|
|
61
|
+
permanentDeleteMethodName: "permanentDeleteCustomer",
|
|
62
|
+
});
|