@syncfusion/ej2-popups
Advanced tools
Comparing version 17.2.28-beta to 17.2.34
@@ -5,2 +5,8 @@ # Changelog | ||
### Dialog | ||
#### Bug Fixes | ||
- `#F145500`- Resolved the navigation issue while navigating through keyboard in modal dialog. | ||
## 17.1.50 (2019-06-04) | ||
@@ -7,0 +13,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 17.2.28-beta | ||
* version : 17.2.34 | ||
* 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.1.1", | ||
"_id": "@syncfusion/ej2-popups@17.2.28", | ||
"_inBundle": false, | ||
"_integrity": "sha512-Nsl/2kFbpjYrBsmHtMhSDL7cSrGok7RunndsbTiJbx/utH6B3EYqMR8+EJLVYjcq7d+peC7157Io0pKK2HvH4A==", | ||
"_integrity": "sha512-V4XXJLFAcOLbmz0nluOTZ4uS/kElJ2ScR2pFnn0n0P+R0htngTYb5CvvLehSJQK8k8BnseiKre4y77VTs+1L1w==", | ||
"_location": "/@syncfusion/ej2-popups", | ||
@@ -45,4 +45,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-popups/-/ej2-popups-17.1.1.tgz", | ||
"_shasum": "5d8eeb600881a400ff111bae060892203cd41bd9", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-popups/-/ej2-popups-17.2.28.tgz", | ||
"_shasum": "c0948f5498c7a7a8956d10aaa17c37ce19efd536", | ||
"_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.28-beta", | ||
"@syncfusion/ej2-buttons": "~17.2.28-beta" | ||
"@syncfusion/ej2-base": "~17.2.34", | ||
"@syncfusion/ej2-buttons": "~17.2.34" | ||
}, | ||
@@ -94,4 +94,4 @@ "deprecated": false, | ||
}, | ||
"version": "17.2.28-beta", | ||
"version": "17.2.34", | ||
"sideEffects": false | ||
} |
@@ -89,2 +89,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'; | ||
* @default '' | ||
* @blazorType string | ||
*/ | ||
@@ -112,2 +113,3 @@ content?: string | HTMLElement; | ||
* @default '' | ||
* @blazorType string | ||
*/ | ||
@@ -158,2 +160,3 @@ header?: string | HTMLElement; | ||
* @default null | ||
* @blazorType string | ||
*/ | ||
@@ -171,2 +174,3 @@ target?: HTMLElement | string; | ||
* @default '' | ||
* @blazorType string | ||
*/ | ||
@@ -173,0 +177,0 @@ footerTemplate?: HTMLElement | string; |
@@ -173,2 +173,3 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
* @default '' | ||
* @blazorType string | ||
*/ | ||
@@ -193,2 +194,3 @@ content: string | HTMLElement; | ||
* @default '' | ||
* @blazorType string | ||
*/ | ||
@@ -232,2 +234,3 @@ header: string | HTMLElement; | ||
* @default null | ||
* @blazorType string | ||
*/ | ||
@@ -244,2 +247,3 @@ target: HTMLElement | string; | ||
* @default '' | ||
* @blazorType string | ||
*/ | ||
@@ -412,2 +416,3 @@ footerTemplate: HTMLElement | string; | ||
private setTemplate; | ||
private blazorTemplate; | ||
private setMaxHeight; | ||
@@ -414,0 +419,0 @@ private setEnableRTL; |
@@ -154,2 +154,3 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.trigger('overlayClick', event); | ||
_this.focusContent(); | ||
}; | ||
@@ -512,3 +513,3 @@ var localeText = { close: 'Close' }; | ||
var blazorContain = Object.keys(window); | ||
if (typeof (this.content) === 'string' && blazorContain.indexOf('ejsIntrop') === -1) { | ||
if (typeof (this.content) === 'string' && blazorContain.indexOf('ejsInterop') === -1) { | ||
this.contentEle.innerHTML = this.content; | ||
@@ -546,14 +547,17 @@ } | ||
} | ||
var templateValue; | ||
if (!isNullOrUndefined(template.outerHTML)) { | ||
templateFn = compile(template.outerHTML); | ||
templateValue = template.outerHTML; | ||
} | ||
else if (typeof (template) === 'string' && blazorContain.indexOf('ejsIntrop') === -1) { | ||
else { | ||
templateFn = compile(template); | ||
templateValue = template; | ||
} | ||
else { | ||
toElement.innerHTML = template; | ||
} | ||
var fromElements = []; | ||
if (!isNullOrUndefined(templateFn)) { | ||
for (var _i = 0, _a = templateFn({}, null, null, templateProps); _i < _a.length; _i++) { | ||
var isString = (blazorContain.indexOf('ejsInterop') !== -1 && | ||
!this.isStringTemplate && (templateValue).indexOf('<div>Blazor') === 0) ? | ||
this.isStringTemplate : true; | ||
for (var _i = 0, _a = templateFn({}, null, null, templateProps, isString); _i < _a.length; _i++) { | ||
var item = _a[_i]; | ||
@@ -563,11 +567,16 @@ fromElements.push(item); | ||
append([].slice.call(fromElements), toElement); | ||
if (blazorContain.indexOf('ejsInterop') !== -1 && !this.isStringTemplate && templateValue.indexOf('<div>Blazor') === 0) { | ||
this.blazorTemplate(templateProps); | ||
} | ||
} | ||
}; | ||
Dialog.prototype.blazorTemplate = function (templateProps) { | ||
if (templateProps === this.element.id + 'header') { | ||
updateBlazorTemplate(templateProps, 'Header'); | ||
updateBlazorTemplate(templateProps, 'Header', this); | ||
} | ||
else if (templateProps === this.element.id + 'footerTemplate') { | ||
updateBlazorTemplate(templateProps, 'FooterTemplate'); | ||
updateBlazorTemplate(templateProps, 'FooterTemplate', this); | ||
} | ||
else { | ||
updateBlazorTemplate(templateProps, 'Content'); | ||
updateBlazorTemplate(templateProps, 'Content', this); | ||
} | ||
@@ -574,0 +583,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { Component, Property, ChildProperty, Event, BaseEventArgs, append, compile } from '@syncfusion/ej2-base';import { EventHandler, EmitType, Touch, TapEventArgs, Browser, Animation as PopupAnimation } from '@syncfusion/ej2-base';import { isNullOrUndefined, getUniqueID, formatUnit } from '@syncfusion/ej2-base';import { attributes, closest, removeClass, addClass, remove, updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, Complex } from '@syncfusion/ej2-base';import { Popup } from '../popup/popup';import { OffsetPosition, calculatePosition } from '../common/position';import { isCollide, fit } from '../common/collision'; | ||
import { Component, Property, ChildProperty, Event, BaseEventArgs, append, compile, isBlazor } from '@syncfusion/ej2-base';import { EventHandler, EmitType, Touch, TapEventArgs, Browser, Animation as PopupAnimation } from '@syncfusion/ej2-base';import { isNullOrUndefined, getUniqueID, formatUnit } from '@syncfusion/ej2-base';import { attributes, closest, removeClass, addClass, remove, updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, Complex } from '@syncfusion/ej2-base';import { Popup } from '../popup/popup';import { OffsetPosition, calculatePosition } from '../common/position';import { isCollide, fit } from '../common/collision'; | ||
import {TooltipAnimationSettings,Position,TipPointerPosition,TooltipEventArgs} from "./tooltip"; | ||
@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base'; |
@@ -303,2 +303,3 @@ import { Component, ChildProperty, BaseEventArgs } from '@syncfusion/ej2-base'; | ||
private showTooltip; | ||
private needTemplateReposition; | ||
private checkCollision; | ||
@@ -305,0 +306,0 @@ private collisionFlipFit; |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { Component, Property, ChildProperty, Event, append, compile } from '@syncfusion/ej2-base'; | ||
import { Component, Property, ChildProperty, Event, append, compile, isBlazor } from '@syncfusion/ej2-base'; | ||
import { EventHandler, Touch, Browser, Animation as PopupAnimation } from '@syncfusion/ej2-base'; | ||
@@ -150,2 +150,5 @@ import { isNullOrUndefined, getUniqueID, formatUnit } from '@syncfusion/ej2-base'; | ||
Tooltip.prototype.openPopupHandler = function () { | ||
if (this.needTemplateReposition()) { | ||
this.reposition(this.findTarget()); | ||
} | ||
this.trigger('afterOpen', this.tooltipEventArgs); | ||
@@ -293,3 +296,2 @@ }; | ||
Tooltip.prototype.renderContent = function (target) { | ||
var _this = this; | ||
var tooltipContent = this.tooltipEle.querySelector('.' + CONTENT); | ||
@@ -311,3 +313,3 @@ if (target && !isNullOrUndefined(target.getAttribute('title'))) { | ||
append(templateFunction({}, null, null, this.element.id + 'content'), tooltipContent); | ||
setTimeout(function () { updateBlazorTemplate(_this.element.id + 'content', 'Content'); }, 0); | ||
updateBlazorTemplate(this.element.id + 'content', 'Content', this); | ||
} | ||
@@ -457,2 +459,5 @@ } | ||
var this$_1 = _this; | ||
if (_this.needTemplateReposition()) { | ||
_this.tooltipEle.style.display = 'none'; | ||
} | ||
_this.trigger('beforeOpen', _this.tooltipEventArgs, function (observedArgs) { | ||
@@ -490,2 +495,9 @@ if (observedArgs.cancel) { | ||
}; | ||
Tooltip.prototype.needTemplateReposition = function () { | ||
// tslint:disable-next-line:no-any | ||
var tooltip = this; | ||
return !isNullOrUndefined(tooltip.viewContainerRef) | ||
&& typeof tooltip.viewContainerRef !== 'string' | ||
|| isBlazor(); | ||
}; | ||
Tooltip.prototype.checkCollision = function (target, x, y) { | ||
@@ -492,0 +504,0 @@ var elePos = { |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2471849
29293
1