@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,157 +0,0 @@
|
|
|
1
|
-
import { PropertyType } from '../../../backend/adapters/property/base-property.js';
|
|
2
|
-
export type PropertyPlace = 'show' | 'list' | 'edit' | 'filter';
|
|
3
|
-
/**
|
|
4
|
-
* JSON representation of a Property.
|
|
5
|
-
* @subcategory Frontend
|
|
6
|
-
*/
|
|
7
|
-
export interface PropertyJSON {
|
|
8
|
-
/**
|
|
9
|
-
* If given property should be treated as a title
|
|
10
|
-
*/
|
|
11
|
-
isTitle: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* If given property should be treated as a Id field
|
|
14
|
-
*/
|
|
15
|
-
isId: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Property position on a list
|
|
18
|
-
*/
|
|
19
|
-
position: number;
|
|
20
|
-
/**
|
|
21
|
-
* If property is sortable
|
|
22
|
-
*/
|
|
23
|
-
isSortable: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* If property has restricted number of values
|
|
26
|
-
*/
|
|
27
|
-
availableValues: Array<{
|
|
28
|
-
label?: string;
|
|
29
|
-
value: string | number;
|
|
30
|
-
}> | null;
|
|
31
|
-
/**
|
|
32
|
-
* Property uniq name
|
|
33
|
-
*/
|
|
34
|
-
name: string;
|
|
35
|
-
/**
|
|
36
|
-
* Property uniq path. For top level properties - the same as name, but for nested
|
|
37
|
-
* properties it is separated with dot notation: `nested.property`
|
|
38
|
-
*/
|
|
39
|
-
propertyPath: string;
|
|
40
|
-
/**
|
|
41
|
-
* Path of the actual value inside the record. It is usually the same as propertyPath, with the
|
|
42
|
-
* exception of array values.
|
|
43
|
-
*/
|
|
44
|
-
path: string;
|
|
45
|
-
/**
|
|
46
|
-
* Property label
|
|
47
|
-
*/
|
|
48
|
-
label: string;
|
|
49
|
-
/**
|
|
50
|
-
* Description of field. Shown as hoverable hint after label.
|
|
51
|
-
*
|
|
52
|
-
* To use translations provide it in locale with specified options key from resource
|
|
53
|
-
* @example
|
|
54
|
-
* ```js
|
|
55
|
-
* new AdminJS({
|
|
56
|
-
* resources: [
|
|
57
|
-
* {
|
|
58
|
-
* resource: myResource,
|
|
59
|
-
* options: {
|
|
60
|
-
* properties: {
|
|
61
|
-
* myAwesomeProperty: {
|
|
62
|
-
* description: "Plane description" || "awesomeHint", // <- message key in locale
|
|
63
|
-
* },
|
|
64
|
-
* },
|
|
65
|
-
* },
|
|
66
|
-
* },
|
|
67
|
-
* ],
|
|
68
|
-
* locale: {
|
|
69
|
-
* translations: {
|
|
70
|
-
* resources: {
|
|
71
|
-
* myResource: {
|
|
72
|
-
* messages: {
|
|
73
|
-
* awesomeHint: "Locale description",
|
|
74
|
-
* },
|
|
75
|
-
* },
|
|
76
|
-
* },
|
|
77
|
-
* },
|
|
78
|
-
* },
|
|
79
|
-
* });
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
description?: string;
|
|
83
|
-
/**
|
|
84
|
-
* One of {@link PropertyType}s
|
|
85
|
-
*/
|
|
86
|
-
type: PropertyType;
|
|
87
|
-
/**
|
|
88
|
-
* Has a name of a resource to which it is a reference.
|
|
89
|
-
* For instance property `userId` will have here `Users`
|
|
90
|
-
*/
|
|
91
|
-
reference: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* Indicates if property is an array of properties
|
|
94
|
-
*/
|
|
95
|
-
isArray: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Indicates if array elements should be draggable when editing.
|
|
98
|
-
* It is only usable if the property is an array.
|
|
99
|
-
*/
|
|
100
|
-
isDraggable: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Contain list of all sub properties.
|
|
103
|
-
* This is the case for nested schemas in MongoDB.
|
|
104
|
-
*/
|
|
105
|
-
subProperties: Array<BasePropertyJSON>;
|
|
106
|
-
/**
|
|
107
|
-
* All component names overridden by the user in PropertyOptions
|
|
108
|
-
*/
|
|
109
|
-
components?: {
|
|
110
|
-
show?: string;
|
|
111
|
-
edit?: string;
|
|
112
|
-
filter?: string;
|
|
113
|
-
list?: string;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Custom parameters passed from the {@link PropertyOptions.custom}.
|
|
117
|
-
*/
|
|
118
|
-
custom: {
|
|
119
|
-
[key: string]: any;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* Additional props passed to the actual react component
|
|
123
|
-
*/
|
|
124
|
-
props: {
|
|
125
|
-
[key: string]: any;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Whether the field should be disabled in edition
|
|
129
|
-
*/
|
|
130
|
-
isDisabled: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Whether the field should be marked as required (with a star)
|
|
133
|
-
*/
|
|
134
|
-
isRequired: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* if label above the input should be hidden
|
|
137
|
-
*/
|
|
138
|
-
hideLabel: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Resource to which given property belongs
|
|
141
|
-
*/
|
|
142
|
-
resourceId: string;
|
|
143
|
-
/**
|
|
144
|
-
* Indicates if given property has been created in AdminJS {@link PropertyOptions} and hasn't
|
|
145
|
-
* been returned by the database adapter.
|
|
146
|
-
*/
|
|
147
|
-
isVirtual: boolean;
|
|
148
|
-
}
|
|
149
|
-
export type BasePropertyJSON = Omit<PropertyJSON, 'path'>;
|
|
150
|
-
/**
|
|
151
|
-
* Property without the path. Defined as `Omit<PropertyJSON, 'path'>`
|
|
152
|
-
*
|
|
153
|
-
* @typedef {Object} BasePropertyJSON
|
|
154
|
-
* @property {any} ... properties from {@link PropertyJSON} except `path`
|
|
155
|
-
* @alias BasePropertyJSON
|
|
156
|
-
* @memberof PropertyJSON
|
|
157
|
-
*/
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ErrorTypeEnum } from '../../utils/error-type.enum.js';
|
|
2
|
-
import { ParamsType, RecordError } from '../../backend/index.js';
|
|
3
|
-
import { ActionJSON } from './action/action-json.interface.js';
|
|
4
|
-
/**
|
|
5
|
-
* @memberof {RecordJSON}
|
|
6
|
-
* @alias ErrorMessage
|
|
7
|
-
*/
|
|
8
|
-
export type ErrorMessage = {
|
|
9
|
-
/** Human readable message */
|
|
10
|
-
message: string;
|
|
11
|
-
/** Error type */
|
|
12
|
-
type?: ErrorTypeEnum | string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* JSON representation of an record
|
|
16
|
-
* @subcategory Frontend
|
|
17
|
-
*/
|
|
18
|
-
export interface RecordJSON {
|
|
19
|
-
/**
|
|
20
|
-
* all flatten params of given record
|
|
21
|
-
*/
|
|
22
|
-
params: ParamsType;
|
|
23
|
-
/**
|
|
24
|
-
* If the record has properties which are references - here there will be populated records
|
|
25
|
-
*/
|
|
26
|
-
populated: Record<string, RecordJSON | null | undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* Any base/overall validation error for the record
|
|
29
|
-
*/
|
|
30
|
-
baseError: RecordError | null;
|
|
31
|
-
/**
|
|
32
|
-
* List of all validation errors
|
|
33
|
-
*/
|
|
34
|
-
errors: Record<string, ErrorMessage>;
|
|
35
|
-
/**
|
|
36
|
-
* Uniq Id of a record. Not present if the record is new (in NewAction)
|
|
37
|
-
*/
|
|
38
|
-
id: string;
|
|
39
|
-
/**
|
|
40
|
-
* Title of an record. Not present if the record is new (in NewAction)
|
|
41
|
-
*/
|
|
42
|
-
title: string;
|
|
43
|
-
/**
|
|
44
|
-
* Actions which can be performed on this record.
|
|
45
|
-
*/
|
|
46
|
-
recordActions: Array<ActionJSON>;
|
|
47
|
-
/**
|
|
48
|
-
* Actions which can be performed on this record in a bulk.
|
|
49
|
-
*/
|
|
50
|
-
bulkActions: Array<ActionJSON>;
|
|
51
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { BasePropertyJSON } from './property-json/index.js';
|
|
2
|
-
import { ActionJSON } from './action/action-json.interface.js';
|
|
3
|
-
/**
|
|
4
|
-
* Resource object accessible on the fronted
|
|
5
|
-
* @alias ResourceJSON
|
|
6
|
-
* @subcategory Frontend
|
|
7
|
-
*/
|
|
8
|
-
export interface ResourceJSON {
|
|
9
|
-
/**
|
|
10
|
-
* Unique Id of a resource
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
13
|
-
/**
|
|
14
|
-
* Resource name
|
|
15
|
-
*/
|
|
16
|
-
name: string;
|
|
17
|
-
/**
|
|
18
|
-
* url to a resource list action. If null - resource should not be seen in the sidebar.
|
|
19
|
-
*/
|
|
20
|
-
href: string | null;
|
|
21
|
-
/**
|
|
22
|
-
* Resource parent - visible on the sidebar
|
|
23
|
-
*/
|
|
24
|
-
navigation: {
|
|
25
|
-
/**
|
|
26
|
-
* Parent name
|
|
27
|
-
*/
|
|
28
|
-
name: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* Parent icon
|
|
31
|
-
*/
|
|
32
|
-
icon: string;
|
|
33
|
-
/**
|
|
34
|
-
* Visibility
|
|
35
|
-
*/
|
|
36
|
-
show: boolean;
|
|
37
|
-
} | null;
|
|
38
|
-
/**
|
|
39
|
-
* Property which should be treated as a Main property
|
|
40
|
-
*/
|
|
41
|
-
titleProperty: BasePropertyJSON;
|
|
42
|
-
/**
|
|
43
|
-
* Actions available for entire resource with type: resource
|
|
44
|
-
*/
|
|
45
|
-
resourceActions: Array<ActionJSON>;
|
|
46
|
-
/**
|
|
47
|
-
* All actions - whether they are available or not.
|
|
48
|
-
*/
|
|
49
|
-
actions: Array<ActionJSON>;
|
|
50
|
-
/**
|
|
51
|
-
* Properties which should be visible on the list
|
|
52
|
-
*/
|
|
53
|
-
listProperties: Array<BasePropertyJSON>;
|
|
54
|
-
/**
|
|
55
|
-
* Properties which should be visible on the edit view
|
|
56
|
-
*/
|
|
57
|
-
editProperties: Array<BasePropertyJSON>;
|
|
58
|
-
/**
|
|
59
|
-
* Properties which should be visible on the show view
|
|
60
|
-
*/
|
|
61
|
-
showProperties: Array<BasePropertyJSON>;
|
|
62
|
-
/**
|
|
63
|
-
* Properties which should be visible on the filter
|
|
64
|
-
*/
|
|
65
|
-
filterProperties: Array<BasePropertyJSON>;
|
|
66
|
-
/**
|
|
67
|
-
* Map of all properties inside the resource. It also contains nested properties.
|
|
68
|
-
* So this is the easies way of getting any property you like from a resource.
|
|
69
|
-
*/
|
|
70
|
-
properties: Record<string, BasePropertyJSON>;
|
|
71
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import AdminJS from '../adminjs.js';
|
|
2
|
-
import { CurrentAdmin } from '../current-admin.interface.js';
|
|
3
|
-
/**
|
|
4
|
-
* Renders (SSR) html for given location
|
|
5
|
-
*
|
|
6
|
-
* @param {AdminJS} admin
|
|
7
|
-
* @param {Object} [currentAdmin]
|
|
8
|
-
* @param {String} currentAdmin.email
|
|
9
|
-
* @param {String} location='/'
|
|
10
|
-
*
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
declare const html: (admin: AdminJS, currentAdmin?: CurrentAdmin, location?: string) => Promise<string>;
|
|
14
|
-
export default html;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import AdminJS from '../adminjs.js';
|
|
2
|
-
export type LoginTemplateAttributes = {
|
|
3
|
-
errorMessage?: string | null;
|
|
4
|
-
action?: string;
|
|
5
|
-
[name: string]: any;
|
|
6
|
-
};
|
|
7
|
-
declare const html: (admin: AdminJS, attributes: LoginTemplateAttributes) => Promise<string>;
|
|
8
|
-
export default html;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type NoticeMessage } from '../../interfaces/noticeMessage.interface.js';
|
|
2
|
-
import { type NoticeMessageInState } from '../reducers/noticesReducer.js';
|
|
3
|
-
export declare const ADD_NOTICE = "ADD_NOTICE";
|
|
4
|
-
export type AddNoticeResponse = {
|
|
5
|
-
type: typeof ADD_NOTICE;
|
|
6
|
-
data: NoticeMessageInState;
|
|
7
|
-
};
|
|
8
|
-
export declare const addNotice: (data: NoticeMessage) => AddNoticeResponse;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const OPEN_FILTER_DRAWER = "OPEN_FILTER_DRAWER";
|
|
2
|
-
export declare const CLOSE_FILTER_DRAWER = "CLOSE_FILTER_DRAWER";
|
|
3
|
-
export type FilterDrawerAction = {
|
|
4
|
-
type: typeof OPEN_FILTER_DRAWER;
|
|
5
|
-
isVisible: true;
|
|
6
|
-
} | {
|
|
7
|
-
type: typeof CLOSE_FILTER_DRAWER;
|
|
8
|
-
isVisible: false;
|
|
9
|
-
};
|
|
10
|
-
export declare const showFilterDrawer: () => FilterDrawerAction;
|
|
11
|
-
export declare const hideFilterDrawer: () => FilterDrawerAction;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './add-notice.js';
|
|
2
|
-
export * from './drop-notice.js';
|
|
3
|
-
export * from './initialize-assets.js';
|
|
4
|
-
export * from './initialize-branding.js';
|
|
5
|
-
export * from './initialize-dashboard.js';
|
|
6
|
-
export * from './initialize-locale.js';
|
|
7
|
-
export * from './initialize-pages.js';
|
|
8
|
-
export * from './initialize-paths.js';
|
|
9
|
-
export * from './initialize-resources.js';
|
|
10
|
-
export * from './initialize-theme.js';
|
|
11
|
-
export * from './initialize-versions.js';
|
|
12
|
-
export * from './modal.js';
|
|
13
|
-
export * from './route-changed.js';
|
|
14
|
-
export * from './set-current-admin.js';
|
|
15
|
-
export * from './set-drawer-preroute.js';
|
|
16
|
-
export * from './set-notice-progress.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Assets } from '../../../adminjs-options.interface.js';
|
|
2
|
-
export declare const ASSETS_INITIALIZE = "ASSETS_INITIALIZE";
|
|
3
|
-
export type initializeAssetsResponse = {
|
|
4
|
-
type: string;
|
|
5
|
-
data: Assets;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeAssets: (data: Assets) => initializeAssetsResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BrandingOptions } from '../../../adminjs-options.interface.js';
|
|
2
|
-
export declare const BRANDING_INITIALIZE = "BRANDING_INITIALIZE";
|
|
3
|
-
export type InitializeBrandingResponse = {
|
|
4
|
-
type: typeof BRANDING_INITIALIZE;
|
|
5
|
-
data: BrandingOptions;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeBranding: (data: BrandingOptions) => InitializeBrandingResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DashboardInState } from '../reducers/dashboardReducer.js';
|
|
2
|
-
export declare const DASHBOARD_INITIALIZE = "DASHBOARD_INITIALIZE";
|
|
3
|
-
export type InitializeDashboardResponse = {
|
|
4
|
-
type: typeof DASHBOARD_INITIALIZE;
|
|
5
|
-
data: DashboardInState;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeDashboard: (data: DashboardInState) => InitializeDashboardResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Locale } from '../../../locale/config.js';
|
|
2
|
-
export declare const LOCALE_INITIALIZE = "LOCALE_INITIALIZE";
|
|
3
|
-
export type InitializeLocaleResponse = {
|
|
4
|
-
type: typeof LOCALE_INITIALIZE;
|
|
5
|
-
data: Locale;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeLocale: (data: Locale) => InitializeLocaleResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdminPage } from '../../../adminjs-options.interface.js';
|
|
2
|
-
export declare const PAGES_INITIALIZE = "PAGES_INITIALIZE";
|
|
3
|
-
export type InitializePagesResponse = {
|
|
4
|
-
type: typeof PAGES_INITIALIZE;
|
|
5
|
-
data: Array<AdminPage>;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializePages: (data: Array<AdminPage>) => InitializePagesResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PathsInState } from '../reducers/pathsReducer.js';
|
|
2
|
-
export declare const PATHS_INITIALIZE = "PATHS_INITIALIZE";
|
|
3
|
-
export type InitializePathsResponse = {
|
|
4
|
-
type: typeof PATHS_INITIALIZE;
|
|
5
|
-
data: PathsInState;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializePaths: (data: PathsInState) => InitializePathsResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResourceJSON } from '../../interfaces/index.js';
|
|
2
|
-
export declare const RESOURCES_INITIALIZE = "RESOURCES_INITIALIZE";
|
|
3
|
-
export type InitializeResourcesResponse = {
|
|
4
|
-
type: typeof RESOURCES_INITIALIZE;
|
|
5
|
-
data: Array<ResourceJSON>;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeResources: (data: Array<ResourceJSON>) => InitializeResourcesResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ThemeInState } from '../reducers/themeReducer.js';
|
|
2
|
-
export declare const THEME_INITIALIZE = "THEME_INITIALIZE";
|
|
3
|
-
export type initializeThemeResponse = {
|
|
4
|
-
type: typeof THEME_INITIALIZE;
|
|
5
|
-
data: ThemeInState;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeTheme: (data: ThemeInState) => initializeThemeResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { VersionProps } from '../../../adminjs-options.interface.js';
|
|
2
|
-
export declare const VERSIONS_INITIALIZE = "VERSIONS_INITIALIZE";
|
|
3
|
-
export type InitializeVersionsResponse = {
|
|
4
|
-
type: typeof VERSIONS_INITIALIZE;
|
|
5
|
-
data: VersionProps;
|
|
6
|
-
};
|
|
7
|
-
export declare const initializeVersions: (data: VersionProps) => InitializeVersionsResponse;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ModalData, ShowModalResponse, HideModalResponse } from '../../interfaces/index.js';
|
|
2
|
-
export declare const SHOW_MODAL = "SHOW_MODAL";
|
|
3
|
-
export declare const HIDE_MODAL = "HIDE_MODAL";
|
|
4
|
-
export declare const showModal: (data: ModalData) => ShowModalResponse;
|
|
5
|
-
export declare const hideModal: () => HideModalResponse;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { useLocation } from 'react-router';
|
|
2
|
-
export declare const INITIAL_ROUTE = "INITIAL_ROUTE";
|
|
3
|
-
export declare const ROUTE_CHANGED = "ROUTE_CHANGED";
|
|
4
|
-
export type RouteChangedResponse = {
|
|
5
|
-
type: typeof ROUTE_CHANGED;
|
|
6
|
-
data: any;
|
|
7
|
-
};
|
|
8
|
-
export declare const initializeRoute: (location: Partial<ReturnType<typeof useLocation>>) => RouteChangedResponse;
|
|
9
|
-
export declare const changeRoute: (location: ReturnType<typeof useLocation>) => RouteChangedResponse;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SessionInState } from '../reducers/sessionReducer.js';
|
|
2
|
-
export declare const SESSION_INITIALIZE = "SESSION_INITIALIZE";
|
|
3
|
-
export type SetCurrentAdminResponse = {
|
|
4
|
-
type: typeof SESSION_INITIALIZE;
|
|
5
|
-
data: SessionInState;
|
|
6
|
-
};
|
|
7
|
-
export declare const setCurrentAdmin: (data?: SessionInState) => SetCurrentAdminResponse;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { useLocation } from 'react-router';
|
|
2
|
-
export declare const DRAWER_PREROUTE_SET = "DRAWER_PREROUTE_SET";
|
|
3
|
-
export type SetDrawerPreRouteResponse = {
|
|
4
|
-
type: typeof DRAWER_PREROUTE_SET;
|
|
5
|
-
data: {
|
|
6
|
-
previousRoute: Partial<ReturnType<typeof useLocation>> | null;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const setDrawerPreRoute: (data: {
|
|
10
|
-
previousRoute: Partial<ReturnType<typeof useLocation>> | null;
|
|
11
|
-
}) => SetDrawerPreRouteResponse;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const SET_NOTICE_PROGRESS = "SET_NOTICE_PROGRESS";
|
|
2
|
-
export type SetNoticeProgress = {
|
|
3
|
-
noticeId: string;
|
|
4
|
-
progress: number;
|
|
5
|
-
};
|
|
6
|
-
export type SetNoticeProgressResponse = {
|
|
7
|
-
type: typeof SET_NOTICE_PROGRESS;
|
|
8
|
-
data: SetNoticeProgress;
|
|
9
|
-
};
|
|
10
|
-
export declare const setNoticeProgress: (data: SetNoticeProgress) => SetNoticeProgressResponse;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Store } from 'redux';
|
|
2
|
-
import { ReduxState } from './store.js';
|
|
3
|
-
import AdminJS from '../../adminjs.js';
|
|
4
|
-
import { CurrentAdmin } from '../../current-admin.interface.js';
|
|
5
|
-
export declare const initializeStore: (admin: AdminJS, currentAdmin?: CurrentAdmin) => Promise<Store<ReduxState>>;
|
|
6
|
-
export default initializeStore;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SetDrawerPreRouteResponse } from '../actions/set-drawer-preroute.js';
|
|
2
|
-
export type DrawerInState = SetDrawerPreRouteResponse['data'];
|
|
3
|
-
export declare const drawerReducer: (state: {
|
|
4
|
-
previousRoute: Partial<import("react-router").Location> | null;
|
|
5
|
-
} | undefined, action: {
|
|
6
|
-
type: string;
|
|
7
|
-
data: DrawerInState;
|
|
8
|
-
}) => {
|
|
9
|
-
previousRoute: Partial<import("react-router").Location> | null;
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type FilterDrawerAction } from '../actions/filter-drawer.js';
|
|
2
|
-
export type FilterDrawerInState = ReturnType<typeof filterDrawerReducer>;
|
|
3
|
-
export declare const filterDrawerReducer: (state: {
|
|
4
|
-
isVisible: boolean;
|
|
5
|
-
} | undefined, action: FilterDrawerAction) => {
|
|
6
|
-
isVisible: boolean;
|
|
7
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './assetsReducer.js';
|
|
2
|
-
export * from './brandingReducer.js';
|
|
3
|
-
export * from './dashboardReducer.js';
|
|
4
|
-
export * from './drawerReducer.js';
|
|
5
|
-
export * from './filterDrawerReducer.js';
|
|
6
|
-
export * from './localesReducer.js';
|
|
7
|
-
export * from './modalReducer.js';
|
|
8
|
-
export * from './noticesReducer.js';
|
|
9
|
-
export * from './pagesReducer.js';
|
|
10
|
-
export * from './pathsReducer.js';
|
|
11
|
-
export * from './resourcesReducer.js';
|
|
12
|
-
export * from './routerReducer.js';
|
|
13
|
-
export * from './sessionReducer.js';
|
|
14
|
-
export * from './themeReducer.js';
|
|
15
|
-
export * from './versionsReducer.js';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ModalData } from '../../interfaces/index.js';
|
|
2
|
-
export type ModalInState = (ModalData & {
|
|
3
|
-
show: true;
|
|
4
|
-
}) | {
|
|
5
|
-
show: false;
|
|
6
|
-
};
|
|
7
|
-
export declare const modalReducer: (state: ModalInState | undefined, action: {
|
|
8
|
-
type: string;
|
|
9
|
-
data: ModalData;
|
|
10
|
-
}) => ModalInState;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type NoticeMessage } from '../../interfaces/noticeMessage.interface.js';
|
|
2
|
-
import { AddNoticeResponse } from '../actions/add-notice.js';
|
|
3
|
-
import { DropNoticeResponse } from '../actions/drop-notice.js';
|
|
4
|
-
import { SetNoticeProgressResponse } from '../actions/set-notice-progress.js';
|
|
5
|
-
export interface NoticeMessageInState extends NoticeMessage {
|
|
6
|
-
id: string;
|
|
7
|
-
progress: number;
|
|
8
|
-
}
|
|
9
|
-
export type NoticesInState = Array<NoticeMessageInState>;
|
|
10
|
-
type NoticeActionResponse = AddNoticeResponse | DropNoticeResponse | SetNoticeProgressResponse;
|
|
11
|
-
export declare const noticesReducer: (state: NoticesInState | undefined, action: NoticeActionResponse) => NoticesInState;
|
|
12
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ResourceJSON } from '../../interfaces/resource-json.interface.js';
|
|
2
|
-
export type ResourcesInState = Array<ResourceJSON>;
|
|
3
|
-
export declare const resourcesReducer: (state: ResourcesInState | undefined, action: {
|
|
4
|
-
type: string;
|
|
5
|
-
data: ResourcesInState;
|
|
6
|
-
}) => ResourcesInState;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Location } from 'react-router';
|
|
2
|
-
import { ROUTE_CHANGED, INITIAL_ROUTE } from '../actions/route-changed.js';
|
|
3
|
-
export type RouterInState = {
|
|
4
|
-
from: Partial<Location>;
|
|
5
|
-
to: Partial<Location>;
|
|
6
|
-
};
|
|
7
|
-
export declare const routerReducer: (state: RouterInState | undefined, action: {
|
|
8
|
-
type: typeof INITIAL_ROUTE | typeof ROUTE_CHANGED;
|
|
9
|
-
data: any;
|
|
10
|
-
}) => {
|
|
11
|
-
from: any;
|
|
12
|
-
to: Partial<Location>;
|
|
13
|
-
} | {
|
|
14
|
-
from: {
|
|
15
|
-
state?: any;
|
|
16
|
-
key?: string | undefined;
|
|
17
|
-
pathname?: string | undefined;
|
|
18
|
-
search?: string | undefined;
|
|
19
|
-
hash?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
to: any;
|
|
22
|
-
};
|