3.3.8 • Published 1 month ago

@smartbit4all/document-explorer v3.3.8

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

SmartDocuStoreExplorer

How to setup

  1. Create a project-specific subclass from the DocuStoreExplorerPageApi interface and its implementation.
public interface YourDocuExplorerPageApi extends DocuStoreExplorerPageApi {}

public class YourDocuExplorerPageApiImpl extends DocuStoreExplorerPageApiImpl
    implements YourDocuExplorerPageApi{}
  1. Create a project-specific subclass from the DocuStoreFolderPageApi interface and its implementation.
public interface YourDocuFolderPageApi extends DocuStoreFolderPageApi {}

public class YourDocuFolderPageApiImpl extends DocuStoreFolderPageApiImpl
    implements YourDocuFolderPageApi {
  1. Create project-specific view names that you provide in the @ViewApi annotations.
@ViewApi(value = YourViewNames.YOUR_DOCU_EXPLORER,
    parent = YourViewNames.SOME_PARENT)
public interface MebitDocuExplorerPageApi extends DocuStoreExplorerPageApi {}

@ViewApi(value = YourViewNames.YOUR_DOCU_FOLDER,
    parent = YourViewNames.YOUR_DOCU_EXPLORER)
public interface YourDocuFolderPageApi extends DocuStoreFolderPageApi {}
  1. In your project's UI configuration, use the @Bean annotation to define your derived interfaces and implementations.
  @Bean
  public DocuStoreFolderPageApi folderPageApi() {
    return new YourDocuFolderPageApiImpl();
  }

  @Override
  @Bean
  public DocuStoreExplorerPageApi docuStoreExplorerPageApi() {
    return new YourDocuExplorerPageApiImpl();
  }
  1. Install the @smartbit4all/document-explorer npm package into your Angular project. @smartbit4all/document-explorer
  2. In the Pages.ts file, specify the names of the new pages.
export enum Pages {
    ...
    YOUR_DOCU_EXPLORER = 'YourDocuExplorer',
    YOUR_DOCU_FOLDER = 'YourDocuFolder',
}
  1. In the viewHandlers.ts file, assign the URLs corresponding to the view names.
export const viewContextHandlers: SmartViewHandlerModel[] = [
    ...
    {
    name: Pages.YOUR_DOCU_EXPLORER,
    route: 'your/route/for the component',
  },
  {
    name: Pages.YOUR_DOCU_FOLDER,
    route: 'your/route/for the component',
  },
  1. Configure the Angular routing according to your needs.

  2. In the app.module.ts provide the DocuStoreExplorer viewname and the project AuthenticationService like this:

providers: [
    ...
    {
      provide: 'AuthenticationService',
      useClass: AuthenticationService,
    },
    {
      provide: 'pageName',
      useValue: Pages.SUBSTANCE_DOCU_EXPLORER,
    },
  ],
3.3.8

1 month ago

3.3.7

1 month ago

3.3.6

1 month ago

3.3.5

2 months ago

3.3.4

2 months ago

3.3.3

2 months ago

3.3.2

3 months ago

3.3.1

3 months ago

3.3.0

3 months ago

3.0.15

4 months ago

3.0.14

6 months ago

3.0.13

6 months ago

3.0.12

6 months ago

3.0.11

6 months ago

3.0.10

6 months ago

3.0.9

6 months ago

3.0.8

7 months ago

3.0.7

7 months ago

3.0.6

7 months ago

3.0.5

7 months ago

3.0.4

7 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.1

8 months ago

3.0.0

8 months ago

2.0.11

8 months ago

2.0.10

8 months ago

2.0.9

8 months ago

2.0.8

8 months ago

2.0.7

8 months ago

2.0.6

8 months ago

2.0.5

8 months ago

2.0.4

8 months ago

2.0.3

8 months ago

2.0.2

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

0.0.32

9 months ago

0.0.31

9 months ago

0.0.30

9 months ago

0.0.29

9 months ago

0.0.28

9 months ago

0.0.27

9 months ago

0.0.26

9 months ago

0.0.25

9 months ago

0.0.24

9 months ago

0.0.23

9 months ago

0.0.22

9 months ago

0.0.21

9 months ago

0.0.20

9 months ago

0.0.19

9 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

9 months ago

0.0.15

9 months ago

0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago