framework7-react
Advanced tools
Comparing version 0.8.2-beta-3 to 0.8.2-beta-4
@@ -29,2 +29,3 @@ import * as React from 'react'; | ||
virtualRenderItem?: Function; | ||
virtualEmptyTemplate?: string; | ||
onSortableOpen?: (eventArgs?: any) => void; | ||
@@ -31,0 +32,0 @@ onSortableClose?: (eventArgs?: any) => void; |
@@ -73,4 +73,4 @@ import * as React from 'react'; | ||
onAccordionOpened?: (eventArgs?: any) => void; | ||
onInput?: (eventArgs?: any) => void; | ||
onChange?: (eventArgs?: any) => void; | ||
onInput?: (eventArgs?: any) => void; | ||
contentStartSlot?: React.ReactElement<any>; | ||
@@ -77,0 +77,0 @@ mediaStartSlot?: React.ReactElement<any>; |
@@ -21,4 +21,4 @@ "use strict"; | ||
'accordion:opened', | ||
'change', | ||
'input' | ||
'input', | ||
'change' | ||
], | ||
@@ -25,0 +25,0 @@ instantiatedComponents: [ |
@@ -16,2 +16,3 @@ import * as React from 'react'; | ||
onPanelOverlayClick?: (eventArgs?: any) => void; | ||
onPanelSwipe?: (eventArgs?: any) => void; | ||
id?: string; | ||
@@ -18,0 +19,0 @@ className?: string; |
@@ -11,3 +11,4 @@ "use strict"; | ||
'panel:closed', | ||
'panel:overlay-click' | ||
'panel:overlay-click', | ||
'panel:swipe' | ||
] | ||
@@ -14,0 +15,0 @@ }); |
@@ -126,3 +126,4 @@ "use strict"; | ||
view: view || getMainView(), | ||
options: options | ||
options: options, | ||
router: this | ||
})); | ||
@@ -129,0 +130,0 @@ }; |
@@ -23,3 +23,2 @@ import * as React from 'react'; | ||
}; | ||
themeClass: string; | ||
routes: IFramework7Route[]; | ||
@@ -54,3 +53,2 @@ getFramework7: (callback: (f7: Framework7) => void) => void; | ||
framework7AppContext: { | ||
themeType: ThemeTypeEnum; | ||
getFramework7: any; | ||
@@ -57,0 +55,0 @@ theme: { |
@@ -7,2 +7,10 @@ "use strict"; | ||
}; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
var React = require("react"); | ||
@@ -25,3 +33,2 @@ var router_1 = require("../../framework7-vue/router"); | ||
framework7AppContext: { | ||
themeType: this.props.themeType, | ||
getFramework7: this.getFramework7.bind(this), | ||
@@ -53,3 +60,3 @@ theme: { | ||
var _this = this; | ||
this.framework7 = new Framework7_1.Framework7(this.props); | ||
this.framework7 = new Framework7_1.Framework7(__assign({ material: this.props.themeType === 'material' }, this.props)); | ||
var router = this.router = new router_1.default(this.props.routes, this.framework7, Framework7_1.Dom7); | ||
@@ -56,0 +63,0 @@ router.setRouteChangeHandler(function (route) { |
@@ -64,4 +64,4 @@ "use strict"; | ||
var props = this.props; | ||
var innerEl = React.createElement(innerComponent, __assign({}, props, { $theme: { material: false, ios: true }, __onMount: function (self) { | ||
var framework7AppContext = _this.context.framework7AppContext; | ||
var framework7AppContext = this.context.framework7AppContext; | ||
var innerEl = React.createElement(innerComponent, __assign({}, props, { $theme: framework7AppContext.theme, __onMount: function (self) { | ||
framework7AppContext.getFramework7(function (f7) { | ||
@@ -68,0 +68,0 @@ if (self.vueComponent.onF7Init) { |
{ | ||
"name": "framework7-react", | ||
"version": "0.8.2-beta-3", | ||
"version": "0.8.2-beta-4", | ||
"description": "A React version of Framework7", | ||
@@ -5,0 +5,0 @@ "main": "dist/framework7-react/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1135649
22053