Skip to main content

set of ui components to ease data browsing

Project description

Summary

Set of ui components to ease data browsing.

Setup the SearchUi component

Install the dependencies:

npm install

Then build the css and js files

npm run build

For the dev environment:

npm run watch

Custom facets

RelationSwitchFacet

This facet examines current rset and selected variable and displays a list of relations that can be traversed from the selected variable. When the user clicks on one of those relations, he gets redirected to the resulting page.

For instance, if the original RQL is:

Any X WHERE X is CWUser

then the facet displays (among other relations) in_group and in_state relations. The corresponding RQL for those relations is:

Any G WHERE X is CWUser, X in_group G
Any S WHERE X is CWUser, X in_state S

This facet therefore differs from other facets in that it chagnes the RQL selection (on the left of the WHERE).

NOTE:

while this original implementation is based on facets, it may not be the best choice, considering its behaviour differences:

  • it changes the left part of the WHERE,

  • the user gets redirected to another page,

  • the facet is not reloaded with standard add_rql_restrticions() and possible_values() API calls but is completely regenerated when the facets-content-loaded event is triggered.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cubicweb_searchui-1.1.0.tar.gz (101.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cubicweb_searchui-1.1.0-py3-none-any.whl (101.0 kB view details)

Uploaded Python 3

File details

Details for the file cubicweb_searchui-1.1.0.tar.gz.

File metadata

  • Download URL: cubicweb_searchui-1.1.0.tar.gz
  • Upload date:
  • Size: 101.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cubicweb_searchui-1.1.0.tar.gz
Algorithm Hash digest
SHA256 763249b4a4c6c3332f1f39f7852e6d453a6be8f8450a9ee45cca689be74ffc04
MD5 cf0075ffe18cf71b431fef07d2d6b304
BLAKE2b-256 b336955cd1c4f0fcd28c056cce287b17885650cca8c863b99631f261523ab4aa

See more details on using hashes here.

File details

Details for the file cubicweb_searchui-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cubicweb_searchui-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef6bf08732a2f67b05a93fa1408412c36c666b1e01244a7d1f3f25c7bb86a6a1
MD5 b4594a99f3141ab09e5454a75944a392
BLAKE2b-256 37cbcc787e120485614295b2f68dbb1bd524666483e26859b61321316333a9ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page