@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,225 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
'validation.required_generic': string;
|
|
3
|
+
'common.save': string;
|
|
4
|
+
'common.cancel': string;
|
|
5
|
+
'common.confirm': string;
|
|
6
|
+
'common.delete': string;
|
|
7
|
+
'common.close': string;
|
|
8
|
+
'common.submit': string;
|
|
9
|
+
'common.submitting': string;
|
|
10
|
+
'common.reset': string;
|
|
11
|
+
'common.retry': string;
|
|
12
|
+
'common.actions': string;
|
|
13
|
+
'common.more': string;
|
|
14
|
+
'common.yes': string;
|
|
15
|
+
'common.no': string;
|
|
16
|
+
'common.loading': string;
|
|
17
|
+
'common.search': string;
|
|
18
|
+
'panel.loading': string;
|
|
19
|
+
'panel.connection_error': string;
|
|
20
|
+
'panel.empty': string;
|
|
21
|
+
'panel.sign_out': string;
|
|
22
|
+
'panel.open_menu': string;
|
|
23
|
+
'panel.toggle_dark': string;
|
|
24
|
+
'panel.toggle_light': string;
|
|
25
|
+
'panel.language': string;
|
|
26
|
+
'table.no_records': string;
|
|
27
|
+
'table.no_records_hint': string;
|
|
28
|
+
'table.filters': string;
|
|
29
|
+
'table.row_actions': string;
|
|
30
|
+
'form.create_title': string;
|
|
31
|
+
'form.edit_title': string;
|
|
32
|
+
'form.editing_title': string;
|
|
33
|
+
'form.action_failed': string;
|
|
34
|
+
'form.create_failed': string;
|
|
35
|
+
'form.update_failed': string;
|
|
36
|
+
'form.confirm_bulk': string;
|
|
37
|
+
'auth.welcome_back': string;
|
|
38
|
+
'auth.sign_in': string;
|
|
39
|
+
'auth.sign_in_to': string;
|
|
40
|
+
'auth.email': string;
|
|
41
|
+
'auth.email_placeholder': string;
|
|
42
|
+
'auth.password': string;
|
|
43
|
+
'auth.password_placeholder': string;
|
|
44
|
+
'auth.choose_provider': string;
|
|
45
|
+
'auth.enter_credentials': string;
|
|
46
|
+
'auth.continue': string;
|
|
47
|
+
'auth.verify_identity': string;
|
|
48
|
+
'auth.back_to_options': string;
|
|
49
|
+
'auth.no_providers': string;
|
|
50
|
+
'auth.login_failed': string;
|
|
51
|
+
'auth.verification_failed': string;
|
|
52
|
+
'common.move_up': string;
|
|
53
|
+
'common.move_down': string;
|
|
54
|
+
'common.move_left': string;
|
|
55
|
+
'common.move_right': string;
|
|
56
|
+
'common.copy_url': string;
|
|
57
|
+
'common.clear': string;
|
|
58
|
+
'common.create': string;
|
|
59
|
+
'common.edit': string;
|
|
60
|
+
'common.view': string;
|
|
61
|
+
'common.apply': string;
|
|
62
|
+
'common.add': string;
|
|
63
|
+
'common.remove': string;
|
|
64
|
+
'common.upload': string;
|
|
65
|
+
'common.dismiss': string;
|
|
66
|
+
'table.create_record': string;
|
|
67
|
+
'table.column_settings': string;
|
|
68
|
+
'table.no_toggleable_columns': string;
|
|
69
|
+
'table.close_filters': string;
|
|
70
|
+
'table.view_tabs': string;
|
|
71
|
+
'table.save_changes': string;
|
|
72
|
+
'table.reset_changes': string;
|
|
73
|
+
'pagination.per_page': string;
|
|
74
|
+
'pagination.previous': string;
|
|
75
|
+
'pagination.next': string;
|
|
76
|
+
'search.records': string;
|
|
77
|
+
'search.close': string;
|
|
78
|
+
'search.clear': string;
|
|
79
|
+
'filters.from_date': string;
|
|
80
|
+
'filters.to_date': string;
|
|
81
|
+
'filters.from': string;
|
|
82
|
+
'filters.to': string;
|
|
83
|
+
'filters.date': string;
|
|
84
|
+
'filters.value': string;
|
|
85
|
+
'filters.range': string;
|
|
86
|
+
'filters.no_rules': string;
|
|
87
|
+
'modal.close': string;
|
|
88
|
+
'modal.close_all': string;
|
|
89
|
+
'modal.stack': string;
|
|
90
|
+
'modal.sections': string;
|
|
91
|
+
'confirm.delete_item_title': string;
|
|
92
|
+
'confirm.delete_item_message': string;
|
|
93
|
+
'confirm.delete_items_title': string;
|
|
94
|
+
'confirm.delete_items_message': string;
|
|
95
|
+
'confirm.action_single': string;
|
|
96
|
+
'confirm.action_generic': string;
|
|
97
|
+
'toast.delete_failed': string;
|
|
98
|
+
'toast.deleted': string;
|
|
99
|
+
'toast.upload_failed': string;
|
|
100
|
+
'toast.invalid_html': string;
|
|
101
|
+
'file.uploaded': string;
|
|
102
|
+
'file.drop_here': string;
|
|
103
|
+
'file.click_to_upload': string;
|
|
104
|
+
'file.video': string;
|
|
105
|
+
'file.audio': string;
|
|
106
|
+
'file.saved': string;
|
|
107
|
+
'file.no_image': string;
|
|
108
|
+
'state.no_fields': string;
|
|
109
|
+
'state.no_data': string;
|
|
110
|
+
'state.page_not_found': string;
|
|
111
|
+
'editor.html_placeholder': string;
|
|
112
|
+
'tags.label': string;
|
|
113
|
+
'repeater.active_tab': string;
|
|
114
|
+
'a11y.color_preview': string;
|
|
115
|
+
'a11y.main_navigation': string;
|
|
116
|
+
'a11y.tab_errors': string;
|
|
117
|
+
'editor.bold': string;
|
|
118
|
+
'editor.italic': string;
|
|
119
|
+
'editor.underline': string;
|
|
120
|
+
'editor.strikethrough': string;
|
|
121
|
+
'editor.code': string;
|
|
122
|
+
'editor.code_block': string;
|
|
123
|
+
'editor.heading1': string;
|
|
124
|
+
'editor.heading2': string;
|
|
125
|
+
'editor.heading3': string;
|
|
126
|
+
'editor.bullet_list': string;
|
|
127
|
+
'editor.ordered_list': string;
|
|
128
|
+
'editor.blockquote': string;
|
|
129
|
+
'editor.undo': string;
|
|
130
|
+
'editor.redo': string;
|
|
131
|
+
'editor.link': string;
|
|
132
|
+
'editor.subscript': string;
|
|
133
|
+
'editor.superscript': string;
|
|
134
|
+
'editor.highlight': string;
|
|
135
|
+
'editor.align_left': string;
|
|
136
|
+
'editor.align_center': string;
|
|
137
|
+
'editor.align_right': string;
|
|
138
|
+
'editor.insert_image': string;
|
|
139
|
+
'editor.insert_video': string;
|
|
140
|
+
'table.column_visibility': string;
|
|
141
|
+
'pagination.per_page_short': string;
|
|
142
|
+
'filters.query_builder': string;
|
|
143
|
+
'search.start_typing': string;
|
|
144
|
+
'common.loading_ellipsis': string;
|
|
145
|
+
'search.subtitle': string;
|
|
146
|
+
'state.no_table_schema': string;
|
|
147
|
+
'pagination.range_compact': string;
|
|
148
|
+
'pagination.showing': string;
|
|
149
|
+
'auth.preparing': string;
|
|
150
|
+
'repeater.empty': string;
|
|
151
|
+
'select.create': string;
|
|
152
|
+
'select.loading': string;
|
|
153
|
+
'filters.add_rule_hint': string;
|
|
154
|
+
'page.loading': string;
|
|
155
|
+
'page.no_content': string;
|
|
156
|
+
'modal.view_title': string;
|
|
157
|
+
'modal.view_record': string;
|
|
158
|
+
'auth.back_to_signin': string;
|
|
159
|
+
'auth.providers_load_failed': string;
|
|
160
|
+
'editor.insert_audio': string;
|
|
161
|
+
'editor.insert_embed': string;
|
|
162
|
+
'editor.html_source': string;
|
|
163
|
+
'filters.preset_today': string;
|
|
164
|
+
'filters.preset_yesterday': string;
|
|
165
|
+
'filters.preset_this_week': string;
|
|
166
|
+
'filters.preset_this_month': string;
|
|
167
|
+
'filters.preset_this_year': string;
|
|
168
|
+
'filters.preset_custom': string;
|
|
169
|
+
'common.warning': string;
|
|
170
|
+
'state.unknown_field': string;
|
|
171
|
+
'state.unknown_column': string;
|
|
172
|
+
'error.connect': string;
|
|
173
|
+
'error.load_data': string;
|
|
174
|
+
'error.load_schema': string;
|
|
175
|
+
'search.nav_navigate': string;
|
|
176
|
+
'search.nav_open': string;
|
|
177
|
+
'search.nav_close': string;
|
|
178
|
+
'common.clear_all': string;
|
|
179
|
+
'common.done': string;
|
|
180
|
+
'common.all': string;
|
|
181
|
+
'common.try_again': string;
|
|
182
|
+
'common.details': string;
|
|
183
|
+
'common.widgets': string;
|
|
184
|
+
'filters.label_from': string;
|
|
185
|
+
'filters.label_to': string;
|
|
186
|
+
'filters.no_options': string;
|
|
187
|
+
'filters.clear_all_filters': string;
|
|
188
|
+
'filters.from_value': string;
|
|
189
|
+
'filters.until_value': string;
|
|
190
|
+
'filters.select_range': string;
|
|
191
|
+
'confirm.are_you_sure': string;
|
|
192
|
+
'common.item': string;
|
|
193
|
+
'form.submitted': string;
|
|
194
|
+
'select.placeholder': string;
|
|
195
|
+
'select.create_new': string;
|
|
196
|
+
'common.record': string;
|
|
197
|
+
'editor.start_typing': string;
|
|
198
|
+
'error.load_record': string;
|
|
199
|
+
'error.load_page': string;
|
|
200
|
+
'file.video_preview': string;
|
|
201
|
+
'common.preview': string;
|
|
202
|
+
'common.image': string;
|
|
203
|
+
'common.file': string;
|
|
204
|
+
'editor.rich_text_view': string;
|
|
205
|
+
'select.no_matching': string;
|
|
206
|
+
'table.switch_grid': string;
|
|
207
|
+
'table.switch_table': string;
|
|
208
|
+
'table.hide_widgets': string;
|
|
209
|
+
'table.show_widgets': string;
|
|
210
|
+
'error.action_failed': string;
|
|
211
|
+
'error.action_failed_bulk': string;
|
|
212
|
+
'common.video_thumbnail': string;
|
|
213
|
+
'common.error': string;
|
|
214
|
+
'widget.data_label': string;
|
|
215
|
+
'filters.advanced_search': string;
|
|
216
|
+
'error.fetch_form_data': string;
|
|
217
|
+
'error.fetch_form_data_generic': string;
|
|
218
|
+
'error.submit_form': string;
|
|
219
|
+
'error.generic': string;
|
|
220
|
+
'error.export_failed': string;
|
|
221
|
+
'error.delete_failed': string;
|
|
222
|
+
'error.bulk_action_failed': string;
|
|
223
|
+
};
|
|
224
|
+
export default en;
|
|
225
|
+
export type ClientCoreCatalog = typeof en;
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// Client UI-chrome catalog (English). Namespace: `core`.
|
|
2
|
+
//
|
|
3
|
+
// These strings ship WITH the React package so the panel renders correctly with
|
|
4
|
+
// zero i18n config. Apps/plugins can override any of them (app wins) by
|
|
5
|
+
// registering a `core:`-prefixed key. Distinct from the server `core` catalog,
|
|
6
|
+
// which holds backend framework + validation strings.
|
|
7
|
+
import { defaultValidationMessages } from '@maxal_studio/kratosjs/dist/validation';
|
|
8
|
+
const en = {
|
|
9
|
+
// Validation messages (shared with the server; rendered client-side via t()).
|
|
10
|
+
...defaultValidationMessages,
|
|
11
|
+
// Generic "required" shown by react-hook-form's native required (no field label).
|
|
12
|
+
'validation.required_generic': 'This field is required',
|
|
13
|
+
// Common actions / labels.
|
|
14
|
+
'common.save': 'Save',
|
|
15
|
+
'common.cancel': 'Cancel',
|
|
16
|
+
'common.confirm': 'Confirm',
|
|
17
|
+
'common.delete': 'Delete',
|
|
18
|
+
'common.close': 'Close',
|
|
19
|
+
'common.submit': 'Submit',
|
|
20
|
+
'common.submitting': 'Submitting...',
|
|
21
|
+
'common.reset': 'Reset',
|
|
22
|
+
'common.retry': 'Retry',
|
|
23
|
+
'common.actions': 'Actions',
|
|
24
|
+
'common.more': 'More',
|
|
25
|
+
'common.yes': 'Yes',
|
|
26
|
+
'common.no': 'No',
|
|
27
|
+
'common.loading': 'Loading',
|
|
28
|
+
'common.search': 'Search records…',
|
|
29
|
+
// Panel shell.
|
|
30
|
+
'panel.loading': 'Loading KratosJs Panel...',
|
|
31
|
+
'panel.connection_error': 'Connection Error',
|
|
32
|
+
'panel.empty': 'No resources or pages available in this panel',
|
|
33
|
+
'panel.sign_out': 'Sign out',
|
|
34
|
+
'panel.open_menu': 'Open navigation menu',
|
|
35
|
+
'panel.toggle_dark': 'Switch to dark mode',
|
|
36
|
+
'panel.toggle_light': 'Switch to light mode',
|
|
37
|
+
'panel.language': 'Language',
|
|
38
|
+
// Tables.
|
|
39
|
+
'table.no_records': 'No records found',
|
|
40
|
+
'table.no_records_hint': 'Try adjusting your search or filters.',
|
|
41
|
+
'table.filters': 'Filters',
|
|
42
|
+
'table.row_actions': 'Row actions',
|
|
43
|
+
// Forms / records.
|
|
44
|
+
'form.create_title': 'Create {label}',
|
|
45
|
+
'form.edit_title': 'Edit {label}',
|
|
46
|
+
'form.editing_title': 'Editing "{title}"',
|
|
47
|
+
'form.action_failed': 'Action failed',
|
|
48
|
+
'form.create_failed': 'Failed to create record',
|
|
49
|
+
'form.update_failed': 'Failed to update record',
|
|
50
|
+
'form.confirm_bulk': 'Are you sure you want to {action} {count} items?',
|
|
51
|
+
// Auth / login.
|
|
52
|
+
'auth.welcome_back': 'Welcome back',
|
|
53
|
+
'auth.sign_in': 'Sign in',
|
|
54
|
+
'auth.sign_in_to': 'Sign in to {title}',
|
|
55
|
+
'auth.email': 'Email',
|
|
56
|
+
'auth.email_placeholder': 'you@company.com',
|
|
57
|
+
'auth.password': 'Password',
|
|
58
|
+
'auth.password_placeholder': 'Enter your password',
|
|
59
|
+
'auth.choose_provider': 'Choose how you would like to sign in',
|
|
60
|
+
'auth.enter_credentials': 'Enter your credentials to continue',
|
|
61
|
+
'auth.continue': 'Continue to access your account',
|
|
62
|
+
'auth.verify_identity': 'Verify your identity',
|
|
63
|
+
'auth.back_to_options': 'Back to sign-in options',
|
|
64
|
+
'auth.no_providers': 'No authentication providers are configured.',
|
|
65
|
+
'auth.login_failed': 'Login failed',
|
|
66
|
+
'auth.verification_failed': 'Verification failed',
|
|
67
|
+
// Common icon-button labels.
|
|
68
|
+
'common.move_up': 'Move up',
|
|
69
|
+
'common.move_down': 'Move down',
|
|
70
|
+
'common.move_left': 'Move left',
|
|
71
|
+
'common.move_right': 'Move right',
|
|
72
|
+
'common.copy_url': 'Copy URL',
|
|
73
|
+
'common.clear': 'Clear',
|
|
74
|
+
'common.create': 'Create',
|
|
75
|
+
'common.edit': 'Edit',
|
|
76
|
+
'common.view': 'View',
|
|
77
|
+
'common.apply': 'Apply',
|
|
78
|
+
'common.add': 'Add',
|
|
79
|
+
'common.remove': 'Remove',
|
|
80
|
+
'common.upload': 'Upload',
|
|
81
|
+
'common.dismiss': 'Dismiss',
|
|
82
|
+
// Table toolbar / pagination / actions.
|
|
83
|
+
'table.create_record': 'Create record',
|
|
84
|
+
'table.column_settings': 'Column settings',
|
|
85
|
+
'table.no_toggleable_columns': 'No toggleable columns available',
|
|
86
|
+
'table.close_filters': 'Close filters',
|
|
87
|
+
'table.view_tabs': 'Table view tabs',
|
|
88
|
+
'table.save_changes': 'Save changes',
|
|
89
|
+
'table.reset_changes': 'Reset changes',
|
|
90
|
+
'pagination.per_page': 'Results per page',
|
|
91
|
+
'pagination.previous': 'Previous page',
|
|
92
|
+
'pagination.next': 'Next page',
|
|
93
|
+
// Search.
|
|
94
|
+
'search.records': 'Search records',
|
|
95
|
+
'search.close': 'Close search',
|
|
96
|
+
'search.clear': 'Clear search',
|
|
97
|
+
// Filters.
|
|
98
|
+
'filters.from_date': 'From date...',
|
|
99
|
+
'filters.to_date': 'To date...',
|
|
100
|
+
'filters.from': 'From...',
|
|
101
|
+
'filters.to': 'To...',
|
|
102
|
+
'filters.date': 'Date...',
|
|
103
|
+
'filters.value': 'Value...',
|
|
104
|
+
'filters.range': 'Range',
|
|
105
|
+
'filters.no_rules': 'No rules added yet',
|
|
106
|
+
// Modals / drawers.
|
|
107
|
+
'modal.close': 'Close',
|
|
108
|
+
'modal.close_all': 'Close all',
|
|
109
|
+
'modal.stack': 'Modal stack',
|
|
110
|
+
'modal.sections': 'Record sections',
|
|
111
|
+
// Confirm dialogs.
|
|
112
|
+
'confirm.delete_item_title': 'Delete item',
|
|
113
|
+
'confirm.delete_item_message': 'Are you sure you want to delete this item? This cannot be undone.',
|
|
114
|
+
'confirm.delete_items_title': 'Delete items',
|
|
115
|
+
'confirm.delete_items_message': 'Are you sure you want to delete {count} items? This cannot be undone.',
|
|
116
|
+
'confirm.action_single': 'Are you sure you want to {action} this item?',
|
|
117
|
+
'confirm.action_generic': 'Are you sure you want to {action}?',
|
|
118
|
+
// Toasts / record results.
|
|
119
|
+
'toast.delete_failed': 'Failed to delete item',
|
|
120
|
+
'toast.deleted': 'Item deleted successfully',
|
|
121
|
+
'toast.upload_failed': 'Failed to upload file',
|
|
122
|
+
'toast.invalid_html': 'Invalid HTML. Please check your code.',
|
|
123
|
+
// File upload.
|
|
124
|
+
'file.uploaded': 'File uploaded',
|
|
125
|
+
'file.drop_here': 'Drop files here',
|
|
126
|
+
'file.click_to_upload': 'Click to upload',
|
|
127
|
+
'file.video': 'Video',
|
|
128
|
+
'file.audio': 'Audio',
|
|
129
|
+
'file.saved': 'Saved',
|
|
130
|
+
'file.no_image': 'No image',
|
|
131
|
+
// Empty / misc states.
|
|
132
|
+
'state.no_fields': 'No fields to display',
|
|
133
|
+
'state.no_data': 'No data available',
|
|
134
|
+
'state.page_not_found': 'Page not found',
|
|
135
|
+
// Rich editor.
|
|
136
|
+
'editor.html_placeholder': 'Enter HTML code here...',
|
|
137
|
+
// Tags / repeater.
|
|
138
|
+
'tags.label': 'Tags',
|
|
139
|
+
'repeater.active_tab': 'Active tab',
|
|
140
|
+
// Misc attribute labels.
|
|
141
|
+
'a11y.color_preview': 'Color preview',
|
|
142
|
+
'a11y.main_navigation': 'Main navigation',
|
|
143
|
+
'a11y.tab_errors': 'Has validation errors or required fields',
|
|
144
|
+
// Rich-text editor toolbar.
|
|
145
|
+
'editor.bold': 'Bold',
|
|
146
|
+
'editor.italic': 'Italic',
|
|
147
|
+
'editor.underline': 'Underline',
|
|
148
|
+
'editor.strikethrough': 'Strikethrough',
|
|
149
|
+
'editor.code': 'Code',
|
|
150
|
+
'editor.code_block': 'Code Block',
|
|
151
|
+
'editor.heading1': 'Heading 1',
|
|
152
|
+
'editor.heading2': 'Heading 2',
|
|
153
|
+
'editor.heading3': 'Heading 3',
|
|
154
|
+
'editor.bullet_list': 'Bullet List',
|
|
155
|
+
'editor.ordered_list': 'Ordered List',
|
|
156
|
+
'editor.blockquote': 'Blockquote',
|
|
157
|
+
'editor.undo': 'Undo',
|
|
158
|
+
'editor.redo': 'Redo',
|
|
159
|
+
'editor.link': 'Link',
|
|
160
|
+
'editor.subscript': 'Subscript',
|
|
161
|
+
'editor.superscript': 'Superscript',
|
|
162
|
+
'editor.highlight': 'Highlight',
|
|
163
|
+
'editor.align_left': 'Align Left',
|
|
164
|
+
'editor.align_center': 'Align Center',
|
|
165
|
+
'editor.align_right': 'Align Right',
|
|
166
|
+
'editor.insert_image': 'Insert Image',
|
|
167
|
+
'editor.insert_video': 'Insert Video',
|
|
168
|
+
'table.column_visibility': 'Column visibility',
|
|
169
|
+
'pagination.per_page_short': 'Per page',
|
|
170
|
+
'filters.query_builder': 'Query Builder',
|
|
171
|
+
'search.start_typing': 'Start typing to see results',
|
|
172
|
+
'common.loading_ellipsis': 'Loading...',
|
|
173
|
+
'search.subtitle': 'Search across all records in this panel',
|
|
174
|
+
'state.no_table_schema': 'No table schema available for this resource',
|
|
175
|
+
'pagination.range_compact': '{start}–{end} of {total}',
|
|
176
|
+
'pagination.showing': 'Showing {start} to {end} of {total} results',
|
|
177
|
+
'auth.preparing': 'Preparing sign in…',
|
|
178
|
+
'repeater.empty': 'No items yet. Click the button below to add one.',
|
|
179
|
+
'select.create': 'Create "{term}"',
|
|
180
|
+
'select.loading': 'Loading...',
|
|
181
|
+
'filters.add_rule_hint': 'Click "Add Rule" to start building your query',
|
|
182
|
+
'page.loading': 'Loading page...',
|
|
183
|
+
'page.no_content': 'This page has no content.',
|
|
184
|
+
'modal.view_title': 'View {label}',
|
|
185
|
+
'modal.view_record': 'View "{title}"',
|
|
186
|
+
'auth.back_to_signin': 'Back to sign in',
|
|
187
|
+
'auth.providers_load_failed': 'Failed to load authentication providers',
|
|
188
|
+
'editor.insert_audio': 'Insert Audio',
|
|
189
|
+
'editor.insert_embed': 'Insert Embed',
|
|
190
|
+
'editor.html_source': 'HTML Source',
|
|
191
|
+
'filters.preset_today': 'Today',
|
|
192
|
+
'filters.preset_yesterday': 'Yesterday',
|
|
193
|
+
'filters.preset_this_week': 'This Week',
|
|
194
|
+
'filters.preset_this_month': 'This Month',
|
|
195
|
+
'filters.preset_this_year': 'This Year',
|
|
196
|
+
'filters.preset_custom': 'Custom',
|
|
197
|
+
'common.warning': 'Warning',
|
|
198
|
+
'state.unknown_field': 'Unknown field type "{type}" for field "{name}"',
|
|
199
|
+
'state.unknown_column': 'Unknown column type: {type}',
|
|
200
|
+
'error.connect': 'Failed to connect to API',
|
|
201
|
+
'error.load_data': 'Failed to load data',
|
|
202
|
+
'error.load_schema': 'Failed to load table schema',
|
|
203
|
+
'search.nav_navigate': 'Navigate',
|
|
204
|
+
'search.nav_open': 'Open',
|
|
205
|
+
'search.nav_close': 'Close',
|
|
206
|
+
'common.clear_all': 'Clear all',
|
|
207
|
+
'common.done': 'Done',
|
|
208
|
+
'common.all': 'All',
|
|
209
|
+
'common.try_again': 'Try again',
|
|
210
|
+
'common.details': 'Details',
|
|
211
|
+
'common.widgets': 'Widgets',
|
|
212
|
+
'filters.label_from': 'From',
|
|
213
|
+
'filters.label_to': 'To',
|
|
214
|
+
'filters.no_options': 'No options available',
|
|
215
|
+
'filters.clear_all_filters': 'Clear all filters',
|
|
216
|
+
'filters.from_value': 'From {date}',
|
|
217
|
+
'filters.until_value': 'Until {date}',
|
|
218
|
+
'filters.select_range': 'Select date range...',
|
|
219
|
+
'confirm.are_you_sure': 'Are you sure?',
|
|
220
|
+
'common.item': 'Item',
|
|
221
|
+
'form.submitted': 'Form submitted successfully!',
|
|
222
|
+
'select.placeholder': 'Select...',
|
|
223
|
+
'select.create_new': 'Create New',
|
|
224
|
+
'common.record': 'Record',
|
|
225
|
+
'editor.start_typing': 'Start typing...',
|
|
226
|
+
'error.load_record': 'Failed to load record',
|
|
227
|
+
'error.load_page': 'Failed to load page',
|
|
228
|
+
'file.video_preview': 'Video Preview',
|
|
229
|
+
'common.preview': 'Preview',
|
|
230
|
+
'common.image': 'Image',
|
|
231
|
+
'common.file': 'File',
|
|
232
|
+
'editor.rich_text_view': 'Rich Text View',
|
|
233
|
+
'select.no_matching': 'No matching options found',
|
|
234
|
+
'table.switch_grid': 'Switch to grid view',
|
|
235
|
+
'table.switch_table': 'Switch to table view',
|
|
236
|
+
'table.hide_widgets': 'Hide widgets',
|
|
237
|
+
'table.show_widgets': 'Show widgets',
|
|
238
|
+
'error.action_failed': 'Failed to execute action',
|
|
239
|
+
'error.action_failed_bulk': 'Failed to execute bulk action',
|
|
240
|
+
'common.video_thumbnail': 'Video thumbnail',
|
|
241
|
+
'common.error': 'Error',
|
|
242
|
+
'widget.data_label': 'Data',
|
|
243
|
+
'filters.advanced_search': 'Advanced Search',
|
|
244
|
+
'error.fetch_form_data': 'Failed to fetch form data',
|
|
245
|
+
'error.fetch_form_data_generic': 'An error occurred while fetching form data',
|
|
246
|
+
'error.submit_form': 'Failed to submit form',
|
|
247
|
+
'error.generic': 'An error occurred',
|
|
248
|
+
'error.export_failed': 'Failed to export',
|
|
249
|
+
'error.delete_failed': 'Failed to delete',
|
|
250
|
+
'error.bulk_action_failed': 'Bulk action failed',
|
|
251
|
+
};
|
|
252
|
+
export default en;
|