@spaceinvoices/react-ui 0.1.1 → 0.3.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 +287 -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/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/view/document-actions-bar.tsx +8 -1
- package/src/components/documents/view/document-details-card.tsx +8 -1
- package/src/components/documents/view/document-payments-list.tsx +8 -1
- package/src/components/documents/view/locales/es.ts +83 -0
- package/src/components/documents/view/locales/fr.ts +83 -0
- package/src/components/documents/view/locales/hr.ts +83 -0
- package/src/components/documents/view/locales/it.ts +83 -0
- package/src/components/documents/view/locales/nl.ts +84 -0
- package/src/components/documents/view/locales/pl.ts +83 -0
- package/src/components/documents/view/locales/pt.ts +83 -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 +145 -0
- package/src/components/entities/fina-settings-form/locales/en.ts +142 -0
- package/src/components/entities/fina-settings-form/locales/es.ts +143 -0
- package/src/components/entities/fina-settings-form/locales/fr.ts +142 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/it.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/nl.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/pl.ts +142 -0
- package/src/components/entities/fina-settings-form/locales/pt.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +144 -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 +9 -2
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +15 -11
- package/src/components/entities/furs-settings-form/locales/de.ts +52 -88
- package/src/components/entities/furs-settings-form/locales/en.ts +3 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/hr.ts +195 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +195 -0
- package/src/components/entities/furs-settings-form/locales/pl.ts +194 -0
- package/src/components/entities/furs-settings-form/locales/pt.ts +195 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +2 -0
- package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +19 -4
- 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/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 +20 -12
- 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/fina-info-display.tsx +196 -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 +96 -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-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 +84 -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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
2
|
+
import type { Tax } from "@spaceinvoices/js-sdk";
|
|
3
|
+
import { useForm } from "react-hook-form";
|
|
4
|
+
import { FormInput } from "@/ui/components/form";
|
|
5
|
+
import { Checkbox } from "@/ui/components/ui/checkbox";
|
|
6
|
+
import { Form, FormControl, FormField, FormItem, FormLabel } from "@/ui/components/ui/form";
|
|
7
|
+
import type { UpdateTaxSchema } from "@/ui/generated/schemas";
|
|
8
|
+
import { updateTaxSchema } from "@/ui/generated/schemas";
|
|
9
|
+
import type { ComponentTranslationProps } from "@/ui/lib/translation";
|
|
10
|
+
import { createTranslation } from "@/ui/lib/translation";
|
|
11
|
+
import { useUpdateTax } from "../taxes.hooks";
|
|
12
|
+
import de from "./locales/de";
|
|
13
|
+
import es from "./locales/es";
|
|
14
|
+
import fr from "./locales/fr";
|
|
15
|
+
import hr from "./locales/hr";
|
|
16
|
+
import it from "./locales/it";
|
|
17
|
+
import nl from "./locales/nl";
|
|
18
|
+
import pl from "./locales/pl";
|
|
19
|
+
import pt from "./locales/pt";
|
|
20
|
+
import sl from "./locales/sl";
|
|
21
|
+
|
|
22
|
+
const translations = {
|
|
23
|
+
sl,
|
|
24
|
+
de,
|
|
25
|
+
it,
|
|
26
|
+
fr,
|
|
27
|
+
es,
|
|
28
|
+
pt,
|
|
29
|
+
nl,
|
|
30
|
+
pl,
|
|
31
|
+
hr,
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
type EditTaxFormProps = {
|
|
35
|
+
entityId: string;
|
|
36
|
+
tax: Tax;
|
|
37
|
+
onSuccess?: (tax: Tax) => void;
|
|
38
|
+
onError?: (error: Error) => void;
|
|
39
|
+
renderSubmitButton?: (props: { isSubmitting: boolean; submit: () => void }) => React.ReactNode;
|
|
40
|
+
} & ComponentTranslationProps;
|
|
41
|
+
|
|
42
|
+
export default function EditTaxForm({
|
|
43
|
+
entityId,
|
|
44
|
+
tax,
|
|
45
|
+
onSuccess,
|
|
46
|
+
onError,
|
|
47
|
+
renderSubmitButton,
|
|
48
|
+
...i18nProps
|
|
49
|
+
}: EditTaxFormProps) {
|
|
50
|
+
const t = createTranslation({
|
|
51
|
+
...i18nProps,
|
|
52
|
+
translations,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const form = useForm<UpdateTaxSchema>({
|
|
56
|
+
resolver: zodResolver(updateTaxSchema),
|
|
57
|
+
defaultValues: {
|
|
58
|
+
tax_rates: tax.tax_rates?.map((tr) => ({ rate: tr.rate })) ?? [{ rate: 0 }],
|
|
59
|
+
is_default: tax.is_default ?? false,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const { mutate: updateTax, isPending } = useUpdateTax({
|
|
64
|
+
entityId,
|
|
65
|
+
onSuccess: (updatedTax, _variables, _context) => {
|
|
66
|
+
onSuccess?.(updatedTax);
|
|
67
|
+
},
|
|
68
|
+
onError: (error, _variables, _context) => {
|
|
69
|
+
form.setError("root", {
|
|
70
|
+
type: "submit",
|
|
71
|
+
message: t("There was an error updating the tax"),
|
|
72
|
+
});
|
|
73
|
+
onError?.(error);
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
const onSubmit = async (values: UpdateTaxSchema) => {
|
|
78
|
+
updateTax({
|
|
79
|
+
id: tax.id,
|
|
80
|
+
data: values,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const handleSubmitClick = () => {
|
|
85
|
+
form.handleSubmit(onSubmit)();
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<Form {...form}>
|
|
90
|
+
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
|
|
91
|
+
<FormInput
|
|
92
|
+
control={form.control}
|
|
93
|
+
name="tax_rates.0.rate"
|
|
94
|
+
label={t("Rate (%)")}
|
|
95
|
+
placeholder={t("Enter rate")}
|
|
96
|
+
type="number"
|
|
97
|
+
/>
|
|
98
|
+
|
|
99
|
+
<FormField
|
|
100
|
+
control={form.control}
|
|
101
|
+
name="is_default"
|
|
102
|
+
render={({ field }) => (
|
|
103
|
+
<FormItem className="flex flex-row items-center space-x-3 space-y-0">
|
|
104
|
+
<FormControl>
|
|
105
|
+
<Checkbox checked={field.value} onCheckedChange={field.onChange} />
|
|
106
|
+
</FormControl>
|
|
107
|
+
<FormLabel className="font-normal">{t("Set as default tax")}</FormLabel>
|
|
108
|
+
</FormItem>
|
|
109
|
+
)}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
{renderSubmitButton?.({
|
|
113
|
+
isSubmitting: isPending || form.formState.isSubmitting,
|
|
114
|
+
submit: handleSubmitClick,
|
|
115
|
+
})}
|
|
116
|
+
</form>
|
|
117
|
+
</Form>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
@@ -8,4 +8,10 @@ export default {
|
|
|
8
8
|
Actions: "Aktionen",
|
|
9
9
|
"Copy tax ID": "Steuer-ID kopieren",
|
|
10
10
|
"View tax": "Steuer anzeigen",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Ihre Steuerliste ist leer",
|
|
13
|
+
"Get started by creating your first entry": "Erstellen Sie Ihre erste Steuer",
|
|
14
|
+
"No results found": "Keine Steuern gefunden",
|
|
15
|
+
"Try adjusting your search criteria": "Versuchen Sie, Ihre Suchkriterien anzupassen",
|
|
16
|
+
"Clear search": "Suche zurücksetzen",
|
|
11
17
|
};
|
|
@@ -2,9 +2,15 @@ export default {
|
|
|
2
2
|
Name: "Name",
|
|
3
3
|
"Tax Rates": "Tax Rates",
|
|
4
4
|
Created: "Created",
|
|
5
|
+
Default: "Default",
|
|
5
6
|
"Unnamed Tax": "Unnamed Tax",
|
|
6
7
|
"Open menu": "Open menu",
|
|
7
8
|
Actions: "Actions",
|
|
8
9
|
"Copy tax ID": "Copy tax ID",
|
|
9
10
|
"View tax": "View tax",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Your tax list is empty",
|
|
13
|
+
"Get started by creating your first entry": "Get started by creating your first tax",
|
|
14
|
+
// No results translations
|
|
15
|
+
"No results found": "No taxes found",
|
|
10
16
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nombre",
|
|
3
|
+
"Tax Rates": "Tasas de impuestos",
|
|
4
|
+
Created: "Creado",
|
|
5
|
+
Default: "Predeterminado",
|
|
6
|
+
"Unnamed Tax": "Impuesto sin nombre",
|
|
7
|
+
"Open menu": "Abrir menú",
|
|
8
|
+
Actions: "Acciones",
|
|
9
|
+
"Copy tax ID": "Copiar ID del impuesto",
|
|
10
|
+
"View tax": "Ver impuesto",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Su lista de impuestos está vacía",
|
|
13
|
+
"Get started by creating your first entry": "Comience creando su primer impuesto",
|
|
14
|
+
"No results found": "No se encontraron impuestos",
|
|
15
|
+
"Try adjusting your search criteria": "Intente ajustar sus criterios de búsqueda",
|
|
16
|
+
"Clear search": "Limpiar búsqueda",
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nom",
|
|
3
|
+
"Tax Rates": "Taux de taxe",
|
|
4
|
+
Created: "Créé",
|
|
5
|
+
Default: "Par défaut",
|
|
6
|
+
"Unnamed Tax": "Taxe sans nom",
|
|
7
|
+
"Open menu": "Ouvrir le menu",
|
|
8
|
+
Actions: "Actions",
|
|
9
|
+
"Copy tax ID": "Copier l'ID de la taxe",
|
|
10
|
+
"View tax": "Voir la taxe",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Votre liste de taxes est vide",
|
|
13
|
+
"Get started by creating your first entry": "Commencez par créer votre première taxe",
|
|
14
|
+
"No results found": "Aucune taxe trouvée",
|
|
15
|
+
"Try adjusting your search criteria": "Essayez de modifier vos critères de recherche",
|
|
16
|
+
"Clear search": "Effacer la recherche",
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naziv",
|
|
3
|
+
"Tax Rates": "Porezne stope",
|
|
4
|
+
Created: "Kreirano",
|
|
5
|
+
Default: "Zadano",
|
|
6
|
+
"Unnamed Tax": "Neimenovani porez",
|
|
7
|
+
"Open menu": "Otvori izbornik",
|
|
8
|
+
Actions: "Akcije",
|
|
9
|
+
"Copy tax ID": "Kopiraj ID poreza",
|
|
10
|
+
"View tax": "Pogledaj porez",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Vaš popis poreza je prazan",
|
|
13
|
+
"Get started by creating your first entry": "Započnite izradom prvog poreza",
|
|
14
|
+
"No results found": "Nisu pronađeni porezi",
|
|
15
|
+
"Try adjusting your search criteria": "Pokušajte prilagoditi kriterije pretrage",
|
|
16
|
+
"Clear search": "Očisti pretragu",
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
"Tax Rates": "Aliquote fiscali",
|
|
4
|
+
Created: "Creato",
|
|
5
|
+
Default: "Predefinito",
|
|
6
|
+
"Unnamed Tax": "Tassa senza nome",
|
|
7
|
+
"Open menu": "Apri menu",
|
|
8
|
+
Actions: "Azioni",
|
|
9
|
+
"Copy tax ID": "Copia ID tassa",
|
|
10
|
+
"View tax": "Visualizza tassa",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "La lista delle tasse è vuota",
|
|
13
|
+
"Get started by creating your first entry": "Inizia creando la tua prima tassa",
|
|
14
|
+
"No results found": "Nessuna tassa trovata",
|
|
15
|
+
"Try adjusting your search criteria": "Prova a modificare i criteri di ricerca",
|
|
16
|
+
"Clear search": "Cancella ricerca",
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naam",
|
|
3
|
+
"Tax Rates": "Belastingtarieven",
|
|
4
|
+
Created: "Aangemaakt",
|
|
5
|
+
Default: "Standaard",
|
|
6
|
+
"Unnamed Tax": "Naamloze belasting",
|
|
7
|
+
"Open menu": "Menu openen",
|
|
8
|
+
Actions: "Acties",
|
|
9
|
+
"Copy tax ID": "Belasting-ID kopiëren",
|
|
10
|
+
"View tax": "Belasting bekijken",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Uw belastinglijst is leeg",
|
|
13
|
+
"Get started by creating your first entry": "Begin met het aanmaken van uw eerste belasting",
|
|
14
|
+
"No results found": "Geen belastingen gevonden",
|
|
15
|
+
"Try adjusting your search criteria": "Probeer uw zoekcriteria aan te passen",
|
|
16
|
+
"Clear search": "Zoekopdracht wissen",
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nazwa",
|
|
3
|
+
"Tax Rates": "Stawki podatkowe",
|
|
4
|
+
Created: "Utworzono",
|
|
5
|
+
Default: "Domyślny",
|
|
6
|
+
"Unnamed Tax": "Podatek bez nazwy",
|
|
7
|
+
"Open menu": "Otwórz menu",
|
|
8
|
+
Actions: "Akcje",
|
|
9
|
+
"Copy tax ID": "Kopiuj ID podatku",
|
|
10
|
+
"View tax": "Pokaż podatek",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Lista podatków jest pusta",
|
|
13
|
+
"Get started by creating your first entry": "Zacznij od utworzenia pierwszego podatku",
|
|
14
|
+
"No results found": "Nie znaleziono podatków",
|
|
15
|
+
"Try adjusting your search criteria": "Spróbuj dostosować kryteria wyszukiwania",
|
|
16
|
+
"Clear search": "Wyczyść wyszukiwanie",
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
"Tax Rates": "Taxas de imposto",
|
|
4
|
+
Created: "Criado",
|
|
5
|
+
Default: "Predefinido",
|
|
6
|
+
"Unnamed Tax": "Imposto sem nome",
|
|
7
|
+
"Open menu": "Abrir menu",
|
|
8
|
+
Actions: "Ações",
|
|
9
|
+
"Copy tax ID": "Copiar ID do imposto",
|
|
10
|
+
"View tax": "Ver imposto",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "A sua lista de impostos está vazia",
|
|
13
|
+
"Get started by creating your first entry": "Comece por criar o seu primeiro imposto",
|
|
14
|
+
"No results found": "Nenhum imposto encontrado",
|
|
15
|
+
"Try adjusting your search criteria": "Tente ajustar os seus critérios de pesquisa",
|
|
16
|
+
"Clear search": "Limpar pesquisa",
|
|
17
|
+
};
|
|
@@ -8,4 +8,10 @@ export default {
|
|
|
8
8
|
Actions: "Akcije",
|
|
9
9
|
"Copy tax ID": "Kopiraj ID davka",
|
|
10
10
|
"View tax": "Poglej davek",
|
|
11
|
+
// Empty state translations
|
|
12
|
+
"Your list is empty": "Vaš seznam davkov je prazen",
|
|
13
|
+
"Get started by creating your first entry": "Začnite z ustvarjanjem prvega davka",
|
|
14
|
+
"No results found": "Ni najdenih davkov",
|
|
15
|
+
"Try adjusting your search criteria": "Poskusite prilagoditi iskalne kriterije",
|
|
16
|
+
"Clear search": "Počisti iskanje",
|
|
11
17
|
};
|
|
@@ -7,13 +7,29 @@ import { useTableFetch } from "../../table/hooks/use-table-fetch";
|
|
|
7
7
|
import type { ListTableProps, TableQueryParams } from "../../table/types";
|
|
8
8
|
import { TAXES_CACHE_KEY } from "../taxes.hooks";
|
|
9
9
|
import de from "./locales/de";
|
|
10
|
+
import en from "./locales/en";
|
|
11
|
+
import es from "./locales/es";
|
|
12
|
+
import fr from "./locales/fr";
|
|
13
|
+
import hr from "./locales/hr";
|
|
14
|
+
import it from "./locales/it";
|
|
15
|
+
import nl from "./locales/nl";
|
|
16
|
+
import pl from "./locales/pl";
|
|
17
|
+
import pt from "./locales/pt";
|
|
10
18
|
import sl from "./locales/sl";
|
|
11
19
|
import TaxListHeader from "./tax-list-header";
|
|
12
20
|
import TaxListRow from "./tax-list-row";
|
|
13
21
|
|
|
14
22
|
const translations = {
|
|
23
|
+
en,
|
|
15
24
|
sl,
|
|
16
25
|
de,
|
|
26
|
+
it,
|
|
27
|
+
fr,
|
|
28
|
+
es,
|
|
29
|
+
pt,
|
|
30
|
+
nl,
|
|
31
|
+
pl,
|
|
32
|
+
hr,
|
|
17
33
|
} as const;
|
|
18
34
|
|
|
19
35
|
type TaxListTableProps = {
|
|
@@ -54,6 +70,8 @@ export default function TaxListTable({
|
|
|
54
70
|
onFetch={handleFetch}
|
|
55
71
|
onChangeParams={onChangeParams}
|
|
56
72
|
entityId={entityId}
|
|
73
|
+
t={t}
|
|
74
|
+
locale={i18nProps.locale}
|
|
57
75
|
/>
|
|
58
76
|
);
|
|
59
77
|
}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import type { CreateTaxBody, PaginatedResponse, Tax } from "@spaceinvoices/js-sdk";
|
|
1
|
+
import type { CreateTaxBody, PaginatedResponse, Tax, UpdateTaxBody } from "@spaceinvoices/js-sdk";
|
|
2
2
|
import { type UseQueryOptions, useQuery } from "@tanstack/react-query";
|
|
3
3
|
import { createResourceHooks } from "../../hooks/create-resource-hooks";
|
|
4
4
|
import { useSDK } from "../../providers/sdk-provider";
|
|
5
5
|
|
|
6
6
|
export const TAXES_CACHE_KEY = "taxes";
|
|
7
7
|
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const {
|
|
9
|
+
useCreateResource: useCreateTax,
|
|
10
|
+
useUpdateResource: useUpdateTax,
|
|
11
|
+
useDeleteResource: useDeleteTax,
|
|
12
|
+
useRestoreResource: useRestoreTax,
|
|
13
|
+
usePermanentDeleteResource: usePermanentDeleteTax,
|
|
14
|
+
} = createResourceHooks<Tax, CreateTaxBody, UpdateTaxBody>("taxes", TAXES_CACHE_KEY, {
|
|
15
|
+
restoreMethodName: "restoreTax",
|
|
16
|
+
permanentDeleteMethodName: "permanentDeleteTax",
|
|
17
|
+
});
|
|
13
18
|
|
|
14
|
-
export { useCreateTax, useDeleteTax };
|
|
19
|
+
export { useCreateTax, useUpdateTax, useDeleteTax, useRestoreTax, usePermanentDeleteTax };
|
|
15
20
|
|
|
16
21
|
/**
|
|
17
22
|
* Hook to fetch all taxes for an entity
|
|
@@ -18,9 +18,9 @@ function TooltipProvider({
|
|
|
18
18
|
)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function Tooltip({ ...props }: TooltipPrimitive.Root.Props) {
|
|
21
|
+
function Tooltip({ delayDuration, ...props }: TooltipPrimitive.Root.Props & { delayDuration?: number }) {
|
|
22
22
|
return (
|
|
23
|
-
<TooltipProvider>
|
|
23
|
+
<TooltipProvider delay={delayDuration}>
|
|
24
24
|
<TooltipPrimitive.Root data-slot="tooltip" {...props} />
|
|
25
25
|
</TooltipProvider>
|
|
26
26
|
)
|
|
@@ -160,6 +160,7 @@ export function UsageBadge() {
|
|
|
160
160
|
function getDefaultLockedMessage(feature: GatedFeature): string {
|
|
161
161
|
const messages: Record<GatedFeature, string> = {
|
|
162
162
|
furs: "FURS fiscalization requires a Starter or Advanced plan",
|
|
163
|
+
fina: "FINA fiscalization requires a Starter or Advanced plan",
|
|
163
164
|
eslog: "eSlog export requires a Starter or Advanced plan",
|
|
164
165
|
recurring: "Recurring invoices require a Starter or Advanced plan",
|
|
165
166
|
email_sending: "Email sending requires a Starter or Advanced plan",
|
|
@@ -170,6 +170,7 @@ function PlanIcon({ slug }: { slug: string }) {
|
|
|
170
170
|
function getFeatureDisplayName(feature: GatedFeature): string {
|
|
171
171
|
const names: Record<GatedFeature, string> = {
|
|
172
172
|
furs: "FURS Fiscalization",
|
|
173
|
+
fina: "FINA Fiscalization",
|
|
173
174
|
eslog: "eSlog Export",
|
|
174
175
|
recurring: "Recurring Invoices",
|
|
175
176
|
email_sending: "Email Sending",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated using 'bun generate-schemas'.
|
|
3
|
+
* Do not edit this file manually. To update, run the generator again.
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
// Schemas for acceptentityinvitation_body endpoints
|
|
10
|
+
|
|
11
|
+
// Dependency schema for acceptentityinvitation_body
|
|
12
|
+
const acceptEntityInvitation_Body = z.object({
|
|
13
|
+
name: z.string().min(1).max(255),
|
|
14
|
+
password: z.string().min(8),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated using 'bun generate-schemas'.
|
|
3
|
+
* Do not edit this file manually. To update, run the generator again.
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
// Schemas for addentityuser_body endpoints
|
|
10
|
+
|
|
11
|
+
// Dependency schema for addentityuser_body
|
|
12
|
+
const addEntityUser_Body = z.object({
|
|
13
|
+
email: z.string().email(),
|
|
14
|
+
role: z.enum(["viewer", "editor", "admin"]).optional().default("editor"),
|
|
15
|
+
send_invite: z.boolean().optional().default(true),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
|