@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,184 +0,0 @@
|
|
|
1
|
-
import { AdminJSOptions, Assets } from '../../../adminjs-options.interface.js';
|
|
2
|
-
import type { PathsInState } from '../../../index.js';
|
|
3
|
-
type Paths = PathsInState;
|
|
4
|
-
/**
|
|
5
|
-
* Base Params for a any function
|
|
6
|
-
* @alias ActionParams
|
|
7
|
-
* @memberof ViewHelpers
|
|
8
|
-
*/
|
|
9
|
-
export type ActionParams = {
|
|
10
|
-
/**
|
|
11
|
-
* Unique Resource ID
|
|
12
|
-
*/
|
|
13
|
-
resourceId: string;
|
|
14
|
-
/**
|
|
15
|
-
* Action name
|
|
16
|
-
*/
|
|
17
|
-
actionName: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional query string: ?....
|
|
20
|
-
*/
|
|
21
|
-
search?: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Params for a record action
|
|
25
|
-
* @alias RecordActionParams
|
|
26
|
-
* @extends ActionParams
|
|
27
|
-
* @memberof ViewHelpers
|
|
28
|
-
*/
|
|
29
|
-
export type RecordActionParams = ActionParams & {
|
|
30
|
-
/**
|
|
31
|
-
* Record ID
|
|
32
|
-
*/
|
|
33
|
-
recordId: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Params for a bulk action
|
|
37
|
-
* @alias BulkActionParams
|
|
38
|
-
* @extends ActionParams
|
|
39
|
-
* @memberof ViewHelpers
|
|
40
|
-
*/
|
|
41
|
-
export type BulkActionParams = ActionParams & {
|
|
42
|
-
/**
|
|
43
|
-
* Array of Records ID
|
|
44
|
-
*/
|
|
45
|
-
recordIds?: Array<string>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Params for a resource action
|
|
49
|
-
* @alias ResourceActionParams
|
|
50
|
-
* @extends ActionParams
|
|
51
|
-
* @memberof ViewHelpers
|
|
52
|
-
*/
|
|
53
|
-
export type ResourceActionParams = ActionParams;
|
|
54
|
-
/**
|
|
55
|
-
* Collection of helper methods available in the views
|
|
56
|
-
*/
|
|
57
|
-
export declare class ViewHelpers {
|
|
58
|
-
options: Paths;
|
|
59
|
-
constructor({ options }?: {
|
|
60
|
-
options?: AdminJSOptions;
|
|
61
|
-
});
|
|
62
|
-
static getPaths(options?: AdminJSOptions): Paths;
|
|
63
|
-
/**
|
|
64
|
-
* To each related path adds rootPath passed by the user, as well as a query string
|
|
65
|
-
* @private
|
|
66
|
-
* @param {Array<string>} [paths] list of parts of the url
|
|
67
|
-
* @return {string} path
|
|
68
|
-
* @return {query} [search=''] query string which can be fetch
|
|
69
|
-
* from `location.search`
|
|
70
|
-
*/
|
|
71
|
-
urlBuilder(paths?: Array<string>, search?: string): string;
|
|
72
|
-
/**
|
|
73
|
-
* Returns login URL
|
|
74
|
-
* @return {string}
|
|
75
|
-
*/
|
|
76
|
-
loginUrl(): string;
|
|
77
|
-
/**
|
|
78
|
-
* Returns logout URL
|
|
79
|
-
* @return {string}
|
|
80
|
-
*/
|
|
81
|
-
logoutUrl(): string;
|
|
82
|
-
/**
|
|
83
|
-
* Returns URL for the dashboard
|
|
84
|
-
* @return {string}
|
|
85
|
-
*/
|
|
86
|
-
dashboardUrl(): string;
|
|
87
|
-
/**
|
|
88
|
-
* Returns URL for given page name
|
|
89
|
-
* @param {string} pageName page name which is a unique key specified in
|
|
90
|
-
* {@link AdminJSOptions}
|
|
91
|
-
* @return {string}
|
|
92
|
-
*/
|
|
93
|
-
pageUrl(pageName: string): string;
|
|
94
|
-
/**
|
|
95
|
-
* Returns url for a `edit` action in given Resource. Uses {@link recordActionUrl}
|
|
96
|
-
*
|
|
97
|
-
* @param {string} resourceId id to the resource
|
|
98
|
-
* @param {string} recordId id to the record
|
|
99
|
-
* @param {string} [search] optional query string
|
|
100
|
-
*/
|
|
101
|
-
editUrl(resourceId: string, recordId: string, search?: string): string;
|
|
102
|
-
/**
|
|
103
|
-
* Returns url for a `show` action in given Resource. Uses {@link recordActionUrl}
|
|
104
|
-
*
|
|
105
|
-
* @param {string} resourceId id to the resource
|
|
106
|
-
* @param {string} recordId id to the record
|
|
107
|
-
* @param {string} [search] optional query string
|
|
108
|
-
*/
|
|
109
|
-
showUrl(resourceId: string, recordId: string, search?: string): string;
|
|
110
|
-
/**
|
|
111
|
-
* Returns url for a `delete` action in given Resource. Uses {@link recordActionUrl}
|
|
112
|
-
*
|
|
113
|
-
* @param {string} resourceId id to the resource
|
|
114
|
-
* @param {string} recordId id to the record
|
|
115
|
-
* @param {string} [search] optional query string
|
|
116
|
-
*/
|
|
117
|
-
deleteUrl(resourceId: string, recordId: string, search?: string): string;
|
|
118
|
-
/**
|
|
119
|
-
* Returns url for a `new` action in given Resource. Uses {@link resourceActionUrl}
|
|
120
|
-
*
|
|
121
|
-
* @param {string} resourceId id to the resource
|
|
122
|
-
* @param {string} [search] optional query string
|
|
123
|
-
*/
|
|
124
|
-
newUrl(resourceId: string, search?: string): string;
|
|
125
|
-
/**
|
|
126
|
-
* Returns url for a `list` action in given Resource. Uses {@link resourceActionUrl}
|
|
127
|
-
*
|
|
128
|
-
* @param {string} resourceId id to the resource
|
|
129
|
-
* @param {string} [search] optional query string
|
|
130
|
-
*/
|
|
131
|
-
listUrl(resourceId: string, search?: string): string;
|
|
132
|
-
/**
|
|
133
|
-
* Returns url for a `bulkDelete` action in given Resource. Uses {@link bulkActionUrl}
|
|
134
|
-
*
|
|
135
|
-
* @param {string} resourceId id to the resource
|
|
136
|
-
* @param {Array<string>} recordIds separated by comma records
|
|
137
|
-
* @param {string} [search] optional query string
|
|
138
|
-
*/
|
|
139
|
-
bulkDeleteUrl(resourceId: string, recordIds: Array<string>, search?: string): string;
|
|
140
|
-
/**
|
|
141
|
-
* Returns resourceAction url
|
|
142
|
-
*
|
|
143
|
-
* @param {ResourceActionParams} options
|
|
144
|
-
* @param {string} options.resourceId
|
|
145
|
-
* @param {string} options.actionName
|
|
146
|
-
* @param {string} [options.search] optional query string
|
|
147
|
-
*
|
|
148
|
-
* @return {string}
|
|
149
|
-
*/
|
|
150
|
-
resourceActionUrl({ resourceId, actionName, search }: ResourceActionParams): string;
|
|
151
|
-
resourceUrl({ resourceId, search }: Omit<ResourceActionParams, 'actionName'>): string;
|
|
152
|
-
/**
|
|
153
|
-
* Returns recordAction url
|
|
154
|
-
*
|
|
155
|
-
* @param {RecordActionParams} options
|
|
156
|
-
* @param {string} options.resourceId
|
|
157
|
-
* @param {string} options.recordId
|
|
158
|
-
* @param {string} options.actionName
|
|
159
|
-
*
|
|
160
|
-
* @return {string}
|
|
161
|
-
*/
|
|
162
|
-
recordActionUrl({ resourceId, recordId, actionName, search }: RecordActionParams): string;
|
|
163
|
-
/**
|
|
164
|
-
* Returns bulkAction url
|
|
165
|
-
*
|
|
166
|
-
* @param {BulkActionParams} options
|
|
167
|
-
* @param {string} options.resourceId
|
|
168
|
-
* @param {Array<string>} [options.recordIds]
|
|
169
|
-
* @param {string} options.actionName
|
|
170
|
-
*
|
|
171
|
-
* @return {string}
|
|
172
|
-
*/
|
|
173
|
-
bulkActionUrl({ resourceId, recordIds, actionName, search }: BulkActionParams): string;
|
|
174
|
-
/**
|
|
175
|
-
* Returns absolute path to a given asset.
|
|
176
|
-
* @private
|
|
177
|
-
*
|
|
178
|
-
* @param {string} asset
|
|
179
|
-
* @param {Assets | undefined} assetsConfig
|
|
180
|
-
* @return {string}
|
|
181
|
-
*/
|
|
182
|
-
assetPath(asset: string, assetsConfig?: Assets): string;
|
|
183
|
-
}
|
|
184
|
-
export default ViewHelpers;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/types/src/constants.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @memberof Assets
|
|
3
|
-
* @alias CoreScripts
|
|
4
|
-
*
|
|
5
|
-
* Optional mapping of core AdminJS browser scripts:
|
|
6
|
-
* - app.bundle.js
|
|
7
|
-
* - components.bundle.js
|
|
8
|
-
* - design-system.bundle.js
|
|
9
|
-
* - global.bundle.js
|
|
10
|
-
*
|
|
11
|
-
* You may want to use it if you'd like to version assets for caching. This
|
|
12
|
-
* will only work if you have also configured `assetsCDN` in AdminJS options.
|
|
13
|
-
*
|
|
14
|
-
* Example:
|
|
15
|
-
* ```
|
|
16
|
-
* {
|
|
17
|
-
* 'app.bundle.js': 'app.bundle.123456.js',
|
|
18
|
-
* 'components.bundle.js': 'components.bundle.123456.js',
|
|
19
|
-
* 'design-system.bundle.js': 'design-system.bundle.123456.js',
|
|
20
|
-
* 'global.bundle.js': 'global.bundle.123456.js',
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export interface CoreScripts {
|
|
25
|
-
/**
|
|
26
|
-
* App Bundle
|
|
27
|
-
*/
|
|
28
|
-
'app.bundle.js': string;
|
|
29
|
-
/**
|
|
30
|
-
* Custom Components
|
|
31
|
-
*/
|
|
32
|
-
'components.bundle.js': string;
|
|
33
|
-
/**
|
|
34
|
-
* Design System Bundle
|
|
35
|
-
*/
|
|
36
|
-
'design-system.bundle.js': string;
|
|
37
|
-
/**
|
|
38
|
-
* Global bundle
|
|
39
|
-
*/
|
|
40
|
-
'global.bundle.js': string;
|
|
41
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Currently logged in admin.
|
|
3
|
-
*
|
|
4
|
-
* ### Usage with TypeScript
|
|
5
|
-
*
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import { CurrentAdmin } from 'adminjs'
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @alias CurrentAdmin
|
|
11
|
-
* @memberof AdminJS
|
|
12
|
-
*/
|
|
13
|
-
export interface CurrentAdmin {
|
|
14
|
-
/**
|
|
15
|
-
* Admin has one required field which is an email
|
|
16
|
-
*/
|
|
17
|
-
email: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional title/role of an admin - this will be presented below the email
|
|
20
|
-
*/
|
|
21
|
-
title?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Optional url for an avatar photo
|
|
24
|
-
*/
|
|
25
|
-
avatarUrl?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Id of your admin user
|
|
28
|
-
*/
|
|
29
|
-
id?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Optional ID of theme to use
|
|
32
|
-
*/
|
|
33
|
-
theme?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Extra metadata specific to given Auth Provider
|
|
36
|
-
*/
|
|
37
|
-
_auth?: Record<string, any>;
|
|
38
|
-
/**
|
|
39
|
-
* Also you can put as many other fields to it as you like.
|
|
40
|
-
*/
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { ActionJSON, RecordJSON, ResourceJSON } from '../../interfaces/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Props which are passed to all action components
|
|
5
|
-
* @alias ActionProps
|
|
6
|
-
* @memberof BaseActionComponent
|
|
7
|
-
*/
|
|
8
|
-
export type ActionProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Action object describing the action
|
|
11
|
-
*/
|
|
12
|
-
action: ActionJSON;
|
|
13
|
-
/**
|
|
14
|
-
* Object of type: {@link ResourceJSON}
|
|
15
|
-
*/
|
|
16
|
-
resource: ResourceJSON;
|
|
17
|
-
/**
|
|
18
|
-
* Selected record. Passed for actions with "record" actionType
|
|
19
|
-
*/
|
|
20
|
-
record?: RecordJSON;
|
|
21
|
-
/**
|
|
22
|
-
* Selected records. Passed for actions with "bulk" actionType
|
|
23
|
-
*/
|
|
24
|
-
records?: Array<RecordJSON>;
|
|
25
|
-
/**
|
|
26
|
-
* Sets tag in a header of an action. It is a function taking tag as an argument
|
|
27
|
-
*/
|
|
28
|
-
setTag?: Dispatch<SetStateAction<string>>;
|
|
29
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const FormattedBulkDelete: import("react-redux").ConnectedComponent<any, {
|
|
3
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
4
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
5
|
-
}>;
|
|
6
|
-
declare const OverridableFormattedBulkDelete: React.ComponentType<{
|
|
7
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
8
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
OriginalComponent?: React.ComponentType<{
|
|
11
|
-
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
12
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
13
|
-
}> | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
export { OverridableFormattedBulkDelete as default, OverridableFormattedBulkDelete as BulkDelete, FormattedBulkDelete as OriginalBulkDelete, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { ActionProps } from './action.props.js';
|
|
3
|
-
declare const Edit: FC<ActionProps>;
|
|
4
|
-
declare const OverridableEdit: React.ComponentType<ActionProps & {
|
|
5
|
-
OriginalComponent?: React.ComponentType<ActionProps> | undefined;
|
|
6
|
-
}>;
|
|
7
|
-
export { OverridableEdit as default, OverridableEdit as Edit, Edit as OriginalEdit, };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
export * from './new.js';
|
|
3
|
-
export * from './action.props.js';
|
|
4
|
-
export * from './edit.js';
|
|
5
|
-
export * from './show.js';
|
|
6
|
-
export * from './list.js';
|
|
7
|
-
export * from './bulk-delete.js';
|
|
8
|
-
export * from './utils/index.js';
|
|
9
|
-
export declare const actions: {
|
|
10
|
-
new: import("react").ComponentType<import("./action.props.js").ActionProps & {
|
|
11
|
-
OriginalComponent?: import("react").ComponentType<import("./action.props.js").ActionProps> | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
edit: import("react").ComponentType<import("./action.props.js").ActionProps & {
|
|
14
|
-
OriginalComponent?: import("react").ComponentType<import("./action.props.js").ActionProps> | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
show: import("react").ComponentType<import("./action.props.js").ActionProps & {
|
|
17
|
-
OriginalComponent?: import("react").ComponentType<import("./action.props.js").ActionProps> | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
list: import("react").ComponentType<import("./action.props.js").ActionProps & {
|
|
20
|
-
OriginalComponent?: import("react").ComponentType<import("./action.props.js").ActionProps> | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
bulkDelete: import("react").ComponentType<{
|
|
23
|
-
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
24
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
25
|
-
} & {
|
|
26
|
-
OriginalComponent?: import("react").ComponentType<{
|
|
27
|
-
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
28
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
29
|
-
}> | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActionProps } from './action.props.js';
|
|
3
|
-
declare const List: React.FC<ActionProps>;
|
|
4
|
-
declare const OverridableList: React.ComponentType<ActionProps & {
|
|
5
|
-
OriginalComponent?: React.ComponentType<ActionProps> | undefined;
|
|
6
|
-
}>;
|
|
7
|
-
export { OverridableList as default, OverridableList as List, List as OriginalList, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { ActionProps } from './action.props.js';
|
|
3
|
-
declare const New: FC<ActionProps>;
|
|
4
|
-
declare const OverridableNew: React.ComponentType<ActionProps & {
|
|
5
|
-
OriginalComponent?: React.ComponentType<ActionProps> | undefined;
|
|
6
|
-
}>;
|
|
7
|
-
export { OverridableNew as default, OverridableNew as New, New as OriginalNew, };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActionProps } from './action.props.js';
|
|
3
|
-
/**
|
|
4
|
-
* @name ShowAction
|
|
5
|
-
* @category Actions
|
|
6
|
-
* @description Shows a given record.
|
|
7
|
-
* @component
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
declare const Show: React.FC<ActionProps>;
|
|
11
|
-
declare const OverridableShow: React.ComponentType<ActionProps & {
|
|
12
|
-
OriginalComponent?: React.ComponentType<ActionProps> | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
export { OverridableShow as default, OverridableShow as Show, Show as OriginalShow, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const REFRESH_KEY = "refresh";
|
|
2
|
-
export declare const IGNORE_PARAMS_KEY = "ignore_params";
|
|
3
|
-
/**
|
|
4
|
-
* Adds refresh=true to the url, which in turn should cause list to reload.
|
|
5
|
-
*
|
|
6
|
-
* @param {string} url url to which function should add `refresh`
|
|
7
|
-
* @param {string} [search] optional search query which should be updated,
|
|
8
|
-
* if not given function will use window.location.search
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const appendForceRefresh: (url: string, search?: string) => string;
|
|
12
|
-
export declare const hasForceRefresh: (search: string) => boolean;
|
|
13
|
-
export declare const removeForceRefresh: (search: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './layout-element-renderer.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActionProps } from '../action.props.js';
|
|
3
|
-
import { PropertyPlace } from '../../../interfaces/property-json/property-json.interface.js';
|
|
4
|
-
import { ParsedLayoutElement } from '../../../../backend/utils/layout-element-parser/index.js';
|
|
5
|
-
import { BasePropertyProps } from '../../property-type/base-property-props.js';
|
|
6
|
-
type Props = ActionProps & {
|
|
7
|
-
layoutElement: ParsedLayoutElement;
|
|
8
|
-
where: PropertyPlace;
|
|
9
|
-
onChange?: BasePropertyProps['onChange'];
|
|
10
|
-
};
|
|
11
|
-
export declare const LayoutElementRenderer: React.FC<Props>;
|
|
12
|
-
export default LayoutElementRenderer;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActionResponse } from '../../../../backend/actions/action.interface.js';
|
|
3
|
-
import { ActionJSON } from '../../../interfaces/index.js';
|
|
4
|
-
/**
|
|
5
|
-
* @alias ActionButtonProps
|
|
6
|
-
* @memberof ActionButton
|
|
7
|
-
*/
|
|
8
|
-
export type ActionButtonProps = {
|
|
9
|
-
/** Action to which button should redirect */
|
|
10
|
-
action: ActionJSON;
|
|
11
|
-
/** Id of a resource of an action */
|
|
12
|
-
resourceId: string;
|
|
13
|
-
/** Optional recordId for _record_ action */
|
|
14
|
-
recordId?: string;
|
|
15
|
-
/** Optional recordIds for _bulk_ action */
|
|
16
|
-
recordIds?: Array<string>;
|
|
17
|
-
/** optional callback function which will be triggered when action is performed */
|
|
18
|
-
actionPerformed?: (action: ActionResponse) => any;
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
search?: string;
|
|
21
|
-
queryParams?: Record<string, unknown>;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Renders Button which redirects to given action
|
|
25
|
-
*
|
|
26
|
-
* ### Usage
|
|
27
|
-
*
|
|
28
|
-
* ```
|
|
29
|
-
* import { ActionButton } from 'adminjs'
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @component
|
|
33
|
-
* @subcategory Application
|
|
34
|
-
*/
|
|
35
|
-
declare const ActionButton: React.FC<ActionButtonProps>;
|
|
36
|
-
declare const OverridableActionButton: React.ComponentType<ActionButtonProps & {
|
|
37
|
-
/** Optional recordId for _record_ action */
|
|
38
|
-
OriginalComponent?: React.ComponentType<ActionButtonProps> | undefined;
|
|
39
|
-
}>;
|
|
40
|
-
export { OverridableActionButton as default, OverridableActionButton as ActionButton, ActionButton as OriginalActionButton, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './action-button.js';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ActionJSON, RecordJSON, ResourceJSON } from '../../../interfaces/index.js';
|
|
2
|
-
import { ActionResponse } from '../../../../backend/actions/action.interface.js';
|
|
3
|
-
/**
|
|
4
|
-
* @memberof ActionHeader
|
|
5
|
-
* @alias ActionHeaderProps
|
|
6
|
-
*/
|
|
7
|
-
export type ActionHeaderProps = {
|
|
8
|
-
/** Resource for the action */
|
|
9
|
-
resource: ResourceJSON;
|
|
10
|
-
/** Optional record - for _record_ actions */
|
|
11
|
-
record?: RecordJSON;
|
|
12
|
-
/** If given, action header will render Filter button */
|
|
13
|
-
toggleFilter?: (() => any) | boolean;
|
|
14
|
-
/**
|
|
15
|
-
* It indicates if action without a component was performed.
|
|
16
|
-
*/
|
|
17
|
-
actionPerformed?: (action: ActionResponse) => any;
|
|
18
|
-
/** An action objet */
|
|
19
|
-
action: ActionJSON;
|
|
20
|
-
/** Optional tag which will be rendered as a {@link Badge} */
|
|
21
|
-
tag?: string;
|
|
22
|
-
/** If set, component wont render actions */
|
|
23
|
-
omitActions?: boolean;
|
|
24
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActionHeaderProps } from './action-header-props.js';
|
|
3
|
-
/**
|
|
4
|
-
* Header of an action. It renders Action name with buttons for all the actions.
|
|
5
|
-
*
|
|
6
|
-
* ### Usage
|
|
7
|
-
*
|
|
8
|
-
* ```
|
|
9
|
-
* import { ActionHeader } from 'adminjs'
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* @component
|
|
13
|
-
* @subcategory Application
|
|
14
|
-
*/
|
|
15
|
-
declare const ActionHeader: React.FC<ActionHeaderProps>;
|
|
16
|
-
declare const OverridableActionHeader: React.ComponentType<ActionHeaderProps & {
|
|
17
|
-
OriginalComponent?: React.ComponentType<ActionHeaderProps> | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
export { OverridableActionHeader as default, OverridableActionHeader as ActionHeader, ActionHeader as OriginalActionHeader, };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ButtonGroupProps, ButtonInGroupProps } from '@clement_lores/admin-design-system';
|
|
2
|
-
import { ActionJSON, ModalFunctions } from '../../../interfaces/index.js';
|
|
3
|
-
import { DifferentActionParams } from '../../../hooks/index.js';
|
|
4
|
-
import { TranslateFunctions } from '../../../../utils/index.js';
|
|
5
|
-
export type actionsToButtonGroupOptions = {
|
|
6
|
-
actions: Array<ActionJSON>;
|
|
7
|
-
params: DifferentActionParams;
|
|
8
|
-
handleClick: ButtonInGroupProps['onClick'];
|
|
9
|
-
translateFunctions: TranslateFunctions;
|
|
10
|
-
modalFunctions: ModalFunctions;
|
|
11
|
-
};
|
|
12
|
-
export declare const actionsToButtonGroup: (options: actionsToButtonGroupOptions) => ButtonGroupProps['buttons'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '../../spec/action-json.factory.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type StyledBackButtonProps = {
|
|
3
|
-
showInDrawer: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare const StyledBackButton: React.FC<StyledBackButtonProps>;
|
|
6
|
-
declare const OverridableStyledBackButton: React.ComponentType<StyledBackButtonProps & {
|
|
7
|
-
OriginalComponent?: React.ComponentType<StyledBackButtonProps> | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
export { OverridableStyledBackButton as default, OverridableStyledBackButton as StyledBackButton, StyledBackButton as OriginalStyledBackButton, };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const AuthenticationBackgroundComponent: React.FC;
|
|
3
|
-
declare const OverridableAuthenticationBackgroundComponent: React.ComponentType<{
|
|
4
|
-
OriginalComponent?: React.ComponentType<{}> | undefined;
|
|
5
|
-
}>;
|
|
6
|
-
export { OverridableAuthenticationBackgroundComponent as default, OverridableAuthenticationBackgroundComponent as AuthenticationBackgroundComponent, AuthenticationBackgroundComponent as OriginalAuthenticationBackgroundComponent, };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ActionProps } from '../actions/action.props.js';
|
|
3
|
-
/**
|
|
4
|
-
* Component which renders all the default and custom actions for both the Resource and the Record.
|
|
5
|
-
*
|
|
6
|
-
* It passes all props down to the actual Action component.
|
|
7
|
-
*
|
|
8
|
-
* Example of creating your own actions:
|
|
9
|
-
* ```
|
|
10
|
-
* // AdminJS options
|
|
11
|
-
* const AdminJSOptions = {
|
|
12
|
-
* resources: [
|
|
13
|
-
* resource,
|
|
14
|
-
* options: {
|
|
15
|
-
* actions: {
|
|
16
|
-
* myNewAction: {
|
|
17
|
-
* label: 'amazing action',
|
|
18
|
-
* icon: 'Add',
|
|
19
|
-
* inVisible: (resource, record) => record.param('email') !== '',
|
|
20
|
-
* actionType: 'record',
|
|
21
|
-
* component: 'MyNewAction',
|
|
22
|
-
* handler: (request, response, data) => {
|
|
23
|
-
* return {
|
|
24
|
-
* ...
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
* }
|
|
28
|
-
* }
|
|
29
|
-
* }
|
|
30
|
-
* ]
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* ```
|
|
35
|
-
* // ./my-new-action.js
|
|
36
|
-
* import { Box } from 'adminjs'
|
|
37
|
-
*
|
|
38
|
-
* const MyNewAction = (props) => {
|
|
39
|
-
* const { resource, action, record } = props
|
|
40
|
-
* // do something with the props and render action
|
|
41
|
-
* return (
|
|
42
|
-
* <Box>Some Action Content</Box>
|
|
43
|
-
* )
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @component
|
|
48
|
-
* @name BaseActionComponent
|
|
49
|
-
* @subcategory Application
|
|
50
|
-
*/
|
|
51
|
-
export declare const BaseActionComponent: React.FC<ActionProps>;
|
|
52
|
-
export default BaseActionComponent;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RecordJSON, ResourceJSON } from '../../interfaces/index.js';
|
|
3
|
-
export declare const BreadcrumbLink: any;
|
|
4
|
-
export declare const BreadcrumbText: any;
|
|
5
|
-
/**
|
|
6
|
-
* @memberof Breadcrumbs
|
|
7
|
-
*/
|
|
8
|
-
export type BreadcrumbProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Resource
|
|
11
|
-
*/
|
|
12
|
-
resource: ResourceJSON;
|
|
13
|
-
/**
|
|
14
|
-
* record
|
|
15
|
-
*/
|
|
16
|
-
record?: RecordJSON | null;
|
|
17
|
-
/**
|
|
18
|
-
* Name of an action
|
|
19
|
-
*/
|
|
20
|
-
actionName: string;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @component
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
declare const Breadcrumbs: React.FC<BreadcrumbProps>;
|
|
27
|
-
declare const OverridableBreadcrumbs: React.ComponentType<BreadcrumbProps & {
|
|
28
|
-
OriginalComponent?: React.ComponentType<BreadcrumbProps> | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export { OverridableBreadcrumbs as default, OverridableBreadcrumbs as Breadcrumbs, Breadcrumbs as OriginalBreadcrumbs, };
|