Skip to content

Commit

Permalink
5.5.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 20, 2020
1 parent 81261bb commit 90d1cf7
Show file tree
Hide file tree
Showing 69 changed files with 478 additions and 131 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

# Change Log

# [v5.5.1](https://github.com/framework7io/framework7/compare/v5.5.0...v5.5.1) - March 20, 2020
* Core
* Action Sheet
* Fixed issue when it stops to emit events when converted to popover
* Added `cssClass` parameter to add custom css class to generated element
* Login Screen
* Fixed issue with appearance in dark theme
* Popup
* New events when swipeToClose enabled: `swipeStart`, `swipeMove`, `swipeEnd`, `swipeClose`
* Searchbar
* Fixed inline-searchbar styles when used with large navbar
* Subnavbar
* Fixed issue with disabled pointer-events in hidden navbar
* Minor fixes

# [v5.5.0](https://github.com/framework7io/framework7/compare/v5.4.5...v5.5.0) - March 6, 2020
* Core
* Card
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/actions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 22 additions & 2 deletions packages/core/components/actions/actions-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,24 @@ class Actions extends Modal {
targetY,
targetWidth,
targetHeight,
on: {
open() {
actions.$el.trigger(`modal:open ${actions.type.toLowerCase()}:open`);
actions.emit(`local::open modalOpen ${actions.type}Open`, actions);
},
opened() {
actions.$el.trigger(`modal:opened ${actions.type.toLowerCase()}:opened`);
actions.emit(`local::opened modalOpened ${actions.type}Opened`, actions);
},
close() {
actions.$el.trigger(`modal:close ${actions.type.toLowerCase()}:close`);
actions.emit(`local::close modalClose ${actions.type}Close`, actions);
},
closed() {
actions.$el.trigger(`modal:closed ${actions.type.toLowerCase()}:closed`);
actions.emit(`local::closed modalClosed ${actions.type}Closed`, actions);
},
},
});
popover.open(animate);
popover.once('popoverOpened', () => {
Expand Down Expand Up @@ -215,8 +233,9 @@ class Actions extends Modal {
const actions = this;
if (actions.params.render) return actions.params.render.call(actions, actions);
const { groups } = actions;
const cssClass = actions.params.cssClass;
return `
<div class="actions-modal${actions.params.grid ? ' actions-grid' : ''}">
<div class="actions-modal${actions.params.grid ? ' actions-grid' : ''} ${cssClass || ''}">
${groups.map(group => `<div class="actions-group">
${group.map((button) => {
const buttonClasses = [`actions-${button.label ? 'label' : 'button'}`];
Expand All @@ -243,8 +262,9 @@ class Actions extends Modal {
const actions = this;
if (actions.params.renderPopover) return actions.params.renderPopover.call(actions, actions);
const { groups } = actions;
const cssClass = actions.params.cssClass;
return `
<div class="popover popover-from-actions">
<div class="popover popover-from-actions ${cssClass || ''}">
<div class="popover-inner">
${groups.map(group => `
<div class="list">
Expand Down
4 changes: 3 additions & 1 deletion packages/core/components/actions/actions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export namespace Actions {
content?:string
/** Enables Action Sheet backdrop (dark semi transparent layer behind)*/
backdrop?:boolean
/** Custom css class added to Actions Sheet element */
cssClass?: string
/** When enabled, action sheet will be closed on backdrop click*/
closeByBackdropClick?:boolean
/** When enabled, action sheet will be closed on when click outside of it*/
Expand Down Expand Up @@ -147,4 +149,4 @@ export namespace Actions {

declare const ActionsComponent: Framework7Plugin;

export default ActionsComponent;
export default ActionsComponent;
1 change: 1 addition & 0 deletions packages/core/components/actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default {
forceToPopover: false,
backdrop: true,
backdropEl: undefined,
cssClass: null,
closeByBackdropClick: true,
closeOnEscape: false,
render: null,
Expand Down
Loading

0 comments on commit 90d1cf7

Please sign in to comment.