- [Fix] Revert select/selectajax sortable
- [Add] Add version and footer text
- [Fix] Fix php8.1 warning deprecations
- [Fix] Fix select2 multiple placeholder and add css for light and dark theme
- [Fix] Fix pre css
- [Add] Add default datatables send method in config
default_datatables_method
- [Add] Add new method for display datatables
->setMethod('POST') // по умолчанию GET так и остался
- [Fix] Fix wysiwyg dark theme (Ckeditor 5)
- [Fix] Поправил tinymce, можно выбирать версию в конфиге, но нет возможности локализации
config('sleeping_owl.wysiwyg_cdn.tinymce')
//Если есть API ключ для домена - вставить, иначе оставьте 'no-api-key'
// версии 4, 5, 6
'tinymce' => [
'api' => 'no-api-key',
'ver' => 6,
],
- [Fix] Поправил ckeditor5. Появилась возможность переключаться с CDN на локальную и выбирать версию (только CDN)
// Перевод берется от настройки локального языка
'ckeditor5' => [
'useCdn' => false,
'ver' => '36.0.1'
],
- [Deleted] Wysiwig Summernote NOT supported from SleepingOwl
- [Update] Downgrade sweetalert2 11.4.9 -> 11.4.8
- [Fix] Change theme icons
- [Fix] Fix darken mode
- [Add] Add dark theme (test)
- [Add] Add Visible/invisible password button
- [Add] Add method
canGenerate($length = null)
(default:8) inAdminFormElement::password()
- [Fix] Fix filter push if section have many filters
- [Add] Add separator and divider in navigation
[
'title' =>'Menu Label',
'type' =>'label',
'priority' =>'800',
'url' => '#',
],
[
'title' =>'Name Divider',
'type' =>'divider',
'priority' =>'900',
'url' => '#',
]
- [Add] Add new yield position
filter.button
- [Add] Add
setOptions(['Foo', 'Bar', 'Baz', 'Foobar'])
inAdminFormElement::text
for DataList text
- [Update] NPM packages:
- fortawesome/fontawesome-free: 5.15.4 -> 6.1.1
- axios: 0.21.1 -> 0.27.2
- dropzone: 5.7.2 -> 5.9.3 (NOT UPDATED)
- node-sass: 6.0.0 -> 7.0.1
- datatables.net-bs4: 1.10.25 -> 1.12.1
- datatables.net: 1.10.25 -> 1.12.1
- datatables.net-responsive: 2.2.9 -> 2.3.0
- i18n: 0.13.3 -> 0.15.0
- i18next: 20.6.1 -> 21.8.5
- js-cookie: 3.0.0 -> 3.0.1
- laravel-mix: 6.0.19 -> 6.0.43
- moment: 2.29.1 -> 2.29.3
- postcss-loader: 6.1.1 -> 7.0.0
- sass: 1.38.0 -> 1.52.1
- sass-loader: 12.1.0 -> 13.0.0
- sweetalert2: 11.1.4 -> 11.4.17 (revert to 11.4.9)
- x-editable-bs4: 1.5.4 -> 1.5.5
- tempusdominus-core: 5.19.0 -> 5.19.3
- admin-lte: 3.1.0 -> 3.2.0
- sortablejs: 1.14.0 -> 1.15.0
- resolve-url-loader: 4.0.0 -> 5.0.0
- [Add] Add class for
icheck indeterminate
- [Rebuild] Rebuild assets and add use
dev_assets
in config (useADMIN_DEV_ASSETS=true
in.env
)
- [Add] Add
->setTarget(string)
for Navigations
- [Add] Add
->setMaxLists(int)
forAdminColumn::lists
- [Add] Add
->setOnlyLink(bool||callable)
forAdminFormElement::image
andAdminFormElement::images
. If the value is true - it is forbidden to load images or insert from blobs. Allows only to insert a link to an image
- [Fix] Add
->setDeletable(bool||callable)
forhasManyLocal
- [Add] Add pasting from buffer in
AdminFormElement::image
andAdminFormElement::images
(use blob and autoupload) - [Add] Add
->setDeletable(bool||callable)
forhasMany
,belongsTo
andmanyToMany
(defaulttrue
). PS: Callable only parent model
- [Config] Add in config
useWysiwygCard
for default views (with card or without) wysiwyg columns - [Config] Add in config
useRelationCard
for default views (with card or without)hasMany
,belongsTo
andmanyToMany
columns - [Config] Add in config
useHasManyLocalCard
for default views (with card or without)hasManyLocal
columns - [Add] Add
->setCard()
forAdminFormElement::hasMany
(and other extendions) - [Add] Add
->setMaxHeight('20rem')
forAdminFormElement::hasMany
(etc.) - [Add] Add
->setCollapsed(true)
forAdminFormElement::hasMany
(etc.) if used->setCard()
- [Fix] Fix and enable
->setReadonly(true)
forAdminFormElement::hasMany
(etc.) (!!! only disabled button add and remove relation, NOT add readonly in children elements)
- [Fix] Fixed setReadonly callback in editable columns and add policy on editable columns
- [HotFix] Fix editable facades and callback logic
- [Fix] Fixed editable columns (checkbox, datetime, number, select, text & textarea) saving on relations.
- [Fix] Fix loading image, images, file, files in
AdminFormElement::hasMany()
:AdminFormElement::image('image', 'Изображение')
,AdminFormElement::images('images', 'Изображения')
,AdminFormElement::file( 'file', 'Файл')
,AdminFormElement::files('files', 'Файлы')
. В путь добавляется название имени FormElement.
- [Fix] Fix
AdminFormElement::image('image', 'Image')->setAssetPrefix($string)
in form. - [Update] NPM packages:
- axios: 0.20.0 -> 0.21.1
- [Fix] Fix display column
count
searchable and orderable. - [Fix] Fix style and class in filters
date
anddaterange
.
- [Fix] Fix filters margin.
- [Fix] Fix collapsed menu title.
- [Add] Add lazyLoad in table/datatables column image (enable/disable in config or
->setLazyLoad(true)
) - [Add] Add lazyLoad default image (use url or
data:image/gif;base64,...
) - [Add] Add
AdminColumn::image('image', 'Pic')->setAssetPrefix('custom_prefix')
in display (not check onimages
,file
,files
) - [Add] Add
AdminFormElement::image('image', 'Pic')->setAssetPrefix('custom_prefix')
in edit (not check onimages
,file
,files
)
- [Add] Availability to return file title and description in files. Variables are:
title
anddesc
- [Fix] Error messages in files/image
- [Add] hasManyLocal component improvements: allow to use more and more elements, but not this yet: image(s)/file(s)/upload/(multi)dependentselect.
- [Fix] Redesign wysiwyg init scheme: implemented centralized init all of wysiwygs on the page (see: Admin.Modules.register('form.elements.wysiwyg')) instead of inline script initialization for each visual editor in template file.
- [Add] New method for all form elements:
->setViewMode(<view_postfix>)
. How to use: for example, you can call this:AdminFormElement::wysiwyg('wysiwyg', 'Editor')->setViewMode('without_card)
- it's the same thatAdminFormElement::wysiwyg('wysiwyg', 'Editor')->setView('form.element.wysiwyg_without_card)
. In simple words: this method provided ability to add postfix for used view filename, that allows you to use predefined views for some elements with various functional. - [Add] In reference for previous item: new method for wysiwyg form control:
AdminFormElement::wysiwyg('wysiwyg', 'wysiwyg')->withoutCard()
allows to you use wysiwyg form control without card wrapper.
- [Add] Allow to change CKEditor 5 build require urls, see config('sleeping_owl.wysiwyg.ckeditor5.files'), bootstrap.php for CKFinder. Updating used CKEditor 5 CDN version (12.3.1 > 23.1.0)
- [Add] New component hasManyLocal: analog for hasMany, but store data in local longText field of the model as json-string (by default). Need for testing!
- [Fix] maxSize and minSize in image/images/file/files (was Mb, now in kB)
- [Fix] Fix in related elements dublicate 'id' in elements
- [Fix] Fix in related elements don't set method setDefaultValue()
- [Fix] Fix ArgumentCountError on update
- [Fix] Fix image/s, file/s css
- [Fix] Fix in related elements don't initialize Columns element
- [Fix] Fix issue #1222
- [Add]
AdminColumnEditable::number('count','Count')
- [Add]
AdminColumnEditable::range('range','Power')
AdminColumnEditable::number('count', 'Count')
->setMin(-25) //not required
->setMax(30) //not required
->setStep(5); //not required
AdminColumnEditable::range('range', 'Power')
->setMin(-25) //not required
->setMax(30) //not required
->setStep(5); //not required
- [Support] Support Laravel 8
- [Fix] datatables highlight tabs column
- [Fix] Fix table-light row hover style
- [Add] Partially localized
select2
inselectajax
- [Ver] Tested on Laravel 7.25
- [Add] Add datatables_highlight in config file and add class
.lightcolumn
for custom table - [Add] Add class
.table-black
and.table-red
(+highlight classes) - [Add] Add scroll-to-bottom button
- [Add] Add column highlight in datatables
- [Fix] Fix
setRowClassCallback()
anddisableControls()
in datatables onfireDisplay()
- [Fix] Fix
setDraggable(bool)
inAdminFormElement::files
andAdminFormElement::images
- [Fix] Fix
maxSize()
andminSize()
in AdminFormElementfile
,files
,image
andimages
- [Add] Add
maxSize()
cannot be larger than allowed in php - [Update] NPM packages:
- bootstrap: 4.5.0 -> 4.5.2
- sass-loader: 9.0.2 -> 10.0.1
- vue-template-compiler: 2.6.11 -> 2.6.12
- laravel-mix: 5.0.4 -> 5.0.5
- i18next: 19.6.2 -> 19.7.0
- dropzone: 5.7.1 -> 5.7.2
- lodash: 4.17.19 -> 4.17.20
- trix: 1.2.3 -> 1.2.4
- vuedraggable: 2.24.0 -> 2.24.1
- sweetalert2: 9.17.0 -> 9.17.1
- vue: 2.6.11 -> 2.6.12
- i18n: 0.10.0 -> 0.13.2
- axios: 0.19.2 -> 0.20.0
- Fix
AdminColumnFilter::date()
- Return
setWidth
(css min-width) in filters - Add
->setInline(true)
inAdminColumnFilter::range()
- Fix filters css (scss)
- Rebase top filters from tables view on flex div (add flex wrap)
- [Update] NPM packages:
- @fortawesome/fontawesome-free: 5.13.0 -> 5.14.0
- i18next: 19.4.5 -> 19.6.2
- lodash: 4.17.15 -> 4.17.19
- moment: 2.26.0 -> 2.27.0
- sweetalert2: 9.14.4 -> 9.17.0
- vuedraggable: 2.23.2 -> 2.24.0
- sass: 1.26.8 -> 1.26.10
- sass-loader: 8.0.2 -> 9.0.2
Deleted:
- fullcalendar
- font-awesome: 4.7.0
- change Noty notification on Swal Toast in Tree and .env editor
- [Update] NPM packages:
- @flowjs/flow.js: 2.14.0 -> 2.14.0
- dropzone: 5.7.0 -> 5.7.1
- i18n: 0.9.1 -> 0.10.0
- i18next: 19.4.4 -> 19.4.5
- jquery-form: 4.2.2 -> 4.3.0
- sass: 1.26.5 -> 1.26.8
- sweetalert2: 9.13.1 -> 9.14.4
- Rebuild visibled and add in onDisplay
- add CSS in
.swal2-image
max-height: 60vh
- Remove
setSmall
,setIsolated
in Traits - Add
setSmall
&setIsolated
inAdminColumn::checkbox()
- Add
->setVisibled( bool || callable )
for onDisplay - Add
->setVisible( bool || callable )
for onEdit
//table and datatables
AdminColumn::checkbox()
->setVisibled(function($item){
return $item->id < 3;
});
//or
AdminColumn::link('title', 'Title')->setVisibled(false);
- [Fix] Fix related elements: return add custom element for in the viewport related elements
- [Fix] Fix hasMany element error in output paths, output of fields: images, files, image, file
- [Update] NPM packages:
- admin-lte: 3.0.4 -> 3.0.5
- bootstrap: 4.4.1 -> 4.5.0
- jquery: 3.5.0 -> 3.5.1
- datatables.net: 1.10.20 -> 1.10.21
- datatables.net-bs4: 1.10.20 -> 1.10.21
- datatables.net-responsive: 2.2.3 -> 2.2.5
- fullcalendar: 3.10.0 -> 3.10.2
- i18n: 0.9.0 -> 0.9.1
- moment: 2.24.0 -> 2.26.0
- node-sass: 4.14.0 -> 4.14.1
- sweetalert2: 9.10.12 -> 9.13.1
- [Update] NPM packages:
- admin-lte: 3.0.2 -> 3.0.4
- jquery: 3.1.1 -> 3.5.0
- i18next: 19.3.3 -> 19.4.4
- node-sass: 4.13.1 -> 4.14.0
- sweetalert2: 9.10.6 -> 9.10.12
- sass: 1.26.3 -> 1.26.5
- i18n: 0.8.6 -> 0.9.0
- [Update] NPM packages:
- @fortawesome/fontawesome-free: 5.12.1 -> 5.13.0
- cross-env: 7.0.0 -> 7.0.2
- dropzone: 5.5.1 -> 5.7.0
- i118n: 0.8.5 -> 0.8.6
- i118next: 19.3.2 -> 19.3.3
- laravel-mix: 5.0.1 -> 5.0.4
- sass: 1.26.1 -> 1.26.3
- sweetalert2: 9.7.2 -> 9.10.6
- [add] Add ENV editor setting
env_keys_readonly
- [add] Add ENV editor setting
env_can_delete
- [add] Add ENV editor setting
env_can_add
- [Fix] Fix locale multiselect
- [Fix] Fix tooltip image and images and delete button text
- [Fix] Fix image/images icons width fix
- [Add] Add navigation title if len more then 15 char
- [Fix] Fix sidebar ul->ul style
- [Fix] Fix work with custom element hasMany, ManyToMany, BelongTo
- [Revert] back class
.last
for tabs item
- [Fix] Fix saving group elements, add generation index for new group
- [Fix] Fix collapset sidebar style
- [Fix] Fix editable column width
50px -> 70px
- [Fix] Changed default font size to 14px -> 16px
- [Fix] Fix style for Tabs
- [Add] Add
setReadonly(bool)
for editable fields
- [Add] Add draggable(boolean) in
AdminFormElement::images
- [Update] NPM packages:
- @fortawesome/fontawesome-free: 5.12.0 -> 5.12.1
- sweetalert2: 9.7.0 -> 9.7.2
- [Add] Updated datatebles reDraw after action
- [Fix] Fix Vue isolation in display lists and columns
- [Fix] Fix action selected error
- [Fix] Fix nestable button width
- [Update] NPM packages:
- @flowjs/flow.js: 2.13.2 -> 2.14.0
- axios: 0.19.1 -> 0.19.2
- admin-lte: 3.0.1 -> 3.0.2
- i18n: 0.8.4 -> 0.8.5
- i18next: 19.0.3 -> 19.1.0
- node-sass: 4.13.0 -> 4.13.1
- sweetalert2: 9.5.4 -> 9.7.0
- select2: 4.0.12 -> 4.0.13
- sass: 1.24.3 -> 1.25.0
- sass-loader: 8.0.0 -> 8.0.2
- cross-env: 6.0.3 -> 7.0.0
- [Fix] Fix
setReadonly
inAdminFormElement::selectajax
- [Fix] Fix issue #900 isolated Vue
{{}}
- [Fix] Scroll to top animate
- [Update] NPM packages:
- @fortawesome/fontawesome-free: 5.11.2 -> 5.12.0
- axios: 0.19.0 -> 0.19.1
- bootstrap: 4.3.1 -> 4.4.1
- i18next: 19.0.1 -> 19.0.3
- laravel-mix: 5.0.0 -> 5.0.1
- sortablejs: 1.10.1 -> 1.10.2
- sweetalert2: 9.3.16 -> 9.5.4
- vue: 2.6.10 -> 2.6.11
- sass: 1.23.7 -> 1.24.3
- vue-template-compiler: 2.6.10 -> 2.6.11
- [Add] Scroll to top buttom
- [Fix] Fix badge white-space to inherit
- [Fix] Fix scrollbar-size width from 0.5rem to 0.8rem
- [Fix] Add table filter TD position relative
- [Fix] Fix multiselect required error message
- [Delete] Delete
->setCollapsed( true/false )
, use->setCollapsedLevel(0)
- [Add] Add
->setCollapsedLevel(3)
- [Update] NPM packages:
- admin-lte: v3.0.0-rc.1 -> 3.0.1 (! Released)
- datatables.net: 1.10.19 -> 1.10.20
- i18n: 0.8.3 -> 0.8.4
- i18next: 17.0.6 -> 17.3.1 -> 19.0.1 (! Major)
- node-sass: 4.12.0 -> 4.13.0
- progressbar.js: 1.0.1 -> 1.1.0 (!)
- select2: 4.0.8 -> 4.0.12
- sweetalert2: 8.14.0 -> 8.19.0 -> 9.3.16 (! Major)
- cross-env: 6.0.0 -> 6.0.3
- resolve-url-loader: 3.1.0 -> 3.1.1
- sass: 1.22.7 -> 1.23.7
- [Change] Changed filter behavior when
->setOperator('in')
you can filter multiple values separated by commas. Example:18,20
in filter field
- [Change] Change breadcrumbs position on col-12 and top page
- [Fix] Fix badge bg-color
- [Add] Add class for DisplayTabbed
AdminDisplay::tabbed()->setHtmlAttribute('class', 'foo')
- [Fix] Fix issue #1143
- [Add] Add
->setSortable(true / false)
inAdminColumn::lists(...)
- [Fix] Fix clear session in MessagesStack
- [Doc] Need add to doc
\MessagesStack::addError('text')
- [Fix] Fix
AdminColumnEditable
nullable value and localized empty data - [Fix] Fix label in
AdminColumnEditable::checkbox
- [Add] MaxFileSize in form element
image
,images
,file
- [Fix] Fix image link style
- [Fix] Fix
.row
width - [Fix] Fix
.content.body
css display (fix h-scroll) - [Add] Add
->setImage('/images/avatar.jpg')
inControlLink
andControlButton
- [Add] Add class
.img-control
for image in control block (->setHtmlAttribute('class', 'img-control')
)
- [Add] Add
menu-state
in localStorage (dublicate) - [Hot fix] Fix datetime form format
- [Add] Add button for clear filter and order in DataTable
- [Add] Filters state remember
- [Add] Datatables on/off state remember (in config)
- [Add] Add
->setIsolated(false)
for display columns (disabledhtmlspecialchars
) - [Fix] Fix WYSIWYG error text position
- [Fix] Fix error text style
- [Fix] Fix tooltip initialize (tabs and filters)
- [Fix] Fix
AdminForm::form()
view, add empty class
- [Fix] Fix table footer filter width (select2)
- [Delete] Deleted
setWidth
inDate
filter - [Refactor] Refactor date & datetime field in Displays, Forms & Filters
- [Fix] Fix datatables clear filters
- [Add] Tabs state remember
- [Add] Fade transition opacity (0.2s)
- [Delete] Delete clear localStorage in datatables
- [Fix] Fix maximized-card scroll
- [Fix] Fix padding in wysiwyg view
- [Fix] Fix Dependent nullable
- [Fix] Fix Dependent localization
- [Delete] Delete
Contracts\Form\PanelInterface
(deprecated, have alias oncard
) - [Add]
AdminDisplay::tree()
add->setCollapsed(true)
- [Add] Localization validate from SO resources
- [Update]
AdminColumnEditable::datetime('updated_at', 'DateTime')
add datepicker - [Add]
AdminColumnEditable::date('date', 'Only Date')
add datepicker - [Fix] In
AdminColumn::images
fix->setReadonly(true)
for dropzone
- [Fix] Navigation badges (pull-right)
- [Add] Add in config
logo_mini
,menu_top
- [Deleted] Title and house icon on top panel
- [Add] Add
->setSmall
inAdminColumn::custom
- [Fix] stub section generate
- [Fix] Set default orderable & searchable in Display column
- [Deleted] All
panel
views and classes - [Fix] Fix Attribute on
AdminColumnEditable
and remake datetime
- [Add] Add class
.th-center
for table / datatables. Change text-align on left - [Fix] localized
AdminFormElement::selectajax
(partially)
- [Add] Add
.table-light
and.table-gray
, fix styles.table-secondary
- [Add] Add
.table-sm
for no padding top/bottomtd
&th
in table - [Fix] Vue-multiselect class
- [Fix] Placeholder color change to
#adb5bd
(sass - $gray-500) - [Fix] Small (about value) in display color change to
#6c757d
(sass - $gray-600) - [Change] Change yelds
panel.*
tocard.*
(panel.*
will be deprecated in future versions) - [Change]
panel.*
is aliascard.*
inAdminForm::panel()->
- [Fix] Fix yield position for filter and action
- [Fix] Delete table-striped in default datatables
- [Add] Add maximize button in wysiwyg
- [Add] All form add class
.card
- [Fix] Filter and order button size in display
- [Fix] Display width table 100% card
- [Fix]
AdminFormElement::image
add URL link - [Fix]
AdminFormElement::images
add URL link and sortable - [Fix]
AdminFormElement::file
fix error - [Add]
AdminFormElement::files
->showTitle(bool)
show/hide title field->showDescription(bool)
show/hide description field->setTitleRequired(bool)
enable/disable required title->setDescriptionRequired(bool)
enable/disable required description
- [Feature]
Admin.Messages.prompt(title, message = null, inputPlaceholder = null, inputValue = null, imageUrl = null)
- [Fix]
AdminColumn::wysiwyg
class - [Fix]
.dropdown
button style - [Fix]
.alert
color style - [Fix]
.content.body
min-height style - [Change] config
show_editor
onenable_editor
- [Fix] Travis test fix
- [Fix] Small fix Scrutinizer
- [Deleted]
AdminColumn::daterange
- [Fix]
->setVisibilityCondition()
- [Fix]
->setVisible()
in form - [Deleted]
->setDisplayed()
- [Add] Add Bootstrap4 classes
.hidden-xs
,.hidden-sm
,.hidden-md
,.hidden-lg
,.hidden-xl
- [Fix] Responsive navbar
.dropdown-menu
- [Fix] Responsive navbar
#nestable-menu
(tree view) - [Fix] Checkbox background
- [Feature] Change the color of badges ('
AdminColumn::lists
') depending on the color of the table, and add class for force recolor.badge-list-primary
or other BS4 color - [Add]
AdminColumn::boolean
fixsetHtmlAttribute
& third param - [Add]
AdminColumn::count
fixsetHtmlAttribute
& third param - [Add]
AdminColumn::datetime
fixsetHtmlAttribute
& third param - [Add]
AdminColumn::gravatar
fixsetHtmlAttribute
& third param - [Add]
AdminColumn::image
fixsetHtmlAttribute
& third param - [Fix]
AdminColumn::link
fixsetHtmlAttribute
- [Add]
AdminColumn::lists
fixsetHtmlAttribute
& third param - [Add]
AdminColumn::url
fixsetHtmlAttribute
& third param, addsetIcon('false')
,setIcon('fas fa-address-book')
,->setText('Random text', 1)
(or->setText('created_at')
) - [Add]
AdminColumn::url('column', 'Title', 'column')
or->setSmall('Random text', 1)
(or->setSmall('created_at')
)