New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fenix-ui-catalog

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fenix-ui-catalog

FENIX Catalog

  • 2.0.0-beta.62
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

FENIX Catalog


var Catalog = require('fx-catalog/start');

var catalog = new Catalog(options);

Configuration

Check fx-catalog/config/config.js to have a look of the default configuration.

ParameterTypeDefault ValueExampleDescription
elCSS3 Selector/JavaScript DOM element/jQuery DOM element - "#container"component container
cachebooleanfalsetruewhether or not to use FENIX bridge cache
perPagestring1020How many results to show per page
actionsArray of string['select']['select', 'metadata', 'view', 'download']The action button aside of each result
excludedActionobject{ dataset : [], geographic : ['download'] } { dataset : ['download'], geographic : [] } Keyset is the enumeration of FENIX resource representation type. Value: array of string with the resultActions to exclude for a specific resource representation type.
menuExcludedItemsArray of string[]['accessibility']Ids of menu items to hide fro default configuration
searchTimeoutIntervalnumber10002000Result refresh timeout for instant search
dateFormatstring'YYYY MMM DD''YYYY M DD'Moment JS date format
hideCloseButtonbooleanfalsetrueHide the close button
columnsobject title: { path : "title", type: "i18n" }, source : { path : "contacts", type : "source" }, last_update : { path : "meMaintenance.seUpdate.updateDate", type : "epoch" }, region : { path: "meContent.seCoverage.coverageGeographic", type: "code" }, resourceType : { path: "meContent.resourceRepresentationType" } -Keyset: columns is, value: object. path: FENIX metadata v2.0 path of the metadata attribute to show. Type: attribute type
findServiceParamsobject{ full: true, order : "meMaintenance.seUpdate.updateDate:desc" //order by last update } -D3P compatible string parameters
defaultSelectorsArray of selector id['resourceType', 'contextSystem'] ['resourceType']Id of the default selectors of the catalog. Id are accessible from the selectors registry.
environmentstring'develop' 'production'Server environment
langstring'EN''FR'Multilingual
pluginRegistryObjectcheck `fx-catalog/config/pluginRegistry.js`-Expandable available selectors registry
langFallbackOrderArray of language["EN", "FR", "ES", "AR", "PR"]["AR", "FR", "EN", "ES", "PR"]Whenever a multi-language label is used, in case the UI-language label is not available this is the language fallback order.

API

//This is an example
catalog.reset();
  • catalog.reset() : reset catalog filter criteria and results
  • catalog.on(event, callback[, context]) : pub/sub
  • catalog.dispose() : dispose the catalog instance

Events

  • select : triggered when a "select" button is clicked
  • download : triggered when a "download" button is clicked
  • view : triggered when a "view" button is clicked
  • metadata : triggered when a "metadata" button is clicked

Filtering process

Results will be referred to the baseFilter criteria merged with the user selection. In case a user selects a criteria already defined in the base filter, the user choice will override the baseFilter one.

Available Selectors

It is possible to add custom selectors. In order to do so, use the pluginRegistry option that will be merged to the defaults one. In case an added selector has the same id of a default one, the default one will be overridden.

FAQs

Package last updated on 06 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc