OGX.JS

OGX.JS Javascript Framework for Mobile & Desktop (Webview) & Progressive Web Applications

APACHE-2.0 License

Downloads
632
Stars
17
Committers
3

Bot releases are hidden (Show)

OGX.JS - OGX.JS 1.24.0

Published by globules-io almost 2 years ago

1.24.0

New Features

  • [DynamicList] select now supports paths such as select('user._id', 'whatever');
  • [Tabs] added remove method, expects property/value pair
  • [Display] template can now be set as OSE expression and is resolved per item (alternative to bind)
  • [Display] css can now be set as OSE expression and is resolved per item (alternative to bind)
  • [Window] can now be passed true as anim in show method, uses default anim
  • [Bind] added flag convert in config, true by default, auto converts element value to proper type
  • [OML] Bind can now be passed multiple properties such as {'category,type:Bind':{}}
  • [Templater] added amake method as a shortcut to make but using array of objects instead of single object

Other Changes

  • [MISC] template files that were in the /ogx folder to be used "by hand" are removed in favor of the CLI
  • [Theme] theme update

Deprecations

  • [Tabs] editable is now deprecated in favor of add and remove, removed from production builds

Bug Fixes

  • [Tabs] fix previous tab not always selected by default after removing a tab
  • [Tabs] fix tab not always selected when hold + drag
  • [OSE] fix some reserved keywords used as property not converted back
  • [Form] fix field restrict not applied via bindField introduced with Dynamic Forms
  • [Popup] fix wrong position on hide/scale after a drag
OGX.JS - OGX.JS 1.23.3

Published by globules-io almost 2 years ago

1.23.3

Bug Fixes

  • [OML] fix issue with Point and Html

Other Changes

  • [CSS] minor changes
OGX.JS - OGX.JS 1.23.2

Published by globules-io almost 2 years ago

Other Changes

  • [Misc] removed leftover console.log
OGX.JS - OGX.JS 1.23.1

Published by globules-io almost 2 years ago

1.23.1

Bug Fixes

  • [Roulette] fix issue with multiple Roulette and Touch
OGX.JS - OGX.JS 1.23.0

Published by globules-io almost 2 years ago

1.23.0

New Features

  • [Router] routes can now be set a reload flag, which, if set to true, force the stage to re-render the route/view
  • [Router] some link options can be set with data-reload data-history
  • [DynamicList] in JWT app mode, setting true for scope in DynamicList config forces JWT scope, if set to anything else than false or true, it will use that as scope instead
  • [Carousel] now can generate automatically each OML sub node with a List and a Display

Other Changes

  • [Template] now extends Uxi and Placeholder when it has children
  • [Touch] better compatibility
  • [Misc] better performance

Bug Fixes

  • [Popup] fix not restored at proper position after maximize
  • [Object] fix issue with scrollers sometimes rendered twice
OGX.JS - OGX.JS 1.22.4

Published by globules-io almost 2 years ago

Other Changes

  • [Uxi] find accepts false as type
OGX.JS - OGX.JS 1.22.3

Published by globules-io almost 2 years ago

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 - OGX.JS 1.22.2

Published by globules-io almost 2 years ago

Bug Fixes

  • [Net] fix unpack
OGX.JS - OGX.JS 1.22.1

Published by globules-io almost 2 years ago

Bug Fixes

  • [Iceberg] fix touch not updated to latest version
  • [Touch] fix broken Swipe
  • [Window] fix drag+hide not disabling drag
  • [Carousel] fix resizing behavior

Other Changes

  • [Misc] performance improvements
OGX.JS - OGX.JS 1.22.0

Published by globules-io almost 2 years ago

