@syncfusion/ej2-popups
Advanced tools
Comparing version 17.2.35 to 17.2.46
@@ -5,2 +5,4 @@ # Changelog | ||
## 17.2.35 (2019-07-17) | ||
### Dialog | ||
@@ -18,3 +20,3 @@ | ||
- #144624 - Resolved the issue with resizing when rendering a grid inside a dialog. | ||
- `#144624` - Resolved the issue with resizing when rendering a grid inside a dialog. | ||
@@ -21,0 +23,0 @@ ## 17.1.47 (2019-05-14) |
/*! | ||
* filename: index.d.ts | ||
* version : 17.2.35 | ||
* version : 17.2.46 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-popups@*", | ||
"_id": "@syncfusion/ej2-popups@17.2.34", | ||
"_id": "@syncfusion/ej2-popups@17.2.35", | ||
"_inBundle": false, | ||
"_integrity": "sha512-CPX9KxQKkZ9jDGroWs4owryH/tPDoeZcxTtvtMA84ZrdVSopvV2RwqrhRJE/V72AhGQJ1Gbwf4o+c+pWoitnxA==", | ||
"_integrity": "sha512-C5U7LWXQic/jIgHXjn0aURU1mwUcBh+W7qdivXDv4yEL6LhbBEmNfGFbm/xoO8k8w79KBQml+T6UedGmN/hm4A==", | ||
"_location": "/@syncfusion/ej2-popups", | ||
@@ -45,4 +45,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-popups/-/ej2-popups-17.2.34.tgz", | ||
"_shasum": "e09d26ec7adbb8f1ebbcd8c7f1f5e25fba0f7a8e", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-popups/-/ej2-popups-17.2.35.tgz", | ||
"_shasum": "431be9062da746235b5fc610c33f4b472fd6ef8f", | ||
"_spec": "@syncfusion/ej2-popups@*", | ||
@@ -58,4 +58,4 @@ "_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.2.34", | ||
"@syncfusion/ej2-buttons": "~17.2.35" | ||
"@syncfusion/ej2-base": "~17.2.46", | ||
"@syncfusion/ej2-buttons": "~17.2.46" | ||
}, | ||
@@ -94,4 +94,4 @@ "deprecated": false, | ||
}, | ||
"version": "17.2.35", | ||
"version": "17.2.46", | ||
"sideEffects": false | ||
} |
@@ -20,2 +20,3 @@ import { Component, Property, Event, Collection, L10n, Browser, EmitType, Complex, compile, createElement } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, attributes, prepend, setStyleAttribute } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, append } from '@syncfusion/ej2-base';import { EventHandler, updateBlazorTemplate } from '@syncfusion/ej2-base';import { Draggable } from '@syncfusion/ej2-base';import { Popup, PositionData, getZindexPartial } from '../popup/popup';import { PositionDataModel } from '../popup/popup-model';import { Button, ButtonModel } from '@syncfusion/ej2-buttons';import { createResize, removeResize, setMinHeight } from '../common/resize'; | ||
* @aspType string | ||
* @blazorType string | ||
*/ | ||
@@ -133,2 +134,3 @@ type?: ButtonType | string; | ||
* @default 'auto' | ||
* @blazorType string | ||
*/ | ||
@@ -140,2 +142,3 @@ height?: string | number; | ||
* @default '100%' | ||
* @blazorType string | ||
*/ | ||
@@ -142,0 +145,0 @@ width?: string | number; |
@@ -17,2 +17,3 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
* @aspType string | ||
* @blazorType string | ||
*/ | ||
@@ -89,2 +90,4 @@ type: ButtonType | string; | ||
* @aspType string | ||
* @blazorType string | ||
* @deprecated | ||
*/ | ||
@@ -117,2 +120,4 @@ target: HTMLElement | String; | ||
* @aspType string | ||
* @blazorType string | ||
* @deprecated | ||
*/ | ||
@@ -213,2 +218,3 @@ target: HTMLElement | String; | ||
* @default 'auto' | ||
* @blazorType string | ||
*/ | ||
@@ -219,2 +225,3 @@ height: string | number; | ||
* @default '100%' | ||
* @blazorType string | ||
*/ | ||
@@ -221,0 +228,0 @@ width: string | number; |
@@ -431,7 +431,7 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.isModal) { | ||
if (typeof (this.position.X) === 'number' && typeof (this.position.Y) === 'number') { | ||
if (!isNaN(parseFloat(this.position.X)) && !isNaN(parseFloat(this.position.Y))) { | ||
this.setPopupPosition(); | ||
} | ||
else if ((typeof this.position.X === 'string' && typeof this.position.Y === 'number') || | ||
(typeof this.position.X === 'number' && typeof this.position.Y === 'string')) { | ||
else if ((!isNaN(parseFloat(this.position.X)) && isNaN(parseFloat(this.position.Y))) | ||
|| (isNaN(parseFloat(this.position.X)) && !isNaN(parseFloat(this.position.Y)))) { | ||
this.setPopupPosition(); | ||
@@ -599,9 +599,12 @@ } | ||
Dialog.prototype.setTargetContent = function () { | ||
var _this = this; | ||
if (isNullOrUndefined(this.content) || this.content === '') { | ||
var isContent = this.element.innerHTML.replace(/\s/g, '') !== ''; | ||
var isContent = this.element.innerHTML.replace(/\s|<(\/?|\!?)(!--!--)>/g, '') !== ''; | ||
if (this.element.children.length > 0 || isContent) { | ||
this.innerContentElement = document.createDocumentFragment(); | ||
while (this.element.childNodes.length !== 0) { | ||
this.innerContentElement.appendChild(this.element.childNodes[0]); | ||
} | ||
[].slice.call(this.element.childNodes).forEach(function (el) { | ||
if (el.nodeType !== 8) { | ||
_this.innerContentElement.appendChild(el); | ||
} | ||
}); | ||
} | ||
@@ -1089,31 +1092,33 @@ } | ||
} | ||
var eventArgs = { | ||
cancel: false, | ||
isInteraction: event ? true : false, | ||
isInteracted: event ? true : false, | ||
element: this.element, | ||
target: this.target, | ||
container: this.isModal ? this.dlgContainer : this.element, | ||
event: event | ||
}; | ||
this.closeArgs = eventArgs; | ||
this.trigger('beforeClose', eventArgs, function (beforeCloseArgs) { | ||
if (!beforeCloseArgs.cancel) { | ||
if (_this.isModal) { | ||
!isNullOrUndefined(_this.targetEle) ? removeClass([_this.targetEle], SCROLL_DISABLED) : | ||
removeClass([document.body], SCROLL_DISABLED); | ||
if (this.visible) { | ||
var eventArgs = { | ||
cancel: false, | ||
isInteraction: event ? true : false, | ||
isInteracted: event ? true : false, | ||
element: this.element, | ||
target: this.target, | ||
container: this.isModal ? this.dlgContainer : this.element, | ||
event: event | ||
}; | ||
this.closeArgs = eventArgs; | ||
this.trigger('beforeClose', eventArgs, function (beforeCloseArgs) { | ||
if (!beforeCloseArgs.cancel) { | ||
if (_this.isModal) { | ||
!isNullOrUndefined(_this.targetEle) ? removeClass([_this.targetEle], SCROLL_DISABLED) : | ||
removeClass([document.body], SCROLL_DISABLED); | ||
} | ||
var closeAnimation = { | ||
name: _this.animationSettings.effect + 'Out', | ||
duration: _this.animationSettings.duration, | ||
delay: _this.animationSettings.delay | ||
}; | ||
_this.animationSettings.effect === 'None' ? _this.popupObj.hide() : _this.popupObj.hide(closeAnimation); | ||
_this.dialogOpen = false; | ||
var prevOnChange = _this.isProtectedOnChange; | ||
_this.isProtectedOnChange = true; | ||
_this.visible = false; | ||
_this.isProtectedOnChange = prevOnChange; | ||
} | ||
var closeAnimation = { | ||
name: _this.animationSettings.effect + 'Out', | ||
duration: _this.animationSettings.duration, | ||
delay: _this.animationSettings.delay | ||
}; | ||
_this.animationSettings.effect === 'None' ? _this.popupObj.hide() : _this.popupObj.hide(closeAnimation); | ||
_this.dialogOpen = false; | ||
var prevOnChange = _this.isProtectedOnChange; | ||
_this.isProtectedOnChange = true; | ||
_this.visible = false; | ||
_this.isProtectedOnChange = prevOnChange; | ||
} | ||
}); | ||
}); | ||
} | ||
}; | ||
@@ -1120,0 +1125,0 @@ /** |
@@ -12,2 +12,3 @@ import { setStyleAttribute, addClass, removeClass, ChildProperty, Complex } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit } from '@syncfusion/ej2-base';import { Browser } from '@syncfusion/ej2-base';import { calculatePosition, OffsetPosition, calculateRelativeBasedPosition } from '../common/position';import { Animation, AnimationModel, Property, Event, EmitType, Component } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged } from '@syncfusion/ej2-base';import { EventHandler } from '@syncfusion/ej2-base';import { flip, fit, isCollide , CollisionCoordinates } from '../common/collision'; | ||
* specify the offset left value | ||
* @blazorType string | ||
*/ | ||
@@ -18,2 +19,3 @@ X?: string | number; | ||
* specify the offset top value. | ||
* @blazorType string | ||
*/ | ||
@@ -20,0 +22,0 @@ Y?: string | number; |
@@ -11,2 +11,3 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
* specify the offset left value | ||
* @blazorType string | ||
*/ | ||
@@ -16,2 +17,3 @@ X: string | number; | ||
* specify the offset top value. | ||
* @blazorType string | ||
*/ | ||
@@ -23,3 +25,3 @@ Y: string | number; | ||
* specify the collision handler for a X-Axis. | ||
* @default : "none" | ||
* @default "none" | ||
*/ | ||
@@ -29,3 +31,3 @@ X?: CollisionType; | ||
* specify the collision handler for a Y-Axis. | ||
* @default : "none" | ||
* @default "none" | ||
*/ | ||
@@ -32,0 +34,0 @@ Y?: CollisionType; |
@@ -104,2 +104,3 @@ import { Component, ChildProperty, BaseEventArgs } from '@syncfusion/ej2-base'; | ||
private autoCloseTimer; | ||
private isBlazorTemplate; | ||
/** | ||
@@ -106,0 +107,0 @@ * It is used to set the width of Tooltip component which accepts both string and number values. |
@@ -149,3 +149,3 @@ var __extends = (this && this.__extends) || (function () { | ||
Tooltip.prototype.openPopupHandler = function () { | ||
if (this.needTemplateReposition()) { | ||
if (this.needTemplateReposition() && !this.mouseTrail) { | ||
this.reposition(this.findTarget()); | ||
@@ -305,3 +305,3 @@ } | ||
} | ||
else if (typeof this.content === 'string' && this.content.indexOf('<div>Blazor') !== 0) { | ||
else if (typeof this.content === 'string' && this.content.indexOf('<div>Blazor') < 0) { | ||
tooltipContent.innerHTML = this.content; | ||
@@ -312,3 +312,6 @@ } | ||
append(templateFunction({}, null, null, this.element.id + 'content'), tooltipContent); | ||
updateBlazorTemplate(this.element.id + 'content', 'Content', this); | ||
if (this.content.indexOf('<div>Blazor') >= 0) { | ||
this.isBlazorTemplate = true; | ||
updateBlazorTemplate(this.element.id + 'content', 'Content', this); | ||
} | ||
} | ||
@@ -458,3 +461,3 @@ } | ||
var this$_1 = _this; | ||
if (_this.needTemplateReposition()) { | ||
if (_this.needTemplateReposition() && !_this.mouseTrail) { | ||
_this.tooltipEle.style.display = 'none'; | ||
@@ -499,3 +502,3 @@ } | ||
&& typeof tooltip.viewContainerRef !== 'string' | ||
|| isBlazor(); | ||
|| isBlazor() && this.isBlazorTemplate; | ||
}; | ||
@@ -502,0 +505,0 @@ Tooltip.prototype.checkCollision = function (target, x, y) { |
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 too big to display
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 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
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
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2476592
29315