@maxal_studio/kratosjs-react 1.0.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/README.md +44 -0
- package/dist/FieldRenderer.d.ts +13 -0
- package/dist/FieldRenderer.js +62 -0
- package/dist/FormRenderer.d.ts +7 -0
- package/dist/FormRenderer.js +78 -0
- package/dist/TableRenderer.d.ts +2 -0
- package/dist/TableRenderer.js +1 -0
- package/dist/api/actionsApi.d.ts +23 -0
- package/dist/api/actionsApi.js +46 -0
- package/dist/api/authenticatedFetch.d.ts +8 -0
- package/dist/api/authenticatedFetch.js +31 -0
- package/dist/api/exportApi.d.ts +18 -0
- package/dist/api/exportApi.js +50 -0
- package/dist/api/http.d.ts +24 -0
- package/dist/api/http.js +52 -0
- package/dist/api/resourceApi.d.ts +37 -0
- package/dist/api/resourceApi.js +52 -0
- package/dist/api/tableApi.d.ts +83 -0
- package/dist/api/tableApi.js +51 -0
- package/dist/api/urls.d.ts +19 -0
- package/dist/api/urls.js +46 -0
- package/dist/app.d.ts +101 -0
- package/dist/app.js +89 -0
- package/dist/auth/AuthContext.d.ts +22 -0
- package/dist/auth/AuthContext.js +147 -0
- package/dist/auth/LoginPage.d.ts +10 -0
- package/dist/auth/LoginPage.js +179 -0
- package/dist/auth/ProtectedRoute.d.ts +12 -0
- package/dist/auth/ProtectedRoute.js +22 -0
- package/dist/auth/authApiClient.d.ts +24 -0
- package/dist/auth/authApiClient.js +95 -0
- package/dist/auth/types.d.ts +103 -0
- package/dist/auth/types.js +1 -0
- package/dist/components/ActionFormModal.d.ts +22 -0
- package/dist/components/ActionFormModal.js +8 -0
- package/dist/components/AdminPanel.d.ts +11 -0
- package/dist/components/AdminPanel.js +194 -0
- package/dist/components/Checkbox.d.ts +10 -0
- package/dist/components/Checkbox.js +8 -0
- package/dist/components/CheckboxField.d.ts +7 -0
- package/dist/components/CheckboxField.js +26 -0
- package/dist/components/ColorPickerField.d.ts +7 -0
- package/dist/components/ColorPickerField.js +26 -0
- package/dist/components/DateTimePickerField.d.ts +7 -0
- package/dist/components/DateTimePickerField.js +64 -0
- package/dist/components/FileUploadField.d.ts +9 -0
- package/dist/components/FileUploadField.js +478 -0
- package/dist/components/GlobalSearch.d.ts +22 -0
- package/dist/components/GlobalSearch.js +181 -0
- package/dist/components/GroupField.d.ts +7 -0
- package/dist/components/GroupField.js +23 -0
- package/dist/components/HiddenField.d.ts +3 -0
- package/dist/components/HiddenField.js +10 -0
- package/dist/components/ModalBreadcrumb.d.ts +5 -0
- package/dist/components/ModalBreadcrumb.js +33 -0
- package/dist/components/ModalDrawer.d.ts +15 -0
- package/dist/components/ModalDrawer.js +40 -0
- package/dist/components/RadioField.d.ts +7 -0
- package/dist/components/RadioField.js +26 -0
- package/dist/components/RepeaterField.d.ts +3 -0
- package/dist/components/RepeaterField.js +191 -0
- package/dist/components/ResourceModalRenderer.d.ts +10 -0
- package/dist/components/ResourceModalRenderer.js +80 -0
- package/dist/components/RichEditorField.d.ts +3 -0
- package/dist/components/RichEditorField.js +655 -0
- package/dist/components/SectionField.d.ts +9 -0
- package/dist/components/SectionField.js +111 -0
- package/dist/components/SelectField.d.ts +8 -0
- package/dist/components/SelectField.js +523 -0
- package/dist/components/TabsField.d.ts +10 -0
- package/dist/components/TabsField.js +214 -0
- package/dist/components/TagsInputField.d.ts +7 -0
- package/dist/components/TagsInputField.js +172 -0
- package/dist/components/TextInputField.d.ts +7 -0
- package/dist/components/TextInputField.js +44 -0
- package/dist/components/TextareaField.d.ts +7 -0
- package/dist/components/TextareaField.js +31 -0
- package/dist/components/ToggleField.d.ts +7 -0
- package/dist/components/ToggleField.js +57 -0
- package/dist/components/ViewModal.d.ts +25 -0
- package/dist/components/ViewModal.js +159 -0
- package/dist/components/blocks/BlockRenderer.d.ts +7 -0
- package/dist/components/blocks/BlockRenderer.js +36 -0
- package/dist/components/blocks/FormBlockRenderer.d.ts +6 -0
- package/dist/components/blocks/FormBlockRenderer.js +110 -0
- package/dist/components/blocks/TableBlockRenderer.d.ts +6 -0
- package/dist/components/blocks/TableBlockRenderer.js +12 -0
- package/dist/components/blocks/TabsBlockRenderer.d.ts +7 -0
- package/dist/components/blocks/TabsBlockRenderer.js +11 -0
- package/dist/components/blocks/WidgetBlockRenderer.d.ts +6 -0
- package/dist/components/blocks/WidgetBlockRenderer.js +11 -0
- package/dist/components/columns/CheckboxColumnComponent.d.ts +6 -0
- package/dist/components/columns/CheckboxColumnComponent.js +21 -0
- package/dist/components/columns/ColorColumnComponent.d.ts +3 -0
- package/dist/components/columns/ColorColumnComponent.js +11 -0
- package/dist/components/columns/DeeplinkWrapper.d.ts +15 -0
- package/dist/components/columns/DeeplinkWrapper.js +85 -0
- package/dist/components/columns/IconColumnComponent.d.ts +3 -0
- package/dist/components/columns/IconColumnComponent.js +52 -0
- package/dist/components/columns/ImageColumnComponent.d.ts +3 -0
- package/dist/components/columns/ImageColumnComponent.js +98 -0
- package/dist/components/columns/MediaColumnComponent.d.ts +3 -0
- package/dist/components/columns/MediaColumnComponent.js +160 -0
- package/dist/components/columns/SelectColumnComponent.d.ts +6 -0
- package/dist/components/columns/SelectColumnComponent.js +26 -0
- package/dist/components/columns/TagsColumnComponent.d.ts +3 -0
- package/dist/components/columns/TagsColumnComponent.js +18 -0
- package/dist/components/columns/TextColumnComponent.d.ts +11 -0
- package/dist/components/columns/TextColumnComponent.js +107 -0
- package/dist/components/columns/TextInputColumnComponent.d.ts +6 -0
- package/dist/components/columns/TextInputColumnComponent.js +18 -0
- package/dist/components/columns/ToggleColumnComponent.d.ts +6 -0
- package/dist/components/columns/ToggleColumnComponent.js +25 -0
- package/dist/components/columns/VideoColumnComponent.d.ts +3 -0
- package/dist/components/columns/VideoColumnComponent.js +125 -0
- package/dist/components/columns/ViewColumnComponent.d.ts +3 -0
- package/dist/components/columns/ViewColumnComponent.js +7 -0
- package/dist/components/errors/ErrorBoundary.d.ts +23 -0
- package/dist/components/errors/ErrorBoundary.js +33 -0
- package/dist/components/filters/CustomFilterComponent.d.ts +10 -0
- package/dist/components/filters/CustomFilterComponent.js +33 -0
- package/dist/components/filters/DateFilterComponent.d.ts +15 -0
- package/dist/components/filters/DateFilterComponent.js +132 -0
- package/dist/components/filters/QueryBuilderFilterComponent.d.ts +11 -0
- package/dist/components/filters/QueryBuilderFilterComponent.js +200 -0
- package/dist/components/layout/Header.d.ts +10 -0
- package/dist/components/layout/Header.js +70 -0
- package/dist/components/layout/PanelBrandMark.d.ts +8 -0
- package/dist/components/layout/PanelBrandMark.js +28 -0
- package/dist/components/layout/Sidebar.d.ts +35 -0
- package/dist/components/layout/Sidebar.js +125 -0
- package/dist/components/modals/RelationCreateModal.d.ts +19 -0
- package/dist/components/modals/RelationCreateModal.js +57 -0
- package/dist/components/modals/ResourceFormModal.d.ts +37 -0
- package/dist/components/modals/ResourceFormModal.js +44 -0
- package/dist/components/modals/useResourceForm.d.ts +40 -0
- package/dist/components/modals/useResourceForm.js +138 -0
- package/dist/components/modals/view/RecordActions.d.ts +17 -0
- package/dist/components/modals/view/RecordActions.js +16 -0
- package/dist/components/modals/view/RecordDetails.d.ts +13 -0
- package/dist/components/modals/view/RecordDetails.js +29 -0
- package/dist/components/modals/view/RelationPanel.d.ts +18 -0
- package/dist/components/modals/view/RelationPanel.js +16 -0
- package/dist/components/modals/view/RelationTabs.d.ts +32 -0
- package/dist/components/modals/view/RelationTabs.js +42 -0
- package/dist/components/modals/view/useRecordView.d.ts +18 -0
- package/dist/components/modals/view/useRecordView.js +114 -0
- package/dist/components/pages/PageRenderer.d.ts +6 -0
- package/dist/components/pages/PageRenderer.js +107 -0
- package/dist/components/table/ColumnTogglePopup.d.ts +11 -0
- package/dist/components/table/ColumnTogglePopup.js +16 -0
- package/dist/components/table/GridCard.d.ts +21 -0
- package/dist/components/table/GridCard.js +30 -0
- package/dist/components/table/GridView.d.ts +23 -0
- package/dist/components/table/GridView.js +49 -0
- package/dist/components/table/LayoutToggle.d.ts +7 -0
- package/dist/components/table/LayoutToggle.js +9 -0
- package/dist/components/table/TableActionsDropdown.d.ts +13 -0
- package/dist/components/table/TableActionsDropdown.js +46 -0
- package/dist/components/table/TableBulkActions.d.ts +11 -0
- package/dist/components/table/TableBulkActions.js +21 -0
- package/dist/components/table/TableHeader.d.ts +14 -0
- package/dist/components/table/TableHeader.js +23 -0
- package/dist/components/table/TablePagination.d.ts +13 -0
- package/dist/components/table/TablePagination.js +55 -0
- package/dist/components/table/TableRow.d.ts +21 -0
- package/dist/components/table/TableRow.js +32 -0
- package/dist/components/table/TableSearchBar.d.ts +11 -0
- package/dist/components/table/TableSearchBar.js +12 -0
- package/dist/components/table/TableTabs.d.ts +14 -0
- package/dist/components/table/TableTabs.js +8 -0
- package/dist/components/ui/Badge.d.ts +6 -0
- package/dist/components/ui/Badge.js +12 -0
- package/dist/components/ui/Button.d.ts +22 -0
- package/dist/components/ui/Button.js +22 -0
- package/dist/components/ui/Card.d.ts +7 -0
- package/dist/components/ui/Card.js +5 -0
- package/dist/components/ui/ConfirmDialog.d.ts +19 -0
- package/dist/components/ui/ConfirmDialog.js +45 -0
- package/dist/components/ui/EmptyState.d.ts +9 -0
- package/dist/components/ui/EmptyState.js +6 -0
- package/dist/components/ui/ErrorAlert.d.ts +7 -0
- package/dist/components/ui/ErrorAlert.js +9 -0
- package/dist/components/ui/Input.d.ts +11 -0
- package/dist/components/ui/Input.js +10 -0
- package/dist/components/ui/Label.d.ts +5 -0
- package/dist/components/ui/Label.js +5 -0
- package/dist/components/ui/PillButton.d.ts +14 -0
- package/dist/components/ui/PillButton.js +19 -0
- package/dist/components/ui/Select.d.ts +7 -0
- package/dist/components/ui/Select.js +7 -0
- package/dist/components/ui/Spinner.d.ts +8 -0
- package/dist/components/ui/Spinner.js +14 -0
- package/dist/components/ui/Toast.d.ts +21 -0
- package/dist/components/ui/Toast.js +47 -0
- package/dist/components/ui/index.d.ts +24 -0
- package/dist/components/ui/index.js +12 -0
- package/dist/components/utils/HintDisplay.d.ts +11 -0
- package/dist/components/utils/HintDisplay.js +12 -0
- package/dist/components/utils/Icon.d.ts +22 -0
- package/dist/components/utils/Icon.js +22 -0
- package/dist/components/utils/MediaPreviewModal.d.ts +14 -0
- package/dist/components/utils/MediaPreviewModal.js +32 -0
- package/dist/components/utils/ViewFieldWrapper.d.ts +11 -0
- package/dist/components/utils/ViewFieldWrapper.js +9 -0
- package/dist/components/utils/layoutHelpers.d.ts +19 -0
- package/dist/components/utils/layoutHelpers.js +257 -0
- package/dist/components/widgets/ChartWidget.d.ts +16 -0
- package/dist/components/widgets/ChartWidget.js +192 -0
- package/dist/components/widgets/StatsWidget.d.ts +16 -0
- package/dist/components/widgets/StatsWidget.js +39 -0
- package/dist/components/widgets/WidgetRenderer.d.ts +10 -0
- package/dist/components/widgets/WidgetRenderer.js +50 -0
- package/dist/components/widgets/WidgetShell.d.ts +9 -0
- package/dist/components/widgets/WidgetShell.js +7 -0
- package/dist/contexts/AuthChallengeRegistryContext.d.ts +15 -0
- package/dist/contexts/AuthChallengeRegistryContext.js +15 -0
- package/dist/contexts/BlockRegistryContext.d.ts +18 -0
- package/dist/contexts/BlockRegistryContext.js +8 -0
- package/dist/contexts/ColumnRegistryContext.d.ts +8 -0
- package/dist/contexts/ColumnRegistryContext.js +30 -0
- package/dist/contexts/FieldRegistryContext.d.ts +13 -0
- package/dist/contexts/FieldRegistryContext.js +46 -0
- package/dist/contexts/PanelMetadataContext.d.ts +26 -0
- package/dist/contexts/PanelMetadataContext.js +26 -0
- package/dist/contexts/PanelProviders.d.ts +27 -0
- package/dist/contexts/PanelProviders.js +24 -0
- package/dist/contexts/ResourceModalContext.d.ts +26 -0
- package/dist/contexts/ResourceModalContext.js +76 -0
- package/dist/contexts/SlotRegistryContext.d.ts +19 -0
- package/dist/contexts/SlotRegistryContext.js +24 -0
- package/dist/contexts/TableRefreshContext.d.ts +10 -0
- package/dist/contexts/TableRefreshContext.js +30 -0
- package/dist/contexts/WidgetRegistryContext.d.ts +17 -0
- package/dist/contexts/WidgetRegistryContext.js +14 -0
- package/dist/contexts/createRegistryContext.d.ts +19 -0
- package/dist/contexts/createRegistryContext.js +20 -0
- package/dist/hooks/useAfterStateUpdated.d.ts +6 -0
- package/dist/hooks/useAfterStateUpdated.js +62 -0
- package/dist/hooks/useValidation.d.ts +26 -0
- package/dist/hooks/useValidation.js +76 -0
- package/dist/i18n/I18nProvider.d.ts +27 -0
- package/dist/i18n/I18nProvider.js +101 -0
- package/dist/i18n/LocaleSwitcher.d.ts +10 -0
- package/dist/i18n/LocaleSwitcher.js +30 -0
- package/dist/i18n/activeLocale.d.ts +11 -0
- package/dist/i18n/activeLocale.js +34 -0
- package/dist/i18n/buildClientI18n.d.ts +28 -0
- package/dist/i18n/buildClientI18n.js +67 -0
- package/dist/i18n/index.d.ts +11 -0
- package/dist/i18n/index.js +9 -0
- package/dist/i18n/locales/core/en.d.ts +225 -0
- package/dist/i18n/locales/core/en.js +252 -0
- package/dist/i18n/locales/core/index.d.ts +2 -0
- package/dist/i18n/locales/core/index.js +4 -0
- package/dist/i18n/locales/core/sq.d.ts +253 -0
- package/dist/i18n/locales/core/sq.js +255 -0
- package/dist/i18n/useFormatter.d.ts +18 -0
- package/dist/i18n/useFormatter.js +37 -0
- package/dist/i18n/useLocale.d.ts +11 -0
- package/dist/i18n/useLocale.js +11 -0
- package/dist/i18n/useTranslation.d.ts +12 -0
- package/dist/i18n/useTranslation.js +12 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.js +101 -0
- package/dist/pages/ResourceListPage.d.ts +8 -0
- package/dist/pages/ResourceListPage.js +139 -0
- package/dist/plugin.d.ts +79 -0
- package/dist/plugin.js +34 -0
- package/dist/runtime/conditions.d.ts +35 -0
- package/dist/runtime/conditions.js +97 -0
- package/dist/runtime/formTraversal.d.ts +25 -0
- package/dist/runtime/formTraversal.js +37 -0
- package/dist/runtime/serializedFunctions.d.ts +41 -0
- package/dist/runtime/serializedFunctions.js +264 -0
- package/dist/slots/Slot.d.ts +24 -0
- package/dist/slots/Slot.js +29 -0
- package/dist/slots/SlotCluster.d.ts +22 -0
- package/dist/slots/SlotCluster.js +49 -0
- package/dist/slots/index.d.ts +7 -0
- package/dist/slots/index.js +4 -0
- package/dist/slots/mergeSlots.d.ts +18 -0
- package/dist/slots/mergeSlots.js +35 -0
- package/dist/slots/types.d.ts +87 -0
- package/dist/slots/types.js +30 -0
- package/dist/styles.css +1 -0
- package/dist/table/TableContext.d.ts +36 -0
- package/dist/table/TableContext.js +13 -0
- package/dist/table/TableRenderer.d.ts +29 -0
- package/dist/table/TableRenderer.js +159 -0
- package/dist/table/components/FiltersPanel.d.ts +11 -0
- package/dist/table/components/FiltersPanel.js +52 -0
- package/dist/table/components/TableToolbar.d.ts +28 -0
- package/dist/table/components/TableToolbar.js +27 -0
- package/dist/table/components/TableToolbarButton.d.ts +6 -0
- package/dist/table/components/TableToolbarButton.js +9 -0
- package/dist/table/components/TableView.d.ts +12 -0
- package/dist/table/components/TableView.js +21 -0
- package/dist/table/defaultRowActions.d.ts +21 -0
- package/dist/table/defaultRowActions.js +37 -0
- package/dist/table/hooks/useColumnVisibility.d.ts +13 -0
- package/dist/table/hooks/useColumnVisibility.js +59 -0
- package/dist/table/hooks/useEditableRows.d.ts +22 -0
- package/dist/table/hooks/useEditableRows.js +63 -0
- package/dist/table/hooks/useTableActions.d.ts +54 -0
- package/dist/table/hooks/useTableActions.js +313 -0
- package/dist/table/hooks/useTableData.d.ts +28 -0
- package/dist/table/hooks/useTableData.js +63 -0
- package/dist/table/hooks/useTableLayout.d.ts +12 -0
- package/dist/table/hooks/useTableLayout.js +31 -0
- package/dist/table/hooks/useTableQuery.d.ts +29 -0
- package/dist/table/hooks/useTableQuery.js +135 -0
- package/dist/types/index.d.ts +224 -0
- package/dist/types/index.js +6 -0
- package/dist/utils/classNames.d.ts +7 -0
- package/dist/utils/classNames.js +9 -0
- package/dist/utils/columnMediaDimensions.d.ts +13 -0
- package/dist/utils/columnMediaDimensions.js +29 -0
- package/dist/utils/columnVisibilityStorage.d.ts +22 -0
- package/dist/utils/columnVisibilityStorage.js +56 -0
- package/dist/utils/fieldErrors.d.ts +13 -0
- package/dist/utils/fieldErrors.js +25 -0
- package/dist/utils/formatValue.d.ts +28 -0
- package/dist/utils/formatValue.js +109 -0
- package/dist/utils/layoutStorage.d.ts +23 -0
- package/dist/utils/layoutStorage.js +53 -0
- package/dist/utils/redirectHandler.d.ts +7 -0
- package/dist/utils/redirectHandler.js +25 -0
- package/dist/utils/tableFormatters.d.ts +14 -0
- package/dist/utils/tableFormatters.js +93 -0
- package/dist/utils/widgetVisibilityStorage.d.ts +11 -0
- package/dist/utils/widgetVisibilityStorage.js +39 -0
- package/package.json +101 -0
- package/src/FieldRenderer.test.tsx +44 -0
- package/src/FieldRenderer.tsx +104 -0
- package/src/FormRenderer.containers.test.tsx +121 -0
- package/src/FormRenderer.test.tsx +174 -0
- package/src/FormRenderer.tsx +140 -0
- package/src/TableRenderer.tsx +2 -0
- package/src/api/actionsApi.ts +76 -0
- package/src/api/authenticatedFetch.ts +40 -0
- package/src/api/exportApi.ts +66 -0
- package/src/api/http.test.ts +58 -0
- package/src/api/http.ts +68 -0
- package/src/api/resourceApi.ts +88 -0
- package/src/api/tableApi.test.ts +108 -0
- package/src/api/tableApi.ts +107 -0
- package/src/api/urls.ts +50 -0
- package/src/app.test.tsx +67 -0
- package/src/app.tsx +181 -0
- package/src/auth/AuthContext.tsx +188 -0
- package/src/auth/LoginPage.tsx +380 -0
- package/src/auth/ProtectedRoute.tsx +39 -0
- package/src/auth/authApiClient.ts +109 -0
- package/src/auth/authFlow.test.tsx +168 -0
- package/src/auth/types.ts +104 -0
- package/src/components/ActionFormModal.tsx +45 -0
- package/src/components/AdminPanel.tsx +368 -0
- package/src/components/Checkbox.tsx +59 -0
- package/src/components/CheckboxField.tsx +88 -0
- package/src/components/ColorPickerField.tsx +93 -0
- package/src/components/DateTimePickerField.tsx +112 -0
- package/src/components/FileUploadField.tsx +841 -0
- package/src/components/GlobalSearch.tsx +436 -0
- package/src/components/GroupField.tsx +85 -0
- package/src/components/HiddenField.tsx +14 -0
- package/src/components/ModalBreadcrumb.tsx +74 -0
- package/src/components/ModalDrawer.tsx +137 -0
- package/src/components/RadioField.tsx +80 -0
- package/src/components/RepeaterField.tsx +546 -0
- package/src/components/ResourceModalRenderer.tsx +144 -0
- package/src/components/RichEditorField.tsx +942 -0
- package/src/components/SectionField.tsx +242 -0
- package/src/components/SelectField.tsx +843 -0
- package/src/components/TabsField.test.tsx +151 -0
- package/src/components/TabsField.tsx +386 -0
- package/src/components/TagsInputField.tsx +411 -0
- package/src/components/TextInputField.tsx +91 -0
- package/src/components/TextareaField.tsx +110 -0
- package/src/components/ToggleField.tsx +126 -0
- package/src/components/ViewModal.tsx +353 -0
- package/src/components/blocks/BlockRenderer.tsx +56 -0
- package/src/components/blocks/FormBlockRenderer.tsx +160 -0
- package/src/components/blocks/TableBlockRenderer.tsx +33 -0
- package/src/components/blocks/TabsBlockRenderer.tsx +49 -0
- package/src/components/blocks/WidgetBlockRenderer.tsx +19 -0
- package/src/components/columns/CheckboxColumnComponent.tsx +38 -0
- package/src/components/columns/ColorColumnComponent.tsx +23 -0
- package/src/components/columns/CustomColumn.test.tsx +55 -0
- package/src/components/columns/DeeplinkWrapper.tsx +103 -0
- package/src/components/columns/IconColumnComponent.tsx +55 -0
- package/src/components/columns/ImageColumnComponent.tsx +220 -0
- package/src/components/columns/MediaColumnComponent.tsx +294 -0
- package/src/components/columns/SelectColumnComponent.tsx +49 -0
- package/src/components/columns/TagsColumnComponent.tsx +46 -0
- package/src/components/columns/TextColumnComponent.tsx +191 -0
- package/src/components/columns/TextInputColumnComponent.tsx +35 -0
- package/src/components/columns/ToggleColumnComponent.tsx +56 -0
- package/src/components/columns/VideoColumnComponent.tsx +236 -0
- package/src/components/columns/ViewColumnComponent.tsx +9 -0
- package/src/components/errors/ErrorBoundary.tsx +58 -0
- package/src/components/filters/CustomFilterComponent.tsx +130 -0
- package/src/components/filters/DateFilterComponent.tsx +272 -0
- package/src/components/filters/QueryBuilderFilterComponent.tsx +502 -0
- package/src/components/layout/Header.tsx +212 -0
- package/src/components/layout/PanelBrandMark.tsx +61 -0
- package/src/components/layout/Sidebar.tsx +283 -0
- package/src/components/modals/RelationCreateModal.tsx +107 -0
- package/src/components/modals/ResourceFormModal.test.tsx +119 -0
- package/src/components/modals/ResourceFormModal.tsx +128 -0
- package/src/components/modals/useResourceForm.ts +207 -0
- package/src/components/modals/view/RecordActions.tsx +69 -0
- package/src/components/modals/view/RecordDetails.tsx +60 -0
- package/src/components/modals/view/RelationPanel.tsx +76 -0
- package/src/components/modals/view/RelationTabs.tsx +145 -0
- package/src/components/modals/view/useRecordView.ts +134 -0
- package/src/components/pages/PageRenderer.tsx +173 -0
- package/src/components/table/ColumnTogglePopup.tsx +85 -0
- package/src/components/table/GridCard.tsx +155 -0
- package/src/components/table/GridView.tsx +138 -0
- package/src/components/table/LayoutToggle.tsx +24 -0
- package/src/components/table/TableActionsDropdown.tsx +114 -0
- package/src/components/table/TableBulkActions.tsx +65 -0
- package/src/components/table/TableHeader.tsx +96 -0
- package/src/components/table/TablePagination.tsx +169 -0
- package/src/components/table/TableRow.tsx +155 -0
- package/src/components/table/TableSearchBar.tsx +66 -0
- package/src/components/table/TableTabs.tsx +49 -0
- package/src/components/ui/Badge.tsx +30 -0
- package/src/components/ui/Button.test.tsx +78 -0
- package/src/components/ui/Button.tsx +102 -0
- package/src/components/ui/Card.tsx +23 -0
- package/src/components/ui/ConfirmDialog.tsx +112 -0
- package/src/components/ui/EmptyState.tsx +24 -0
- package/src/components/ui/ErrorAlert.tsx +37 -0
- package/src/components/ui/Input.tsx +48 -0
- package/src/components/ui/Label.tsx +15 -0
- package/src/components/ui/PillButton.tsx +72 -0
- package/src/components/ui/Select.tsx +33 -0
- package/src/components/ui/Spinner.tsx +39 -0
- package/src/components/ui/Toast.tsx +105 -0
- package/src/components/ui/index.ts +24 -0
- package/src/components/utils/HintDisplay.tsx +26 -0
- package/src/components/utils/Icon.tsx +36 -0
- package/src/components/utils/MediaPreviewModal.tsx +114 -0
- package/src/components/utils/ViewFieldWrapper.tsx +23 -0
- package/src/components/utils/layoutHelpers.ts +267 -0
- package/src/components/widgets/ChartWidget.tsx +247 -0
- package/src/components/widgets/StatsWidget.tsx +72 -0
- package/src/components/widgets/WidgetRenderer.tsx +108 -0
- package/src/components/widgets/WidgetShell.tsx +37 -0
- package/src/contexts/AuthChallengeRegistryContext.tsx +29 -0
- package/src/contexts/BlockRegistryContext.tsx +28 -0
- package/src/contexts/ColumnRegistryContext.tsx +38 -0
- package/src/contexts/FieldRegistryContext.tsx +56 -0
- package/src/contexts/PanelMetadataContext.tsx +60 -0
- package/src/contexts/PanelProviders.tsx +85 -0
- package/src/contexts/ResourceModalContext.tsx +137 -0
- package/src/contexts/SlotRegistryContext.tsx +35 -0
- package/src/contexts/TableRefreshContext.tsx +44 -0
- package/src/contexts/WidgetRegistryContext.tsx +34 -0
- package/src/contexts/createRegistryContext.tsx +29 -0
- package/src/hooks/useAfterStateUpdated.ts +70 -0
- package/src/hooks/useValidation.test.ts +59 -0
- package/src/hooks/useValidation.ts +95 -0
- package/src/i18n/I18nProvider.tsx +128 -0
- package/src/i18n/LocaleSwitcher.tsx +50 -0
- package/src/i18n/activeLocale.ts +39 -0
- package/src/i18n/buildClientI18n.ts +101 -0
- package/src/i18n/i18n.test.tsx +140 -0
- package/src/i18n/index.ts +12 -0
- package/src/i18n/locales/core/en.ts +274 -0
- package/src/i18n/locales/core/index.ts +5 -0
- package/src/i18n/locales/core/sq.ts +275 -0
- package/src/i18n/useFormatter.ts +42 -0
- package/src/i18n/useLocale.ts +16 -0
- package/src/i18n/useTranslation.ts +17 -0
- package/src/index.ts +244 -0
- package/src/pages/ResourceListPage.tsx +205 -0
- package/src/plugin.ts +110 -0
- package/src/runtime/conditions.test.ts +99 -0
- package/src/runtime/conditions.ts +148 -0
- package/src/runtime/formTraversal.ts +41 -0
- package/src/runtime/serializedFunctions.test.ts +59 -0
- package/src/runtime/serializedFunctions.ts +284 -0
- package/src/slots/Slot.test.tsx +89 -0
- package/src/slots/Slot.tsx +47 -0
- package/src/slots/SlotCluster.test.tsx +95 -0
- package/src/slots/SlotCluster.tsx +107 -0
- package/src/slots/index.ts +15 -0
- package/src/slots/mergeSlots.test.ts +71 -0
- package/src/slots/mergeSlots.ts +40 -0
- package/src/slots/slotNames.test.ts +21 -0
- package/src/slots/types.ts +119 -0
- package/src/styles.css +437 -0
- package/src/table/TableContext.tsx +41 -0
- package/src/table/TableRenderer.test.tsx +197 -0
- package/src/table/TableRenderer.tsx +390 -0
- package/src/table/components/FiltersPanel.tsx +193 -0
- package/src/table/components/TableToolbar.tsx +153 -0
- package/src/table/components/TableToolbarButton.tsx +14 -0
- package/src/table/components/TableView.tsx +106 -0
- package/src/table/defaultRowActions.ts +43 -0
- package/src/table/hooks/useColumnVisibility.test.ts +51 -0
- package/src/table/hooks/useColumnVisibility.ts +71 -0
- package/src/table/hooks/useEditableRows.test.ts +69 -0
- package/src/table/hooks/useEditableRows.ts +89 -0
- package/src/table/hooks/useTableActions.ts +393 -0
- package/src/table/hooks/useTableData.ts +89 -0
- package/src/table/hooks/useTableLayout.ts +45 -0
- package/src/table/hooks/useTableQuery.test.ts +116 -0
- package/src/table/hooks/useTableQuery.ts +172 -0
- package/src/test/mockFetch.ts +67 -0
- package/src/test/setup.ts +25 -0
- package/src/types/index.ts +228 -0
- package/src/utils/classNames.ts +10 -0
- package/src/utils/columnMediaDimensions.ts +45 -0
- package/src/utils/columnVisibilityStorage.ts +55 -0
- package/src/utils/fieldErrors.test.ts +35 -0
- package/src/utils/fieldErrors.ts +27 -0
- package/src/utils/formatValue.test.tsx +65 -0
- package/src/utils/formatValue.tsx +117 -0
- package/src/utils/layoutStorage.ts +52 -0
- package/src/utils/redirectHandler.ts +29 -0
- package/src/utils/tableFormatters.test.ts +54 -0
- package/src/utils/tableFormatters.ts +104 -0
- package/src/utils/widgetVisibilityStorage.ts +38 -0
- package/tailwind.config.js +9 -0
- package/vite.config.ts +17 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
declare const sq: {
|
|
2
|
+
'validation.required_generic': string;
|
|
3
|
+
'validation.required': string;
|
|
4
|
+
'validation.email': string;
|
|
5
|
+
'validation.url': string;
|
|
6
|
+
'validation.integer': string;
|
|
7
|
+
'validation.numeric': string;
|
|
8
|
+
'validation.alpha': string;
|
|
9
|
+
'validation.alpha_num': string;
|
|
10
|
+
'validation.alpha_dash': string;
|
|
11
|
+
'validation.uuid': string;
|
|
12
|
+
'validation.json': string;
|
|
13
|
+
'validation.regex': string;
|
|
14
|
+
'validation.min.string': string;
|
|
15
|
+
'validation.max.string': string;
|
|
16
|
+
'validation.min.number': string;
|
|
17
|
+
'validation.max.number': string;
|
|
18
|
+
'validation.min_value': string;
|
|
19
|
+
'validation.max_value': string;
|
|
20
|
+
'validation.same': string;
|
|
21
|
+
'validation.confirmed': string;
|
|
22
|
+
'validation.invalid': string;
|
|
23
|
+
'validation.type.string': string;
|
|
24
|
+
'validation.type.number': string;
|
|
25
|
+
'validation.type.boolean': string;
|
|
26
|
+
'validation.type.array': string;
|
|
27
|
+
'validation.type.array_items': string;
|
|
28
|
+
'validation.type.object': string;
|
|
29
|
+
'validation.type.date': string;
|
|
30
|
+
'validation.readonly': string;
|
|
31
|
+
'validation.invalid_option': string;
|
|
32
|
+
'common.save': string;
|
|
33
|
+
'common.cancel': string;
|
|
34
|
+
'common.confirm': string;
|
|
35
|
+
'common.delete': string;
|
|
36
|
+
'common.close': string;
|
|
37
|
+
'common.submit': string;
|
|
38
|
+
'common.submitting': string;
|
|
39
|
+
'common.reset': string;
|
|
40
|
+
'common.retry': string;
|
|
41
|
+
'common.actions': string;
|
|
42
|
+
'common.more': string;
|
|
43
|
+
'common.yes': string;
|
|
44
|
+
'common.no': string;
|
|
45
|
+
'common.loading': string;
|
|
46
|
+
'common.search': string;
|
|
47
|
+
'panel.loading': string;
|
|
48
|
+
'panel.connection_error': string;
|
|
49
|
+
'panel.empty': string;
|
|
50
|
+
'panel.sign_out': string;
|
|
51
|
+
'panel.open_menu': string;
|
|
52
|
+
'panel.toggle_dark': string;
|
|
53
|
+
'panel.toggle_light': string;
|
|
54
|
+
'panel.language': string;
|
|
55
|
+
'table.no_records': string;
|
|
56
|
+
'table.no_records_hint': string;
|
|
57
|
+
'table.filters': string;
|
|
58
|
+
'table.row_actions': string;
|
|
59
|
+
'form.create_title': string;
|
|
60
|
+
'form.edit_title': string;
|
|
61
|
+
'form.editing_title': string;
|
|
62
|
+
'form.action_failed': string;
|
|
63
|
+
'form.create_failed': string;
|
|
64
|
+
'form.update_failed': string;
|
|
65
|
+
'form.confirm_bulk': string;
|
|
66
|
+
'auth.welcome_back': string;
|
|
67
|
+
'auth.sign_in': string;
|
|
68
|
+
'auth.sign_in_to': string;
|
|
69
|
+
'auth.email': string;
|
|
70
|
+
'auth.email_placeholder': string;
|
|
71
|
+
'auth.password': string;
|
|
72
|
+
'auth.password_placeholder': string;
|
|
73
|
+
'auth.choose_provider': string;
|
|
74
|
+
'auth.enter_credentials': string;
|
|
75
|
+
'auth.continue': string;
|
|
76
|
+
'auth.verify_identity': string;
|
|
77
|
+
'auth.back_to_options': string;
|
|
78
|
+
'auth.no_providers': string;
|
|
79
|
+
'auth.login_failed': string;
|
|
80
|
+
'auth.verification_failed': string;
|
|
81
|
+
'common.move_up': string;
|
|
82
|
+
'common.move_down': string;
|
|
83
|
+
'common.move_left': string;
|
|
84
|
+
'common.move_right': string;
|
|
85
|
+
'common.copy_url': string;
|
|
86
|
+
'common.clear': string;
|
|
87
|
+
'common.create': string;
|
|
88
|
+
'common.edit': string;
|
|
89
|
+
'common.view': string;
|
|
90
|
+
'common.apply': string;
|
|
91
|
+
'common.add': string;
|
|
92
|
+
'common.remove': string;
|
|
93
|
+
'common.upload': string;
|
|
94
|
+
'common.dismiss': string;
|
|
95
|
+
'table.create_record': string;
|
|
96
|
+
'table.column_settings': string;
|
|
97
|
+
'table.no_toggleable_columns': string;
|
|
98
|
+
'table.close_filters': string;
|
|
99
|
+
'table.view_tabs': string;
|
|
100
|
+
'table.save_changes': string;
|
|
101
|
+
'table.reset_changes': string;
|
|
102
|
+
'pagination.per_page': string;
|
|
103
|
+
'pagination.previous': string;
|
|
104
|
+
'pagination.next': string;
|
|
105
|
+
'search.records': string;
|
|
106
|
+
'search.close': string;
|
|
107
|
+
'search.clear': string;
|
|
108
|
+
'filters.from_date': string;
|
|
109
|
+
'filters.to_date': string;
|
|
110
|
+
'filters.from': string;
|
|
111
|
+
'filters.to': string;
|
|
112
|
+
'filters.date': string;
|
|
113
|
+
'filters.value': string;
|
|
114
|
+
'filters.range': string;
|
|
115
|
+
'filters.no_rules': string;
|
|
116
|
+
'modal.close': string;
|
|
117
|
+
'modal.close_all': string;
|
|
118
|
+
'modal.stack': string;
|
|
119
|
+
'modal.sections': string;
|
|
120
|
+
'confirm.delete_item_title': string;
|
|
121
|
+
'confirm.delete_item_message': string;
|
|
122
|
+
'confirm.delete_items_title': string;
|
|
123
|
+
'confirm.delete_items_message': string;
|
|
124
|
+
'confirm.action_single': string;
|
|
125
|
+
'confirm.action_generic': string;
|
|
126
|
+
'toast.delete_failed': string;
|
|
127
|
+
'toast.deleted': string;
|
|
128
|
+
'toast.upload_failed': string;
|
|
129
|
+
'toast.invalid_html': string;
|
|
130
|
+
'file.uploaded': string;
|
|
131
|
+
'file.drop_here': string;
|
|
132
|
+
'file.click_to_upload': string;
|
|
133
|
+
'file.video': string;
|
|
134
|
+
'file.audio': string;
|
|
135
|
+
'file.saved': string;
|
|
136
|
+
'file.no_image': string;
|
|
137
|
+
'state.no_fields': string;
|
|
138
|
+
'state.no_data': string;
|
|
139
|
+
'state.page_not_found': string;
|
|
140
|
+
'editor.html_placeholder': string;
|
|
141
|
+
'tags.label': string;
|
|
142
|
+
'repeater.active_tab': string;
|
|
143
|
+
'a11y.color_preview': string;
|
|
144
|
+
'a11y.main_navigation': string;
|
|
145
|
+
'a11y.tab_errors': string;
|
|
146
|
+
'editor.bold': string;
|
|
147
|
+
'editor.italic': string;
|
|
148
|
+
'editor.underline': string;
|
|
149
|
+
'editor.strikethrough': string;
|
|
150
|
+
'editor.code': string;
|
|
151
|
+
'editor.code_block': string;
|
|
152
|
+
'editor.heading1': string;
|
|
153
|
+
'editor.heading2': string;
|
|
154
|
+
'editor.heading3': string;
|
|
155
|
+
'editor.bullet_list': string;
|
|
156
|
+
'editor.ordered_list': string;
|
|
157
|
+
'editor.blockquote': string;
|
|
158
|
+
'editor.undo': string;
|
|
159
|
+
'editor.redo': string;
|
|
160
|
+
'editor.link': string;
|
|
161
|
+
'editor.subscript': string;
|
|
162
|
+
'editor.superscript': string;
|
|
163
|
+
'editor.highlight': string;
|
|
164
|
+
'editor.align_left': string;
|
|
165
|
+
'editor.align_center': string;
|
|
166
|
+
'editor.align_right': string;
|
|
167
|
+
'editor.insert_image': string;
|
|
168
|
+
'editor.insert_video': string;
|
|
169
|
+
'table.column_visibility': string;
|
|
170
|
+
'pagination.per_page_short': string;
|
|
171
|
+
'filters.query_builder': string;
|
|
172
|
+
'search.start_typing': string;
|
|
173
|
+
'common.loading_ellipsis': string;
|
|
174
|
+
'search.subtitle': string;
|
|
175
|
+
'state.no_table_schema': string;
|
|
176
|
+
'pagination.range_compact': string;
|
|
177
|
+
'pagination.showing': string;
|
|
178
|
+
'auth.preparing': string;
|
|
179
|
+
'repeater.empty': string;
|
|
180
|
+
'select.create': string;
|
|
181
|
+
'select.loading': string;
|
|
182
|
+
'filters.add_rule_hint': string;
|
|
183
|
+
'page.loading': string;
|
|
184
|
+
'page.no_content': string;
|
|
185
|
+
'modal.view_title': string;
|
|
186
|
+
'modal.view_record': string;
|
|
187
|
+
'auth.back_to_signin': string;
|
|
188
|
+
'auth.providers_load_failed': string;
|
|
189
|
+
'editor.insert_audio': string;
|
|
190
|
+
'editor.insert_embed': string;
|
|
191
|
+
'editor.html_source': string;
|
|
192
|
+
'filters.preset_today': string;
|
|
193
|
+
'filters.preset_yesterday': string;
|
|
194
|
+
'filters.preset_this_week': string;
|
|
195
|
+
'filters.preset_this_month': string;
|
|
196
|
+
'filters.preset_this_year': string;
|
|
197
|
+
'filters.preset_custom': string;
|
|
198
|
+
'common.warning': string;
|
|
199
|
+
'state.unknown_field': string;
|
|
200
|
+
'state.unknown_column': string;
|
|
201
|
+
'error.connect': string;
|
|
202
|
+
'error.load_data': string;
|
|
203
|
+
'error.load_schema': string;
|
|
204
|
+
'search.nav_navigate': string;
|
|
205
|
+
'search.nav_open': string;
|
|
206
|
+
'search.nav_close': string;
|
|
207
|
+
'common.clear_all': string;
|
|
208
|
+
'common.done': string;
|
|
209
|
+
'common.all': string;
|
|
210
|
+
'common.try_again': string;
|
|
211
|
+
'common.details': string;
|
|
212
|
+
'common.widgets': string;
|
|
213
|
+
'filters.label_from': string;
|
|
214
|
+
'filters.label_to': string;
|
|
215
|
+
'filters.no_options': string;
|
|
216
|
+
'filters.clear_all_filters': string;
|
|
217
|
+
'filters.from_value': string;
|
|
218
|
+
'filters.until_value': string;
|
|
219
|
+
'filters.select_range': string;
|
|
220
|
+
'confirm.are_you_sure': string;
|
|
221
|
+
'common.item': string;
|
|
222
|
+
'form.submitted': string;
|
|
223
|
+
'select.placeholder': string;
|
|
224
|
+
'select.create_new': string;
|
|
225
|
+
'common.record': string;
|
|
226
|
+
'editor.start_typing': string;
|
|
227
|
+
'error.load_record': string;
|
|
228
|
+
'error.load_page': string;
|
|
229
|
+
'file.video_preview': string;
|
|
230
|
+
'common.preview': string;
|
|
231
|
+
'common.image': string;
|
|
232
|
+
'common.file': string;
|
|
233
|
+
'editor.rich_text_view': string;
|
|
234
|
+
'select.no_matching': string;
|
|
235
|
+
'table.switch_grid': string;
|
|
236
|
+
'table.switch_table': string;
|
|
237
|
+
'table.hide_widgets': string;
|
|
238
|
+
'table.show_widgets': string;
|
|
239
|
+
'error.action_failed': string;
|
|
240
|
+
'error.action_failed_bulk': string;
|
|
241
|
+
'common.video_thumbnail': string;
|
|
242
|
+
'common.error': string;
|
|
243
|
+
'widget.data_label': string;
|
|
244
|
+
'filters.advanced_search': string;
|
|
245
|
+
'error.fetch_form_data': string;
|
|
246
|
+
'error.fetch_form_data_generic': string;
|
|
247
|
+
'error.submit_form': string;
|
|
248
|
+
'error.generic': string;
|
|
249
|
+
'error.export_failed': string;
|
|
250
|
+
'error.delete_failed': string;
|
|
251
|
+
'error.bulk_action_failed': string;
|
|
252
|
+
};
|
|
253
|
+
export default sq;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
// Client UI-chrome catalog (Albanian / Shqip). Namespace: `core`. Mirrors ./en.ts.
|
|
2
|
+
const sq = {
|
|
3
|
+
// Validation messages (Albanian) — mirrors the server core sq catalog.
|
|
4
|
+
'validation.required_generic': 'Kjo fushë është e detyrueshme',
|
|
5
|
+
'validation.required': 'Fusha "{label}" është e detyrueshme',
|
|
6
|
+
'validation.email': 'Fusha "{label}" duhet të jetë një email i vlefshëm',
|
|
7
|
+
'validation.url': 'Fusha "{label}" duhet të jetë një URL e vlefshme',
|
|
8
|
+
'validation.integer': 'Fusha "{label}" duhet të jetë një numër i plotë',
|
|
9
|
+
'validation.numeric': 'Fusha "{label}" duhet të jetë numerike',
|
|
10
|
+
'validation.alpha': 'Fusha "{label}" mund të përmbajë vetëm shkronja',
|
|
11
|
+
'validation.alpha_num': 'Fusha "{label}" mund të përmbajë vetëm shkronja dhe numra',
|
|
12
|
+
'validation.alpha_dash': 'Fusha "{label}" mund të përmbajë vetëm shkronja, numra, vija dhe nënvija',
|
|
13
|
+
'validation.uuid': 'Fusha "{label}" duhet të jetë një UUID i vlefshëm',
|
|
14
|
+
'validation.json': 'Fusha "{label}" duhet të jetë JSON i vlefshëm',
|
|
15
|
+
'validation.regex': 'Fusha "{label}" nuk përputhet me modelin e kërkuar',
|
|
16
|
+
'validation.min.string': 'Fusha "{label}" duhet të ketë të paktën {param} karaktere',
|
|
17
|
+
'validation.max.string': 'Fusha "{label}" duhet të ketë më së shumti {param} karaktere',
|
|
18
|
+
'validation.min.number': 'Fusha "{label}" duhet të jetë të paktën {param}',
|
|
19
|
+
'validation.max.number': 'Fusha "{label}" duhet të jetë më së shumti {param}',
|
|
20
|
+
'validation.min_value': 'Fusha "{label}" duhet të jetë të paktën {param}',
|
|
21
|
+
'validation.max_value': 'Fusha "{label}" duhet të jetë më së shumti {param}',
|
|
22
|
+
'validation.same': 'Fusha "{label}" duhet të përputhet me {param}',
|
|
23
|
+
'validation.confirmed': 'Konfirmimi i fushës "{label}" nuk përputhet',
|
|
24
|
+
'validation.invalid': 'Fusha "{label}" është e pavlefshme',
|
|
25
|
+
'validation.type.string': 'Fusha "{label}" duhet të jetë tekst',
|
|
26
|
+
'validation.type.number': 'Fusha "{label}" duhet të jetë numër',
|
|
27
|
+
'validation.type.boolean': 'Fusha "{label}" duhet të jetë vlerë logjike',
|
|
28
|
+
'validation.type.array': 'Fusha "{label}" duhet të jetë varg',
|
|
29
|
+
'validation.type.array_items': 'Fusha "{label}" duhet të jetë një varg me tekste ose numra',
|
|
30
|
+
'validation.type.object': 'Fusha "{label}" duhet të jetë objekt',
|
|
31
|
+
'validation.type.date': 'Fusha "{label}" duhet të jetë një datë e vlefshme',
|
|
32
|
+
'validation.readonly': 'Fusha "{label}" është vetëm për lexim',
|
|
33
|
+
'validation.invalid_option': 'Fusha "{label}" ka një opsion të pavlefshëm',
|
|
34
|
+
'common.save': 'Ruaj',
|
|
35
|
+
'common.cancel': 'Anulo',
|
|
36
|
+
'common.confirm': 'Konfirmo',
|
|
37
|
+
'common.delete': 'Fshi',
|
|
38
|
+
'common.close': 'Mbyll',
|
|
39
|
+
'common.submit': 'Dërgo',
|
|
40
|
+
'common.submitting': 'Duke dërguar...',
|
|
41
|
+
'common.reset': 'Rivendos',
|
|
42
|
+
'common.retry': 'Provo përsëri',
|
|
43
|
+
'common.actions': 'Veprime',
|
|
44
|
+
'common.more': 'Më shumë',
|
|
45
|
+
'common.yes': 'Po',
|
|
46
|
+
'common.no': 'Jo',
|
|
47
|
+
'common.loading': 'Duke ngarkuar',
|
|
48
|
+
'common.search': 'Kërko regjistrime…',
|
|
49
|
+
'panel.loading': 'Duke ngarkuar panelin KratosJs...',
|
|
50
|
+
'panel.connection_error': 'Gabim lidhjeje',
|
|
51
|
+
'panel.empty': 'Nuk ka burime ose faqe në këtë panel',
|
|
52
|
+
'panel.sign_out': 'Dil',
|
|
53
|
+
'panel.open_menu': 'Hap menynë e navigimit',
|
|
54
|
+
'panel.toggle_dark': 'Kalo në modalitetin e errët',
|
|
55
|
+
'panel.toggle_light': 'Kalo në modalitetin e ndritshëm',
|
|
56
|
+
'panel.language': 'Gjuha',
|
|
57
|
+
'table.no_records': 'Nuk u gjetën regjistrime',
|
|
58
|
+
'table.no_records_hint': 'Provoni të ndryshoni kërkimin ose filtrat.',
|
|
59
|
+
'table.filters': 'Filtra',
|
|
60
|
+
'table.row_actions': 'Veprime rreshti',
|
|
61
|
+
'form.create_title': 'Krijo {label}',
|
|
62
|
+
'form.edit_title': 'Ndrysho {label}',
|
|
63
|
+
'form.editing_title': 'Duke ndryshuar "{title}"',
|
|
64
|
+
'form.action_failed': 'Veprimi dështoi',
|
|
65
|
+
'form.create_failed': 'Krijimi i regjistrimit dështoi',
|
|
66
|
+
'form.update_failed': 'Përditësimi i regjistrimit dështoi',
|
|
67
|
+
'form.confirm_bulk': 'Jeni i sigurt që doni të {action} {count} artikuj?',
|
|
68
|
+
'auth.welcome_back': 'Mirë se erdhe',
|
|
69
|
+
'auth.sign_in': 'Hyr',
|
|
70
|
+
'auth.sign_in_to': 'Hyr në {title}',
|
|
71
|
+
'auth.email': 'Email',
|
|
72
|
+
'auth.email_placeholder': 'ti@kompania.com',
|
|
73
|
+
'auth.password': 'Fjalëkalimi',
|
|
74
|
+
'auth.password_placeholder': 'Shkruani fjalëkalimin tuaj',
|
|
75
|
+
'auth.choose_provider': 'Zgjidhni si dëshironi të hyni',
|
|
76
|
+
'auth.enter_credentials': 'Shkruani kredencialet tuaja për të vazhduar',
|
|
77
|
+
'auth.continue': 'Vazhdoni për të hyrë në llogarinë tuaj',
|
|
78
|
+
'auth.verify_identity': 'Verifikoni identitetin tuaj',
|
|
79
|
+
'auth.back_to_options': 'Kthehu te opsionet e hyrjes',
|
|
80
|
+
'auth.no_providers': 'Nuk ka ofrues autentifikimi të konfiguruar.',
|
|
81
|
+
'auth.login_failed': 'Hyrja dështoi',
|
|
82
|
+
'auth.verification_failed': 'Verifikimi dështoi',
|
|
83
|
+
'common.move_up': 'Lëviz lart',
|
|
84
|
+
'common.move_down': 'Lëviz poshtë',
|
|
85
|
+
'common.move_left': 'Lëviz majtas',
|
|
86
|
+
'common.move_right': 'Lëviz djathtas',
|
|
87
|
+
'common.copy_url': 'Kopjo URL-në',
|
|
88
|
+
'common.clear': 'Pastro',
|
|
89
|
+
'common.create': 'Krijo',
|
|
90
|
+
'common.edit': 'Ndrysho',
|
|
91
|
+
'common.view': 'Shiko',
|
|
92
|
+
'common.apply': 'Apliko',
|
|
93
|
+
'common.add': 'Shto',
|
|
94
|
+
'common.remove': 'Hiq',
|
|
95
|
+
'common.upload': 'Ngarko',
|
|
96
|
+
'common.dismiss': 'Mbyll',
|
|
97
|
+
'table.create_record': 'Krijo regjistrim',
|
|
98
|
+
'table.column_settings': 'Cilësimet e kolonave',
|
|
99
|
+
'table.no_toggleable_columns': 'Nuk ka kolona të ndryshueshme',
|
|
100
|
+
'table.close_filters': 'Mbyll filtrat',
|
|
101
|
+
'table.view_tabs': 'Skedat e pamjes së tabelës',
|
|
102
|
+
'table.save_changes': 'Ruaj ndryshimet',
|
|
103
|
+
'table.reset_changes': 'Rivendos ndryshimet',
|
|
104
|
+
'pagination.per_page': 'Rezultate për faqe',
|
|
105
|
+
'pagination.previous': 'Faqja e mëparshme',
|
|
106
|
+
'pagination.next': 'Faqja tjetër',
|
|
107
|
+
'search.records': 'Kërko regjistrime',
|
|
108
|
+
'search.close': 'Mbyll kërkimin',
|
|
109
|
+
'search.clear': 'Pastro kërkimin',
|
|
110
|
+
'filters.from_date': 'Nga data...',
|
|
111
|
+
'filters.to_date': 'Deri më datë...',
|
|
112
|
+
'filters.from': 'Nga...',
|
|
113
|
+
'filters.to': 'Deri...',
|
|
114
|
+
'filters.date': 'Data...',
|
|
115
|
+
'filters.value': 'Vlera...',
|
|
116
|
+
'filters.range': 'Interval',
|
|
117
|
+
'filters.no_rules': 'Ende nuk ka rregulla',
|
|
118
|
+
'modal.close': 'Mbyll',
|
|
119
|
+
'modal.close_all': 'Mbyll të gjitha',
|
|
120
|
+
'modal.stack': 'Pirgu i dritareve',
|
|
121
|
+
'modal.sections': 'Seksionet e regjistrimit',
|
|
122
|
+
'confirm.delete_item_title': 'Fshi artikullin',
|
|
123
|
+
'confirm.delete_item_message': 'Jeni i sigurt që doni ta fshini këtë artikull? Kjo nuk mund të zhbëhet.',
|
|
124
|
+
'confirm.delete_items_title': 'Fshi artikujt',
|
|
125
|
+
'confirm.delete_items_message': 'Jeni i sigurt që doni të fshini {count} artikuj? Kjo nuk mund të zhbëhet.',
|
|
126
|
+
'confirm.action_single': 'Jeni i sigurt që doni të {action} këtë artikull?',
|
|
127
|
+
'confirm.action_generic': 'Jeni i sigurt që doni të {action}?',
|
|
128
|
+
'toast.delete_failed': 'Fshirja e artikullit dështoi',
|
|
129
|
+
'toast.deleted': 'Artikulli u fshi me sukses',
|
|
130
|
+
'toast.upload_failed': 'Ngarkimi i skedarit dështoi',
|
|
131
|
+
'toast.invalid_html': 'HTML i pavlefshëm. Ju lutemi kontrolloni kodin tuaj.',
|
|
132
|
+
'file.uploaded': 'Skedari u ngarkua',
|
|
133
|
+
'file.drop_here': 'Lëshoni skedarët këtu',
|
|
134
|
+
'file.click_to_upload': 'Klikoni për të ngarkuar',
|
|
135
|
+
'file.video': 'Video',
|
|
136
|
+
'file.audio': 'Audio',
|
|
137
|
+
'file.saved': 'Ruajtur',
|
|
138
|
+
'file.no_image': 'Nuk ka imazh',
|
|
139
|
+
'state.no_fields': 'Nuk ka fusha për të shfaqur',
|
|
140
|
+
'state.no_data': 'Nuk ka të dhëna',
|
|
141
|
+
'state.page_not_found': 'Faqja nuk u gjet',
|
|
142
|
+
'editor.html_placeholder': 'Shkruani kodin HTML këtu...',
|
|
143
|
+
'tags.label': 'Etiketa',
|
|
144
|
+
'repeater.active_tab': 'Skeda aktive',
|
|
145
|
+
'a11y.color_preview': 'Pamja paraprake e ngjyrës',
|
|
146
|
+
'a11y.main_navigation': 'Navigimi kryesor',
|
|
147
|
+
'a11y.tab_errors': 'Ka gabime validimi ose fusha të detyrueshme',
|
|
148
|
+
'editor.bold': 'Theksuar',
|
|
149
|
+
'editor.italic': 'Pjerrët',
|
|
150
|
+
'editor.underline': 'Nënvizuar',
|
|
151
|
+
'editor.strikethrough': 'Vijëzuar',
|
|
152
|
+
'editor.code': 'Kod',
|
|
153
|
+
'editor.code_block': 'Bllok kodi',
|
|
154
|
+
'editor.heading1': 'Titull 1',
|
|
155
|
+
'editor.heading2': 'Titull 2',
|
|
156
|
+
'editor.heading3': 'Titull 3',
|
|
157
|
+
'editor.bullet_list': 'Listë me pika',
|
|
158
|
+
'editor.ordered_list': 'Listë e numëruar',
|
|
159
|
+
'editor.blockquote': 'Citat',
|
|
160
|
+
'editor.undo': 'Zhbëj',
|
|
161
|
+
'editor.redo': 'Ribëj',
|
|
162
|
+
'editor.link': 'Lidhje',
|
|
163
|
+
'editor.subscript': 'Nënshkrim',
|
|
164
|
+
'editor.superscript': 'Mbishkrim',
|
|
165
|
+
'editor.highlight': 'Thekso',
|
|
166
|
+
'editor.align_left': 'Rreshto majtas',
|
|
167
|
+
'editor.align_center': 'Rreshto në qendër',
|
|
168
|
+
'editor.align_right': 'Rreshto djathtas',
|
|
169
|
+
'editor.insert_image': 'Fut imazh',
|
|
170
|
+
'editor.insert_video': 'Fut video',
|
|
171
|
+
'table.column_visibility': 'Dukshmëria e kolonave',
|
|
172
|
+
'pagination.per_page_short': 'Për faqe',
|
|
173
|
+
'filters.query_builder': 'Ndërtuesi i pyetjeve',
|
|
174
|
+
'search.start_typing': 'Filloni të shkruani për të parë rezultatet',
|
|
175
|
+
'common.loading_ellipsis': 'Duke ngarkuar...',
|
|
176
|
+
'search.subtitle': 'Kërkoni në të gjitha regjistrimet e këtij paneli',
|
|
177
|
+
'state.no_table_schema': 'Nuk ka skemë tabele për këtë burim',
|
|
178
|
+
'pagination.range_compact': '{start}–{end} nga {total}',
|
|
179
|
+
'pagination.showing': 'Duke shfaqur {start} deri {end} nga {total} rezultate',
|
|
180
|
+
'auth.preparing': 'Duke përgatitur hyrjen…',
|
|
181
|
+
'repeater.empty': 'Ende nuk ka artikuj. Klikoni butonin më poshtë për të shtuar një.',
|
|
182
|
+
'select.create': 'Krijo "{term}"',
|
|
183
|
+
'select.loading': 'Duke ngarkuar...',
|
|
184
|
+
'filters.add_rule_hint': 'Klikoni "Shto rregull" për të filluar ndërtimin e pyetjes suaj',
|
|
185
|
+
'page.loading': 'Duke ngarkuar faqen...',
|
|
186
|
+
'page.no_content': 'Kjo faqe nuk ka përmbajtje.',
|
|
187
|
+
'modal.view_title': 'Shiko {label}',
|
|
188
|
+
'modal.view_record': 'Shiko "{title}"',
|
|
189
|
+
'auth.back_to_signin': 'Kthehu te hyrja',
|
|
190
|
+
'auth.providers_load_failed': 'Ngarkimi i ofruesve të autentifikimit dështoi',
|
|
191
|
+
'editor.insert_audio': 'Fut audio',
|
|
192
|
+
'editor.insert_embed': 'Fut përmbajtje',
|
|
193
|
+
'editor.html_source': 'Burimi HTML',
|
|
194
|
+
'filters.preset_today': 'Sot',
|
|
195
|
+
'filters.preset_yesterday': 'Dje',
|
|
196
|
+
'filters.preset_this_week': 'Këtë javë',
|
|
197
|
+
'filters.preset_this_month': 'Këtë muaj',
|
|
198
|
+
'filters.preset_this_year': 'Këtë vit',
|
|
199
|
+
'filters.preset_custom': 'I personalizuar',
|
|
200
|
+
'common.warning': 'Kujdes',
|
|
201
|
+
'state.unknown_field': 'Lloj fushe i panjohur "{type}" për fushën "{name}"',
|
|
202
|
+
'state.unknown_column': 'Lloj kolone i panjohur: {type}',
|
|
203
|
+
'error.connect': 'Lidhja me API dështoi',
|
|
204
|
+
'error.load_data': 'Ngarkimi i të dhënave dështoi',
|
|
205
|
+
'error.load_schema': 'Ngarkimi i skemës së tabelës dështoi',
|
|
206
|
+
'search.nav_navigate': 'Lëviz',
|
|
207
|
+
'search.nav_open': 'Hap',
|
|
208
|
+
'search.nav_close': 'Mbyll',
|
|
209
|
+
'common.clear_all': 'Pastro të gjitha',
|
|
210
|
+
'common.done': 'U krye',
|
|
211
|
+
'common.all': 'Të gjitha',
|
|
212
|
+
'common.try_again': 'Provo përsëri',
|
|
213
|
+
'common.details': 'Detaje',
|
|
214
|
+
'common.widgets': 'Vegla',
|
|
215
|
+
'filters.label_from': 'Nga',
|
|
216
|
+
'filters.label_to': 'Deri',
|
|
217
|
+
'filters.no_options': 'Nuk ka opsione',
|
|
218
|
+
'filters.clear_all_filters': 'Pastro të gjithë filtrat',
|
|
219
|
+
'filters.from_value': 'Nga {date}',
|
|
220
|
+
'filters.until_value': 'Deri {date}',
|
|
221
|
+
'filters.select_range': 'Zgjidhni intervalin e datave...',
|
|
222
|
+
'confirm.are_you_sure': 'Jeni i sigurt?',
|
|
223
|
+
'common.item': 'Artikull',
|
|
224
|
+
'form.submitted': 'Formulari u dërgua me sukses!',
|
|
225
|
+
'select.placeholder': 'Zgjidhni...',
|
|
226
|
+
'select.create_new': 'Krijo i ri',
|
|
227
|
+
'common.record': 'Regjistrim',
|
|
228
|
+
'editor.start_typing': 'Filloni të shkruani...',
|
|
229
|
+
'error.load_record': 'Ngarkimi i regjistrimit dështoi',
|
|
230
|
+
'error.load_page': 'Ngarkimi i faqes dështoi',
|
|
231
|
+
'file.video_preview': 'Pamja paraprake e videos',
|
|
232
|
+
'common.preview': 'Pamje paraprake',
|
|
233
|
+
'common.image': 'Imazh',
|
|
234
|
+
'common.file': 'Skedar',
|
|
235
|
+
'editor.rich_text_view': 'Pamja e tekstit të pasur',
|
|
236
|
+
'select.no_matching': 'Nuk u gjetën opsione përputhëse',
|
|
237
|
+
'table.switch_grid': 'Kalo në pamjen rrjetë',
|
|
238
|
+
'table.switch_table': 'Kalo në pamjen tabelë',
|
|
239
|
+
'table.hide_widgets': 'Fshih veglat',
|
|
240
|
+
'table.show_widgets': 'Shfaq veglat',
|
|
241
|
+
'error.action_failed': 'Ekzekutimi i veprimit dështoi',
|
|
242
|
+
'error.action_failed_bulk': 'Ekzekutimi i veprimit në masë dështoi',
|
|
243
|
+
'common.video_thumbnail': 'Miniatura e videos',
|
|
244
|
+
'common.error': 'Gabim',
|
|
245
|
+
'widget.data_label': 'Të dhëna',
|
|
246
|
+
'filters.advanced_search': 'Kërkim i avancuar',
|
|
247
|
+
'error.fetch_form_data': 'Marrja e të dhënave të formularit dështoi',
|
|
248
|
+
'error.fetch_form_data_generic': 'Ndodhi një gabim gjatë marrjes së të dhënave të formularit',
|
|
249
|
+
'error.submit_form': 'Dërgimi i formularit dështoi',
|
|
250
|
+
'error.generic': 'Ndodhi një gabim',
|
|
251
|
+
'error.export_failed': 'Eksportimi dështoi',
|
|
252
|
+
'error.delete_failed': 'Fshirja dështoi',
|
|
253
|
+
'error.bulk_action_failed': 'Veprimi në masë dështoi',
|
|
254
|
+
};
|
|
255
|
+
export default sq;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale-aware `Intl` formatters bound to the active locale. Re-created when the
|
|
3
|
+
* locale changes so dates, numbers, currency, and relative times all localize.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* const fmt = useFormatter();
|
|
7
|
+
* fmt.date(row.createdAt); // 6/24/2026 / 24.6.2026
|
|
8
|
+
* fmt.currency(1234.5, 'EUR'); // €1,234.50
|
|
9
|
+
* fmt.relativeTime(-3, 'day'); // 3 days ago
|
|
10
|
+
*/
|
|
11
|
+
export declare function useFormatter(): {
|
|
12
|
+
locale: string;
|
|
13
|
+
date(value: Date | string | number, options?: Intl.DateTimeFormatOptions): string;
|
|
14
|
+
dateTime(value: Date | string | number, options?: Intl.DateTimeFormatOptions): string;
|
|
15
|
+
number(value: number, options?: Intl.NumberFormatOptions): string;
|
|
16
|
+
currency(value: number, currency?: string, options?: Intl.NumberFormatOptions): string;
|
|
17
|
+
relativeTime(value: number, unit: Intl.RelativeTimeFormatUnit): string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { useI18nContext } from './I18nProvider';
|
|
3
|
+
/**
|
|
4
|
+
* Locale-aware `Intl` formatters bound to the active locale. Re-created when the
|
|
5
|
+
* locale changes so dates, numbers, currency, and relative times all localize.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const fmt = useFormatter();
|
|
9
|
+
* fmt.date(row.createdAt); // 6/24/2026 / 24.6.2026
|
|
10
|
+
* fmt.currency(1234.5, 'EUR'); // €1,234.50
|
|
11
|
+
* fmt.relativeTime(-3, 'day'); // 3 days ago
|
|
12
|
+
*/
|
|
13
|
+
export function useFormatter() {
|
|
14
|
+
const { locale } = useI18nContext();
|
|
15
|
+
return useMemo(() => ({
|
|
16
|
+
locale,
|
|
17
|
+
date(value, options) {
|
|
18
|
+
return new Intl.DateTimeFormat(locale, options).format(new Date(value));
|
|
19
|
+
},
|
|
20
|
+
dateTime(value, options) {
|
|
21
|
+
return new Intl.DateTimeFormat(locale, {
|
|
22
|
+
dateStyle: 'medium',
|
|
23
|
+
timeStyle: 'short',
|
|
24
|
+
...options,
|
|
25
|
+
}).format(new Date(value));
|
|
26
|
+
},
|
|
27
|
+
number(value, options) {
|
|
28
|
+
return new Intl.NumberFormat(locale, options).format(value);
|
|
29
|
+
},
|
|
30
|
+
currency(value, currency = 'USD', options) {
|
|
31
|
+
return new Intl.NumberFormat(locale, { style: 'currency', currency, ...options }).format(value);
|
|
32
|
+
},
|
|
33
|
+
relativeTime(value, unit) {
|
|
34
|
+
return new Intl.RelativeTimeFormat(locale, { numeric: 'auto' }).format(value, unit);
|
|
35
|
+
},
|
|
36
|
+
}), [locale]);
|
|
37
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useI18nContext } from './I18nProvider';
|
|
2
|
+
/**
|
|
3
|
+
* Read and change the active UI locale.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* const { locale, setLocale, locales } = useLocale();
|
|
7
|
+
*/
|
|
8
|
+
export function useLocale() {
|
|
9
|
+
const { locale, setLocale, locales } = useI18nContext();
|
|
10
|
+
return { locale, setLocale, locales };
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Access the active-locale translator inside a component.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* const { t, locale, dir } = useTranslation();
|
|
6
|
+
* return <button>{t('core:common.save')}</button>;
|
|
7
|
+
*/
|
|
8
|
+
export declare function useTranslation(): {
|
|
9
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
10
|
+
locale: string;
|
|
11
|
+
dir: 'ltr' | 'rtl';
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useI18nContext } from './I18nProvider';
|
|
2
|
+
/**
|
|
3
|
+
* Access the active-locale translator inside a component.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* const { t, locale, dir } = useTranslation();
|
|
7
|
+
* return <button>{t('core:common.save')}</button>;
|
|
8
|
+
*/
|
|
9
|
+
export function useTranslation() {
|
|
10
|
+
const { t, locale, dir } = useI18nContext();
|
|
11
|
+
return { t, locale, dir };
|
|
12
|
+
}
|