Added
5.20.14 2021-05-24
- temporary solution, not recommended to use - validation will be re-thinks: validation error message
can get a validation rule caption from the property with the same name as validation rule +
:caption
suffix. Example:
module.exports.mount = cfg => {
Form(cfg)
.store()
.processing()
.validation({
...mapState('form', ['dataProvider']),
computed: {
dateFrom: this.dateFrom, // dateFrom is a validation rule name
'dateFrom:caption': this.$ut('Date from'),
nestedData() { // the same name as validation rule
return {
color: this.nestedData.color,
'color:caption': this.$ut('form_captions.defaultValueOf', 'color'),
}
}
},
validations() {
return {
dateFrom: {required}, // a validation rule name
nestedData: {
color: {required},
}
}
}
})
.mount()
UTableEntity
in "Card" mode pass a full row to the dblclick
event - the same behavior as with double-click on table row
5.20.12 2021-05-13
processing.js
: refresh
method emits a UB.connection.emit(
${masterEntityName}:refresh, {ID: state.data.ID})
event.
- possibility to add a validation for not-entity attributes in the
Form.validation(...)
section.
For such field two computed properties can be defined:
- a computed property that return a field value
- a computed property
${field}:caption
that return localized field name for error dialog.
Example:
module.exports.mount = cfg => {
Form(cfg)
.store()
.processing()
.validation({
...mapState('form', [
'dataProvider'
]),
computed: {
colorDefaultValue() {
return this.dataProvider.getDefaultValueFor('color')
},
'colorDefaultValue:caption'() {
return this.$ut('forms_errors.invalidDefaultValue', 'color')
}
},
validations() {
return {
colorDefaultValue: {
required
}
}
}
})
.mount()
5.20.10 2021-05-05
exportFormatXlsColumn
- new method in column configuration for the UTable
. This method is useful
when you want to set some specific format in an Excel
file for this column
- all available dialogs now exported as
uDialogs
object from adminui-vue
packages.
Dialogs functions are documented in adminui-vue documentation on site
- adminui-vue
lookups
submodule documentation
- adminui-vue
helpers
and processing
submodules documentation
- adminui-vue exports a
helpers
submodule as formHelpers
.
A direct require('@unitybase/adminui-vue/utils/Form/helpers')
should be replaced to require('@unitybase/adminui-vue').formHelpers
Changed
5.20.12 2021-05-13
validations() {...}
BREAKING this option is deep merged
not overridden by another from another mixin now. This allows you to reuse mixins with partial validation
5.20.11 2021-05-07
- UDatePicker improvements:
- documentation added - see https://unitybase.info/api/adminui-vue/index.html#/Presentational/UDatePicker
- panels for ranges are unlinked by default (month can be changed separately)
- placeholder i18n for date range changed from
Start Date - End Date
to from - to
( з - по
for uk)
- added defaults shortcuts. For date - Today and Yesterday, for range Today, Yesterday and "current month"
- FTS widget and "range" date filter for 'UTable' uses
u-date-picker
with all options is default
5.20.10 2021-05-05
computedVuex
BREAKING signature changed to accept (optional) submodule name as a second argument
mapInstanceFields
BREAKING signature changed to accept (optional) submodule name as a second argument
helpers.isEqual
(used to check store is changed) for array elements return false
in case length of array is not match.
Before this changes helpers.isEqual([1, 2], [2, 1, 1])
returns true
- a theme CSS variable
--l-layout-border-default
changed from 80% to 70% to adjust a u-*
controls border color with el-*
ones
Fixed
5.20.14 2021-05-24
- allow mount Vue container directly in Ext tabpanel
5.20.13 2021-05-13
- fix dialog* and lookups export from
@unitybase/adminui-vue
5.20.11 2021-05-07
- fixed
UB.truncTimeToUTCNull is not a function
, valid method name is UB.truncTimeToUtcNull
(UTC -> Utc)
- autoforms fixed (was broken by 5.20.10 refactoring)
UAutoFiled
for Date and DateTime sets u-date-picker clearable
to false
for attributes what do not allow nulls
5.20.10 2021-05-05
lookups
: clean mapById
object during last unsubscribe
(as well as data array is cleaned)
Added
5.20.14 2021-05-13
UBPlanFactContainer
: added support for data type Many
Changed
5.20.13 2021-05-07
- i18n for current_[week|month|year] changed "This week" -> "Current week", "?? ??? ???????" -> "???????? ???????" etc
Fixed
5.20.13 2021-05-07
- fix static file access error for
models/adminui-pub/themes/undefined/ubimages/scan-to-pdf.png
;
UBGrayTheme
should be used as a default instead of undefined
5.20.12 2021-05-05
- Sidebar: prevent show en error in case user click on empty folder or on shortcut with empty command code,
write error into console instead [LDOC-1434].
Added
5.9.8 2021-05-13
UBConnection
events are documented
5.9.6 2021-05-05
<<<ERR_RESOURCE_LIMITS_EXCEED>>>
localization added: "The operation was canceled because it is consuming a lot of resources.
<br> Tips: - narrow down a search parameters <br> - avoid using the 'contains' condition <br> - avoid navigating between list pages"
Removed
5.9.9 2021-05-24
- a
SignatureValidationResult
type definition is moved to @unitybase/stubs
package
Fixed
5.9.9 2021-05-24
- JSDoc improved for xhr|get|post methods of UB & UBConnection
Added
5.22.4 2021-05-24
- Hardware Security Module (UB EE+) config description is added to the ubConfig JSON schema
rest
endpoint documented - see rest endpoint documentation
5.22.3 2021-05-13
- JSDoc:
UB.App
and UB.Session
events are documented
Fixed
5.22.3 2021-05-13
- improved JSDoc. UB.App is now instance of ServerApp (instead of App) for better documentation
Fixed
5.20.14 2021-05-13
- fixed migrate with default lang az
Fixed
5.21.10 2021-05-24
- DDL generator includes
mi_tenantID
for unique indexes of multi-tenant entities
5.21.8 2021-05-07
ubcli generateDDL
for Oracle: fixed referential constraint generation in case referenced table is located in
another schema (in such case constraint UNEXPECTEDLY owned by reference table schema)
5.21.7 2021-05-05
ubcli generateDDL
: fixed referential constraint generation in case referenced entity,
or it's primary key attribute has a mapping
ubcli generateDDL
: prevent reading of database / roles list in case neither -drop
nor -create
is passed.
This allows to init an existed DB for user without DBA privileges
Removed
5.20.13 2021-05-07
@unitybase/ubs/modules/base64.js
is removed - not used. Buffer.from(text, 'base64')
is used instead.