@unitybase/adminui-vue #
Added #
5.19.4 2021-02-25 #
USelectEntitywill force selecting of new record added by user using "Add new" action. Also added propskipAutoCompleteto disable this functionality for some selected field.Form.js: addedtitleTooltipparam. By default equal totitle. Used to display a tab tooltip.Form.mountTabadded the ability to change the tooltip of current tab in theUNavbarusing the provided with$formServicesfunctionsetTooltip.UTableEntitynow supports a new propertyhideActions. It allows to hide an action from all the possible places at once: toolbar, context menu, toolbar dropdown, it also disables keyboard shortcuts for the actions. Before the change, to disable an action for entity table, it required something like:
<template>
<u-table-entity>
...
<!-- Disallow copy -->
<template #contextMenuCopy>
<div/>
</template>
<template #toolbarDropdownCopy>
<div/>
</template>
</u-table-entity>
</template>
And still, it won't affect keyboard actions. Now it is much easier to disable actions with the
new property. It supports the following actions: addNew, copy, newVersion, showVersions, edit, delete,
audit, summary, export, link, viewMode
How, it is possible to control multiple actions with one property and be sure actions will be hidden in all the places:
<template>
<u-table-entity
:hide-actions="['copy', 'export']"
...
>
....
</u-table-entity>
</template>
5.19.2 2021-02-08 #
Form.mountModalwill provideisModal: trueto the child components, child components can inject it asparentIsModalUFormContainerwill injectisModalasparentIsModalUFile(FileRenderer) component support preview (pre-listen) of audio content- ALS mixin support for UAutoField and autoforms. Can be used in custom forms as such
const alsMixin = require('@adminui-vue/components/controls/mixins/alsMixin')
...
mixins: ['alsMixin']
SET_ALS_INFOmutation added toprocessingvuex module. In case als mixin assigned to the entityprocessing.loadadds information about als intoalsInfoobject in vuex state.
Changed #
5.19.4 2021-02-25 #
org_unit-fm: 'parentID' field isreadonlyinstead ofdisabled, that allows to open parent form [UBDF-13217]- UTable: In a table view mode the position of a sorting window popup has moved from a button on the toolbar to a sorted column header.
5.19.2 2021-02-08 #
USelectEntity- actionsEditItemandAddNewItemuse parent modal state (parentIsModal) to show item form. If parent is inside a modal dialog - form shows as modal, else - in the new tab. This behavior can be disabled by addingappConfig.uiSettings.adminUI.forceModalsForEditForms: trueto ubConfig
Fixed #
5.19.4 2021-02-25 #
UNavbar: display of html-content inside the tab tooltipUNavbar: support for ext-based form tooltip that was created withBasePanelUAutoField: in casereadonlyproperty sets totrue- convert it todisable, because 'el-checkbox'/'el-switch' doesn't havereadonlypropprocessing+UToolbar- "Save and Close" must close ONLY if save was successful
5.19.3 2021-02-10 #
UTableEntityattributes with Document data type did not work correctly, if attribute was not the root, for example, for attribute likelinkedDocID.docImage, it caused JS error, if user try to download it. Now for such attributes, repository MUST include the ID field of the record with document, for the previous example, it MUST includelinkedDocIDattribute. This is done instead of additional (and failed!) request to server for the ID value.
5.19.2 2021-02-08 #
- UFile ignore charset part in BLOB content type while calculates an icon for file. After this fix correct icons are displayed for txt, html, js, html and so on.
5.19.1 2021-02-03 #
- UMasterDetailView: fixed
Entity with code "[object Object]" does not exist or not accessiblein caserepositoryproperty is Object (ubql). For example as in ubm_enum shortcut definition. - UMasterDetailView: fixed
Entity with code "" does not exist or not accessiblein caseentityNameis passed into attributes. For example as in uba_audit shortcut definition.
5.19.0 2021-02-02 #
- Error
Cannot read property 'showAllItem' of undefinedon clicking to Ext filter arrows up/down. - UFormRow: Fixed styles for labelPosition="right" - colon sing after label is removed; added padding between control and label
@unitybase/adminui-pub #
Changed #
5.19.4 2021-02-25 #
showAuditTrailselect data by parentEntityInfo_id or entityinfo_id attributes instead of parentEntityInfo_id. Auditing on child records will now appear in the base entity audit form and the parent entity audit form.
5.19.2 2021-02-08 #
UBBaseComboBox- actionsEditItemandAddNewItemuse parent modal state (this.up('basepanel').isModal) to show item form. If parent is inside a modal dialog - form shows as modal, else - in the new tab. This behavior can be disabled by addingappConfig.uiSettings.adminUI.forceModalsForEditForms: trueto ubConfig.
@unitybase/base #
Fixed #
5.19.0 2021-02-02 #
- prevent unnecessary call to IncomingMessage.read() for responses with JSON content type (reduce memory usage)
@unitybase/blob-stores #
Added #
5.19.3 2021-02-10 #
-
in case UB is behind nginx
getDocumentendpoint for fileSystemBlobStores adds x-query-params header what contains URL parameters. This allows to extend a proxy config with rules what depends on URL parameters.See example what uses this feature to add an image resize (thumbnails) in reverse proxy tutorial
Changed #
5.19.0 2021-02-02 #
setDocumentendpoint will usereq.writeToFileif request body not in base64 instead of reading body into JS memory and when write it using fs.writeFileSync. This prevents double memory allocation.- BREAKING
BlobStoreCustom.saveContentToTempStoremethod signature changed.contentparameter can be either ArrayBuffer or THTTPRequest. Support forcontent: THTTPRequestMUST be added to descendants. - use new property
req.parsedParametersinstead ofqueryString.parse(req.parameters)
Fixed #
5.19.2 2021-02-08 #
setDocumentendpoint return valid file size for dirty document, based onfs.statSync()result
@unitybase/cdn #
Added #
5.19.4 2021-02-25 #
- new attribute
cdn_organization.countryID
@unitybase/cs-shared #
Fixed #
5.5.18 2021-02-03 #
- fix typo in
UBDomain.prototype.geterror message in case entity does not exist
@unitybase/openid-connect #
Changed #
5.19.0 2021-02-02 #
- use new method
req.getHeader('origin')to get aOriginheader value - use new property
req.parsedParametersinstead ofqueryString.parse(req.parameters)
@unitybase/ub #
Added #
5.19.2 2021-02-08 #
- new syntax sugar methods
insert,insertAsObject,updateandupdateAsObjectare added toTubDataStore. Methods semantic are the same as for Connection. See TubDataStore documentation for details. Example:
const STORE = UB.DataStore('uba_role')
// return ID (generated, since ID not passed in the execParamms)
// 3000000000201
const testRoleID = STORE.insert({
fieldList: ['ID'],
execParams: {
name: 'testRole1',
allowedAppMethods: 'runList'
}
})
5.19.0 2021-02-02 #
THTTPRequestextended by helper functions:- req.getHeader(name) -> string|undefined
- req.getHeaderNames() -> array<string>
- req.getHeaders() -> Object
THTTPRequestextended byparsedParametersgetter. Result is cached, so second call is faster than first
// for parameters 'foo=bar&baz=qux&baz=quux&corge' return
req.parsedParameters // { foo: 'bar', baz: ['qux', 'quux'], corge: '' }
We recommend using this getter instead of querystring.parse(req.parameters) to prevent multiple
call to parameter parsing from different methods (require UB server >= 5.19.0).
THTTPRequest.writeToFilecan accept second parameterencoding- 'bin' (default) orbase64. Forbasse64request body will be converted from base64 into binary before write to file
Changed #
5.19.0 2021-02-02 #
- BREAKING JS endpoints, added by
App.registerEndpointand native endpoints, added by a server (stat, auth, ubql, logout and metrics) now executed usingApp.launchEndpointJS implementation.
This allows to use the same req and resp objects for both endpoint types, and a one step forward to pure JS ubql implementation.
These changes require UB server >= 5.19.0.
@unitybase/uba #
Changed #
5.19.1 2021-02-03 #
- for UB@5.19.1
loginFailedevent logs intouba_audit.actionUsername of user who tries to log-in. Before this changesanonymousis written there. For UB@5.19.0anonymousis written as before this patch.
5.19.0 2021-02-02 #
- use new property
req.parsedParametersinstead ofqueryString.parse(req.parameters)
@unitybase/ubcli #
Added #
5.19.4 2021-02-25 #
ubcli execSqlcommand accept-vparameter for a verbose mode. In the verbose mode each executed SQL statement will be logged into consoleubcli migratecommand accept-vparameter for a verbose mode and-pparameter for progress. Both a passed to execSql, this allows output all executed SQL statement into a console (SQL statement logging)
