Skip to content

Releases: globules-io/OGX.JS

OGX.JS 1.45.0

08 Jan 14:49
Compare
Choose a tag to compare

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 a File into a url
  • [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 or height methods
  • [Carousel] fix Dots removed on render

Other Changes

  • [Dots] refactor bind

Deprecations

Due to the CSS property aspect-ratio widely available, all OGX.Media methods are now deprecated (except for the crop and read method) have been removed from prod builds

OGX.JS 1.44.2

02 Dec 07:50
Compare
Choose a tag to compare

Bug Fixes

[Tags] fix bind not working

OGX.JS 1.44.1

01 Dec 16:01
Compare
Choose a tag to compare

Bug Fixes

[Tags] fix crash on name missing

OGX.JS 1.44.0

01 Dec 11:38
Compare
Choose a tag to compare

Breaking Changes

Due to the overhaul of the Tags component, that now uses DynamicList, Display and now supports OML, some flags and features are now obsolete. Note that these changes most likely do not affect your code beyond removing obsolete flags, and adjusting some CSS declarations.

  • [CSS] the CSS class for Tags have been renamed from ogx_tags_tag to ogx_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 and TAG_REMOVED constants have been renamed to ADDED and REMOVED
  • [Display] the default fallback type has been renamed from __default to default

New Features

  • [Tags] added OML support to tags
  • [Tags] added Display support
  • [Tags] added keys flag to map label, id and value to other fields, in object mode
  • [Tags] added callbacks.input and onInput callbacks
  • [Tags] suggestions now supports display_max and display_more flags

Other Changes

  • [Tags] mode is now automatic
  • [Theme] default theme updated 1.2.4 to support updated Tags component and Roulette tweaks

Bug Fixes

  • [OSE] fix issues with $ as parameter
  • [Uxi] fix ogx_uxi_disabled class missing

OGX.JS 1.43.1

14 Nov 09:14
Compare
Choose a tag to compare

Other Changes

  • [Stage] Additional debug messages (dev builds only)
  • [View] Additional debug messages (dev builds only)
  • [OML] Removed deprecations

OGX.JS 1.43.0

09 Nov 06:28
Compare
Choose a tag to compare

New Features

  • [App] addPopup can now be passed an optional data property to its config to be resolved as {{$}} in OSE scripts, for Popup content as OML
  • [App] addWindow can now be passed an optional data property to its config to be resolved as {{$}} in OSE scripts, for Window content as OML
  • [Router] added options hide_popup and hide_window, if set to true, closes the Window or Popup on history 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 custom key
  • [Uxi] fix overwritten selector upon attach

Deprecations

  • [Tree] methods that were marked as deprecated have been removed

OGX.JS 1.42.1

27 Oct 06:18
Compare
Choose a tag to compare

Bug Fixes

  • [OML] Fix Controllers not constructed

OGX.JS 1.42.0

25 Oct 08:21
Compare
Choose a tag to compare

Breaking Changes

Some minor breaking changes have been made around Stage creating. The properties use and home are now obsolete. They've been replaced by options.index in the router configuration in app.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 added stepX and stepY values in callback
  • [Resize] added support to rotation
  • [Scroller] added overflows method, return the overflow height or false if not overflowing
  • [Form] added support to elements with editablecontent
  • [Router] added support to query strings and URL rewrite
  • [Router] added enable and disable methods to change a route availability

Components

  • [ListPopup] new ListPopup object to open a DynamicList item into a Popup with a topped/bottomed-then-scroll-again-to-close mechanism

Bug Fixes

  • [Touch] Fix Drag crash
  • [Resize] Fix cursor at nwse and nesw 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

30 Aug 07:50
Compare
Choose a tag to compare

New Features

  • [Uxi] added observeSize and observeSizeOnce 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 in bin/index.js and be able to encrypt the rest of the /bin folder.

Other Changes

  • [Scroller] Relies on observeSize instead of observe
  • [CLI] 1.16.0 added --js flag to use with ogx build release mypassword to encrypt user files

OGX.JS 1.40.0

17 Aug 07:35
Compare
Choose a tag to compare

New Features

  • [DynamicList] SELECT now triggers item and element
  • [Uxi] added support to placeholders at create
  • [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 when touch is manual
  • [Touch] fix Move returns wrong direction on first move