Skip to main content

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.

Release files for cubicweb-searchui 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-searchui 1.1.0
File Size Uploaded
cubicweb_searchui-1.1.0.tar.gz 101.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cubicweb-searchui 1.1.0
File Interpreter ABI Platform
cubicweb_searchui-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 202.3 kB

Release files / cubicweb_searchui-1.1.0.tar.gz

Download URL cubicweb_searchui-1.1.0.tar.gz
Size 101.2 kB
Tags Source
SHA-256 checksum
How to use checksums
763249b4a4c6c3332f1f39f7852e6d453a6be8f8450a9ee45cca689be74ffc04
BLAKE2b-256 checksum
How to use checksums
b336955cd1c4f0fcd28c056cce287b17885650cca8c863b99631f261523ab4aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / cubicweb_searchui-1.1.0-py3-none-any.whl

Download URL cubicweb_searchui-1.1.0-py3-none-any.whl
Size 101.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef6bf08732a2f67b05a93fa1408412c36c666b1e01244a7d1f3f25c7bb86a6a1
BLAKE2b-256 checksum
How to use checksums
37cbcc787e120485614295b2f68dbb1bd524666483e26859b61321316333a9ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page