mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(): update deps (#17195)
This commit is contained in:
@ -49,41 +49,41 @@
|
|||||||
"tslib": "^1.9.3"
|
"tslib": "^1.9.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular-devkit/core": "^7.2.0",
|
"@angular-devkit/core": "^7.2.1",
|
||||||
"@angular-devkit/schematics": "^7.2.0",
|
"@angular-devkit/schematics": "^7.2.1",
|
||||||
"@angular/core": "^7.2.0",
|
"@angular/core": "^7.2.1",
|
||||||
"@angular/common": "^7.2.0",
|
"@angular/common": "^7.2.1",
|
||||||
"@angular/forms": "^7.2.0",
|
"@angular/forms": "^7.2.1",
|
||||||
"@angular/router": "^7.2.0",
|
"@angular/router": "^7.2.1",
|
||||||
"@angular/compiler": "^7.2.0",
|
"@angular/compiler": "^7.2.1",
|
||||||
"@angular/compiler-cli": "^7.2.0",
|
"@angular/compiler-cli": "^7.2.1",
|
||||||
"@angular/platform-browser": "^7.2.0",
|
"@angular/platform-browser": "^7.2.1",
|
||||||
"@angular/platform-browser-dynamic": "^7.2.0",
|
"@angular/platform-browser-dynamic": "^7.2.1",
|
||||||
"rxjs": ">=6.2.0",
|
"rxjs": ">=6.2.0",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/core": "^7.2.0",
|
"@angular-devkit/core": "^7.2.1",
|
||||||
"@angular-devkit/schematics": "^7.2.0",
|
"@angular-devkit/schematics": "^7.2.1",
|
||||||
"@angular/common": "^7.2.0",
|
"@angular/common": "^7.2.1",
|
||||||
"@angular/compiler": "^7.2.0",
|
"@angular/compiler": "^7.2.1",
|
||||||
"@angular/compiler-cli": "^7.2.0",
|
"@angular/compiler-cli": "^7.2.1",
|
||||||
"@angular/core": "^7.2.0",
|
"@angular/core": "^7.2.1",
|
||||||
"@angular/forms": "^7.2.0",
|
"@angular/forms": "^7.2.1",
|
||||||
"@angular/platform-browser": "^7.2.0",
|
"@angular/platform-browser": "^7.2.1",
|
||||||
"@angular/platform-browser-dynamic": "^7.2.0",
|
"@angular/platform-browser-dynamic": "^7.2.1",
|
||||||
"@angular/router": "^7.2.0",
|
"@angular/router": "^7.2.1",
|
||||||
"@types/node": "~10.12.0",
|
"@types/node": "~10.12.0",
|
||||||
"fs-extra": "^7.0.0",
|
"fs-extra": "^7.0.0",
|
||||||
"glob": "^7.1.3",
|
"glob": "^7.1.3",
|
||||||
"rollup": "^1.0.2",
|
"rollup": "^1.1.2",
|
||||||
"rollup-plugin-node-resolve": "^4.0.0",
|
"rollup-plugin-node-resolve": "^4.0.0",
|
||||||
"rxjs": "^6.2.0",
|
"rxjs": "^6.2.0",
|
||||||
"tsickle": "^0.34.0",
|
"tsickle": "^0.34.0",
|
||||||
"tslint": "^5.10.0",
|
"tslint": "^5.12.1",
|
||||||
"tslint-ionic-rules": "0.0.21",
|
"tslint-ionic-rules": "0.0.21",
|
||||||
"typescript": "3.2.2",
|
"typescript": "3.2.4",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.28"
|
||||||
},
|
},
|
||||||
"schematics": "./dist/schematics/collection.json"
|
"schematics": "./dist/schematics/collection.json"
|
||||||
}
|
}
|
||||||
|
1047
angular/test/test-app/package-lock.json
generated
1047
angular/test/test-app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -13,39 +13,39 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "~7.2.0",
|
"@angular/animations": "~7.2.1",
|
||||||
"@angular/common": "~7.2.0",
|
"@angular/common": "~7.2.1",
|
||||||
"@angular/compiler": "~7.2.0",
|
"@angular/compiler": "~7.2.1",
|
||||||
"@angular/core": "~7.2.0",
|
"@angular/core": "~7.2.1",
|
||||||
"@angular/forms": "~7.2.0",
|
"@angular/forms": "~7.2.1",
|
||||||
"@angular/platform-browser": "~7.2.0",
|
"@angular/platform-browser": "~7.2.1",
|
||||||
"@angular/platform-browser-dynamic": "~7.2.0",
|
"@angular/platform-browser-dynamic": "~7.2.1",
|
||||||
"@angular/router": "~7.2.0",
|
"@angular/router": "~7.2.1",
|
||||||
"@ionic/angular": "^4.0.0-rc.1",
|
"@ionic/angular": "^4.0.0-rc.1",
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.6.2",
|
||||||
"rxjs": "~6.3.3",
|
"rxjs": "~6.3.3",
|
||||||
"tslib": "^1.9.0",
|
"tslib": "^1.9.0",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.8.26"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~0.11.0",
|
"@angular-devkit/build-angular": "~0.12.2",
|
||||||
"@angular/cli": "~7.2.0",
|
"@angular/cli": "~7.2.1",
|
||||||
"@angular/compiler-cli": "~7.2.0",
|
"@angular/compiler-cli": "~7.2.1",
|
||||||
"@angular/language-service": "~7.2.0",
|
"@angular/language-service": "~7.2.1",
|
||||||
"@types/node": "~8.9.4",
|
"@types/node": "~8.9.4",
|
||||||
"@types/jasmine": "~2.8.8",
|
"@types/jasmine": "~2.8.8",
|
||||||
"@types/jasminewd2": "~2.0.3",
|
"@types/jasminewd2": "~2.0.3",
|
||||||
"codelyzer": "~4.5.0",
|
"codelyzer": "~4.5.0",
|
||||||
"jasmine-core": "~2.99.1",
|
"jasmine-core": "~2.99.1",
|
||||||
"jasmine-spec-reporter": "~4.2.1",
|
"jasmine-spec-reporter": "~4.2.1",
|
||||||
"karma": "~3.1.1",
|
"karma": "~3.1.4",
|
||||||
"karma-chrome-launcher": "~2.2.0",
|
"karma-chrome-launcher": "~2.2.0",
|
||||||
"karma-coverage-istanbul-reporter": "~2.0.1",
|
"karma-coverage-istanbul-reporter": "~2.0.1",
|
||||||
"karma-jasmine": "~1.1.2",
|
"karma-jasmine": "~1.1.2",
|
||||||
"karma-jasmine-html-reporter": "^0.2.2",
|
"karma-jasmine-html-reporter": "^0.2.2",
|
||||||
"protractor": "~5.4.0",
|
"protractor": "~5.4.2",
|
||||||
"ts-node": "~7.0.0",
|
"ts-node": "~7.0.0",
|
||||||
"tslint": "~5.11.0",
|
"tslint": "~5.12.1",
|
||||||
"typescript": "~3.1.6"
|
"typescript": "~3.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,12 +36,12 @@
|
|||||||
"@stencil/core": "0.17.0",
|
"@stencil/core": "0.17.0",
|
||||||
"@stencil/sass": "0.1.1",
|
"@stencil/sass": "0.1.1",
|
||||||
"@stencil/utils": "latest",
|
"@stencil/utils": "latest",
|
||||||
"@types/jest": "^23.3.1",
|
"@types/jest": "^23.3.13",
|
||||||
"@types/puppeteer": "1.6.4",
|
"@types/puppeteer": "1.6.4",
|
||||||
"@types/swiper": "4.2.4",
|
"@types/swiper": "4.4.1",
|
||||||
"@types/node": "10.11.0",
|
"@types/node": "10.12.18",
|
||||||
"agadoo": "^1.0.0",
|
"agadoo": "^1.0.0",
|
||||||
"autoprefixer": "^9.0.2",
|
"autoprefixer": "9.4.6",
|
||||||
"aws-sdk": "^2.320.0",
|
"aws-sdk": "^2.320.0",
|
||||||
"chromedriver": "^2.38.3",
|
"chromedriver": "^2.38.3",
|
||||||
"clean-css-cli": "^4.1.11",
|
"clean-css-cli": "^4.1.11",
|
||||||
@ -51,15 +51,14 @@
|
|||||||
"np": "^3.0.4",
|
"np": "^3.0.4",
|
||||||
"pixelmatch": "4.0.2",
|
"pixelmatch": "4.0.2",
|
||||||
"puppeteer": "1.8.0",
|
"puppeteer": "1.8.0",
|
||||||
"rollup": "^0.67.4",
|
"rollup": "1.1.2",
|
||||||
"rollup-plugin-node-resolve": "^4.0.0",
|
"rollup-plugin-node-resolve": "4.0.0",
|
||||||
"stylelint": "~9.9.0",
|
"stylelint": "9.10.1",
|
||||||
"stylelint-order": "~2.0.0",
|
"stylelint-order": "2.0.0",
|
||||||
"swiper": "4.4.2",
|
"swiper": "4.4.6",
|
||||||
"tslint": "^5.10.0",
|
"tslint": "^5.10.0",
|
||||||
"tslint-ionic-rules": "0.0.21",
|
"tslint-ionic-rules": "0.0.21",
|
||||||
"tslint-react": "^3.6.0",
|
"tslint-react": "^3.6.0"
|
||||||
"typescript": "^2.9.2"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && npm run build.css && npm run build.vendor && stencil build --docs",
|
"build": "npm run clean && npm run build.css && npm run build.vendor && stencil build --docs",
|
||||||
@ -85,7 +84,6 @@
|
|||||||
"test.screenshot": "stencil test --e2e --screenshot --screenshot-connector=scripts/screenshot/dev.js",
|
"test.screenshot": "stencil test --e2e --screenshot --screenshot-connector=scripts/screenshot/dev.js",
|
||||||
"test.screenshot.ci": "stencil test --e2e --screenshot --screenshot-connector=scripts/screenshot/ci.js --ci",
|
"test.screenshot.ci": "stencil test --e2e --screenshot --screenshot-connector=scripts/screenshot/ci.js --ci",
|
||||||
"test.watch": "jest --watch --no-cache",
|
"test.watch": "jest --watch --no-cache",
|
||||||
"tsc": "./node_modules/.bin/tsc -p .",
|
|
||||||
"test.treeshake": "agadoo dist/collection/index.js",
|
"test.treeshake": "agadoo dist/collection/index.js",
|
||||||
"validate": "npm run lint && npm run test && npm run build && npm run test.treeshake"
|
"validate": "npm run lint && npm run test && npm run build && npm run test.treeshake"
|
||||||
},
|
},
|
||||||
|
@ -762,7 +762,7 @@ function add(...args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swiper 4.4.2
|
* Swiper 4.4.6
|
||||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||||
* http://www.idangero.us/swiper/
|
* http://www.idangero.us/swiper/
|
||||||
*
|
*
|
||||||
@ -770,7 +770,7 @@ function add(...args) {
|
|||||||
*
|
*
|
||||||
* Released under the MIT License
|
* Released under the MIT License
|
||||||
*
|
*
|
||||||
* Released on: November 1, 2018
|
* Released on: December 19, 2018
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const Methods = {
|
const Methods = {
|
||||||
@ -929,7 +929,7 @@ const Support = (function Support() {
|
|||||||
const testDiv = doc.createElement('div');
|
const testDiv = doc.createElement('div');
|
||||||
return {
|
return {
|
||||||
touch: (win.Modernizr && win.Modernizr.touch === true) || (function checkTouch() {
|
touch: (win.Modernizr && win.Modernizr.touch === true) || (function checkTouch() {
|
||||||
return !!(('ontouchstart' in win) || (win.DocumentTouch && doc instanceof win.DocumentTouch));
|
return !!((win.navigator.maxTouchPoints > 0) || ('ontouchstart' in win) || (win.DocumentTouch && doc instanceof win.DocumentTouch));
|
||||||
}()),
|
}()),
|
||||||
|
|
||||||
pointerEvents: !!(win.navigator.pointerEnabled || win.PointerEvent || ('maxTouchPoints' in win.navigator)),
|
pointerEvents: !!(win.navigator.pointerEnabled || win.PointerEvent || ('maxTouchPoints' in win.navigator)),
|
||||||
@ -1236,7 +1236,7 @@ function updateSlides () {
|
|||||||
let slideSize;
|
let slideSize;
|
||||||
const slidesPerColumn = params.slidesPerColumn;
|
const slidesPerColumn = params.slidesPerColumn;
|
||||||
const slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;
|
const slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;
|
||||||
const numFullColumns = slidesPerRow - ((params.slidesPerColumn * slidesPerRow) - slidesLength);
|
const numFullColumns = Math.floor(slidesLength / params.slidesPerColumn);
|
||||||
for (let i = 0; i < slidesLength; i += 1) {
|
for (let i = 0; i < slidesLength; i += 1) {
|
||||||
slideSize = 0;
|
slideSize = 0;
|
||||||
const slide = slides.eq(i);
|
const slide = slides.eq(i);
|
||||||
@ -1295,13 +1295,29 @@ function updateSlides () {
|
|||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
if (swiper.isHorizontal()) {
|
if (swiper.isHorizontal()) {
|
||||||
slideSize = parseFloat(slideStyles.getPropertyValue('width'))
|
const width$$1 = parseFloat(slideStyles.getPropertyValue('width'));
|
||||||
+ parseFloat(slideStyles.getPropertyValue('margin-left'))
|
const paddingLeft = parseFloat(slideStyles.getPropertyValue('padding-left'));
|
||||||
+ parseFloat(slideStyles.getPropertyValue('margin-right'));
|
const paddingRight = parseFloat(slideStyles.getPropertyValue('padding-right'));
|
||||||
|
const marginLeft = parseFloat(slideStyles.getPropertyValue('margin-left'));
|
||||||
|
const marginRight = parseFloat(slideStyles.getPropertyValue('margin-right'));
|
||||||
|
const boxSizing = slideStyles.getPropertyValue('box-sizing');
|
||||||
|
if (boxSizing && boxSizing === 'border-box') {
|
||||||
|
slideSize = width$$1 + marginLeft + marginRight;
|
||||||
|
} else {
|
||||||
|
slideSize = width$$1 + paddingLeft + paddingRight + marginLeft + marginRight;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
slideSize = parseFloat(slideStyles.getPropertyValue('height'))
|
const height$$1 = parseFloat(slideStyles.getPropertyValue('height'));
|
||||||
+ parseFloat(slideStyles.getPropertyValue('margin-top'))
|
const paddingTop = parseFloat(slideStyles.getPropertyValue('padding-top'));
|
||||||
+ parseFloat(slideStyles.getPropertyValue('margin-bottom'));
|
const paddingBottom = parseFloat(slideStyles.getPropertyValue('padding-bottom'));
|
||||||
|
const marginTop = parseFloat(slideStyles.getPropertyValue('margin-top'));
|
||||||
|
const marginBottom = parseFloat(slideStyles.getPropertyValue('margin-bottom'));
|
||||||
|
const boxSizing = slideStyles.getPropertyValue('box-sizing');
|
||||||
|
if (boxSizing && boxSizing === 'border-box') {
|
||||||
|
slideSize = height$$1 + marginTop + marginBottom;
|
||||||
|
} else {
|
||||||
|
slideSize = height$$1 + paddingTop + paddingBottom + marginTop + marginBottom;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (currentTransform) {
|
if (currentTransform) {
|
||||||
@ -2190,7 +2206,7 @@ function loopFix () {
|
|||||||
function loopDestroy () {
|
function loopDestroy () {
|
||||||
const swiper = this;
|
const swiper = this;
|
||||||
const { $wrapperEl, params, slides } = swiper;
|
const { $wrapperEl, params, slides } = swiper;
|
||||||
$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass}`).remove();
|
$wrapperEl.children(`.${params.slideClass}.${params.slideDuplicateClass},.${params.slideClass}.${params.slideBlankClass}`).remove();
|
||||||
slides.removeAttr('data-swiper-slide-index');
|
slides.removeAttr('data-swiper-slide-index');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4039,7 +4055,7 @@ const Observer = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Observe container
|
// Observe container
|
||||||
swiper.observer.attach(swiper.$el[0], { childList: false });
|
swiper.observer.attach(swiper.$el[0], { childList: swiper.params.observeSlideChildren });
|
||||||
|
|
||||||
// Observe wrapper
|
// Observe wrapper
|
||||||
swiper.observer.attach(swiper.$wrapperEl[0], { attributes: false });
|
swiper.observer.attach(swiper.$wrapperEl[0], { attributes: false });
|
||||||
@ -4058,6 +4074,7 @@ var Observer$1 = {
|
|||||||
params: {
|
params: {
|
||||||
observer: false,
|
observer: false,
|
||||||
observeParents: false,
|
observeParents: false,
|
||||||
|
observeSlideChildren: false,
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
const swiper = this;
|
const swiper = this;
|
||||||
@ -4999,7 +5016,7 @@ const Zoom = {
|
|||||||
}
|
}
|
||||||
if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
|
if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
|
||||||
if (Support.gestures) {
|
if (Support.gestures) {
|
||||||
swiper.zoom.scale = e.scale * zoom.currentScale;
|
zoom.scale = e.scale * zoom.currentScale;
|
||||||
} else {
|
} else {
|
||||||
zoom.scale = (gesture.scaleMove / gesture.scaleStart) * zoom.currentScale;
|
zoom.scale = (gesture.scaleMove / gesture.scaleStart) * zoom.currentScale;
|
||||||
}
|
}
|
||||||
@ -5181,12 +5198,13 @@ const Zoom = {
|
|||||||
if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {
|
if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {
|
||||||
gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');
|
gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');
|
||||||
gesture.$imageWrapEl.transform('translate3d(0,0,0)');
|
gesture.$imageWrapEl.transform('translate3d(0,0,0)');
|
||||||
gesture.$slideEl = undefined;
|
|
||||||
gesture.$imageEl = undefined;
|
|
||||||
gesture.$imageWrapEl = undefined;
|
|
||||||
|
|
||||||
zoom.scale = 1;
|
zoom.scale = 1;
|
||||||
zoom.currentScale = 1;
|
zoom.currentScale = 1;
|
||||||
|
|
||||||
|
gesture.$slideEl = undefined;
|
||||||
|
gesture.$imageEl = undefined;
|
||||||
|
gesture.$imageWrapEl = undefined;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Toggle Zoom
|
// Toggle Zoom
|
||||||
@ -5408,12 +5426,28 @@ var zoom = {
|
|||||||
prevTime: undefined,
|
prevTime: undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
('onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out').split(' ').forEach((methodName) => {
|
('onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out').split(' ').forEach((methodName) => {
|
||||||
zoom[methodName] = Zoom[methodName].bind(swiper);
|
zoom[methodName] = Zoom[methodName].bind(swiper);
|
||||||
});
|
});
|
||||||
Utils.extend(swiper, {
|
Utils.extend(swiper, {
|
||||||
zoom,
|
zoom,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let scale = 1;
|
||||||
|
Object.defineProperty(swiper.zoom, 'scale', {
|
||||||
|
get() {
|
||||||
|
return scale;
|
||||||
|
},
|
||||||
|
set(value) {
|
||||||
|
if (scale !== value) {
|
||||||
|
const imageEl = swiper.zoom.gesture.$imageEl ? swiper.zoom.gesture.$imageEl[0] : undefined;
|
||||||
|
const slideEl = swiper.zoom.gesture.$slideEl ? swiper.zoom.gesture.$slideEl[0] : undefined;
|
||||||
|
swiper.emit('zoomChange', value, imageEl, slideEl);
|
||||||
|
}
|
||||||
|
scale = value;
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
init() {
|
init() {
|
||||||
|
Reference in New Issue
Block a user