Releases: globules-io/OGX.JS
OGX.JS 1.45.0
New Features
- [App] faster/better handling of resize, removed obsolete code
- [Popup] added support to
auto_height
- [OML] added support to data remapping in tree, ie.
{{oml myOMLfile $childobj}}
- [OSE] added support to chaining
:OML
and:OSE
tags - [Media] added
read
method to convert aFile
into aurl
- [DynamicList] added
display_max
flag - [DynamicList] added
chunks
flag for chunk rendering - [Bind] added support to set binds in
OML
Bug Fixes
- [Popup] fix centering after calling
width
orheight
methods - [Carousel] fix
Dots
removed on render
Other Changes
- [Dots] refactor
bind
Deprecations
Due to the CSS property
aspect-ratio
widely available, allOGX.Media
methods are now deprecated (except for thecrop
andread
method) have been removed fromprod
builds
OGX.JS 1.44.2
Bug Fixes
[Tags] fix bind not working
OGX.JS 1.44.1
Bug Fixes
[Tags] fix crash on name missing
OGX.JS 1.44.0
Breaking Changes
Due to the overhaul of the Tags component, that now uses
DynamicList
,Display
and now supportsOML
, some flags and features are now obsolete. Note that these changes most likely do not affect your code beyond removing obsolete flags, and adjusting someCSS
declarations.
- [CSS] the
CSS
class forTags
have been renamed fromogx_tags_tag
toogx_tag
- [Tags]
ASCII
mode is now obsolete and has been removed - [Tags]
hide_input_on_disable
flag is obsolete and has been removed - [Tags]
click_more
flag is obsolete and has been removed - [Tags]
mode
flag is obsolete and has been removed - [Tags]
TAG_ADDED
andTAG_REMOVED
constants have been renamed toADDED
andREMOVED
- [Display] the default fallback type has been renamed from
__default
todefault
New Features
- [Tags] added
OML
support to tags - [Tags] added
Display
support - [Tags] added
keys
flag to maplabel
,id
andvalue
to other fields, in object mode - [Tags] added
callbacks.input
andonInput
callbacks - [Tags] suggestions now supports
display_max
anddisplay_more
flags
Other Changes
- [Tags]
mode
is now automatic - [Theme] default theme updated
1.2.4
to support updatedTags
component andRoulette
tweaks
Bug Fixes
- [OSE] fix issues with
$
as parameter - [Uxi] fix
ogx_uxi_disabled
class missing
OGX.JS 1.43.1
Other Changes
- [Stage] Additional
debug
messages (dev builds only) - [View] Additional
debug
messages (dev builds only) - [OML] Removed deprecations
OGX.JS 1.43.0
New Features
- [App]
addPopup
can now be passed an optionaldata
property to its config to be resolved as{{$}}
inOSE
scripts, forPopup
content asOML
- [App]
addWindow
can now be passed an optionaldata
property to its config to be resolved as{{$}}
inOSE
scripts, forWindow
content asOML
- [Router] added options
hide_popup
andhide_window
, if set totrue
, closes theWindow
orPopup
onhistory back
but does not redirect - [Router] added live cache controls via methods
cache
,cacheOnce
,uncache
- [Scroller] now restores the scroll position of a re-used cached
Uxi
Bug Fixes
- [Tree] fix issue with
path
using customkey
- [Uxi] fix overwritten
selector
uponattach
Deprecations
- [Tree] methods that were marked as deprecated have been removed
OGX.JS 1.42.1
Bug Fixes
- [OML] Fix Controllers not constructed
OGX.JS 1.42.0
Breaking Changes
Some minor breaking changes have been made around Stage creating. The properties
use
andhome
are now obsolete. They've been replaced byoptions.index
in the router configuration inapp.json
Before this change, the Stage declaration in
app.json
was
"vapps": {
"mystage:Stages.SomeStage": {
"use": true,
"home": "my_home_path",
"anim": "swap flip",
"placeholder": "default",
"scope": "public",
"theater": false
}
}
"routing": {
"options" : {...}
}
Now
"vapps": {
"mystage:Stages.SomeStage": {
"anim": "swap flip",
"placeholder": "default",
"scope": "public",
"theater": false
}
}
"routing": {
"index" : "mystage/my_home_path"
"options" : {...}
}
New Features
- [Data] added
get2DTransform
method, returns translations over X and Y, and rotation tranforms - [Math] added
dist
method to calculate distance between 2 points - [Math] added
angle
method to calculate angle between 2 points - [Math] added
rotate
method to rotate a vector - [Touch]
Drag
now keeps existing rotation transform - [Touch]
Move
addedstepX
andstepY
values in callback - [Resize] added support to rotation
- [Scroller] added
overflows
method, return the overflow height orfalse
if not overflowing - [Form] added support to elements with
editablecontent
- [Router] added support to query strings and URL rewrite
- [Router] added
enable
anddisable
methods to change a route availability
Components
- [ListPopup] new
ListPopup
object to open aDynamicList
item into aPopup
with a topped/bottomed-then-scroll-again-to-close mechanism
Bug Fixes
- [Touch] Fix
Drag
crash - [Resize] Fix cursor at
nwse
andnesw
corners - [Router] Fix
download
link handled as route - [OSE] Fix
function
keyword
Deprecations
- [Router]
addToHist
was marked as deprecated and removed in this version
Other Changes
- [Touch] touches in
manual
state are disabled at start - [OML]
render
passes created instances to the callback function if declared - [OML] overhauled
focus
process, faster rendering
OGX.JS 1.41.0
New Features
- [Uxi] added
observeSize
andobserveSizeOnce
methods - [Core] added supports to encrypted user files (views, stages, controllers)
This feature requires
OGX.CLI 1.16.0+
, make sure to update the CLI. In order to use this feature, your app must be built by doing
ogx build release mypassword --js
Note that the
.js
files in the/bin
folder are not encrypted due to expected OGX init in this folder. This might change in the future to impose creating the OGX.JS instance inbin/index.js
and be able to encrypt the rest of the/bin
folder.
Other Changes
- [Scroller] Relies on
observeSize
instead ofobserve
- [CLI]
1.16.0
added--js
flag to use withogx build release mypassword
to encrypt user files
OGX.JS 1.40.0
New Features
- [DynamicList]
SELECT
now triggers item and element - [Uxi] added support to
placeholders
atcreate
- [Window] can now be set
scroll
- [Popup] can now be set
scroll
- [OML] added
make
method, to create an OML node given a selector, a class and optional config - [Data] added
trim
method which trims all values of type string, of each property of an object, recursively. Supports arrays. - [Core] encryption key can now be set via an async call, using a promise
Basic Example
const app = new OGX.App({encrypted: () => {
return new Promise(function(success, error){
//do async call then return key
success('mykey');
});
});
Bug Fixes
- [Touch] fix remove
touch
whentouch
ismanual
- [Touch] fix
Move
returns wrong direction on first move