Releases: globules-io/OGX.JS
OGX.JS 1.22.3
Other Changes
- [Switch] behavior change, allow setting a value even if component is
disabled
- [Roulette] behavior change, allow setting a value even if component is
disabled
OGX.JS 1.22.2
Bug Fixes
- [Net] fix
unpack
OGX.JS 1.22.1
Bug Fixes
- [Iceberg] fix
touch
not updated to latest version - [Touch] fix broken
Swipe
- [Window] fix
drag
+hide
not disablingdrag
- [Carousel] fix resizing behavior
Other Changes
- [Misc] performance improvements
OGX.JS 1.22.0
New Features
- [List]
unique
added support to deep path - [Popup] now accepts percent for
x
andy
inconfig
- [Popup] ungrouped
Popup
will now acquiredragable
andresizeable
properties from parentPopup
- [Popup] ungrouped
Popup
will be created at removedTab
position on screen - [Carousel]
addNode
supports additional callback parameter called instead of firing event after panel is rendered
Bug Fixes
- [Calendar]
MONTH_DAYS
layout extra line of day - [DynamicList] fix missing
unselect
optional callback - [Tabs] fix issues with
hold
+drag
when reordering - [Popup] fix issue with ungrouping popup when its
Carousel
panel containsOML
- [Popup] fix grouping a simple
Popup
with aContainer Popup
when first node isscroll
- [Popup] fix position when resizing
Other Changes
- [Chat] is now removed from the core framework and moved to extra components
- [Popup] user dragged Popup will not re-center on screen resize if
center
was set totrue
- [Popup] if
x
andy
are set andcenter
set totrue
,center
is automatically set tofalse
- [Popup] will not
center
once it's been user dragged, will notresize
on screen resize if it's been user resized - [Misc] performance improvements
OGX.JS 1.21.1
[Form] field config type can be set to json and used with other components like Tags
OGX.JS 1.21.0
New Features
- [Popup] new methods
width
andheight
overridingconfig.width
andconfig.height
- [Calendar] new method
resetSelection
- [Calendar] new switch for method
val
to skip the rendering - [Template] is now a separate class that Views extend by default
- [Placeholder] now supports multiple sub nodes per placeholder
Bug Fixes
- [Popup] fix transition preventing resize
- [CalendarEngines] proper default label
ddd
forMONTH_DAYS
layout
Other changes
- [install] fix
fonts
andthemes
missing if the project already hadwww
upon install
OGX.JS 1.20.2
1.20.2
Bug Fixes
- [DynamicList] fix no selection returned if no key was set
Other changes
- [DynamicList] added
key
method to get/set key
OGX.JS 1.20.1
Bug Fixes
- [Roulette] fix missing placeholder
onSelect
method - [Touch] fix missing some default parameters
- [FormInstance] fix broken default OMLs
Other changes
- [Tree]
types
withoutdisplay
fallback onto default display - [FormInstance] added support to array of objects as cyclable
OGX.JS 1.20.0
Experimental Features
- [Workers] New object to manage and execute
WebWorkers
on the fly
New Features
events vs callbacks
Starting at version 1.20, events for most
Uxi
's now have an equivalent method, if you do not wish to use events. It also opens more possibility, like adding some of your business logic inOML
.
You can now set your callbacks in the config when creating aUxi
, i.e., forDynamicList
if you are creating at runtime:
{
...,
"callbacks" : {
"select" : YOUR_FUNCTION
"unselect" : YOUR_FUNCTION
}
}
You can also use the new
OSE
method
keyword to target aUxi
's method when creating fromOML
, such as, for a method of the view instance
{
...,
"callbacks" : {
"select:OSE" : "{{method the_method_of_my_view myView:View}}"
}
}
Dynamic Forms
Another new feature that was missing, was the ability to create dynamic forms on the fly. So far, forms relied on Templates. Now you can generate forms using OGX objects to control each type of field. See the Form section for mpore info
let myFormInstance = OGX.Form.fromObject(MY_OBJECT, PARENT_UXI, SELECTOR);
myFormInstance.onChange = function(obj){...};
Changes
- [OSE] new keyword
method
to target aUxi
'smethod
, format{{method METHOD_NAME UXI_ID:UXI_TYPE}}
- [DynamicList] added
onSelect
andonUnselect
methods, andcallbacks.select
,callbacks.unselect
inconfig
- [Tabs] added
onSelect
,onAdd
,onRemove
methods, andcallbacks.select
,callbacks.add
,callbacks.remove
inconfig
- [Tags] added
onSelect
,onAdd
,onRemove
methods, andcallbacks.select
,callbacks.add
,callbacks.remove
inconfig
- [Iceberg] added
onUp
,onDown
,onLeft
,onRight
,onRestore
methods, andcallbacks.up
,callbacks.down
,callbacks.left
,callbacks.right
,callbacks.restore
inconfig
- [Tree] added
onSelect
,onUnselect
,onOpen
,onClose
,onMove
methods, andcallbacks.select
,callbacks.unselect
,callbacks.open
,callbacks.close
,callbacks.move
inconfig
- [GridSwiper] added
onUp
,onDown
,onLeft
,onRight
methods, andcallbacks.up
,callbacks.down
,callbacks.left
,callbacks.right
inconfig
- [NestList] added
onOpen
,onClose
method, andcallbacks.open
,callbacks.close
inconfig
- [Calendar] added
onSelect
,onUnselect
method, andcallbacks.select
,callbacks.unselect
inconfig
- [Carousel] added
onChange
method, andcallbacks.change
inconfig
- [Dots] added
onSelect
method, andcallbacks.select
inconfig
- [Roulette] added
onChange
method, andcallbacks.change
inconfig
- [Switch] added
onChange
method, andcallbacks.change
inconfig
- [Form] new
FormInstance
subclass created fromfromObject
method
Other Changes
- [Calendar]
format
of built-inlayouts
can now be overridden in the config of the layout - [Calendar] custom layout can now receive a config object
- [OSE] prevent reserved keywords interferring with scripts
Breaking Changes
Calendar layout and engine setup format has changed to allow custom parameters to built-in layouts, without the need to create a custom layout. Before 1.20, only the engine could receive data via a config object
{"layout":"WEEK_DAYS", "engine":"CUSTOM_ENGINE", "config":{}}
Since 1.20, both the layout and engine can be passed a custom object. The layout and the engine must be declared by name now.
{
"layout":{"name":"WEEK_DAYS", "config":{"format":"YYYY"}},
"engine":{"name":"CUSTOM_ENGINE", "config":{}}
}
Bug Fixes
- [Touch] fix issue with
Swipe
andCarousel
- [App] fix issue if
App
is created without config object - [Tree] fix issue when creating an empty
Tree
- [Tree] fix issue with selection and icons
- [Tree] fix issue with
Scroller
on new tree - [Tree]
icons
now handled viacss
Other changes
- [Theme] default theme updated to version
1.2.61
OGX.JS 1.19.1
New Features
- [Touch]
Move
andHold + Move
added additional attributesx, y, distX, distY, dirX, dirY
in callback object - [List] added support to deep path sorting
- [List] added support to deep path updating