@unitybase/adminui-pub #

Added #

4.2.35 2017-10-25 #
  • BasePanel.on('manualsaving') events added. Fires just after USER manually call save action (press save button or Ctrl+S shortcut) but before data passed to a server for update/insert.
4.2.34 2017-10-24 #
  • Developer can intercept data, returned from server as a result to select method, executed by BasePanel. To do this BasePanel.on('recordloaded') event handler now called with 2 parameters (record, data), where record is instance of Ext.data.Model for current form and data is a raw server result
  • Developer can intercept data, passed by BasePanel to entity insert/update method just before it's going to server by subscribe to BasePanel.on('beforesave') event. Event handler accept 2 parameters (me: BasePanel, request: UBQL). Developer can modify request inside handler.
4.2.33 2017-10-13 #
  • UBBadge control, pulled and adopted code originally developed for "bpm" subsystem. Display an enum attribute as a badge on a form:
    {attributeName: 'status', xtype: 'ub-badge'}
    
    When need to use badge as a static label, not linked to attribute and / or enum, use configuration like the following:
    {
      xtype: 'ub-badge',
      itemId: 'overdueBadge',
      text: UB.i18n('bpm_Task_overdue'),
      invert: true,
      cssClass: 'red'
    
    For this to work, an initModel.js file (there must be one for your model) shall contain the following initialization code:
    UB.ux.UBBadge.setCssMap(
      'MY_ENTITY_STATUS',
      {
        'pending': 'blue',
        'in-progress': 'yellow',
        'error': 'red',
      },
      // Use invert style
      true
    )
    
    To use it in grid:
    initComponent: function () {
      var myGridComponent = this.items[5] // reference to grid
      var fieldList = UB.Utils.convertFieldListToExtended(myGridComponent.fieldList)
      UB.ux.UBBadge.setupRenderer(fieldList, 'status', 'MY_ENTITY_STATUS')
      this.callParent(arguments)
    },
    

@unitybase/base #

Added #

4.2.23 2017-10-26 #
  • FileBaseStoreLoader now use a CRC32(fileDate.toString()) to calculate a cache version (UB only). Prev. implementation based on max file modification date fails in case we updated something backwards.
4.2.21 2017-10-05 #
  • argv.establishConnectionFromCmdLineAttributes can accept a -timeout command line which set a connection receive timeout. Default timeout increased to 120 sec to allow a long-live script execution.

@unitybase/ub-pub #

Changed #

4.4.11 2017-10-12 #
  • In case of session persistent clear the session key only for 401 response status (instead of all > 300)

Fixed #

4.4.13 2017-10-17 #
  • UBNotifierWSProtocol do not connect with server after UBConnection restore session. The session can be restored when configuration parameter allowSessionPersistent = true.
  • Bug with parsing message of UBError: string caught by regexp is caught from JSON representation, not from original error message, therefore, the error message is JSON encoded string, which means the double-quotes would be encoded with backslashes, which does not look good
  • i18n now recognizes entity and attribute names so that UB.i18n('uba_user') or UB.i18n('uba_role.description') would be resolved to localized entity caption or entity attribute caption

@unitybase/uba #

Changed #

4.1.32 2017-10-12 #
  • uba_als.code length increased to 128 to allow developer to create a unique ELS rule codes based on code = role.name + entity.name + method.name pattern

@unitybase/ubcli #

Added #

1.2.0 2017-10-23 #
  • DDL generation for PostgreSQL including latest PostgreSQL 10 release. Required UB >= 4.1.0beta.8

Changed #

1.0.41 2017-10-07 #
  • ublci createCodeInsightHelper command now generate entities stubs using standard JS code style