@simpleangularcontrols/sac-common 10.0.0-rc.22 → 10.0.0-rc.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/simpleangularcontrols-sac-common.umd.js +19 -6
- package/bundles/simpleangularcontrols-sac-common.umd.js.map +1 -1
- package/bundles/simpleangularcontrols-sac-common.umd.min.js +1 -1
- package/bundles/simpleangularcontrols-sac-common.umd.min.js.map +1 -1
- package/controls/checkbox/radiobuttons.d.ts +3 -3
- package/esm2015/common/basedatetimecontrol.js +12 -2
- package/esm2015/controls/checkbox/radiobutton.js +4 -1
- package/esm2015/controls/checkbox/radiobuttons.js +3 -3
- package/esm2015/utilities/popuphelper.js +5 -5
- package/fesm2015/simpleangularcontrols-sac-common.js +19 -6
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/package.json +1 -1
- package/simpleangularcontrols-sac-common-10.0.0-rc.24.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/simpleangularcontrols-sac-common-10.0.0-rc.22.tgz +0 -0
|
@@ -3770,7 +3770,7 @@
|
|
|
3770
3770
|
// #endregion Constructors
|
|
3771
3771
|
// #region Public Methods
|
|
3772
3772
|
/**
|
|
3773
|
-
*
|
|
3773
|
+
* Getter für Radio Button Index
|
|
3774
3774
|
*/
|
|
3775
3775
|
SacRadiobuttonsCommon.prototype.GetRadionButtonIndex = function () {
|
|
3776
3776
|
this.radioButtonIndex++;
|
|
@@ -3990,6 +3990,9 @@
|
|
|
3990
3990
|
SacRadiobuttonCommon.prototype.ngOnInit = function () {
|
|
3991
3991
|
// set method to display helptext
|
|
3992
3992
|
this.setHelpTextMode();
|
|
3993
|
+
if (this.value === this.sacRadioButtons.value) {
|
|
3994
|
+
this.checked = true;
|
|
3995
|
+
}
|
|
3993
3996
|
};
|
|
3994
3997
|
// #endregion Public Methods
|
|
3995
3998
|
// #region Private Methods
|
|
@@ -6912,19 +6915,19 @@
|
|
|
6912
6915
|
? referenceContainer.nativeElement.firstElementChild.getBoundingClientRect()
|
|
6913
6916
|
: referenceContainer.nativeElement.getBoundingClientRect();
|
|
6914
6917
|
var tooltipRect = popupcontentcontainer.nativeElement.firstElementChild.getBoundingClientRect();
|
|
6915
|
-
var leftPosOk = basePosition.left - tooltipRect.width + arrowWidth * -1 > 0;
|
|
6918
|
+
var leftPosOk = basePosition.left - (tooltipRect.width + arrowWidth * -1) > 0;
|
|
6916
6919
|
var rightPosOk = basePosition.right + tooltipRect.width + arrowWidth < window.innerWidth;
|
|
6917
|
-
var topPosOk = basePosition.top - tooltipRect.height + arrowHeight > 0;
|
|
6920
|
+
var topPosOk = basePosition.top - (tooltipRect.height + arrowHeight) > 0;
|
|
6918
6921
|
var bottomPosOk = basePosition.bottom + tooltipRect.height + arrowHeight < window.innerHeight;
|
|
6919
6922
|
var leftHalfPosOk = basePosition.left - tooltipRect.width / 2 > 0;
|
|
6920
6923
|
var rightHalfPosOk = basePosition.right + tooltipRect.width / 2 < window.innerWidth;
|
|
6921
6924
|
var topHalfPosOk = basePosition.top - tooltipRect.height / 2 > 0;
|
|
6922
6925
|
var bottomHalfPosOk = basePosition.bottom + tooltipRect.height / 2 < window.innerHeight;
|
|
6923
|
-
if (
|
|
6926
|
+
if (topPosOk) {
|
|
6924
6927
|
// tslint:disable-next-line:no-bitwise
|
|
6925
6928
|
allowedPositions = allowedPositions | exports.TooltipPosition.topend;
|
|
6926
6929
|
}
|
|
6927
|
-
if (
|
|
6930
|
+
if (bottomPosOk) {
|
|
6928
6931
|
// tslint:disable-next-line:no-bitwise
|
|
6929
6932
|
allowedPositions = allowedPositions | exports.TooltipPosition.bottomend;
|
|
6930
6933
|
}
|
|
@@ -7253,7 +7256,13 @@
|
|
|
7253
7256
|
*/
|
|
7254
7257
|
SacBaseDateTimeControl.prototype.getPositionLeft = function () {
|
|
7255
7258
|
var value = this.popupHelper.getPositionLeft(this.pickerbutton, this.pickercontainer, this.elementRef, this.getArrowWidth(), this.getArrowHeight(), this.position, false);
|
|
7256
|
-
|
|
7259
|
+
// Ensure that pop-ups never appear outside the visible area on the left
|
|
7260
|
+
if (value < 0) {
|
|
7261
|
+
this.posPopupLeft = 5;
|
|
7262
|
+
}
|
|
7263
|
+
else {
|
|
7264
|
+
this.posPopupLeft = value;
|
|
7265
|
+
}
|
|
7257
7266
|
switch (this.GetPickerPosition()) {
|
|
7258
7267
|
case exports.TooltipPosition.top:
|
|
7259
7268
|
case exports.TooltipPosition.bottom:
|
|
@@ -7265,6 +7274,10 @@
|
|
|
7265
7274
|
this.getPickerWidth() -
|
|
7266
7275
|
this.getArrowWidth() / 2 -
|
|
7267
7276
|
this.popupHelper.getContainerWidth(this.pickerbutton, false) / 2;
|
|
7277
|
+
// Correction by Arrow if popup is outside the left margin
|
|
7278
|
+
if (value < 0) {
|
|
7279
|
+
this.posArrowLeft -= value * -1 + 5;
|
|
7280
|
+
}
|
|
7268
7281
|
break;
|
|
7269
7282
|
default:
|
|
7270
7283
|
this.posArrowLeft = null;
|