Skip to content

Commit 90d1cf7

Browse files
committed
5.5.1 release
1 parent 81261bb commit 90d1cf7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+478
-131
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
# Change Log
44

5+
# [v5.5.1](https://github.com/framework7io/framework7/compare/v5.5.0...v5.5.1) - March 20, 2020
6+
* Core
7+
* Action Sheet
8+
* Fixed issue when it stops to emit events when converted to popover
9+
* Added `cssClass` parameter to add custom css class to generated element
10+
* Login Screen
11+
* Fixed issue with appearance in dark theme
12+
* Popup
13+
* New events when swipeToClose enabled: `swipeStart`, `swipeMove`, `swipeEnd`, `swipeClose`
14+
* Searchbar
15+
* Fixed inline-searchbar styles when used with large navbar
16+
* Subnavbar
17+
* Fixed issue with disabled pointer-events in hidden navbar
18+
* Minor fixes
19+
520
# [v5.5.0](https://github.com/framework7io/framework7/compare/v5.4.5...v5.5.0) - March 6, 2020
621
* Core
722
* Card

packages/core/components/actions.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/components/actions/actions-class.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,24 @@ class Actions extends Modal {
105105
targetY,
106106
targetWidth,
107107
targetHeight,
108+
on: {
109+
open() {
110+
actions.$el.trigger(`modal:open ${actions.type.toLowerCase()}:open`);
111+
actions.emit(`local::open modalOpen ${actions.type}Open`, actions);
112+
},
113+
opened() {
114+
actions.$el.trigger(`modal:opened ${actions.type.toLowerCase()}:opened`);
115+
actions.emit(`local::opened modalOpened ${actions.type}Opened`, actions);
116+
},
117+
close() {
118+
actions.$el.trigger(`modal:close ${actions.type.toLowerCase()}:close`);
119+
actions.emit(`local::close modalClose ${actions.type}Close`, actions);
120+
},
121+
closed() {
122+
actions.$el.trigger(`modal:closed ${actions.type.toLowerCase()}:closed`);
123+
actions.emit(`local::closed modalClosed ${actions.type}Closed`, actions);
124+
},
125+
},
108126
});
109127
popover.open(animate);
110128
popover.once('popoverOpened', () => {
@@ -215,8 +233,9 @@ class Actions extends Modal {
215233
const actions = this;
216234
if (actions.params.render) return actions.params.render.call(actions, actions);
217235
const { groups } = actions;
236+
const cssClass = actions.params.cssClass;
218237
return `
219-
<div class="actions-modal${actions.params.grid ? ' actions-grid' : ''}">
238+
<div class="actions-modal${actions.params.grid ? ' actions-grid' : ''} ${cssClass || ''}">
220239
${groups.map(group => `<div class="actions-group">
221240
${group.map((button) => {
222241
const buttonClasses = [`actions-${button.label ? 'label' : 'button'}`];
@@ -243,8 +262,9 @@ class Actions extends Modal {
243262
const actions = this;
244263
if (actions.params.renderPopover) return actions.params.renderPopover.call(actions, actions);
245264
const { groups } = actions;
265+
const cssClass = actions.params.cssClass;
246266
return `
247-
<div class="popover popover-from-actions">
267+
<div class="popover popover-from-actions ${cssClass || ''}">
248268
<div class="popover-inner">
249269
${groups.map(group => `
250270
<div class="list">

packages/core/components/actions/actions.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export namespace Actions {
5454
content?:string
5555
/** Enables Action Sheet backdrop (dark semi transparent layer behind)*/
5656
backdrop?:boolean
57+
/** Custom css class added to Actions Sheet element */
58+
cssClass?: string
5759
/** When enabled, action sheet will be closed on backdrop click*/
5860
closeByBackdropClick?:boolean
5961
/** When enabled, action sheet will be closed on when click outside of it*/
@@ -147,4 +149,4 @@ export namespace Actions {
147149

148150
declare const ActionsComponent: Framework7Plugin;
149151

150-
export default ActionsComponent;
152+
export default ActionsComponent;

packages/core/components/actions/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
forceToPopover: false,
1010
backdrop: true,
1111
backdropEl: undefined,
12+
cssClass: null,
1213
closeByBackdropClick: true,
1314
closeOnEscape: false,
1415
render: null,

0 commit comments

Comments
 (0)