@discoveryjs/discovery
Advanced tools
Changelog
1.0.0-beta.13 (18-06-2019)
tree
view leafs when expanded
setting is a numberstruct
viewcontext
viewView#ensureValidConfig()
to return a config that can be used for renderingView#extendConfig()
to View#composeConfig()
and changed behaviour to handle more use casesView#normalizeConfig()
to able return a null
(no config) and no validation on view option is present (use View#ensureValidConfig()
for that)itemConfig
option for list
(list-*
), columns
, menu
, select
, tree
and tree-leaf
viewsrowConfig
option for table
viewtabConfig
option for tabs
viewclassName
option in a view config to take a function(data, context)
or Array.<function(data, context)|string>
beside a stringfallback
viewconfig-error
view)select
view:
resetItem
option to specify a reset item in variantsplaceholder
is not visiblehref
option to auto-link
view, a function to preprocess a href valueChangelog
1.0.0-beta.12 (07-03-2019)
ViewRenderer#normalizeConfig(config)
and ViewRenderer#extendConfig(config, extension)
methods (available as discovery.view.*
)hstack
and columns
button
, input
and select
to be consistent with each othersmenu-item
viewstruct
actions popupstruct
view actions, items are disabled and annotated with a reason message nowstruct
actions menutree-leaf
view (added view-
prefix)source
view to extend flexibility to setup highlight rangesChangelog
1.0.0-beta.11 (10-02-2019)
toc-item
viewWidget#getSidebarContext()
and Widget#getPageContext()
for Widget#getRenderContext()
placeholder
option for select
viewbutton
view stylestabs
init value setting when name
option is specifiedonInit
and onChange
options for tabs
viewexpanded
option for tree
view, which can be a function nowonToggle
option for tree
viewChangelog
1.0.0-beta.10 (07-02-2019)
jora
to 1.0.0-alpha.8Widget#querySuggestion()
mouseleave
Popup
API:
show
takes a render function as second parameter (optional) instead of options
options.render(popupEl, triggerEl, hide)
which is using when the second parameter to show
method is undefined
options.hoverElementToOptions
(use options.render
instead)checkbox
issue when checked
is not set but name
is setChangelog
1.0.0-beta.9 (05-02-2019)
signature
view to inspect a signature of dataset with details on value axisesselect
viewbutton
, button-primary
, button-danger
and button-warning
limit
and emptyText
options for menu
viewstruct
view to show an object or an array signature when expanded and [𝕊]
action button is hoveredtree
view:
limitLines
option to limit lines count on root children render, limits to 25 lines by default; use limitLines: false
to disable itlimit
option to limit children count (this option served as limitLines
before)expanded
option to specify initial leaf expanded levelcollapsable
option to hide a toggle element when a leaf is expanedPopup
view:
new discovery.view.Popup({
hoverTriggers: string,
hoverElementToOptions: fn(triggerEl): object,
hoverPin: false | "popup-hover" | "trigger-click"
})
className
constructor option to set class name on popup's root elementmax-width
for its contentdata-v-to
, data-h-to
and data-pin-mode
attributes to indicate a state of popupxAnchor
option for show()
methodChangelog
1.0.0-beta.8 (30-01-2019)
Windet#defaultPageId
and options.defaultPageId
to define a page id that should be used when no pageId
is specifiedWidget#pageHash
that contains hashed pageId
, pageRef
and pageParams
Widget#encodePageHash(pageId, pageRef, pageParams)
and Widget#decodePageHash(pageHash)
methodspageParams
:
decodePageHash(encodePageHash())
pipeline, so it should serializabledecodeParams()
or encodeParams()
when such methods are defined by a page (see default report
page as example)Widget#scheduleRender(subject)
and Widget#cancelScheduledRender(subject)
methods to schedule/cancel scheduled render of a page or/and a sidebarWidget#setData()
to schedule renders instead of immediate renderApp#reportLink()
methodreportLink()
query helper (use pageLink()
instead)Emitter
as a base class for Widget
/App
, PageRenderer
and ViewRenderer
classesWidget#definePage()
method, use Widget#page.define()
insteadreport
page to a separate module, as Widget#view.QueryEditor
and Widget#view.ViewEditor
classescontent
option in auto-link
view configsource
view:
refs
preprocessing logic, now it takes array of { type: "error" | "ignore" | "link", range: [number, number], href?: string }
objectsWidget#preset
and very common with page and view renderers. Preset can be used in views as preset name with preset/
prefix (i.e. { view: 'preset/name', ... }
)Changelog
1.0.0-beta.7 (23-01-2019)
struct
view with Copy as JSON
actionstree
viewChangelog
1.0.0-beta.6 (16-01-2019)
model.html
for a model build resultnoedit
parameter in location hashWidget#options.viewPresets
option to extend view preset list on report pagediscovery.view.renderList()
to return a Promisediscovery.view.listLimit()
method to normalize a limit valuefalse
as a value for limit
option for columns
, table
and list views, which disables list output limitationdiscovery.view.Popup
class)menu
and menu-item
viewsstruct
viewisDefined()
and get()
methods and names
getter to page rendererget()
method to view rendererviews
getter to names
for view rendererget()
methods return freezed page or view objectChangelog
1.0.0-beta.5 (25-12-2018)
Widget#querySuggestions()
and Widget#getQueryEngineInfo()
methodsjora
query suggestions on report pageWidget#resolveEntity()
and Widget#resolveValueLinks()
methodsstruct
view to annotate a value with a badge using Widget#resolveValueLinks()
methodstruct
view to detect a string as an urlauto-link
viewjora
to 1.0.0-alpha.7Changelog
1.0.0-beta.4 (10-12-2018)
--cache
option, that can be used to setup a directory for cache files (current working directory is using if path is not set)cache
option to models config to setup a cache across all modelscache
option to model config to setup a cache for a modelcacheBgUpdate
option to model config to setup interval for cache update inbackgroundcacheTtl
option to model config to setup max age of cache before it will be discardedscrollTop
reset behaviour on page render, it now preserves by default and resets on page id or page ref changesTable
at the moment)jora
to 1.0.0-alpha.6