16.0.2 • Published 2 months ago

@laserfiche/lf-ui-components-services v16.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

lf-ui-components-services

This library contains the data sources implementation to connect the Laserfiche UI Components to live data from Laserfiche API services.

You can use these pre-built services to display data using the UI components.

Documentation

Getting started

  1. npm install @laserfiche/lf-ui-components-services
  2. Create an instance of IRepositoryClientEx. See IRepositoryClient documentation to create partialRepoClient.

    const partialRepoClient = IRepositoryClient.createFromHttpHandler({...});
    const repositoryClient: IRepositoryClientEx = {
        ...partialRepoClient,
        getCurrentRepoId: async () => {return await partialRepoClient.repositoriesClient.getRepositoryInfo()[0].repoId},
        getCurrentRepoName: async () => {return await partialRepoClient.repositoriesClient.getRepositoryInfo()[0].repoName},
    }
  3. Initialize your chosen service

    const fieldsService = new LfFieldsService(repositoryClient);
  4. Use service with the corresponding UI Component

    await this.metadataContainer.initAsync({fieldsService});

For detailed information about how to utilize these services see the sample projects available in Github (in Angular and React)

Change Log

See CHANGELOG here.

Contribution

We welcome contributions and feedback. Please follow our contributing guidelines.

Development prerequisite

See .github/workflows/main.yml for Node and NPM version used.

16.0.2

2 months ago

15.0.1

3 months ago

16.0.1

3 months ago

15.0.0

9 months ago

16.0.0

7 months ago

14.1.0

11 months ago

13.0.5

1 year ago

14.0.0

1 year ago

13.0.4

2 years ago

13.0.2

2 years ago

13.0.3

2 years ago

13.0.1

2 years ago

13.0.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago