@clement_lores/adminjs 7.8.17 → 7.8.18
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/lib/frontend/assets/scripts/app-bundle.development.js +38842 -0
- package/package.json +2 -2
- package/types/spec/backend/helpers/helper-stub.d.ts +0 -21
- package/types/spec/backend/helpers/resource-stub.d.ts +0 -15
- package/types/src/adminjs-options.interface.d.ts +0 -453
- package/types/src/adminjs.d.ts +0 -125
- package/types/src/adminjs.spec.d.ts +0 -1
- package/types/src/backend/actions/action.interface.d.ts +0 -619
- package/types/src/backend/actions/bulk-delete/bulk-delete-action.d.ts +0 -11
- package/types/src/backend/actions/bulk-delete/bulk-delete-action.spec.d.ts +0 -1
- package/types/src/backend/actions/delete/delete-action.d.ts +0 -12
- package/types/src/backend/actions/delete/delete-action.spec.d.ts +0 -1
- package/types/src/backend/actions/edit/edit-action.d.ts +0 -14
- package/types/src/backend/actions/index.d.ts +0 -12
- package/types/src/backend/actions/list/list-action.d.ts +0 -33
- package/types/src/backend/actions/new/new-action.d.ts +0 -12
- package/types/src/backend/actions/search/search-action.d.ts +0 -25
- package/types/src/backend/actions/show/show-action.d.ts +0 -12
- package/types/src/backend/adapters/database/base-database.d.ts +0 -28
- package/types/src/backend/adapters/database/index.d.ts +0 -1
- package/types/src/backend/adapters/index.d.ts +0 -4
- package/types/src/backend/adapters/property/base-property.d.ts +0 -112
- package/types/src/backend/adapters/property/index.d.ts +0 -2
- package/types/src/backend/adapters/record/base-record.d.ts +0 -183
- package/types/src/backend/adapters/record/base-record.spec.d.ts +0 -1
- package/types/src/backend/adapters/record/index.d.ts +0 -2
- package/types/src/backend/adapters/record/params.type.d.ts +0 -10
- package/types/src/backend/adapters/resource/base-resource.d.ts +0 -204
- package/types/src/backend/adapters/resource/base-resource.spec.d.ts +0 -1
- package/types/src/backend/adapters/resource/index.d.ts +0 -2
- package/types/src/backend/adapters/resource/supported-databases.type.d.ts +0 -1
- package/types/src/backend/bundler/app.bundler.d.ts +0 -3
- package/types/src/backend/bundler/components.bundler.d.ts +0 -3
- package/types/src/backend/bundler/generate-user-component-entry.d.ts +0 -16
- package/types/src/backend/bundler/globals.bundler.d.ts +0 -3
- package/types/src/backend/bundler/index.d.ts +0 -6
- package/types/src/backend/bundler/utils/asset-bundler.d.ts +0 -32
- package/types/src/backend/bundler/utils/constants.d.ts +0 -4
- package/types/src/backend/controllers/api-controller.d.ts +0 -131
- package/types/src/backend/controllers/app-controller.d.ts +0 -16
- package/types/src/backend/controllers/index.d.ts +0 -2
- package/types/src/backend/decorators/action/action-decorator.d.ts +0 -130
- package/types/src/backend/decorators/action/action-decorator.spec.d.ts +0 -1
- package/types/src/backend/decorators/action/index.d.ts +0 -1
- package/types/src/backend/decorators/index.d.ts +0 -3
- package/types/src/backend/decorators/property/index.d.ts +0 -3
- package/types/src/backend/decorators/property/property-decorator.d.ts +0 -164
- package/types/src/backend/decorators/property/property-decorator.spec.d.ts +0 -1
- package/types/src/backend/decorators/property/property-options.interface.d.ts +0 -137
- package/types/src/backend/decorators/property/utils/index.d.ts +0 -1
- package/types/src/backend/decorators/property/utils/override-from-options.d.ts +0 -4
- package/types/src/backend/decorators/property/utils/override-from-options.spec.d.ts +0 -1
- package/types/src/backend/decorators/resource/index.d.ts +0 -2
- package/types/src/backend/decorators/resource/resource-decorator.d.ts +0 -149
- package/types/src/backend/decorators/resource/resource-decorator.spec.d.ts +0 -1
- package/types/src/backend/decorators/resource/resource-options.interface.d.ts +0 -134
- package/types/src/backend/decorators/resource/utils/decorate-actions.d.ts +0 -16
- package/types/src/backend/decorators/resource/utils/decorate-properties.d.ts +0 -15
- package/types/src/backend/decorators/resource/utils/decorate-properties.spec.d.ts +0 -1
- package/types/src/backend/decorators/resource/utils/find-sub-property.d.ts +0 -12
- package/types/src/backend/decorators/resource/utils/flat-sub-properties.d.ts +0 -14
- package/types/src/backend/decorators/resource/utils/get-navigation.d.ts +0 -10
- package/types/src/backend/decorators/resource/utils/get-navigation.spec.d.ts +0 -1
- package/types/src/backend/decorators/resource/utils/get-property-by-key.d.ts +0 -3
- package/types/src/backend/decorators/resource/utils/index.d.ts +0 -6
- package/types/src/backend/index.d.ts +0 -6
- package/types/src/backend/services/action-error-handler/action-error-handler.d.ts +0 -8
- package/types/src/backend/services/action-error-handler/action-error-handler.spec.d.ts +0 -1
- package/types/src/backend/services/action-error-handler/index.d.ts +0 -1
- package/types/src/backend/services/index.d.ts +0 -2
- package/types/src/backend/services/sort-setter/index.d.ts +0 -1
- package/types/src/backend/services/sort-setter/sort-setter.d.ts +0 -27
- package/types/src/backend/utils/auth/base-auth-provider.d.ts +0 -63
- package/types/src/backend/utils/auth/default-auth-provider.d.ts +0 -12
- package/types/src/backend/utils/auth/index.d.ts +0 -2
- package/types/src/backend/utils/build-feature/build-feature.d.ts +0 -40
- package/types/src/backend/utils/build-feature/build-feature.spec.d.ts +0 -1
- package/types/src/backend/utils/build-feature/index.d.ts +0 -1
- package/types/src/backend/utils/component-loader.d.ts +0 -15
- package/types/src/backend/utils/errors/app-error.d.ts +0 -35
- package/types/src/backend/utils/errors/configuration-error.d.ts +0 -14
- package/types/src/backend/utils/errors/forbidden-error.d.ts +0 -26
- package/types/src/backend/utils/errors/index.d.ts +0 -7
- package/types/src/backend/utils/errors/not-found-error.d.ts +0 -27
- package/types/src/backend/utils/errors/not-implemented-error.d.ts +0 -13
- package/types/src/backend/utils/errors/record-error.d.ts +0 -17
- package/types/src/backend/utils/errors/validation-error.d.ts +0 -34
- package/types/src/backend/utils/filter/filter.d.ts +0 -66
- package/types/src/backend/utils/filter/index.d.ts +0 -1
- package/types/src/backend/utils/index.d.ts +0 -13
- package/types/src/backend/utils/layout-element-parser/index.d.ts +0 -1
- package/types/src/backend/utils/layout-element-parser/layout-element-parser.d.ts +0 -82
- package/types/src/backend/utils/layout-element-parser/layout-element-parser.spec.d.ts +0 -1
- package/types/src/backend/utils/options-parser/index.d.ts +0 -1
- package/types/src/backend/utils/options-parser/options-parser.d.ts +0 -10
- package/types/src/backend/utils/populator/index.d.ts +0 -2
- package/types/src/backend/utils/populator/populate-property.d.ts +0 -13
- package/types/src/backend/utils/populator/populate-property.spec.d.ts +0 -1
- package/types/src/backend/utils/populator/populator.d.ts +0 -10
- package/types/src/backend/utils/populator/populator.spec.d.ts +0 -1
- package/types/src/backend/utils/request-parser/index.d.ts +0 -1
- package/types/src/backend/utils/request-parser/request-parser.d.ts +0 -14
- package/types/src/backend/utils/request-parser/request-parser.spec.d.ts +0 -1
- package/types/src/backend/utils/resources-factory/index.d.ts +0 -1
- package/types/src/backend/utils/resources-factory/resources-factory.d.ts +0 -57
- package/types/src/backend/utils/router/index.d.ts +0 -1
- package/types/src/backend/utils/router/router.d.ts +0 -24
- package/types/src/backend/utils/router/router.spec.d.ts +0 -1
- package/types/src/backend/utils/uploaded-file.type.d.ts +0 -25
- package/types/src/backend/utils/view-helpers/index.d.ts +0 -1
- package/types/src/backend/utils/view-helpers/view-helpers.d.ts +0 -184
- package/types/src/backend/utils/view-helpers/view-helpers.spec.d.ts +0 -1
- package/types/src/constants.d.ts +0 -7
- package/types/src/core-scripts.interface.d.ts +0 -41
- package/types/src/current-admin.interface.d.ts +0 -42
- package/types/src/frontend/components/actions/action.props.d.ts +0 -29
- package/types/src/frontend/components/actions/bulk-delete.d.ts +0 -15
- package/types/src/frontend/components/actions/edit.d.ts +0 -7
- package/types/src/frontend/components/actions/index.d.ts +0 -31
- package/types/src/frontend/components/actions/list.d.ts +0 -7
- package/types/src/frontend/components/actions/new.d.ts +0 -7
- package/types/src/frontend/components/actions/show.d.ts +0 -14
- package/types/src/frontend/components/actions/utils/append-force-refresh.d.ts +0 -13
- package/types/src/frontend/components/actions/utils/append-force-refresh.spec.d.ts +0 -1
- package/types/src/frontend/components/actions/utils/index.d.ts +0 -1
- package/types/src/frontend/components/actions/utils/layout-element-renderer.d.ts +0 -12
- package/types/src/frontend/components/app/action-button/action-button.d.ts +0 -40
- package/types/src/frontend/components/app/action-button/index.d.ts +0 -1
- package/types/src/frontend/components/app/action-header/action-header-props.d.ts +0 -24
- package/types/src/frontend/components/app/action-header/action-header.d.ts +0 -19
- package/types/src/frontend/components/app/action-header/actions-to-button-group.d.ts +0 -12
- package/types/src/frontend/components/app/action-header/actions-to-button-group.spec.d.ts +0 -1
- package/types/src/frontend/components/app/action-header/index.d.ts +0 -2
- package/types/src/frontend/components/app/action-header/styled-back-button.d.ts +0 -9
- package/types/src/frontend/components/app/admin-modal.d.ts +0 -3
- package/types/src/frontend/components/app/app-loader.d.ts +0 -2
- package/types/src/frontend/components/app/auth-background-component.d.ts +0 -6
- package/types/src/frontend/components/app/base-action-component.d.ts +0 -52
- package/types/src/frontend/components/app/breadcrumbs.d.ts +0 -30
- package/types/src/frontend/components/app/default-dashboard.d.ts +0 -4
- package/types/src/frontend/components/app/drawer-portal.d.ts +0 -35
- package/types/src/frontend/components/app/error-boundary.d.ts +0 -10
- package/types/src/frontend/components/app/error-message.d.ts +0 -36
- package/types/src/frontend/components/app/filter-drawer.d.ts +0 -10
- package/types/src/frontend/components/app/footer.d.ts +0 -6
- package/types/src/frontend/components/app/index.d.ts +0 -21
- package/types/src/frontend/components/app/language-select/index.d.ts +0 -1
- package/types/src/frontend/components/app/language-select/language-select.d.ts +0 -3
- package/types/src/frontend/components/app/logged-in.d.ts +0 -13
- package/types/src/frontend/components/app/notice.d.ts +0 -33
- package/types/src/frontend/components/app/records-table/index.d.ts +0 -6
- package/types/src/frontend/components/app/records-table/no-records.d.ts +0 -11
- package/types/src/frontend/components/app/records-table/property-header.d.ts +0 -23
- package/types/src/frontend/components/app/records-table/property-header.spec.d.ts +0 -2
- package/types/src/frontend/components/app/records-table/record-in-list.d.ts +0 -16
- package/types/src/frontend/components/app/records-table/records-table-header.d.ts +0 -81
- package/types/src/frontend/components/app/records-table/records-table-header.spec.d.ts +0 -2
- package/types/src/frontend/components/app/records-table/records-table.d.ts +0 -53
- package/types/src/frontend/components/app/records-table/records-table.spec.d.ts +0 -3
- package/types/src/frontend/components/app/records-table/selected-records.d.ts +0 -11
- package/types/src/frontend/components/app/records-table/utils/display.d.ts +0 -1
- package/types/src/frontend/components/app/records-table/utils/get-bulk-actions-from-records.d.ts +0 -3
- package/types/src/frontend/components/app/records-table/utils/get-bulk-actions-from-records.spec.d.ts +0 -2
- package/types/src/frontend/components/app/sidebar/index.d.ts +0 -3
- package/types/src/frontend/components/app/sidebar/sidebar-branding.d.ts +0 -12
- package/types/src/frontend/components/app/sidebar/sidebar-footer.d.ts +0 -7
- package/types/src/frontend/components/app/sidebar/sidebar-pages.d.ts +0 -11
- package/types/src/frontend/components/app/sidebar/sidebar-resource-section.d.ts +0 -29
- package/types/src/frontend/components/app/sidebar/sidebar.d.ts +0 -11
- package/types/src/frontend/components/app/sort-link.d.ts +0 -9
- package/types/src/frontend/components/app/top-bar.d.ts +0 -9
- package/types/src/frontend/components/app/utils/discord-logo-svg.d.ts +0 -4
- package/types/src/frontend/components/app/utils/rocket-svg.d.ts +0 -4
- package/types/src/frontend/components/app/version.d.ts +0 -10
- package/types/src/frontend/components/application.d.ts +0 -6
- package/types/src/frontend/components/index.d.ts +0 -6
- package/types/src/frontend/components/login/index.d.ts +0 -10
- package/types/src/frontend/components/property-type/array/add-new-item-translation.d.ts +0 -9
- package/types/src/frontend/components/property-type/array/convert-to-sub-property.d.ts +0 -14
- package/types/src/frontend/components/property-type/array/edit.d.ts +0 -6
- package/types/src/frontend/components/property-type/array/edit.spec.d.ts +0 -4
- package/types/src/frontend/components/property-type/array/index.d.ts +0 -4
- package/types/src/frontend/components/property-type/array/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/array/remove-sub-property.d.ts +0 -15
- package/types/src/frontend/components/property-type/array/remove-sub-property.spec.d.ts +0 -1
- package/types/src/frontend/components/property-type/array/show.d.ts +0 -11
- package/types/src/frontend/components/property-type/base-property-component.d.ts +0 -12
- package/types/src/frontend/components/property-type/base-property-props.d.ts +0 -160
- package/types/src/frontend/components/property-type/boolean/boolean-property-value.d.ts +0 -6
- package/types/src/frontend/components/property-type/boolean/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/boolean/filter.d.ts +0 -10
- package/types/src/frontend/components/property-type/boolean/index.d.ts +0 -5
- package/types/src/frontend/components/property-type/boolean/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/boolean/map-value.d.ts +0 -2
- package/types/src/frontend/components/property-type/boolean/show.d.ts +0 -6
- package/types/src/frontend/components/property-type/clean-property-component.d.ts +0 -12
- package/types/src/frontend/components/property-type/currency/currency-input-wrapper.d.ts +0 -12
- package/types/src/frontend/components/property-type/currency/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/currency/filter.d.ts +0 -9
- package/types/src/frontend/components/property-type/currency/format-value.d.ts +0 -2
- package/types/src/frontend/components/property-type/currency/index.d.ts +0 -5
- package/types/src/frontend/components/property-type/currency/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/currency/show.d.ts +0 -9
- package/types/src/frontend/components/property-type/datetime/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/datetime/filter.d.ts +0 -10
- package/types/src/frontend/components/property-type/datetime/index.d.ts +0 -5
- package/types/src/frontend/components/property-type/datetime/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/datetime/map-value.d.ts +0 -3
- package/types/src/frontend/components/property-type/datetime/show.d.ts +0 -6
- package/types/src/frontend/components/property-type/datetime/strip-time-from-iso.d.ts +0 -1
- package/types/src/frontend/components/property-type/default-type/default-property-value.d.ts +0 -6
- package/types/src/frontend/components/property-type/default-type/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/default-type/filter.d.ts +0 -10
- package/types/src/frontend/components/property-type/default-type/index.d.ts +0 -5
- package/types/src/frontend/components/property-type/default-type/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/default-type/show.d.ts +0 -6
- package/types/src/frontend/components/property-type/default-type/show.spec.d.ts +0 -3
- package/types/src/frontend/components/property-type/index.d.ts +0 -16
- package/types/src/frontend/components/property-type/key-value/edit.d.ts +0 -15
- package/types/src/frontend/components/property-type/key-value/index.d.ts +0 -3
- package/types/src/frontend/components/property-type/key-value/show.d.ts +0 -8
- package/types/src/frontend/components/property-type/mixed/convert-to-sub-property.d.ts +0 -2
- package/types/src/frontend/components/property-type/mixed/edit.d.ts +0 -14
- package/types/src/frontend/components/property-type/mixed/index.d.ts +0 -4
- package/types/src/frontend/components/property-type/mixed/list.d.ts +0 -16
- package/types/src/frontend/components/property-type/mixed/show.d.ts +0 -9
- package/types/src/frontend/components/property-type/password/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/password/index.d.ts +0 -2
- package/types/src/frontend/components/property-type/phone/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/phone/filter.d.ts +0 -10
- package/types/src/frontend/components/property-type/phone/index.d.ts +0 -5
- package/types/src/frontend/components/property-type/phone/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/phone/show.d.ts +0 -6
- package/types/src/frontend/components/property-type/record-property-is-equal.d.ts +0 -8
- package/types/src/frontend/components/property-type/reference/edit.d.ts +0 -10
- package/types/src/frontend/components/property-type/reference/filter.d.ts +0 -10
- package/types/src/frontend/components/property-type/reference/index.d.ts +0 -5
- package/types/src/frontend/components/property-type/reference/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/reference/reference-value.d.ts +0 -7
- package/types/src/frontend/components/property-type/reference/show.d.ts +0 -6
- package/types/src/frontend/components/property-type/richtext/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/richtext/index.d.ts +0 -4
- package/types/src/frontend/components/property-type/richtext/list.d.ts +0 -6
- package/types/src/frontend/components/property-type/richtext/show.d.ts +0 -9
- package/types/src/frontend/components/property-type/textarea/edit.d.ts +0 -9
- package/types/src/frontend/components/property-type/textarea/index.d.ts +0 -3
- package/types/src/frontend/components/property-type/textarea/show.d.ts +0 -6
- package/types/src/frontend/components/property-type/utils/index.d.ts +0 -2
- package/types/src/frontend/components/property-type/utils/property-description/index.d.ts +0 -1
- package/types/src/frontend/components/property-type/utils/property-description/property-description.d.ts +0 -9
- package/types/src/frontend/components/property-type/utils/property-label/index.d.ts +0 -1
- package/types/src/frontend/components/property-type/utils/property-label/property-label.d.ts +0 -12
- package/types/src/frontend/components/routes/bulk-action.d.ts +0 -5
- package/types/src/frontend/components/routes/dashboard.d.ts +0 -28
- package/types/src/frontend/components/routes/index.d.ts +0 -6
- package/types/src/frontend/components/routes/page.d.ts +0 -5
- package/types/src/frontend/components/routes/record-action.d.ts +0 -5
- package/types/src/frontend/components/routes/record-action.spec.d.ts +0 -1
- package/types/src/frontend/components/routes/resource-action.d.ts +0 -11
- package/types/src/frontend/components/routes/resource.d.ts +0 -11
- package/types/src/frontend/components/routes/utils/should-action-re-fetch-data.d.ts +0 -13
- package/types/src/frontend/components/routes/utils/wrapper.d.ts +0 -3
- package/types/src/frontend/components/spec/action-json.factory.d.ts +0 -1
- package/types/src/frontend/components/spec/factory.d.ts +0 -7
- package/types/src/frontend/components/spec/initialize-translations.d.ts +0 -1
- package/types/src/frontend/components/spec/page-json.factory.d.ts +0 -1
- package/types/src/frontend/components/spec/property-json.factory.d.ts +0 -1
- package/types/src/frontend/components/spec/record-json.factory.d.ts +0 -1
- package/types/src/frontend/components/spec/resource-json.factory.d.ts +0 -1
- package/types/src/frontend/components/spec/test-context-provider.d.ts +0 -7
- package/types/src/frontend/hoc/allow-override.d.ts +0 -17
- package/types/src/frontend/hoc/index.d.ts +0 -3
- package/types/src/frontend/hoc/with-no-ssr.d.ts +0 -10
- package/types/src/frontend/hoc/with-notice.d.ts +0 -38
- package/types/src/frontend/hooks/index.d.ts +0 -14
- package/types/src/frontend/hooks/use-action/index.d.ts +0 -3
- package/types/src/frontend/hooks/use-action/use-action-response-handler.d.ts +0 -3
- package/types/src/frontend/hooks/use-action/use-action.d.ts +0 -15
- package/types/src/frontend/hooks/use-action/use-action.types.d.ts +0 -30
- package/types/src/frontend/hooks/use-current-admin.d.ts +0 -39
- package/types/src/frontend/hooks/use-filter-drawer.d.ts +0 -7
- package/types/src/frontend/hooks/use-history-listen.d.ts +0 -2
- package/types/src/frontend/hooks/use-local-storage/index.d.ts +0 -2
- package/types/src/frontend/hooks/use-local-storage/use-local-storage-result.type.d.ts +0 -16
- package/types/src/frontend/hooks/use-local-storage/use-local-storage.d.ts +0 -15
- package/types/src/frontend/hooks/use-modal.d.ts +0 -2
- package/types/src/frontend/hooks/use-navigation-resources.d.ts +0 -4
- package/types/src/frontend/hooks/use-notice.d.ts +0 -29
- package/types/src/frontend/hooks/use-query-params.d.ts +0 -35
- package/types/src/frontend/hooks/use-record/filter-record.d.ts +0 -4
- package/types/src/frontend/hooks/use-record/filter-record.spec.d.ts +0 -1
- package/types/src/frontend/hooks/use-record/index.d.ts +0 -6
- package/types/src/frontend/hooks/use-record/is-entire-record-given.d.ts +0 -3
- package/types/src/frontend/hooks/use-record/merge-record-response.d.ts +0 -14
- package/types/src/frontend/hooks/use-record/params-to-form-data.d.ts +0 -17
- package/types/src/frontend/hooks/use-record/params-to-form-data.spec.d.ts +0 -1
- package/types/src/frontend/hooks/use-record/update-record.d.ts +0 -29
- package/types/src/frontend/hooks/use-record/update-record.spec.d.ts +0 -1
- package/types/src/frontend/hooks/use-record/use-record.d.ts +0 -15
- package/types/src/frontend/hooks/use-record/use-record.type.d.ts +0 -92
- package/types/src/frontend/hooks/use-records/index.d.ts +0 -2
- package/types/src/frontend/hooks/use-records/use-records-result.type.d.ts +0 -29
- package/types/src/frontend/hooks/use-records/use-records.d.ts +0 -14
- package/types/src/frontend/hooks/use-resource/index.d.ts +0 -1
- package/types/src/frontend/hooks/use-resource/use-resource.d.ts +0 -11
- package/types/src/frontend/hooks/use-selected-records/index.d.ts +0 -2
- package/types/src/frontend/hooks/use-selected-records/use-selected-records-result.type.d.ts +0 -17
- package/types/src/frontend/hooks/use-selected-records/use-selected-records.d.ts +0 -14
- package/types/src/frontend/hooks/use-translation.d.ts +0 -51
- package/types/src/frontend/index.d.ts +0 -6
- package/types/src/frontend/interfaces/action/action-has-component.d.ts +0 -3
- package/types/src/frontend/interfaces/action/action-href.d.ts +0 -3
- package/types/src/frontend/interfaces/action/action-json.interface.d.ts +0 -84
- package/types/src/frontend/interfaces/action/build-action-api-call-trigger.d.ts +0 -12
- package/types/src/frontend/interfaces/action/build-action-click-handler.d.ts +0 -16
- package/types/src/frontend/interfaces/action/build-action-test-id.d.ts +0 -2
- package/types/src/frontend/interfaces/action/call-action-api.d.ts +0 -5
- package/types/src/frontend/interfaces/action/index.d.ts +0 -10
- package/types/src/frontend/interfaces/action/is-bulk-action.d.ts +0 -4
- package/types/src/frontend/interfaces/action/is-record-action.d.ts +0 -4
- package/types/src/frontend/interfaces/action/is-resource-action.d.ts +0 -3
- package/types/src/frontend/interfaces/index.d.ts +0 -7
- package/types/src/frontend/interfaces/modal.interface.d.ts +0 -19
- package/types/src/frontend/interfaces/noticeMessage.interface.d.ts +0 -14
- package/types/src/frontend/interfaces/page-json.interface.d.ts +0 -19
- package/types/src/frontend/interfaces/property-json/index.d.ts +0 -1
- package/types/src/frontend/interfaces/property-json/property-json.interface.d.ts +0 -157
- package/types/src/frontend/interfaces/record-json.interface.d.ts +0 -51
- package/types/src/frontend/interfaces/resource-json.interface.d.ts +0 -71
- package/types/src/frontend/layout-template.d.ts +0 -14
- package/types/src/frontend/layout-template.spec.d.ts +0 -1
- package/types/src/frontend/login-template.d.ts +0 -8
- package/types/src/frontend/login-template.spec.d.ts +0 -1
- package/types/src/frontend/store/actions/add-notice.d.ts +0 -8
- package/types/src/frontend/store/actions/drop-notice.d.ts +0 -8
- package/types/src/frontend/store/actions/filter-drawer.d.ts +0 -11
- package/types/src/frontend/store/actions/index.d.ts +0 -16
- package/types/src/frontend/store/actions/initialize-assets.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-branding.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-dashboard.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-locale.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-pages.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-paths.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-resources.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-theme.d.ts +0 -7
- package/types/src/frontend/store/actions/initialize-versions.d.ts +0 -7
- package/types/src/frontend/store/actions/modal.d.ts +0 -5
- package/types/src/frontend/store/actions/route-changed.d.ts +0 -9
- package/types/src/frontend/store/actions/set-current-admin.d.ts +0 -7
- package/types/src/frontend/store/actions/set-drawer-preroute.d.ts +0 -11
- package/types/src/frontend/store/actions/set-notice-progress.d.ts +0 -10
- package/types/src/frontend/store/index.d.ts +0 -5
- package/types/src/frontend/store/initialize-store.d.ts +0 -6
- package/types/src/frontend/store/reducers/assetsReducer.d.ts +0 -5
- package/types/src/frontend/store/reducers/brandingReducer.d.ts +0 -5
- package/types/src/frontend/store/reducers/dashboardReducer.d.ts +0 -7
- package/types/src/frontend/store/reducers/drawerReducer.d.ts +0 -10
- package/types/src/frontend/store/reducers/filterDrawerReducer.d.ts +0 -7
- package/types/src/frontend/store/reducers/index.d.ts +0 -15
- package/types/src/frontend/store/reducers/localesReducer.d.ts +0 -6
- package/types/src/frontend/store/reducers/modalReducer.d.ts +0 -10
- package/types/src/frontend/store/reducers/noticesReducer.d.ts +0 -12
- package/types/src/frontend/store/reducers/pagesReducer.d.ts +0 -6
- package/types/src/frontend/store/reducers/pathsReducer.d.ts +0 -10
- package/types/src/frontend/store/reducers/resourcesReducer.d.ts +0 -6
- package/types/src/frontend/store/reducers/routerReducer.d.ts +0 -22
- package/types/src/frontend/store/reducers/sessionReducer.d.ts +0 -6
- package/types/src/frontend/store/reducers/themeReducer.d.ts +0 -8
- package/types/src/frontend/store/reducers/versionsReducer.d.ts +0 -5
- package/types/src/frontend/store/store.d.ts +0 -21
- package/types/src/frontend/store/utils/pages-to-store.d.ts +0 -3
- package/types/src/frontend/utils/adminjs.i18n.d.ts +0 -11
- package/types/src/frontend/utils/api-client.d.ts +0 -130
- package/types/src/frontend/utils/data-css-name.d.ts +0 -3
- package/types/src/frontend/utils/index.d.ts +0 -3
- package/types/src/frontend/utils/overridable-component.d.ts +0 -11
- package/types/src/index.d.ts +0 -9
- package/types/src/locale/config.d.ts +0 -87
- package/types/src/locale/default-config.d.ts +0 -5
- package/types/src/locale/index.d.ts +0 -4
- package/types/src/utils/error-type.enum.d.ts +0 -10
- package/types/src/utils/file-resolver.d.ts +0 -6
- package/types/src/utils/flat/constants.d.ts +0 -2
- package/types/src/utils/flat/filter-out-params.d.ts +0 -10
- package/types/src/utils/flat/filter-out-params.spec.d.ts +0 -1
- package/types/src/utils/flat/flat-module.d.ts +0 -28
- package/types/src/utils/flat/flat.types.d.ts +0 -36
- package/types/src/utils/flat/get.d.ts +0 -13
- package/types/src/utils/flat/get.spec.d.ts +0 -1
- package/types/src/utils/flat/index.d.ts +0 -2
- package/types/src/utils/flat/merge.d.ts +0 -11
- package/types/src/utils/flat/merge.spec.d.ts +0 -1
- package/types/src/utils/flat/path-parts.type.d.ts +0 -1
- package/types/src/utils/flat/path-to-parts.d.ts +0 -22
- package/types/src/utils/flat/property-key-regex.d.ts +0 -2
- package/types/src/utils/flat/remove-path.d.ts +0 -10
- package/types/src/utils/flat/remove-path.spec.d.ts +0 -1
- package/types/src/utils/flat/select-params.d.ts +0 -11
- package/types/src/utils/flat/select-params.spec.d.ts +0 -1
- package/types/src/utils/flat/set.d.ts +0 -11
- package/types/src/utils/flat/set.spec.d.ts +0 -1
- package/types/src/utils/index.d.ts +0 -4
- package/types/src/utils/param-converter/constants.d.ts +0 -2
- package/types/src/utils/param-converter/convert-nested-param.d.ts +0 -3
- package/types/src/utils/param-converter/convert-nested-param.spec.d.ts +0 -1
- package/types/src/utils/param-converter/convert-param.d.ts +0 -2
- package/types/src/utils/param-converter/convert-param.spec.d.ts +0 -1
- package/types/src/utils/param-converter/index.d.ts +0 -1
- package/types/src/utils/param-converter/param-converter-module.d.ts +0 -11
- package/types/src/utils/param-converter/prepare-params.d.ts +0 -3
- package/types/src/utils/param-converter/validate-param.d.ts +0 -8
- package/types/src/utils/slash/index.d.ts +0 -1
- package/types/src/utils/theme-bundler.d.ts +0 -2
- package/types/src/utils/translate-functions.factory.d.ts +0 -142
- package/types/vendor-types/global.d.ts +0 -15
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CurrentAdmin } from '../../../current-admin.interface.js';
|
|
2
|
-
export type SessionInState = CurrentAdmin | null;
|
|
3
|
-
export declare const sessionReducer: (state: SessionInState | undefined, action: {
|
|
4
|
-
type: string;
|
|
5
|
-
data: SessionInState;
|
|
6
|
-
}) => SessionInState;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ThemeConfig } from '../../../adminjs-options.interface.js';
|
|
2
|
-
export type ThemeInState = (ThemeConfig & {
|
|
3
|
-
availableThemes?: ThemeConfig[];
|
|
4
|
-
}) | null;
|
|
5
|
-
export declare const themeReducer: (state: ThemeInState | undefined, action: {
|
|
6
|
-
type: string;
|
|
7
|
-
data: ThemeInState;
|
|
8
|
-
}) => ThemeInState;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Assets, BrandingOptions, VersionProps } from '../../adminjs-options.interface.js';
|
|
2
|
-
import { type DashboardInState, type DrawerInState, type FilterDrawerInState, type LolcaleInState, type ModalInState, type NoticesInState, type PagesInState, type PathsInState, type ResourcesInState, type RouterInState, type SessionInState, type ThemeInState } from './reducers/index.js';
|
|
3
|
-
export type ReduxState = {
|
|
4
|
-
assets: Assets;
|
|
5
|
-
branding: BrandingOptions;
|
|
6
|
-
dashboard: DashboardInState;
|
|
7
|
-
drawer: DrawerInState;
|
|
8
|
-
filterDrawer: FilterDrawerInState;
|
|
9
|
-
locale: LolcaleInState;
|
|
10
|
-
modal: ModalInState;
|
|
11
|
-
notices: NoticesInState;
|
|
12
|
-
pages: PagesInState;
|
|
13
|
-
paths: PathsInState;
|
|
14
|
-
resources: ResourcesInState;
|
|
15
|
-
router: RouterInState;
|
|
16
|
-
session: SessionInState;
|
|
17
|
-
theme?: ThemeInState;
|
|
18
|
-
versions: VersionProps;
|
|
19
|
-
};
|
|
20
|
-
declare const _default: (initialState?: {}) => import("redux").Store<import("redux").EmptyObject & ReduxState, import("redux").AnyAction>;
|
|
21
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Locale } from '../../locale/index.js';
|
|
2
|
-
/**
|
|
3
|
-
Initializes i18n translations based on provided configuration.
|
|
4
|
-
@function
|
|
5
|
-
@param {Locale} config - The configuration object for initializing i18n
|
|
6
|
-
@returns {{i18n: i18next}} - An object containing an i18n instance.
|
|
7
|
-
*/
|
|
8
|
-
declare const initTranslations: (config: Locale) => {
|
|
9
|
-
i18n: import("i18next").i18n;
|
|
10
|
-
};
|
|
11
|
-
export default initTranslations;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { AxiosResponse, AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { ResourceActionParams, BulkActionParams, RecordActionParams, ActionParams } from '../../backend/utils/view-helpers/view-helpers.js';
|
|
3
|
-
import { RecordJSON } from '../interfaces/index.js';
|
|
4
|
-
import { RecordActionResponse, ActionResponse, BulkActionResponse } from '../../backend/actions/action.interface.js';
|
|
5
|
-
/**
|
|
6
|
-
* Extends {@link AxiosRequestConfig}
|
|
7
|
-
*
|
|
8
|
-
* @alias ActionAPIParams
|
|
9
|
-
* @memberof ApiClient
|
|
10
|
-
* @property {any} ... any property supported by {@link AxiosRequestConfig}
|
|
11
|
-
*/
|
|
12
|
-
export type ActionAPIParams = AxiosRequestConfig & ActionParams;
|
|
13
|
-
/**
|
|
14
|
-
* Extends {@link ActionAPIParams}
|
|
15
|
-
*
|
|
16
|
-
* @alias ResourceActionAPIParams
|
|
17
|
-
* @memberof ApiClient
|
|
18
|
-
* @property {any} ... any property supported by {@link AxiosRequestConfig}
|
|
19
|
-
*/
|
|
20
|
-
export type ResourceActionAPIParams = AxiosRequestConfig & ResourceActionParams & {
|
|
21
|
-
query?: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Extends {@link ActionAPIParams}
|
|
25
|
-
*
|
|
26
|
-
* @alias RecordActionAPIParams
|
|
27
|
-
* @memberof ApiClient
|
|
28
|
-
* @property {any} ... any property supported by {@link ActionAPIParams}
|
|
29
|
-
*/
|
|
30
|
-
export type RecordActionAPIParams = AxiosRequestConfig & RecordActionParams;
|
|
31
|
-
/**
|
|
32
|
-
* Extends {@link ActionAPIParams}
|
|
33
|
-
*
|
|
34
|
-
* @alias BulkActionAPIParams
|
|
35
|
-
* @memberof ApiClient
|
|
36
|
-
* @see https://github.com/axios/axios/blob/master/index.d.ts#L43
|
|
37
|
-
* @property {any} ... any property supported by {@link ActionAPIParams}
|
|
38
|
-
*/
|
|
39
|
-
export type BulkActionAPIParams = AxiosRequestConfig & BulkActionParams;
|
|
40
|
-
/**
|
|
41
|
-
* Extends {@link AxiosRequestConfig}
|
|
42
|
-
*
|
|
43
|
-
* @alias GetPageAPIParams
|
|
44
|
-
* @memberof ApiClient
|
|
45
|
-
* @property {any} ... any property supported by {@link AxiosRequestConfig}
|
|
46
|
-
*/
|
|
47
|
-
export type GetPageAPIParams = AxiosRequestConfig & {
|
|
48
|
-
/**
|
|
49
|
-
* Unique page name
|
|
50
|
-
*/
|
|
51
|
-
pageName: string;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Client which access the admin API.
|
|
55
|
-
* Use it to fetch data from auto generated AdminJS API.
|
|
56
|
-
*
|
|
57
|
-
* In the backend it uses [axios](https://github.com/axios/axios) client
|
|
58
|
-
* library.
|
|
59
|
-
*
|
|
60
|
-
* Usage:
|
|
61
|
-
* ```javascript
|
|
62
|
-
* import { ApiClient } from 'adminjs'
|
|
63
|
-
*
|
|
64
|
-
* const api = new ApiClient()
|
|
65
|
-
* // fetching all records
|
|
66
|
-
* api.resourceAction({ resourceId: 'Comments', actionName: 'list' }).then(results => {...})
|
|
67
|
-
* ```
|
|
68
|
-
* @see https://github.com/axios/axios
|
|
69
|
-
* @hideconstructor
|
|
70
|
-
*/
|
|
71
|
-
declare class ApiClient {
|
|
72
|
-
private baseURL;
|
|
73
|
-
private client;
|
|
74
|
-
constructor();
|
|
75
|
-
static getBaseUrl(): string;
|
|
76
|
-
/**
|
|
77
|
-
* Search by query string for records in a given resource.
|
|
78
|
-
*
|
|
79
|
-
* @param {Object} options
|
|
80
|
-
* @param {String} options.resourceId id of a {@link ResourceJSON}
|
|
81
|
-
* @param {String} options.query query string
|
|
82
|
-
* @param {String} options.searchProperty optional property name
|
|
83
|
-
*
|
|
84
|
-
* @return {Promise<SearchResponse>}
|
|
85
|
-
*/
|
|
86
|
-
searchRecords({ resourceId, query, searchProperty }: {
|
|
87
|
-
resourceId: string;
|
|
88
|
-
query: string;
|
|
89
|
-
searchProperty?: string;
|
|
90
|
-
}): Promise<Array<RecordJSON>>;
|
|
91
|
-
/**
|
|
92
|
-
* Invokes given resource {@link Action} on the backend.
|
|
93
|
-
*
|
|
94
|
-
* @param {ResourceActionAPIParams} options
|
|
95
|
-
* @return {Promise<ActionResponse>} response from an {@link Action}
|
|
96
|
-
*/
|
|
97
|
-
resourceAction(options: ResourceActionAPIParams): Promise<AxiosResponse<ActionResponse>>;
|
|
98
|
-
/**
|
|
99
|
-
* Invokes given record {@link Action} on the backend.
|
|
100
|
-
*
|
|
101
|
-
* @param {RecordActionAPIParams} options
|
|
102
|
-
* @return {Promise<RecordActionResponse>} response from an {@link Action}
|
|
103
|
-
*/
|
|
104
|
-
recordAction(options: RecordActionAPIParams): Promise<AxiosResponse<RecordActionResponse>>;
|
|
105
|
-
/**
|
|
106
|
-
* Invokes given bulk {@link Action} on the backend.
|
|
107
|
-
*
|
|
108
|
-
* @param {BulkActionAPIParams} options
|
|
109
|
-
* @return {Promise<BulkActionResponse>} response from an {@link Action}
|
|
110
|
-
*/
|
|
111
|
-
bulkAction(options: BulkActionAPIParams): Promise<AxiosResponse<BulkActionResponse>>;
|
|
112
|
-
/**
|
|
113
|
-
* Invokes dashboard handler.
|
|
114
|
-
*
|
|
115
|
-
* @param {AxiosRequestConfig} options
|
|
116
|
-
* @return {Promise<AxiosResponse<any>>} response from the handler function defined in
|
|
117
|
-
* {@link AdminJSOptions#dashboard}
|
|
118
|
-
*/
|
|
119
|
-
getDashboard<T = unknown>(options?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
|
|
120
|
-
/**
|
|
121
|
-
* Invokes handler function of given page and returns its response.
|
|
122
|
-
*
|
|
123
|
-
* @param {GetPageAPIParams} options
|
|
124
|
-
* @return {Promise<AxiosResponse<any>>} response from the handler of given page
|
|
125
|
-
* defined in {@link AdminJSOptions#pages}
|
|
126
|
-
*/
|
|
127
|
-
getPage<T = unknown>(options: GetPageAPIParams): Promise<AxiosResponse<T>>;
|
|
128
|
-
refreshToken(data: Record<string, any>): Promise<AxiosResponse<any, any, {}>>;
|
|
129
|
-
}
|
|
130
|
-
export { ApiClient as default, ApiClient, };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const getDataCss: (...args: (string | number)[]) => string;
|
|
2
|
-
export declare const getResourceElementCss: (resourceId: string, suffix: string) => string;
|
|
3
|
-
export declare const getActionElementCss: (resourceId: string, actionName: string, suffix: string) => string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type OverridableComponent = 'LoggedIn' | 'NoRecords' | 'SidebarResourceSection' | 'SidebarFooter' | 'SidebarBranding' | 'Sidebar' | 'TopBar'
|
|
2
|
-
/**
|
|
3
|
-
* @new added in 6.3.0
|
|
4
|
-
*/
|
|
5
|
-
| 'Breadcrumbs' | 'FilterDrawer' | 'NoticeBox' | 'Version' | 'SidebarPages' | 'PropertyHeader' | 'RecordInList' | 'RecordsTableHeader' | 'RecordsTable' | 'SelectedRecords' | 'StyledBackButton' | 'ActionHeader' | 'ActionButton' | 'BulkActionRoute' | 'DashboardRoute' | 'RecordActionRoute' | 'ResourceActionRoute' | 'ResourceRoute' | 'PageRoute' | 'RouteWrapper' | 'Application' | 'DefaultEditAction' | 'DefaultBulkDeleteAction' | 'DefaultListAction' | 'DefaultNewAction' | 'DefaultShowAction' | 'DefaultArrayShowProperty' | 'DefaultArrayListProperty' | 'DefaultArrayEditProperty' | 'DefaultBooleanEditProperty' | 'DefaultBooleanFilterProperty' | 'DefaultBooleanListProperty' | 'DefaultBooleanShowProperty' | 'BooleanPropertyValue' | 'DefaultCurrencyEditProperty' | 'DefaultCurrencyShowProperty' | 'DefaultCurrencyListProperty' | 'DefaultCurrencyFilterProperty' | 'CurrencyPropertyInputWrapper' | 'DefaultDatetimeEditProperty' | 'DefaultDatetimeShowProperty' | 'DefaultDatetimeListProperty' | 'DefaultDatetimeFilterProperty' | 'DefaultPropertyValue' | 'DefaultShowProperty' | 'DefaultListProperty' | 'DefaultEditProperty' | 'DefaultFilterProperty' | 'DefaultMixedShowProperty' | 'DefaultMixedListProperty' | 'DefaultMixedEditProperty' | 'DefaultPasswordEditProperty' | 'DefaultPhoneEditProperty' | 'DefaultPhoneFilterProperty' | 'DefaultPhoneListProperty' | 'DefaultPhoneShowProperty' | 'DefaultReferenceEditProperty' | 'DefaultReferenceShowProperty' | 'DefaultReferenceListProperty' | 'DefaultReferenceFilterProperty' | 'DefaultReferenceValue' | 'DefaultRichtextEditProperty' | 'DefaultRichtextListProperty' | 'DefaultRichtextShowProperty' | 'DefaultTextareaEditProperty' | 'DefaultTextareaShowProperty' | 'PropertyDescription' | 'PropertyLabel' | 'Login' | 'AuthenticationBackgroundComponent' | 'Footer';
|
|
6
|
-
/**
|
|
7
|
-
* Name of the components which can be overridden by ComponentLoader.
|
|
8
|
-
* @memberof AdminJS
|
|
9
|
-
* @alias OverridableComponent
|
|
10
|
-
* @typedef {Union} OverridableComponent
|
|
11
|
-
*/
|
package/types/src/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import AdminJS from './adminjs.js';
|
|
2
|
-
export * from './backend/index.js';
|
|
3
|
-
export * from './frontend/index.js';
|
|
4
|
-
export * from './locale/index.js';
|
|
5
|
-
export * from './utils/index.js';
|
|
6
|
-
export * from './constants.js';
|
|
7
|
-
export * from './adminjs-options.interface.js';
|
|
8
|
-
export * from './current-admin.interface.js';
|
|
9
|
-
export default AdminJS;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { InitOptions, ResourceKey, ResourceLanguage } from 'i18next';
|
|
2
|
-
export type AdminJSLocalesConfig = InitOptions & {
|
|
3
|
-
/**
|
|
4
|
-
* Detect user language
|
|
5
|
-
* learn more: https://github.com/i18next/i18next-browser-languagedetector
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
localeDetection?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Load translation using http -> see /public/locales
|
|
11
|
-
* learn more: https://github.com/i18next/i18next-http-backend
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
withBackend?: boolean;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Locale object passed to {@link AdminJSOptions} and stored in the application
|
|
18
|
-
*
|
|
19
|
-
* @memberof AdminJSOptions
|
|
20
|
-
* @alias Locale
|
|
21
|
-
*/
|
|
22
|
-
export type Locale = AdminJSLocalesConfig & {
|
|
23
|
-
/** Language ISO string like: 'en' 'pl' or 'de' */
|
|
24
|
-
language: string;
|
|
25
|
-
/**
|
|
26
|
-
* All the translations.
|
|
27
|
-
*/
|
|
28
|
-
translations?: Record<string, LocaleTranslations>;
|
|
29
|
-
/**
|
|
30
|
-
* Available languages (array of ISO strings)
|
|
31
|
-
*/
|
|
32
|
-
availableLanguages?: string[];
|
|
33
|
-
};
|
|
34
|
-
type AdminJSLocaleNamespaces = 'actions' | 'buttons' | 'labels' | 'components' | 'pages' | 'messages' | 'properties';
|
|
35
|
-
export type LocaleTranslationsBlock = ResourceLanguage & Partial<Record<AdminJSLocaleNamespaces, ResourceKey>>;
|
|
36
|
-
export type LocaleTranslations = Partial<LocaleTranslationsBlock> & {
|
|
37
|
-
resources?: Record<string, LocaleTranslationsBlock>;
|
|
38
|
-
};
|
|
39
|
-
export {};
|
|
40
|
-
/**
|
|
41
|
-
* Contains all the translations for given language. Everything is divided to
|
|
42
|
-
* sections/blocks like actions, properties, buttons, labels and messages,
|
|
43
|
-
* but also the same sections can can be nested under 'resources' property.
|
|
44
|
-
*
|
|
45
|
-
* This allows you to define translations either for entire UI or for a specific resource.
|
|
46
|
-
* Take a look at this example:
|
|
47
|
-
*
|
|
48
|
-
* ```javascript
|
|
49
|
-
* {
|
|
50
|
-
* translations: {
|
|
51
|
-
* buttons: {
|
|
52
|
-
* save: 'Save it',
|
|
53
|
-
* },
|
|
54
|
-
* resources: {
|
|
55
|
-
* Comments: {
|
|
56
|
-
* buttons: {
|
|
57
|
-
* save: 'Save this comment'
|
|
58
|
-
* }
|
|
59
|
-
* }
|
|
60
|
-
* }
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* In the example above all save buttons will be named: 'Save it'. All but save button in
|
|
66
|
-
* Comments resource. Where the button name will be: Save this comment.
|
|
67
|
-
*
|
|
68
|
-
* @memberof AdminJSOptions
|
|
69
|
-
* @alias LocaleTranslations
|
|
70
|
-
* @typedef {Object} LocaleTranslations
|
|
71
|
-
* @property {Record<string, string>} [actions] translated action labels
|
|
72
|
-
* @property {Record<string, string>} [properties] translated resource properties
|
|
73
|
-
* @property {Record<string, string>} [messages] translated messages
|
|
74
|
-
* @property {Record<string, string>} [buttons] translated button labels
|
|
75
|
-
* @property {Record<string, string>} [components] translated components
|
|
76
|
-
* @property {Record<string, string>} [pages] translated pages
|
|
77
|
-
* @property {Record<string, string>} [labels] translated labels
|
|
78
|
-
* @property {Record<string, object>} [resources] optional resources sub-translations
|
|
79
|
-
* @property {Record<string, object>} resources.resourceId Id of a resource from the database. i.e.
|
|
80
|
-
* Comments for comments mongoose collection
|
|
81
|
-
* @property {Record<string, string>} [resources.resourceId.actions]
|
|
82
|
-
* @property {Record<string, string>} [resources.resourceId.properties]
|
|
83
|
-
* @property {Record<string, string>} [resources.resourceId.messages]
|
|
84
|
-
* @property {Record<string, string>} [resources.resourceId.buttons]
|
|
85
|
-
* @property {Record<string, string>} [resources.resourceId.labels]
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum ErrorTypeEnum {
|
|
2
|
-
App = "AppError",
|
|
3
|
-
Configuration = "ConfigurationError",
|
|
4
|
-
Forbidden = "ForbiddenError",
|
|
5
|
-
NotFound = "NotFoundError",
|
|
6
|
-
NotImplemented = "NotImplementedError",
|
|
7
|
-
Record = "RecordError",
|
|
8
|
-
Validation = "ValidationError"
|
|
9
|
-
}
|
|
10
|
-
export default ErrorTypeEnum;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FlattenParams } from './flat.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* @load ./filter-out-params.doc.md
|
|
4
|
-
* @memberof module:flat
|
|
5
|
-
* @param {FlattenParams} params
|
|
6
|
-
* @param {string | Array<string>} properties
|
|
7
|
-
* @returns {FlattenParams}
|
|
8
|
-
*/
|
|
9
|
-
declare const filterOutParams: (params: FlattenParams, properties: string | Array<string>) => FlattenParams;
|
|
10
|
-
export { filterOutParams };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { flatten, unflatten } from 'flat';
|
|
2
|
-
import { DELIMITER } from './constants.js';
|
|
3
|
-
import { selectParams } from './select-params.js';
|
|
4
|
-
import { filterOutParams } from './filter-out-params.js';
|
|
5
|
-
import { set } from './set.js';
|
|
6
|
-
import { get } from './get.js';
|
|
7
|
-
import { merge } from './merge.js';
|
|
8
|
-
import { pathToParts } from './path-to-parts.js';
|
|
9
|
-
import { removePath } from './remove-path.js';
|
|
10
|
-
export type FlatModuleType = {
|
|
11
|
-
flatten: typeof flatten;
|
|
12
|
-
unflatten: typeof unflatten;
|
|
13
|
-
set: typeof set;
|
|
14
|
-
get: typeof get;
|
|
15
|
-
selectParams: typeof selectParams;
|
|
16
|
-
filterOutParams: typeof filterOutParams;
|
|
17
|
-
DELIMITER: typeof DELIMITER;
|
|
18
|
-
pathToParts: typeof pathToParts;
|
|
19
|
-
removePath: typeof removePath;
|
|
20
|
-
merge: typeof merge;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @module flat
|
|
24
|
-
* @name flat
|
|
25
|
-
* @new in version 3.3
|
|
26
|
-
* @load ./flat.doc.md
|
|
27
|
-
*/
|
|
28
|
-
export declare const flat: FlatModuleType;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type of flatten params.
|
|
3
|
-
*
|
|
4
|
-
* @memberof module:flat
|
|
5
|
-
* @alias FlattenParams
|
|
6
|
-
*/
|
|
7
|
-
export type FlattenParams = {
|
|
8
|
-
[key: string]: FlattenValue;
|
|
9
|
-
};
|
|
10
|
-
export type FlattenValue = string | boolean | number | Date | null | [] | Record<string, unknown> | File;
|
|
11
|
-
/**
|
|
12
|
-
* @memberof module:flat
|
|
13
|
-
* @alias GetOptions
|
|
14
|
-
*/
|
|
15
|
-
export type GetOptions = {
|
|
16
|
-
/**
|
|
17
|
-
* Indicates if all the "less related" siblings should be included. This option takes care of
|
|
18
|
-
* fetching elements in nested arrays. Let's say you have keys: `nested.0.array.0` and `
|
|
19
|
-
* `nested.1.array.0.`. With `includeAllSiblings` you will fetch all nested.N.array elements.
|
|
20
|
-
*/
|
|
21
|
-
includeAllSiblings?: boolean;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Available types for flatten values. This is an Union of types:
|
|
25
|
-
* - `string`
|
|
26
|
-
* - `boolean`
|
|
27
|
-
* - `number`
|
|
28
|
-
* - `Date`
|
|
29
|
-
* - `null`
|
|
30
|
-
* - `[]` (empty array)
|
|
31
|
-
* - `{}` (empty object)
|
|
32
|
-
* - `File`
|
|
33
|
-
* @memberof module:flat
|
|
34
|
-
* @alias FlattenValue
|
|
35
|
-
* @typedef {Union} FlattenValue
|
|
36
|
-
*/
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FlattenParams, GetOptions } from './flat.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* @load ./get.doc.md
|
|
4
|
-
* @memberof module:flat
|
|
5
|
-
* @param {FlattenParams} params flatten params from which property has to be taken
|
|
6
|
-
* @param {string} [propertyPath] name of the property
|
|
7
|
-
* @param {GetOptions} options options
|
|
8
|
-
* @returns {any} when property key exists directly it returns what is inside,
|
|
9
|
-
* otherwise it tries to find any nested objects and returns
|
|
10
|
-
* them
|
|
11
|
-
*/
|
|
12
|
-
declare const get: (params?: FlattenParams, propertyPath?: string, options?: GetOptions) => any;
|
|
13
|
-
export { get };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FlattenParams } from './flat.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Merges params together and returns flatten result
|
|
4
|
-
*
|
|
5
|
-
* @param {any} params
|
|
6
|
-
* @param {Array<any>} ...mergeParams
|
|
7
|
-
* @returns {FlattenParams}
|
|
8
|
-
* @memberof module:flat
|
|
9
|
-
*/
|
|
10
|
-
declare const merge: (params?: any, ...mergeParams: Array<any>) => FlattenParams;
|
|
11
|
-
export { merge };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PathParts = Array<string>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PathParts } from './path-parts.type.js';
|
|
2
|
-
/**
|
|
3
|
-
* @memberof module:flat
|
|
4
|
-
* @alias PathToPartsOptions
|
|
5
|
-
*/
|
|
6
|
-
export type PathToPartsOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates if array indexes should be skipped from the outcome.
|
|
9
|
-
*/
|
|
10
|
-
skipArrayIndexes?: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @load ./path-to-parts.doc.md
|
|
14
|
-
* @param {string} propertyPath
|
|
15
|
-
* @param {PathToPartsOptions} options
|
|
16
|
-
* @returns {PathParts}
|
|
17
|
-
*
|
|
18
|
-
* @memberof module:flat
|
|
19
|
-
* @alias pathToParts
|
|
20
|
-
*/
|
|
21
|
-
declare const pathToParts: (propertyPath: string, options?: PathToPartsOptions) => PathParts;
|
|
22
|
-
export { pathToParts };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FlattenParams } from './flat.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* @load ./remove-path.doc.md
|
|
4
|
-
* @memberof module:flat
|
|
5
|
-
* @param {FlattenParams} params
|
|
6
|
-
* @param {...string} properties
|
|
7
|
-
* @returns {FlattenParams}
|
|
8
|
-
*/
|
|
9
|
-
declare const removePath: (params: FlattenParams, path: string) => FlattenParams;
|
|
10
|
-
export { removePath };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FlattenParams, GetOptions } from './flat.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* @load ./select-params.doc.md
|
|
4
|
-
* @memberof module:flat
|
|
5
|
-
* @param {FlattenParams} params
|
|
6
|
-
* @param {string | Array<string>} properties
|
|
7
|
-
* @param {GetOptions} [options]
|
|
8
|
-
* @returns {FlattenParams}
|
|
9
|
-
*/
|
|
10
|
-
declare const selectParams: (params: FlattenParams, properties: string | Array<string>, options?: GetOptions) => FlattenParams;
|
|
11
|
-
export { selectParams };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FlattenParams } from './flat.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* @load ./set.doc.md
|
|
4
|
-
* @memberof module:flat
|
|
5
|
-
* @param {FlattenParams} params
|
|
6
|
-
* @param {string} propertyPath
|
|
7
|
-
* @param {any} [value] if not give function will only try to remove old keys
|
|
8
|
-
* @returns {FlattenParams}
|
|
9
|
-
*/
|
|
10
|
-
declare const set: (params: FlattenParams | undefined, propertyPath: string, value?: any) => FlattenParams;
|
|
11
|
-
export { set };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './param-converter-module.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DELIMITER } from './constants.js';
|
|
2
|
-
import { convertNestedParam } from './convert-nested-param.js';
|
|
3
|
-
import { convertParam } from './convert-param.js';
|
|
4
|
-
import { prepareParams } from './prepare-params.js';
|
|
5
|
-
export type ParamConverterModuleType = {
|
|
6
|
-
convertParam: typeof convertParam;
|
|
7
|
-
convertNestedParam: typeof convertNestedParam;
|
|
8
|
-
prepareParams: typeof prepareParams;
|
|
9
|
-
DELIMITER: typeof DELIMITER;
|
|
10
|
-
};
|
|
11
|
-
export declare const paramConverter: ParamConverterModuleType;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ParamsTypeValue } from '../../backend/adapters/record/params.type.js';
|
|
2
|
-
import { BaseProperty } from '../../backend/adapters/property/index.js';
|
|
3
|
-
import PropertyDecorator from '../../backend/decorators/property/property-decorator.js';
|
|
4
|
-
declare const isNumeric: (value: ParamsTypeValue) => boolean;
|
|
5
|
-
declare const isUuid: (value: ParamsTypeValue) => boolean;
|
|
6
|
-
declare const isSafeInteger: (value: ParamsTypeValue) => boolean;
|
|
7
|
-
declare const validateParam: (value: ParamsTypeValue, property: BaseProperty | PropertyDecorator) => boolean;
|
|
8
|
-
export { validateParam, isNumeric, isUuid, isSafeInteger };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function slash(path: string): string;
|