New Features

  • [List] unique added support to deep path
  • [Popup] now accepts percent for x and y in config
  • [Popup] ungrouped Popup will now acquire dragable and resizeable properties from parent Popup
  • [Popup] ungrouped Popup will be created at removed Tab 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 contains OML
  • [Popup] fix grouping a simple Popup with a Container Popup when first node is scroll
  • [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 to true
  • [Popup] if x and y are set and center set to true, center is automatically set to false
  • [Popup] will not center once it's been user dragged, will not resize on screen resize if it's been user resized
  • [Misc] performance improvements
OGX.JS - OGX.JS 1.21.1

Published by globules-io about 2 years ago

[Form] field config type can be set to json and used with other components like Tags

OGX.JS - OGX.JS 1.21.0

Published by globules-io about 2 years ago

New Features

  • [Popup] new methods width and height overriding config.width and config.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 for MONTH_DAYS layout

Other changes

  • [install] fix fonts and themes missing if the project already had www upon install
OGX.JS - OGX.JS 1.20.2

Published by globules-io about 2 years ago

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 - OGX.JS 1.20.1

Published by globules-io about 2 years ago

Bug Fixes

  • [Roulette] fix missing placeholder onSelect method
  • [Touch] fix missing some default parameters
  • [FormInstance] fix broken default OMLs

Other changes

  • [Tree] types without display fallback onto default display
  • [FormInstance] added support to array of objects as cyclable
OGX.JS - OGX.JS 1.20.0

Published by globules-io about 2 years ago

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 in OML.
You can now set your callbacks in the config when creating a Uxi, i.e., for DynamicList if you are creating at runtime:

 {
      ..., 
      "callbacks" : {
           "select" : YOUR_FUNCTION
           "unselect" : YOUR_FUNCTION
      }
 }

You can also use the new OSE method keyword to target a Uxi's method when creating from OML, 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 a Uxi's method, format {{method METHOD_NAME UXI_ID:UXI_TYPE}}
  • [DynamicList] added onSelect and onUnselect methods, and callbacks.select, callbacks.unselect in config
  • [Tabs] added onSelect, onAdd, onRemove methods, and callbacks.select, callbacks.add, callbacks.remove in config
  • [Tags] added onSelect, onAdd, onRemove methods, and callbacks.select, callbacks.add, callbacks.remove in config
  • [Iceberg] added onUp, onDown, onLeft, onRight, onRestore methods, and callbacks.up, callbacks.down, callbacks.left, callbacks.right, callbacks.restore in config
  • [Tree] added onSelect, onUnselect, onOpen, onClose, onMove methods, and callbacks.select, callbacks.unselect, callbacks.open, callbacks.close, callbacks.move in config
  • [GridSwiper] added onUp, onDown, onLeft, onRight methods, and callbacks.up, callbacks.down, callbacks.left, callbacks.right in config
  • [NestList] added onOpen, onClose method, and callbacks.open, callbacks.close in config
  • [Calendar] added onSelect, onUnselect method, and callbacks.select, callbacks.unselect in config
  • [Carousel] added onChange method, and callbacks.change in config
  • [Dots] added onSelect method, and callbacks.select in config
  • [Roulette] added onChange method, and callbacks.change in config
  • [Switch] added onChange method, and callbacks.change in config
  • [Form] new FormInstance subclass created from fromObject method

Other Changes

  • [Calendar] format of built-in layouts 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 and Carousel
  • [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 via css

Other changes

  • [Theme] default theme updated to version 1.2.61
OGX.JS - OGX.JS 1.19.1

Published by globules-io about 2 years ago

New Features

  • [Touch] Move and Hold + Move added additional attributes x, y, distX, distY, dirX, dirY in callback object
  • [List] added support to deep path sorting
  • [List] added support to deep path updating
OGX.JS - OGX.JS 1.19.0

Published by globules-io about 2 years ago

Version 1.19

1.19.0

Dependency revision

Starting at version 1.19, ajax is removed from the custom jQuery build. OGX.JS now uses fetch all across the framework. If you wish to continue using jQuery's ajax methods, feel free to overwrite the jQuery build in www/js/lib/jquery with the full production version. The custom build does NOT include these modules : ajax, css/showHide, deprecated, wrap, effects and deferred. This is a non breaking change unless you rely on these features within your own code.

  • [Net] un-jQuery-fy component
  • [Lib] slimmer jQuery custom build 3.6.1
  • [Lib] moment.js updated to 2.29.2

Breaking changes

  • [Touch] does not add by default an instance of Drag, Move and Swipe to components using Touch by default, they now must be added on demand.

New features

  • [Touch] added Move method to callback the distance between the start position and current mouse/touch position
  • [Touch] added state optional parameter with values auto or manual
  • [Touch] added add, get and remove to allow multiple touches of each kind
  • [Uxi] added observeOnce as proxy to observe, turned off automatically once observation completes
  • [DynamicList] added ogx_dynamic_list_drag CSS class, applied when an item of the list is being reordered
  • [Calendar] added layouts method to change the layout configuration on the fly

Bug fixes

  • [DynamicList] fix broken reorder

Other changes

  • [Core] refactor around object naming and instantiation, smaller builds and performance improvements
  • [Core] object names constants have been removed as they were not useful anymore
OGX.JS - OGX.JS 1.18.1

Published by globules-io over 2 years ago

1.18.1

  • [Window] prevent drag when hide has been called
  • [StackedTree] fix DynamicList overriding back button
  • [Scope] fix eval deprecation in production build
  • [OML] fix controllers rendering priority
OGX.JS - OGX.JS 1.18.0

Published by globules-io over 2 years ago

1.18.0

New Features

  • [OSE] data coming from a route-capture (route data) now has its own variable %
  • [Tree] was the last component not hooked to OML, has been overhauled and now supports OML rendering and Display
  • [DynamicList] added support to whitespace in ids
  • [DynamicList] added events SELECT_FILTERED and SELECT_UNFILTERED
  • [DynamicList] getSelection now returns filtered selection if the list has been filtered post selection

Bug fixes

  • [OSE] better data support in recursive template in template

Breaking changes

  • [Tree] setIconSize has been removed, now handled via CSS
OGX.JS - OGX.JS 1.17.1

Published by globules-io over 2 years ago

1.17.1

  • [Router] added expire method to clear the cache for a given url
Package Rankings
Top 12.67% on Npmjs.org
Related Projects