Releases: discoveryjs/discovery
Releases · discoveryjs/discovery
1.0.0-beta.11
- Client
- Removed
toc-item
view - Replaced
Widget#getSidebarContext()
andWidget#getPageContext()
forWidget#getRenderContext()
- Added
placeholder
option forselect
view - Fixed
button
view styles - Fixed
tabs
init value setting whenname
option is specified - Added
onInit
andonChange
options fortabs
view - Extended
expanded
option fortree
view, which can be a function now - Added
onToggle
option fortree
view
- Removed
1.0.0-beta.10
- Server/builder
- Fixed config normalization in single model setup (#9)
- Client
- Bump
jora
to 1.0.0-alpha.8 - Add a cache for
Widget#querySuggestion()
- Changed pinned popup to not close on
mouseleave
- Changed
Popup
API:- Method
show
takes a render function as second parameter (optional) instead ofoptions
- Added
options.render(popupEl, triggerEl, hide)
which is using when the second parameter toshow
method isundefined
- Removed
options.hoverElementToOptions
(useoptions.render
instead)
- Method
- Fixed
checkbox
issue whenchecked
is not set butname
is set
- Bump
1.0.0-beta.9 Introducing data signature view, new components and improvements
- Client
- Added
signature
view to inspect a signature of dataset with details on value axises - Added
select
view - Added button views:
button
,button-primary
,button-danger
andbutton-warning
- Added
limit
andemptyText
options formenu
view - Improved
struct
view to show an object or an array signature when expanded and[𝕊]
action button is hovered - Improved
tree
view:- Added
limitLines
option to limit lines count on root children render, limits to 25 lines by default; uselimitLines: false
to disable it - Changed
limit
option to limit children count (this option served aslimitLines
before) - Added
expanded
option to specify initial leaf expanded level - Added
collapsable
option to hide a toggle element when a leaf is expaned - Prevented large tree growing by keeping already visited data leafs collapsed
- Added
- Improved
Popup
view:- Added hover trigger mode which enables with options to constructor:
new discovery.view.Popup({ hoverTriggers: string, hoverElementToOptions: fn(triggerEl): object, hoverPin: false | "popup-hover" | "trigger-click" })
- Added
className
constructor option to set class name on popup's root element - Added setting a
max-width
for its content - Added
data-v-to
,data-h-to
anddata-pin-mode
attributes to indicate a state of popup - Removed
xAnchor
option forshow()
method - Fixed various show/hide issues when several popups involved
- Fixed popup closing when a click performs on/inside a trigger element while the popup is visible, now it stays visible
- Fixed z-index when several popups are shown
- Added signature preset on report page
- Added view editor input prettify button on report page
- Added
1.0.0-beta.8
- Client
- Added
Windet#defaultPageId
andoptions.defaultPageId
to define a page id that should be used when nopageId
is specified - Added
Widget#pageHash
that contains hashedpageId
,pageRef
andpageParams
- Added
Widget#encodePageHash(pageId, pageRef, pageParams)
andWidget#decodePageHash(pageHash)
methods - Changed set a value for
pageParams
:- A value passing through
decodePageHash(encodePageHash())
pipeline, so it should serializable - A value passing through
decodeParams()
orencodeParams()
when such methods are defined by a page (see defaultreport
page as example)
- A value passing through
- Added
Widget#scheduleRender(subject)
andWidget#cancelScheduledRender(subject)
methods to schedule/cancel scheduled render of a page or/and a sidebar - Changed
Widget#setData()
to schedule renders instead of immediate render - Removed
App#reportLink()
method - Removed
reportLink()
query helper (usepageLink()
instead) - Added
Emitter
as a base class forWidget
/App
,PageRenderer
andViewRenderer
classes - Removed
Widget#definePage()
method, useWidget#page.define()
instead - Extracted query and view editors from
report
page to a separate module, asWidget#view.QueryEditor
andWidget#view.ViewEditor
classes - Added
content
option inauto-link
view config - Changed
source
view:- Removed
refs
preprocessing logic, now it takes array of{ type: "error" | "ignore" | "link", range: [number, number], href?: string }
objects - Disabled syntax highlighting when source size over 100k to avoid page freezing
- Removed
- Added a pilot implementation of view presets. Preset's API available via
Widget#preset
and very common with page and view renderers. Preset can be used in views as preset name withpreset/
prefix (i.e.{ view: 'preset/name', ... }
)
- Added
1.0.0-beta.7
- Client
- Added context menu in
struct
view withCopy as JSON
actions - Improved copying performance of a large content to the buffer
- Added
tree
view - Fixed report content hide on query error
- Added context menu in
1.0.0-beta.6
- Build
- Tweaked build to use
model.html
for a model build result
- Tweaked build to use
- Client
- Fixed dzen mode works for any page through location hash parameter
- Added toggle edit mode button on report page. Report editing can be disabled by
noedit
parameter in location hash - Added share button on report page
- Added
Widget#options.viewPresets
option to extend view preset list on report page - Changed
discovery.view.renderList()
to return a Promise - Added
discovery.view.listLimit()
method to normalize a limit value - Allowed to use
false
as a value forlimit
option forcolumns
,table
and list views, which disables list output limitation - Added popup view (as
discovery.view.Popup
class) - Added
menu
andmenu-item
views - Improved UX and performance of
struct
view - Uniform page and view renderers API
- Added
isDefined()
andget()
methods andnames
getter to page renderer - Added
get()
method to view renderer - Renamed
views
getter tonames
for view renderer get()
methods return freezed page or view object
- Added
1.0.0-beta.5
- Client
- Added
Widget#querySuggestions()
andWidget#getQueryEngineInfo()
methods - Added
jora
query suggestions on report page - Added
Widget#resolveEntity()
andWidget#resolveValueLinks()
methods - Improved
struct
view to annotate a value with a badge usingWidget#resolveValueLinks()
method - Improved
struct
view to detect a string as an url - Added
auto-link
view - Bumped
jora
to 1.0.0-alpha.7
- Added
1.0.0-beta.4
- Server
- Prevented multiple data collection on multiple requests
- Changed data caching setup
- No data caching by default now
- Enable caching by
--cache
option, that can be used to setup a directory for cache files (current working directory is using if path is not set) - Added
cache
option to models config to setup a cache across all models - Added
cache
option to model config to setup a cache for a model - Added
cacheBgUpdate
option to model config to setup interval for cache update inbackground - Added
cacheTtl
option to model config to setup max age of cache before it will be discarded
- Client
- Added sidebar container content clearing before a sidebar rendering
- Changed
scrollTop
reset behaviour on page render, it now preserves by default and resets on page id or page ref changes - Added view presets on report page (a single
Table
at the moment) - Bumped
jora
to 1.0.0-alpha.6
1.0.0-beta.3
- Server
- Generate assets by a separate process/command, therefore no need to restart a server on assets config change
- Client
- Fixed
query()
jora helper - Removed
pick()
jora helper - Added ability to disable an auto-columns via cols map
- Changed
badge
view to take a data as a string - Made
link
view more adaptive to input data - Show 1 level expanded struct on
default
andreport
pages
- Fixed
1.0.0-beta.2
- Fixed
discovery-build
dependency issue - Bumped
jora
to1.0.0-alpha.5
(see changes)