raise-common-lib 0.0.217 → 0.0.219
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/README.md +57 -57
- package/bundles/raise-common-lib.umd.js +1208 -0
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/raise-common-lib.module.js +4 -1
- package/esm2015/lib/smart-popup/index.component.js +1089 -0
- package/esm2015/public-api.js +2 -1
- package/esm2015/raise-common-lib.js +2 -2
- package/esm5/lib/raise-common-lib.module.js +4 -1
- package/esm5/lib/smart-popup/index.component.js +1208 -0
- package/esm5/public-api.js +2 -1
- package/esm5/raise-common-lib.js +2 -2
- package/fesm2015/raise-common-lib.js +1091 -1
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +1208 -1
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/smart-popup/index.component.d.ts +57 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/img/arrow_right.svg +4 -4
- package/src/assets/img/calendar-disabled.svg +6 -6
- package/src/assets/img/calendar.svg +6 -6
- package/src/assets/img/calendar_arrow_left.svg +3 -3
- package/src/assets/img/calendar_arrow_right.svg +3 -3
- package/src/assets/img/checked-vector.svg +3 -3
- package/src/assets/img/dialog-close.svg +4 -4
- package/src/assets/img/dialog-grow.svg +6 -6
- package/src/assets/img/dialog-shrink.svg +6 -6
- package/src/assets/img/plus.svg +4 -4
- package/src/assets/img/search.svg +4 -4
- package/src/assets/img/shrink-icon.svg +6 -6
- package/src/assets/img/time-disabled.svg +4 -4
- package/src/assets/img/time.svg +4 -4
- package/src/assets/img/toolbar-action-addFolder.svg +17 -17
- package/src/assets/img/toolbar-action-calculator.svg +11 -11
- package/src/assets/img/toolbar-action-collapse.svg +7 -7
- package/src/assets/img/toolbar-action-combine.svg +4 -4
- package/src/assets/img/toolbar-action-edit.svg +4 -4
- package/src/assets/img/toolbar-action-expand.svg +7 -7
- package/src/assets/img/toolbar-action-folderMove.svg +8 -8
- package/src/assets/img/toolbar-action-lock.svg +6 -6
- package/src/assets/img/toolbar-action-preview.svg +7 -7
- package/src/assets/img/toolbar-action-publish.svg +5 -5
- package/src/assets/img/toolbar-action-reminders.svg +10 -10
- package/src/assets/img/toolbar-action-rename.svg +7 -7
- package/src/assets/img/toolbar-action-saveSequence.svg +5 -5
- package/src/assets/img/toolbar-action-send-file.svg +5 -5
- package/src/assets/img/toolbar-action-settle.svg +7 -7
- package/src/assets/img/toolbar-action-share.svg +5 -5
- package/src/assets/img/toolbar-action-submitForApproval.svg +4 -4
- package/src/assets/img/toolbar-action-sync.svg +4 -4
- package/src/assets/img/toolbar-action-template.svg +6 -6
- package/src/assets/img/toolbar-action-workflow.svg +9 -9
|
@@ -23744,6 +23744,1211 @@ if (false) {
|
|
|
23744
23744
|
CommonDialogComponent.prototype.dialogRef;
|
|
23745
23745
|
}
|
|
23746
23746
|
|
|
23747
|
+
/**
|
|
23748
|
+
* @fileoverview added by tsickle
|
|
23749
|
+
* Generated from: lib/smart-popup/index.component.ts
|
|
23750
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
23751
|
+
*/
|
|
23752
|
+
var SmartPopupComponent = /** @class */ (function () {
|
|
23753
|
+
function SmartPopupComponent(ref) {
|
|
23754
|
+
var _this = this;
|
|
23755
|
+
this.ref = ref;
|
|
23756
|
+
this._placement = "BottomLeft";
|
|
23757
|
+
this._offset = 8;
|
|
23758
|
+
this._autoAdjust = "yes";
|
|
23759
|
+
this.triggerElementRef = null;
|
|
23760
|
+
this.loading = false;
|
|
23761
|
+
this._open = false;
|
|
23762
|
+
this._width = null;
|
|
23763
|
+
this._height = null;
|
|
23764
|
+
this.openChange = new EventEmitter();
|
|
23765
|
+
this.contentLoad = new EventEmitter();
|
|
23766
|
+
this.currentTriggerElement = null;
|
|
23767
|
+
this.FIXED_CONTAINER_ID = "rs-smart-popup-fixed-container";
|
|
23768
|
+
this.opened = "no";
|
|
23769
|
+
this.positioning = "no";
|
|
23770
|
+
this.actualPlacement = "bottom";
|
|
23771
|
+
this.actualPosition = "start";
|
|
23772
|
+
this.onClickOutside = (/**
|
|
23773
|
+
* @param {?} event
|
|
23774
|
+
* @return {?}
|
|
23775
|
+
*/
|
|
23776
|
+
function (event) {
|
|
23777
|
+
/** @type {?} */
|
|
23778
|
+
var target = (/** @type {?} */ (event.target));
|
|
23779
|
+
/** @type {?} */
|
|
23780
|
+
var isClickOnTrigger = _this.currentTriggerElement && _this.currentTriggerElement.contains(target);
|
|
23781
|
+
/** @type {?} */
|
|
23782
|
+
var isClickOnPopup = _this.popupElement &&
|
|
23783
|
+
_this.popupElement.nativeElement &&
|
|
23784
|
+
_this.popupElement.nativeElement.contains(target);
|
|
23785
|
+
if (!isClickOnTrigger && !isClickOnPopup) {
|
|
23786
|
+
_this.close();
|
|
23787
|
+
}
|
|
23788
|
+
});
|
|
23789
|
+
this.onWindowScroll = (/**
|
|
23790
|
+
* @param {?} event
|
|
23791
|
+
* @return {?}
|
|
23792
|
+
*/
|
|
23793
|
+
function (event) {
|
|
23794
|
+
if (_this.opened === "yes") {
|
|
23795
|
+
// 检查滚动是否发生在弹窗内部
|
|
23796
|
+
/** @type {?} */
|
|
23797
|
+
var target = (/** @type {?} */ (event.target));
|
|
23798
|
+
/** @type {?} */
|
|
23799
|
+
var isScrollOnPopup = _this.popupElement &&
|
|
23800
|
+
_this.popupElement.nativeElement &&
|
|
23801
|
+
_this.popupElement.nativeElement.contains(target);
|
|
23802
|
+
// 如果滚动发生在弹窗内部,不更新位置(避免不必要的计算)
|
|
23803
|
+
// 如果滚动发生在外部,更新位置(因为触发元素位置可能改变)
|
|
23804
|
+
if (!isScrollOnPopup) {
|
|
23805
|
+
_this.updatePopupPosition();
|
|
23806
|
+
}
|
|
23807
|
+
}
|
|
23808
|
+
});
|
|
23809
|
+
}
|
|
23810
|
+
Object.defineProperty(SmartPopupComponent.prototype, "placementInfo", {
|
|
23811
|
+
// 解析placement格式
|
|
23812
|
+
get:
|
|
23813
|
+
// 解析placement格式
|
|
23814
|
+
/**
|
|
23815
|
+
* @return {?}
|
|
23816
|
+
*/
|
|
23817
|
+
function () {
|
|
23818
|
+
/** @type {?} */
|
|
23819
|
+
var placementMap = {
|
|
23820
|
+
TopLeft: { placement: "top", position: "start" },
|
|
23821
|
+
TopCenter: { placement: "top", position: "center" },
|
|
23822
|
+
TopRight: { placement: "top", position: "end" },
|
|
23823
|
+
BottomLeft: { placement: "bottom", position: "start" },
|
|
23824
|
+
BottomCenter: { placement: "bottom", position: "center" },
|
|
23825
|
+
BottomRight: { placement: "bottom", position: "end" },
|
|
23826
|
+
LeftTop: { placement: "left", position: "start" },
|
|
23827
|
+
LeftCenter: { placement: "left", position: "center" },
|
|
23828
|
+
LeftBottom: { placement: "left", position: "end" },
|
|
23829
|
+
RightTop: { placement: "right", position: "start" },
|
|
23830
|
+
RightCenter: { placement: "right", position: "center" },
|
|
23831
|
+
RightBottom: { placement: "right", position: "end" },
|
|
23832
|
+
};
|
|
23833
|
+
return (placementMap[this._placement] || {
|
|
23834
|
+
placement: "bottom",
|
|
23835
|
+
position: "start",
|
|
23836
|
+
});
|
|
23837
|
+
},
|
|
23838
|
+
enumerable: true,
|
|
23839
|
+
configurable: true
|
|
23840
|
+
});
|
|
23841
|
+
Object.defineProperty(SmartPopupComponent.prototype, "offset", {
|
|
23842
|
+
get: /**
|
|
23843
|
+
* @return {?}
|
|
23844
|
+
*/
|
|
23845
|
+
function () {
|
|
23846
|
+
return this._offset || 8;
|
|
23847
|
+
},
|
|
23848
|
+
enumerable: true,
|
|
23849
|
+
configurable: true
|
|
23850
|
+
});
|
|
23851
|
+
Object.defineProperty(SmartPopupComponent.prototype, "autoAdjust", {
|
|
23852
|
+
get: /**
|
|
23853
|
+
* @return {?}
|
|
23854
|
+
*/
|
|
23855
|
+
function () {
|
|
23856
|
+
return this._autoAdjust === "yes";
|
|
23857
|
+
},
|
|
23858
|
+
enumerable: true,
|
|
23859
|
+
configurable: true
|
|
23860
|
+
});
|
|
23861
|
+
/**
|
|
23862
|
+
* @return {?}
|
|
23863
|
+
*/
|
|
23864
|
+
SmartPopupComponent.prototype.ngAfterViewInit = /**
|
|
23865
|
+
* @return {?}
|
|
23866
|
+
*/
|
|
23867
|
+
function () {
|
|
23868
|
+
var _this = this;
|
|
23869
|
+
this.fixedContainerEl = this.getFixedContainer();
|
|
23870
|
+
this.fixedContainerEl.append(this.popupElement.nativeElement);
|
|
23871
|
+
this.updateTriggerElement();
|
|
23872
|
+
// 如果提供了固定尺寸,立即应用
|
|
23873
|
+
if (this._width !== null &&
|
|
23874
|
+
this._height !== null &&
|
|
23875
|
+
this.popupElement &&
|
|
23876
|
+
this.popupElement.nativeElement) {
|
|
23877
|
+
/** @type {?} */
|
|
23878
|
+
var popupEl = this.popupElement.nativeElement;
|
|
23879
|
+
popupEl.style.width = this._width + "px";
|
|
23880
|
+
popupEl.style.height = this._height + "px";
|
|
23881
|
+
popupEl.style.minWidth = this._width + "px";
|
|
23882
|
+
popupEl.style.maxWidth = this._width + "px";
|
|
23883
|
+
popupEl.style.minHeight = this._height + "px";
|
|
23884
|
+
popupEl.style.maxHeight = this._height + "px";
|
|
23885
|
+
}
|
|
23886
|
+
// 如果外部传入 open 属性为 true,自动打开
|
|
23887
|
+
if (this._open) {
|
|
23888
|
+
setTimeout((/**
|
|
23889
|
+
* @return {?}
|
|
23890
|
+
*/
|
|
23891
|
+
function () { return _this.open(); }), 0);
|
|
23892
|
+
}
|
|
23893
|
+
};
|
|
23894
|
+
/**
|
|
23895
|
+
* @param {?} changes
|
|
23896
|
+
* @return {?}
|
|
23897
|
+
*/
|
|
23898
|
+
SmartPopupComponent.prototype.ngOnChanges = /**
|
|
23899
|
+
* @param {?} changes
|
|
23900
|
+
* @return {?}
|
|
23901
|
+
*/
|
|
23902
|
+
function (changes) {
|
|
23903
|
+
var _this = this;
|
|
23904
|
+
// 处理固定尺寸变化
|
|
23905
|
+
if ((changes._width || changes._height) &&
|
|
23906
|
+
this.popupElement &&
|
|
23907
|
+
this.popupElement.nativeElement) {
|
|
23908
|
+
/** @type {?} */
|
|
23909
|
+
var popupEl = this.popupElement.nativeElement;
|
|
23910
|
+
if (this._width !== null) {
|
|
23911
|
+
popupEl.style.width = this._width + "px";
|
|
23912
|
+
popupEl.style.minWidth = this._width + "px";
|
|
23913
|
+
popupEl.style.maxWidth = this._width + "px";
|
|
23914
|
+
}
|
|
23915
|
+
if (this._height !== null) {
|
|
23916
|
+
popupEl.style.height = this._height + "px";
|
|
23917
|
+
popupEl.style.minHeight = this._height + "px";
|
|
23918
|
+
popupEl.style.maxHeight = this._height + "px";
|
|
23919
|
+
}
|
|
23920
|
+
}
|
|
23921
|
+
// 先处理触发元素变化(确保在打开前更新触发元素)
|
|
23922
|
+
if (changes.triggerElementRef) {
|
|
23923
|
+
/** @type {?} */
|
|
23924
|
+
var previousTrigger = this.currentTriggerElement;
|
|
23925
|
+
this.updateTriggerElement();
|
|
23926
|
+
// 如果弹窗已经打开,且触发元素发生了变化,立即更新位置
|
|
23927
|
+
if (this.opened === "yes" &&
|
|
23928
|
+
previousTrigger !== this.currentTriggerElement &&
|
|
23929
|
+
this.currentTriggerElement) {
|
|
23930
|
+
// 使用新的打开方式更新位置
|
|
23931
|
+
this.positioning = "yes";
|
|
23932
|
+
this.ref.markForCheck();
|
|
23933
|
+
requestAnimationFrame((/**
|
|
23934
|
+
* @return {?}
|
|
23935
|
+
*/
|
|
23936
|
+
function () {
|
|
23937
|
+
requestAnimationFrame((/**
|
|
23938
|
+
* @return {?}
|
|
23939
|
+
*/
|
|
23940
|
+
function () {
|
|
23941
|
+
_this.updatePopupPosition();
|
|
23942
|
+
_this.positioning = "no";
|
|
23943
|
+
_this.ref.markForCheck();
|
|
23944
|
+
}));
|
|
23945
|
+
}));
|
|
23946
|
+
}
|
|
23947
|
+
}
|
|
23948
|
+
// 处理 open 变化(确保在触发元素更新后处理)
|
|
23949
|
+
if (changes._open) {
|
|
23950
|
+
if (this._open && this.opened === "no") {
|
|
23951
|
+
// 确保触发元素已更新
|
|
23952
|
+
this.updateTriggerElement();
|
|
23953
|
+
// 使用 setTimeout 确保所有变更都已处理
|
|
23954
|
+
setTimeout((/**
|
|
23955
|
+
* @return {?}
|
|
23956
|
+
*/
|
|
23957
|
+
function () {
|
|
23958
|
+
// 再次确保触发元素已更新
|
|
23959
|
+
_this.updateTriggerElement();
|
|
23960
|
+
_this.open();
|
|
23961
|
+
}), 0);
|
|
23962
|
+
}
|
|
23963
|
+
else if (!this._open && this.opened === "yes") {
|
|
23964
|
+
this.close();
|
|
23965
|
+
}
|
|
23966
|
+
}
|
|
23967
|
+
// 当加载完成时,更新位置(如果提供了固定尺寸,不需要更新位置)
|
|
23968
|
+
if (changes.loading &&
|
|
23969
|
+
!changes.loading.currentValue &&
|
|
23970
|
+
changes.loading.previousValue) {
|
|
23971
|
+
if (this.opened === "yes") {
|
|
23972
|
+
// 如果提供了固定尺寸,位置已经计算好了,不需要更新
|
|
23973
|
+
if (this._width !== null && this._height !== null) {
|
|
23974
|
+
this.contentLoad.emit();
|
|
23975
|
+
}
|
|
23976
|
+
else {
|
|
23977
|
+
// 如果正在定位,不需要更新位置
|
|
23978
|
+
if (this.positioning === "no") {
|
|
23979
|
+
requestAnimationFrame((/**
|
|
23980
|
+
* @return {?}
|
|
23981
|
+
*/
|
|
23982
|
+
function () {
|
|
23983
|
+
_this.updatePopupPosition();
|
|
23984
|
+
_this.contentLoad.emit();
|
|
23985
|
+
}));
|
|
23986
|
+
}
|
|
23987
|
+
else {
|
|
23988
|
+
// 如果正在定位,等待定位完成后再触发事件
|
|
23989
|
+
/** @type {?} */
|
|
23990
|
+
var checkPositioning_1 = (/**
|
|
23991
|
+
* @return {?}
|
|
23992
|
+
*/
|
|
23993
|
+
function () {
|
|
23994
|
+
if (_this.positioning === "no") {
|
|
23995
|
+
_this.contentLoad.emit();
|
|
23996
|
+
}
|
|
23997
|
+
else {
|
|
23998
|
+
setTimeout(checkPositioning_1, 10);
|
|
23999
|
+
}
|
|
24000
|
+
});
|
|
24001
|
+
checkPositioning_1();
|
|
24002
|
+
}
|
|
24003
|
+
}
|
|
24004
|
+
}
|
|
24005
|
+
}
|
|
24006
|
+
};
|
|
24007
|
+
/**
|
|
24008
|
+
* @return {?}
|
|
24009
|
+
*/
|
|
24010
|
+
SmartPopupComponent.prototype.ngOnDestroy = /**
|
|
24011
|
+
* @return {?}
|
|
24012
|
+
*/
|
|
24013
|
+
function () {
|
|
24014
|
+
if (this.popupElement && this.popupElement.nativeElement) {
|
|
24015
|
+
this.popupElement.nativeElement.remove();
|
|
24016
|
+
}
|
|
24017
|
+
window.removeEventListener("click", this.onClickOutside);
|
|
24018
|
+
window.removeEventListener("scroll", this.onWindowScroll, true);
|
|
24019
|
+
};
|
|
24020
|
+
/**
|
|
24021
|
+
* @return {?}
|
|
24022
|
+
*/
|
|
24023
|
+
SmartPopupComponent.prototype.updateTriggerElement = /**
|
|
24024
|
+
* @return {?}
|
|
24025
|
+
*/
|
|
24026
|
+
function () {
|
|
24027
|
+
if (this.triggerElementRef) {
|
|
24028
|
+
this.currentTriggerElement = this.triggerElementRef;
|
|
24029
|
+
}
|
|
24030
|
+
else if (this.internalTriggerElement &&
|
|
24031
|
+
this.internalTriggerElement.nativeElement) {
|
|
24032
|
+
this.currentTriggerElement = this.internalTriggerElement.nativeElement;
|
|
24033
|
+
}
|
|
24034
|
+
else {
|
|
24035
|
+
this.currentTriggerElement = null;
|
|
24036
|
+
}
|
|
24037
|
+
};
|
|
24038
|
+
/**
|
|
24039
|
+
* @return {?}
|
|
24040
|
+
*/
|
|
24041
|
+
SmartPopupComponent.prototype.getFixedContainer = /**
|
|
24042
|
+
* @return {?}
|
|
24043
|
+
*/
|
|
24044
|
+
function () {
|
|
24045
|
+
/** @type {?} */
|
|
24046
|
+
var containerElement = document.getElementById(this.FIXED_CONTAINER_ID);
|
|
24047
|
+
if (!containerElement) {
|
|
24048
|
+
containerElement = document.createElement("div");
|
|
24049
|
+
containerElement.setAttribute("id", this.FIXED_CONTAINER_ID);
|
|
24050
|
+
document.body.append(containerElement);
|
|
24051
|
+
}
|
|
24052
|
+
return containerElement;
|
|
24053
|
+
};
|
|
24054
|
+
/**
|
|
24055
|
+
* @param {?=} triggerElement
|
|
24056
|
+
* @return {?}
|
|
24057
|
+
*/
|
|
24058
|
+
SmartPopupComponent.prototype.open = /**
|
|
24059
|
+
* @param {?=} triggerElement
|
|
24060
|
+
* @return {?}
|
|
24061
|
+
*/
|
|
24062
|
+
function (triggerElement) {
|
|
24063
|
+
var _this = this;
|
|
24064
|
+
// 如果传入了触发元素,使用它
|
|
24065
|
+
if (triggerElement) {
|
|
24066
|
+
this.currentTriggerElement = triggerElement;
|
|
24067
|
+
}
|
|
24068
|
+
else {
|
|
24069
|
+
this.updateTriggerElement();
|
|
24070
|
+
}
|
|
24071
|
+
if (!this.currentTriggerElement) {
|
|
24072
|
+
console.warn("SmartPopupComponent: No trigger element found");
|
|
24073
|
+
return;
|
|
24074
|
+
}
|
|
24075
|
+
// 如果已经打开,先关闭再打开(更新位置)
|
|
24076
|
+
if (this.opened === "yes") {
|
|
24077
|
+
// 先关闭弹窗
|
|
24078
|
+
this.opened = "no";
|
|
24079
|
+
this.positioning = "no";
|
|
24080
|
+
this.ref.markForCheck();
|
|
24081
|
+
// 立即在新位置打开
|
|
24082
|
+
requestAnimationFrame((/**
|
|
24083
|
+
* @return {?}
|
|
24084
|
+
*/
|
|
24085
|
+
function () {
|
|
24086
|
+
// 再次确保触发元素已更新
|
|
24087
|
+
_this.updateTriggerElement();
|
|
24088
|
+
_this.openPopup();
|
|
24089
|
+
}));
|
|
24090
|
+
return;
|
|
24091
|
+
}
|
|
24092
|
+
// 确保触发元素已更新
|
|
24093
|
+
this.updateTriggerElement();
|
|
24094
|
+
this.openPopup();
|
|
24095
|
+
};
|
|
24096
|
+
/**
|
|
24097
|
+
* @private
|
|
24098
|
+
* @return {?}
|
|
24099
|
+
*/
|
|
24100
|
+
SmartPopupComponent.prototype.openPopup = /**
|
|
24101
|
+
* @private
|
|
24102
|
+
* @return {?}
|
|
24103
|
+
*/
|
|
24104
|
+
function () {
|
|
24105
|
+
var _this = this;
|
|
24106
|
+
// 再次确保触发元素已更新
|
|
24107
|
+
this.updateTriggerElement();
|
|
24108
|
+
if (!this.currentTriggerElement) {
|
|
24109
|
+
console.warn("SmartPopupComponent: No trigger element found when opening popup");
|
|
24110
|
+
return;
|
|
24111
|
+
}
|
|
24112
|
+
// 如果提供了固定尺寸,可以在打开前就计算好位置
|
|
24113
|
+
if (this._width !== null && this._height !== null) {
|
|
24114
|
+
// 先计算位置(不依赖DOM渲染,直接根据triggerElement计算)
|
|
24115
|
+
/** @type {?} */
|
|
24116
|
+
var triggerRect = this.currentTriggerElement.getBoundingClientRect();
|
|
24117
|
+
/** @type {?} */
|
|
24118
|
+
var viewportWidth = window.innerWidth;
|
|
24119
|
+
/** @type {?} */
|
|
24120
|
+
var viewportHeight = window.innerHeight;
|
|
24121
|
+
/** @type {?} */
|
|
24122
|
+
var popupSize = {
|
|
24123
|
+
width: this._width,
|
|
24124
|
+
height: this._height,
|
|
24125
|
+
};
|
|
24126
|
+
/** @type {?} */
|
|
24127
|
+
var popupRect = (/** @type {?} */ ({
|
|
24128
|
+
width: popupSize.width,
|
|
24129
|
+
height: popupSize.height,
|
|
24130
|
+
top: 0,
|
|
24131
|
+
left: 0,
|
|
24132
|
+
right: popupSize.width,
|
|
24133
|
+
bottom: popupSize.height,
|
|
24134
|
+
x: 0,
|
|
24135
|
+
y: 0,
|
|
24136
|
+
toJSON: (/**
|
|
24137
|
+
* @return {?}
|
|
24138
|
+
*/
|
|
24139
|
+
function () { return ({}); }),
|
|
24140
|
+
}));
|
|
24141
|
+
/** @type {?} */
|
|
24142
|
+
var targetInfo = this.placementInfo;
|
|
24143
|
+
/** @type {?} */
|
|
24144
|
+
var finalPlacement = targetInfo.placement;
|
|
24145
|
+
/** @type {?} */
|
|
24146
|
+
var finalPosition = targetInfo.position;
|
|
24147
|
+
if (this.autoAdjust) {
|
|
24148
|
+
/** @type {?} */
|
|
24149
|
+
var optimal = this.calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight);
|
|
24150
|
+
finalPlacement = optimal.placement;
|
|
24151
|
+
finalPosition = optimal.position;
|
|
24152
|
+
}
|
|
24153
|
+
this.actualPlacement = finalPlacement;
|
|
24154
|
+
this.actualPosition = finalPosition;
|
|
24155
|
+
// 计算位置坐标(不依赖DOM,直接计算)
|
|
24156
|
+
/** @type {?} */
|
|
24157
|
+
var position_1 = this.calculatePositionCoordinates(triggerRect, finalPlacement, finalPosition, popupSize);
|
|
24158
|
+
// 先设置打开状态,但保持隐藏(positioning = yes)
|
|
24159
|
+
this.opened = "yes";
|
|
24160
|
+
this.positioning = "yes";
|
|
24161
|
+
this.openChange.emit(true);
|
|
24162
|
+
this.ref.markForCheck();
|
|
24163
|
+
// 强制更新视图,确保DOM已更新
|
|
24164
|
+
this.ref.detectChanges();
|
|
24165
|
+
// 如果元素已经存在,立即设置位置(不等待 requestAnimationFrame)
|
|
24166
|
+
if (this.popupElement && this.popupElement.nativeElement) {
|
|
24167
|
+
/** @type {?} */
|
|
24168
|
+
var popupEl = this.popupElement.nativeElement;
|
|
24169
|
+
// 立即设置尺寸和位置
|
|
24170
|
+
popupEl.style.width = this._width + "px";
|
|
24171
|
+
popupEl.style.height = this._height + "px";
|
|
24172
|
+
popupEl.style.minWidth = this._width + "px";
|
|
24173
|
+
popupEl.style.maxWidth = this._width + "px";
|
|
24174
|
+
popupEl.style.minHeight = this._height + "px";
|
|
24175
|
+
popupEl.style.maxHeight = this._height + "px";
|
|
24176
|
+
popupEl.style.top = position_1.top;
|
|
24177
|
+
popupEl.style.left = position_1.left;
|
|
24178
|
+
popupEl.style.transform = "translate(" + position_1.translateX + ", " + position_1.translateY + ")";
|
|
24179
|
+
// 强制同步应用样式
|
|
24180
|
+
popupEl.offsetHeight;
|
|
24181
|
+
// 位置设置完成后,立即显示弹窗
|
|
24182
|
+
this.positioning = "no";
|
|
24183
|
+
this.ref.markForCheck();
|
|
24184
|
+
}
|
|
24185
|
+
else {
|
|
24186
|
+
// 如果元素还不存在,等待渲染
|
|
24187
|
+
requestAnimationFrame((/**
|
|
24188
|
+
* @return {?}
|
|
24189
|
+
*/
|
|
24190
|
+
function () {
|
|
24191
|
+
if (_this.popupElement && _this.popupElement.nativeElement) {
|
|
24192
|
+
/** @type {?} */
|
|
24193
|
+
var popupEl = _this.popupElement.nativeElement;
|
|
24194
|
+
// 立即设置尺寸和位置
|
|
24195
|
+
popupEl.style.width = _this._width + "px";
|
|
24196
|
+
popupEl.style.height = _this._height + "px";
|
|
24197
|
+
popupEl.style.minWidth = _this._width + "px";
|
|
24198
|
+
popupEl.style.maxWidth = _this._width + "px";
|
|
24199
|
+
popupEl.style.minHeight = _this._height + "px";
|
|
24200
|
+
popupEl.style.maxHeight = _this._height + "px";
|
|
24201
|
+
popupEl.style.top = position_1.top;
|
|
24202
|
+
popupEl.style.left = position_1.left;
|
|
24203
|
+
popupEl.style.transform = "translate(" + position_1.translateX + ", " + position_1.translateY + ")";
|
|
24204
|
+
// 强制同步应用样式
|
|
24205
|
+
popupEl.offsetHeight;
|
|
24206
|
+
// 位置设置完成后,立即显示弹窗
|
|
24207
|
+
_this.positioning = "no";
|
|
24208
|
+
_this.ref.markForCheck();
|
|
24209
|
+
}
|
|
24210
|
+
}));
|
|
24211
|
+
}
|
|
24212
|
+
}
|
|
24213
|
+
else {
|
|
24214
|
+
// 没有固定尺寸,需要等待DOM渲染
|
|
24215
|
+
this.positioning = "yes";
|
|
24216
|
+
this.ref.markForCheck();
|
|
24217
|
+
// 立即强制更新视图,确保DOM已更新
|
|
24218
|
+
this.ref.detectChanges();
|
|
24219
|
+
// 使用 requestAnimationFrame 确保在浏览器渲染之前更新位置
|
|
24220
|
+
requestAnimationFrame((/**
|
|
24221
|
+
* @return {?}
|
|
24222
|
+
*/
|
|
24223
|
+
function () {
|
|
24224
|
+
// 确保元素已渲染并获取尺寸
|
|
24225
|
+
if (_this.popupElement && _this.popupElement.nativeElement) {
|
|
24226
|
+
// 强制重新计算布局,确保元素尺寸已计算
|
|
24227
|
+
_this.popupElement.nativeElement.offsetHeight;
|
|
24228
|
+
// 计算并设置位置
|
|
24229
|
+
_this.updatePopupPosition();
|
|
24230
|
+
// 位置设置完成后,移除定位状态,显示弹窗
|
|
24231
|
+
_this.positioning = "no";
|
|
24232
|
+
_this.ref.markForCheck();
|
|
24233
|
+
}
|
|
24234
|
+
}));
|
|
24235
|
+
}
|
|
24236
|
+
window.addEventListener("click", this.onClickOutside);
|
|
24237
|
+
window.addEventListener("scroll", this.onWindowScroll, true);
|
|
24238
|
+
};
|
|
24239
|
+
/**
|
|
24240
|
+
* @return {?}
|
|
24241
|
+
*/
|
|
24242
|
+
SmartPopupComponent.prototype.close = /**
|
|
24243
|
+
* @return {?}
|
|
24244
|
+
*/
|
|
24245
|
+
function () {
|
|
24246
|
+
if (this.opened === "no") {
|
|
24247
|
+
return;
|
|
24248
|
+
}
|
|
24249
|
+
this.opened = "no";
|
|
24250
|
+
this.positioning = "no";
|
|
24251
|
+
this.openChange.emit(false);
|
|
24252
|
+
window.removeEventListener("click", this.onClickOutside);
|
|
24253
|
+
window.removeEventListener("scroll", this.onWindowScroll, true);
|
|
24254
|
+
this.ref.markForCheck();
|
|
24255
|
+
};
|
|
24256
|
+
/**
|
|
24257
|
+
* @return {?}
|
|
24258
|
+
*/
|
|
24259
|
+
SmartPopupComponent.prototype.toggle = /**
|
|
24260
|
+
* @return {?}
|
|
24261
|
+
*/
|
|
24262
|
+
function () {
|
|
24263
|
+
if (this.opened === "yes") {
|
|
24264
|
+
this.close();
|
|
24265
|
+
}
|
|
24266
|
+
else {
|
|
24267
|
+
this.open();
|
|
24268
|
+
}
|
|
24269
|
+
};
|
|
24270
|
+
/**
|
|
24271
|
+
* @param {?} event
|
|
24272
|
+
* @return {?}
|
|
24273
|
+
*/
|
|
24274
|
+
SmartPopupComponent.prototype.onClickTrigger = /**
|
|
24275
|
+
* @param {?} event
|
|
24276
|
+
* @return {?}
|
|
24277
|
+
*/
|
|
24278
|
+
function (event) {
|
|
24279
|
+
event.stopPropagation();
|
|
24280
|
+
this.toggle();
|
|
24281
|
+
};
|
|
24282
|
+
// 处理弹窗内部的滚轮事件
|
|
24283
|
+
// 处理弹窗内部的滚轮事件
|
|
24284
|
+
/**
|
|
24285
|
+
* @param {?} event
|
|
24286
|
+
* @return {?}
|
|
24287
|
+
*/
|
|
24288
|
+
SmartPopupComponent.prototype.onPopupWheel =
|
|
24289
|
+
// 处理弹窗内部的滚轮事件
|
|
24290
|
+
/**
|
|
24291
|
+
* @param {?} event
|
|
24292
|
+
* @return {?}
|
|
24293
|
+
*/
|
|
24294
|
+
function (event) {
|
|
24295
|
+
// 阻止滚轮事件冒泡,避免触发外部滚动处理
|
|
24296
|
+
event.stopPropagation();
|
|
24297
|
+
};
|
|
24298
|
+
// 处理弹窗内部的滚动事件
|
|
24299
|
+
// 处理弹窗内部的滚动事件
|
|
24300
|
+
/**
|
|
24301
|
+
* @param {?} event
|
|
24302
|
+
* @return {?}
|
|
24303
|
+
*/
|
|
24304
|
+
SmartPopupComponent.prototype.onPopupScroll =
|
|
24305
|
+
// 处理弹窗内部的滚动事件
|
|
24306
|
+
/**
|
|
24307
|
+
* @param {?} event
|
|
24308
|
+
* @return {?}
|
|
24309
|
+
*/
|
|
24310
|
+
function (event) {
|
|
24311
|
+
// 阻止滚动事件冒泡,避免触发外部滚动处理
|
|
24312
|
+
event.stopPropagation();
|
|
24313
|
+
};
|
|
24314
|
+
// 计算并设置位置(支持固定尺寸,可在打开前调用)
|
|
24315
|
+
// 计算并设置位置(支持固定尺寸,可在打开前调用)
|
|
24316
|
+
/**
|
|
24317
|
+
* @private
|
|
24318
|
+
* @return {?}
|
|
24319
|
+
*/
|
|
24320
|
+
SmartPopupComponent.prototype.calculateAndSetPosition =
|
|
24321
|
+
// 计算并设置位置(支持固定尺寸,可在打开前调用)
|
|
24322
|
+
/**
|
|
24323
|
+
* @private
|
|
24324
|
+
* @return {?}
|
|
24325
|
+
*/
|
|
24326
|
+
function () {
|
|
24327
|
+
var _this = this;
|
|
24328
|
+
if (!this.currentTriggerElement) {
|
|
24329
|
+
return;
|
|
24330
|
+
}
|
|
24331
|
+
/** @type {?} */
|
|
24332
|
+
var triggerRect = this.currentTriggerElement.getBoundingClientRect();
|
|
24333
|
+
/** @type {?} */
|
|
24334
|
+
var viewportWidth = window.innerWidth;
|
|
24335
|
+
/** @type {?} */
|
|
24336
|
+
var viewportHeight = window.innerHeight;
|
|
24337
|
+
// 获取弹窗尺寸(优先使用固定尺寸)
|
|
24338
|
+
/** @type {?} */
|
|
24339
|
+
var popupSize = {
|
|
24340
|
+
width: this._width !== null
|
|
24341
|
+
? this._width
|
|
24342
|
+
: this.popupElement && this.popupElement.nativeElement
|
|
24343
|
+
? this.popupElement.nativeElement.offsetWidth
|
|
24344
|
+
: 300,
|
|
24345
|
+
height: this._height !== null
|
|
24346
|
+
? this._height
|
|
24347
|
+
: this.popupElement && this.popupElement.nativeElement
|
|
24348
|
+
? this.popupElement.nativeElement.offsetHeight
|
|
24349
|
+
: 200,
|
|
24350
|
+
};
|
|
24351
|
+
// 创建虚拟的 popupRect(用于计算)
|
|
24352
|
+
/** @type {?} */
|
|
24353
|
+
var popupRect = (/** @type {?} */ ({
|
|
24354
|
+
width: popupSize.width,
|
|
24355
|
+
height: popupSize.height,
|
|
24356
|
+
top: 0,
|
|
24357
|
+
left: 0,
|
|
24358
|
+
right: popupSize.width,
|
|
24359
|
+
bottom: popupSize.height,
|
|
24360
|
+
x: 0,
|
|
24361
|
+
y: 0,
|
|
24362
|
+
toJSON: (/**
|
|
24363
|
+
* @return {?}
|
|
24364
|
+
*/
|
|
24365
|
+
function () { return ({}); }),
|
|
24366
|
+
}));
|
|
24367
|
+
// 获取目标位置信息
|
|
24368
|
+
/** @type {?} */
|
|
24369
|
+
var targetInfo = this.placementInfo;
|
|
24370
|
+
/** @type {?} */
|
|
24371
|
+
var finalPlacement = targetInfo.placement;
|
|
24372
|
+
/** @type {?} */
|
|
24373
|
+
var finalPosition = targetInfo.position;
|
|
24374
|
+
if (this.autoAdjust) {
|
|
24375
|
+
/** @type {?} */
|
|
24376
|
+
var optimal = this.calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight);
|
|
24377
|
+
finalPlacement = optimal.placement;
|
|
24378
|
+
finalPosition = optimal.position;
|
|
24379
|
+
}
|
|
24380
|
+
this.actualPlacement = finalPlacement;
|
|
24381
|
+
this.actualPosition = finalPosition;
|
|
24382
|
+
// 立即设置位置(即使元素还没完全渲染,也要先设置位置)
|
|
24383
|
+
if (this.popupElement && this.popupElement.nativeElement) {
|
|
24384
|
+
this.setPopupPosition(triggerRect, popupRect, finalPlacement, finalPosition, popupSize);
|
|
24385
|
+
// 强制应用样式,确保位置立即生效
|
|
24386
|
+
this.ref.detectChanges();
|
|
24387
|
+
}
|
|
24388
|
+
else {
|
|
24389
|
+
// 如果元素还不存在,延迟设置位置
|
|
24390
|
+
setTimeout((/**
|
|
24391
|
+
* @return {?}
|
|
24392
|
+
*/
|
|
24393
|
+
function () {
|
|
24394
|
+
if (_this.popupElement && _this.popupElement.nativeElement) {
|
|
24395
|
+
_this.setPopupPosition(triggerRect, popupRect, finalPlacement, finalPosition, popupSize);
|
|
24396
|
+
_this.ref.detectChanges();
|
|
24397
|
+
}
|
|
24398
|
+
}), 0);
|
|
24399
|
+
}
|
|
24400
|
+
this.ref.markForCheck();
|
|
24401
|
+
};
|
|
24402
|
+
/**
|
|
24403
|
+
* @return {?}
|
|
24404
|
+
*/
|
|
24405
|
+
SmartPopupComponent.prototype.updatePopupPosition = /**
|
|
24406
|
+
* @return {?}
|
|
24407
|
+
*/
|
|
24408
|
+
function () {
|
|
24409
|
+
if (!this.currentTriggerElement ||
|
|
24410
|
+
!this.popupElement ||
|
|
24411
|
+
!this.popupElement.nativeElement) {
|
|
24412
|
+
return;
|
|
24413
|
+
}
|
|
24414
|
+
// 如果提供了固定尺寸,使用固定尺寸计算
|
|
24415
|
+
if (this._width !== null && this._height !== null) {
|
|
24416
|
+
this.calculateAndSetPosition();
|
|
24417
|
+
return;
|
|
24418
|
+
}
|
|
24419
|
+
/** @type {?} */
|
|
24420
|
+
var triggerRect = this.currentTriggerElement.getBoundingClientRect();
|
|
24421
|
+
/** @type {?} */
|
|
24422
|
+
var popupRect = this.popupElement.nativeElement.getBoundingClientRect();
|
|
24423
|
+
/** @type {?} */
|
|
24424
|
+
var viewportWidth = window.innerWidth;
|
|
24425
|
+
/** @type {?} */
|
|
24426
|
+
var viewportHeight = window.innerHeight;
|
|
24427
|
+
// 获取目标位置信息
|
|
24428
|
+
/** @type {?} */
|
|
24429
|
+
var targetInfo = this.placementInfo;
|
|
24430
|
+
/** @type {?} */
|
|
24431
|
+
var finalPlacement = targetInfo.placement;
|
|
24432
|
+
/** @type {?} */
|
|
24433
|
+
var finalPosition = targetInfo.position;
|
|
24434
|
+
if (this.autoAdjust) {
|
|
24435
|
+
/** @type {?} */
|
|
24436
|
+
var optimal = this.calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight);
|
|
24437
|
+
finalPlacement = optimal.placement;
|
|
24438
|
+
finalPosition = optimal.position;
|
|
24439
|
+
}
|
|
24440
|
+
this.actualPlacement = finalPlacement;
|
|
24441
|
+
this.actualPosition = finalPosition;
|
|
24442
|
+
this.setPopupPosition(triggerRect, popupRect, finalPlacement, finalPosition);
|
|
24443
|
+
this.ref.markForCheck();
|
|
24444
|
+
};
|
|
24445
|
+
/**
|
|
24446
|
+
* @param {?} triggerRect
|
|
24447
|
+
* @param {?} popupRect
|
|
24448
|
+
* @param {?} viewportWidth
|
|
24449
|
+
* @param {?} viewportHeight
|
|
24450
|
+
* @return {?}
|
|
24451
|
+
*/
|
|
24452
|
+
SmartPopupComponent.prototype.calculateOptimalPlacement = /**
|
|
24453
|
+
* @param {?} triggerRect
|
|
24454
|
+
* @param {?} popupRect
|
|
24455
|
+
* @param {?} viewportWidth
|
|
24456
|
+
* @param {?} viewportHeight
|
|
24457
|
+
* @return {?}
|
|
24458
|
+
*/
|
|
24459
|
+
function (triggerRect, popupRect, viewportWidth, viewportHeight) {
|
|
24460
|
+
var e_1, _a;
|
|
24461
|
+
var _this = this;
|
|
24462
|
+
/** @type {?} */
|
|
24463
|
+
var targetInfo = this.placementInfo;
|
|
24464
|
+
/** @type {?} */
|
|
24465
|
+
var preferred = targetInfo.placement;
|
|
24466
|
+
/** @type {?} */
|
|
24467
|
+
var preferredPosition = targetInfo.position;
|
|
24468
|
+
/** @type {?} */
|
|
24469
|
+
var space = {
|
|
24470
|
+
top: triggerRect.top,
|
|
24471
|
+
bottom: viewportHeight - triggerRect.bottom,
|
|
24472
|
+
left: triggerRect.left,
|
|
24473
|
+
right: viewportWidth - triggerRect.right,
|
|
24474
|
+
};
|
|
24475
|
+
/** @type {?} */
|
|
24476
|
+
var popupSize = {
|
|
24477
|
+
width: popupRect.width || 300,
|
|
24478
|
+
// 默认宽度,如果还没有渲染
|
|
24479
|
+
height: popupRect.height || 200,
|
|
24480
|
+
};
|
|
24481
|
+
// 检查首选位置是否有足够空间
|
|
24482
|
+
/** @type {?} */
|
|
24483
|
+
var hasEnoughSpace = (/**
|
|
24484
|
+
* @param {?} placement
|
|
24485
|
+
* @return {?}
|
|
24486
|
+
*/
|
|
24487
|
+
function (placement) {
|
|
24488
|
+
switch (placement) {
|
|
24489
|
+
case "top":
|
|
24490
|
+
return space.top >= popupSize.height + _this.offset;
|
|
24491
|
+
case "bottom":
|
|
24492
|
+
return space.bottom >= popupSize.height + _this.offset;
|
|
24493
|
+
case "left":
|
|
24494
|
+
return space.left >= popupSize.width + _this.offset;
|
|
24495
|
+
case "right":
|
|
24496
|
+
return space.right >= popupSize.width + _this.offset;
|
|
24497
|
+
}
|
|
24498
|
+
});
|
|
24499
|
+
// 检查指定位置是否有足够空间
|
|
24500
|
+
/** @type {?} */
|
|
24501
|
+
var checkPositionSpace = (/**
|
|
24502
|
+
* @param {?} placement
|
|
24503
|
+
* @param {?} position
|
|
24504
|
+
* @return {?}
|
|
24505
|
+
*/
|
|
24506
|
+
function (placement, position) {
|
|
24507
|
+
if (placement === "top" || placement === "bottom") {
|
|
24508
|
+
// 对于上下位置,检查水平对齐空间
|
|
24509
|
+
/** @type {?} */
|
|
24510
|
+
var popupWidth = popupSize.width;
|
|
24511
|
+
/** @type {?} */
|
|
24512
|
+
var spaceLeft = triggerRect.left;
|
|
24513
|
+
/** @type {?} */
|
|
24514
|
+
var spaceRight = viewportWidth - triggerRect.right;
|
|
24515
|
+
if (position === "center") {
|
|
24516
|
+
return spaceLeft >= popupWidth / 2 && spaceRight >= popupWidth / 2;
|
|
24517
|
+
}
|
|
24518
|
+
else if (position === "start") {
|
|
24519
|
+
return spaceLeft >= popupWidth;
|
|
24520
|
+
}
|
|
24521
|
+
else {
|
|
24522
|
+
// end
|
|
24523
|
+
return spaceRight >= popupWidth;
|
|
24524
|
+
}
|
|
24525
|
+
}
|
|
24526
|
+
else {
|
|
24527
|
+
// 对于左右位置,检查垂直对齐空间
|
|
24528
|
+
/** @type {?} */
|
|
24529
|
+
var popupHeight = popupSize.height;
|
|
24530
|
+
/** @type {?} */
|
|
24531
|
+
var spaceTop = triggerRect.top;
|
|
24532
|
+
/** @type {?} */
|
|
24533
|
+
var spaceBottom = viewportHeight - triggerRect.bottom;
|
|
24534
|
+
if (position === "center") {
|
|
24535
|
+
return spaceTop >= popupHeight / 2 && spaceBottom >= popupHeight / 2;
|
|
24536
|
+
}
|
|
24537
|
+
else if (position === "start") {
|
|
24538
|
+
return spaceTop >= popupHeight;
|
|
24539
|
+
}
|
|
24540
|
+
else {
|
|
24541
|
+
// end
|
|
24542
|
+
return spaceBottom >= popupHeight;
|
|
24543
|
+
}
|
|
24544
|
+
}
|
|
24545
|
+
});
|
|
24546
|
+
// 计算位置是否合适(考虑水平/垂直对齐)
|
|
24547
|
+
/** @type {?} */
|
|
24548
|
+
var calculatePosition = (/**
|
|
24549
|
+
* @param {?} placement
|
|
24550
|
+
* @return {?}
|
|
24551
|
+
*/
|
|
24552
|
+
function (placement) {
|
|
24553
|
+
if (placement === "top" || placement === "bottom") {
|
|
24554
|
+
// 对于上下位置,检查水平对齐
|
|
24555
|
+
/** @type {?} */
|
|
24556
|
+
var popupWidth = popupSize.width;
|
|
24557
|
+
/** @type {?} */
|
|
24558
|
+
var spaceLeft = triggerRect.left;
|
|
24559
|
+
/** @type {?} */
|
|
24560
|
+
var spaceRight = viewportWidth - triggerRect.right;
|
|
24561
|
+
// 优先尝试使用用户指定的position
|
|
24562
|
+
if (checkPositionSpace(placement, preferredPosition)) {
|
|
24563
|
+
return preferredPosition;
|
|
24564
|
+
}
|
|
24565
|
+
// 如果中心对齐有足够空间,优先使用中心
|
|
24566
|
+
if (spaceLeft >= popupWidth / 2 && spaceRight >= popupWidth / 2) {
|
|
24567
|
+
return "center";
|
|
24568
|
+
}
|
|
24569
|
+
// 如果左侧空间不足,使用右对齐
|
|
24570
|
+
if (spaceLeft < popupWidth / 2) {
|
|
24571
|
+
return "end";
|
|
24572
|
+
}
|
|
24573
|
+
// 如果右侧空间不足,使用左对齐
|
|
24574
|
+
if (spaceRight < popupWidth / 2) {
|
|
24575
|
+
return "start";
|
|
24576
|
+
}
|
|
24577
|
+
return preferredPosition;
|
|
24578
|
+
}
|
|
24579
|
+
else {
|
|
24580
|
+
// 对于左右位置,检查垂直对齐
|
|
24581
|
+
/** @type {?} */
|
|
24582
|
+
var popupHeight = popupSize.height;
|
|
24583
|
+
/** @type {?} */
|
|
24584
|
+
var spaceTop = triggerRect.top;
|
|
24585
|
+
/** @type {?} */
|
|
24586
|
+
var spaceBottom = viewportHeight - triggerRect.bottom;
|
|
24587
|
+
// 优先尝试使用用户指定的position
|
|
24588
|
+
if (checkPositionSpace(placement, preferredPosition)) {
|
|
24589
|
+
return preferredPosition;
|
|
24590
|
+
}
|
|
24591
|
+
// 如果中心对齐有足够空间,优先使用中心
|
|
24592
|
+
if (spaceTop >= popupHeight / 2 && spaceBottom >= popupHeight / 2) {
|
|
24593
|
+
return "center";
|
|
24594
|
+
}
|
|
24595
|
+
// 如果上方空间不足,使用下对齐
|
|
24596
|
+
if (spaceTop < popupHeight / 2) {
|
|
24597
|
+
return "end";
|
|
24598
|
+
}
|
|
24599
|
+
// 如果下方空间不足,使用上对齐
|
|
24600
|
+
if (spaceBottom < popupHeight / 2) {
|
|
24601
|
+
return "start";
|
|
24602
|
+
}
|
|
24603
|
+
return preferredPosition;
|
|
24604
|
+
}
|
|
24605
|
+
});
|
|
24606
|
+
// 如果首选位置有足够空间,优先使用用户指定的position
|
|
24607
|
+
if (hasEnoughSpace(preferred)) {
|
|
24608
|
+
// 检查用户指定的position是否有足够空间
|
|
24609
|
+
if (checkPositionSpace(preferred, preferredPosition)) {
|
|
24610
|
+
return {
|
|
24611
|
+
placement: preferred,
|
|
24612
|
+
position: preferredPosition,
|
|
24613
|
+
};
|
|
24614
|
+
}
|
|
24615
|
+
// 如果指定的position空间不足,自动计算最佳position
|
|
24616
|
+
return {
|
|
24617
|
+
placement: preferred,
|
|
24618
|
+
position: calculatePosition(preferred),
|
|
24619
|
+
};
|
|
24620
|
+
}
|
|
24621
|
+
// 根据首选位置选择备选位置
|
|
24622
|
+
/** @type {?} */
|
|
24623
|
+
var alternatives = {
|
|
24624
|
+
bottom: ["top", "right", "left"],
|
|
24625
|
+
top: ["bottom", "right", "left"],
|
|
24626
|
+
right: ["left", "bottom", "top"],
|
|
24627
|
+
left: ["right", "bottom", "top"],
|
|
24628
|
+
};
|
|
24629
|
+
/** @type {?} */
|
|
24630
|
+
var altList = alternatives[preferred] || [];
|
|
24631
|
+
try {
|
|
24632
|
+
// 尝试找到第一个有足够空间的备选位置
|
|
24633
|
+
for (var altList_1 = __values(altList), altList_1_1 = altList_1.next(); !altList_1_1.done; altList_1_1 = altList_1.next()) {
|
|
24634
|
+
var alt = altList_1_1.value;
|
|
24635
|
+
if (hasEnoughSpace(alt)) {
|
|
24636
|
+
return {
|
|
24637
|
+
placement: alt,
|
|
24638
|
+
position: calculatePosition(alt),
|
|
24639
|
+
};
|
|
24640
|
+
}
|
|
24641
|
+
}
|
|
24642
|
+
}
|
|
24643
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
24644
|
+
finally {
|
|
24645
|
+
try {
|
|
24646
|
+
if (altList_1_1 && !altList_1_1.done && (_a = altList_1.return)) _a.call(altList_1);
|
|
24647
|
+
}
|
|
24648
|
+
finally { if (e_1) throw e_1.error; }
|
|
24649
|
+
}
|
|
24650
|
+
// 如果都没有足够空间,选择空间最大的位置
|
|
24651
|
+
/** @type {?} */
|
|
24652
|
+
var maxSpace = Math.max(space.top, space.bottom, space.left, space.right);
|
|
24653
|
+
/** @type {?} */
|
|
24654
|
+
var bestPlacement;
|
|
24655
|
+
if (maxSpace === space.top)
|
|
24656
|
+
bestPlacement = "top";
|
|
24657
|
+
else if (maxSpace === space.bottom)
|
|
24658
|
+
bestPlacement = "bottom";
|
|
24659
|
+
else if (maxSpace === space.left)
|
|
24660
|
+
bestPlacement = "left";
|
|
24661
|
+
else
|
|
24662
|
+
bestPlacement = "right";
|
|
24663
|
+
return {
|
|
24664
|
+
placement: bestPlacement,
|
|
24665
|
+
position: calculatePosition(bestPlacement),
|
|
24666
|
+
};
|
|
24667
|
+
};
|
|
24668
|
+
// 计算位置坐标(纯计算,不依赖DOM,包含边界约束)
|
|
24669
|
+
// 计算位置坐标(纯计算,不依赖DOM,包含边界约束)
|
|
24670
|
+
/**
|
|
24671
|
+
* @private
|
|
24672
|
+
* @param {?} triggerRect
|
|
24673
|
+
* @param {?} placement
|
|
24674
|
+
* @param {?} position
|
|
24675
|
+
* @param {?} popupSize
|
|
24676
|
+
* @return {?}
|
|
24677
|
+
*/
|
|
24678
|
+
SmartPopupComponent.prototype.calculatePositionCoordinates =
|
|
24679
|
+
// 计算位置坐标(纯计算,不依赖DOM,包含边界约束)
|
|
24680
|
+
/**
|
|
24681
|
+
* @private
|
|
24682
|
+
* @param {?} triggerRect
|
|
24683
|
+
* @param {?} placement
|
|
24684
|
+
* @param {?} position
|
|
24685
|
+
* @param {?} popupSize
|
|
24686
|
+
* @return {?}
|
|
24687
|
+
*/
|
|
24688
|
+
function (triggerRect, placement, position, popupSize) {
|
|
24689
|
+
/** @type {?} */
|
|
24690
|
+
var triggerWidth = triggerRect.width;
|
|
24691
|
+
/** @type {?} */
|
|
24692
|
+
var triggerHeight = triggerRect.height;
|
|
24693
|
+
/** @type {?} */
|
|
24694
|
+
var viewportWidth = window.innerWidth;
|
|
24695
|
+
/** @type {?} */
|
|
24696
|
+
var viewportHeight = window.innerHeight;
|
|
24697
|
+
/** @type {?} */
|
|
24698
|
+
var scrollX = window.scrollX;
|
|
24699
|
+
/** @type {?} */
|
|
24700
|
+
var scrollY = window.scrollY;
|
|
24701
|
+
/** @type {?} */
|
|
24702
|
+
var top = 0;
|
|
24703
|
+
/** @type {?} */
|
|
24704
|
+
var left = 0;
|
|
24705
|
+
/** @type {?} */
|
|
24706
|
+
var translateX = "0";
|
|
24707
|
+
/** @type {?} */
|
|
24708
|
+
var translateY = "0";
|
|
24709
|
+
switch (placement) {
|
|
24710
|
+
case "top":
|
|
24711
|
+
top = triggerRect.top + scrollY - this.offset;
|
|
24712
|
+
translateY = "-100%";
|
|
24713
|
+
if (position === "start") {
|
|
24714
|
+
left = triggerRect.left + scrollX;
|
|
24715
|
+
}
|
|
24716
|
+
else if (position === "center") {
|
|
24717
|
+
left = triggerRect.left + scrollX + triggerWidth / 2;
|
|
24718
|
+
translateX = "-50%";
|
|
24719
|
+
}
|
|
24720
|
+
else {
|
|
24721
|
+
left = triggerRect.left + scrollX + triggerWidth;
|
|
24722
|
+
translateX = "-100%";
|
|
24723
|
+
}
|
|
24724
|
+
// 边界约束:确保弹窗不超出视口
|
|
24725
|
+
if (top - popupSize.height < scrollY) {
|
|
24726
|
+
top = scrollY + 8; // 距离顶部至少8px
|
|
24727
|
+
}
|
|
24728
|
+
if (left < scrollX) {
|
|
24729
|
+
left = scrollX + 8;
|
|
24730
|
+
translateX = "0";
|
|
24731
|
+
}
|
|
24732
|
+
else if (left + popupSize.width > scrollX + viewportWidth) {
|
|
24733
|
+
left = scrollX + viewportWidth - popupSize.width - 8;
|
|
24734
|
+
translateX = "0";
|
|
24735
|
+
}
|
|
24736
|
+
break;
|
|
24737
|
+
case "bottom":
|
|
24738
|
+
top = triggerRect.bottom + scrollY + this.offset;
|
|
24739
|
+
if (position === "start") {
|
|
24740
|
+
left = triggerRect.left + scrollX;
|
|
24741
|
+
}
|
|
24742
|
+
else if (position === "center") {
|
|
24743
|
+
left = triggerRect.left + scrollX + triggerWidth / 2;
|
|
24744
|
+
translateX = "-50%";
|
|
24745
|
+
}
|
|
24746
|
+
else {
|
|
24747
|
+
left = triggerRect.left + scrollX + triggerWidth;
|
|
24748
|
+
translateX = "-100%";
|
|
24749
|
+
}
|
|
24750
|
+
// 边界约束:确保弹窗不超出视口
|
|
24751
|
+
if (top + popupSize.height > scrollY + viewportHeight) {
|
|
24752
|
+
top = scrollY + viewportHeight - popupSize.height - 8; // 距离底部至少8px
|
|
24753
|
+
}
|
|
24754
|
+
if (left < scrollX) {
|
|
24755
|
+
left = scrollX + 8;
|
|
24756
|
+
translateX = "0";
|
|
24757
|
+
}
|
|
24758
|
+
else if (left + popupSize.width > scrollX + viewportWidth) {
|
|
24759
|
+
left = scrollX + viewportWidth - popupSize.width - 8;
|
|
24760
|
+
translateX = "0";
|
|
24761
|
+
}
|
|
24762
|
+
break;
|
|
24763
|
+
case "left":
|
|
24764
|
+
left = triggerRect.left + scrollX - this.offset;
|
|
24765
|
+
translateX = "-100%";
|
|
24766
|
+
if (position === "start") {
|
|
24767
|
+
top = triggerRect.top + scrollY;
|
|
24768
|
+
}
|
|
24769
|
+
else if (position === "center") {
|
|
24770
|
+
top = triggerRect.top + scrollY + triggerHeight / 2;
|
|
24771
|
+
translateY = "-50%";
|
|
24772
|
+
}
|
|
24773
|
+
else {
|
|
24774
|
+
top = triggerRect.top + scrollY + triggerHeight;
|
|
24775
|
+
translateY = "-100%";
|
|
24776
|
+
}
|
|
24777
|
+
// 边界约束:确保弹窗不超出视口
|
|
24778
|
+
if (left - popupSize.width < scrollX) {
|
|
24779
|
+
left = scrollX + 8; // 距离左侧至少8px
|
|
24780
|
+
}
|
|
24781
|
+
if (top < scrollY) {
|
|
24782
|
+
top = scrollY + 8;
|
|
24783
|
+
translateY = "0";
|
|
24784
|
+
}
|
|
24785
|
+
else if (top + popupSize.height > scrollY + viewportHeight) {
|
|
24786
|
+
top = scrollY + viewportHeight - popupSize.height - 8;
|
|
24787
|
+
translateY = "0";
|
|
24788
|
+
}
|
|
24789
|
+
break;
|
|
24790
|
+
case "right":
|
|
24791
|
+
left = triggerRect.right + scrollX + this.offset;
|
|
24792
|
+
if (position === "start") {
|
|
24793
|
+
top = triggerRect.top + scrollY;
|
|
24794
|
+
}
|
|
24795
|
+
else if (position === "center") {
|
|
24796
|
+
top = triggerRect.top + scrollY + triggerHeight / 2;
|
|
24797
|
+
translateY = "-50%";
|
|
24798
|
+
}
|
|
24799
|
+
else {
|
|
24800
|
+
top = triggerRect.top + scrollY + triggerHeight;
|
|
24801
|
+
translateY = "-100%";
|
|
24802
|
+
}
|
|
24803
|
+
// 边界约束:确保弹窗不超出视口
|
|
24804
|
+
if (left + popupSize.width > scrollX + viewportWidth) {
|
|
24805
|
+
left = scrollX + viewportWidth - popupSize.width - 8; // 距离右侧至少8px
|
|
24806
|
+
}
|
|
24807
|
+
if (top < scrollY) {
|
|
24808
|
+
top = scrollY + 8;
|
|
24809
|
+
translateY = "0";
|
|
24810
|
+
}
|
|
24811
|
+
else if (top + popupSize.height > scrollY + viewportHeight) {
|
|
24812
|
+
top = scrollY + viewportHeight - popupSize.height - 8;
|
|
24813
|
+
translateY = "0";
|
|
24814
|
+
}
|
|
24815
|
+
break;
|
|
24816
|
+
}
|
|
24817
|
+
return {
|
|
24818
|
+
top: top + "px",
|
|
24819
|
+
left: left + "px",
|
|
24820
|
+
translateX: translateX,
|
|
24821
|
+
translateY: translateY,
|
|
24822
|
+
};
|
|
24823
|
+
};
|
|
24824
|
+
/**
|
|
24825
|
+
* @param {?} triggerRect
|
|
24826
|
+
* @param {?} popupRect
|
|
24827
|
+
* @param {?} placement
|
|
24828
|
+
* @param {?} position
|
|
24829
|
+
* @param {?=} popupSize
|
|
24830
|
+
* @return {?}
|
|
24831
|
+
*/
|
|
24832
|
+
SmartPopupComponent.prototype.setPopupPosition = /**
|
|
24833
|
+
* @param {?} triggerRect
|
|
24834
|
+
* @param {?} popupRect
|
|
24835
|
+
* @param {?} placement
|
|
24836
|
+
* @param {?} position
|
|
24837
|
+
* @param {?=} popupSize
|
|
24838
|
+
* @return {?}
|
|
24839
|
+
*/
|
|
24840
|
+
function (triggerRect, popupRect, placement, position, popupSize) {
|
|
24841
|
+
/** @type {?} */
|
|
24842
|
+
var popupEl = this.popupElement && this.popupElement.nativeElement
|
|
24843
|
+
? this.popupElement.nativeElement
|
|
24844
|
+
: null;
|
|
24845
|
+
if (!popupEl) {
|
|
24846
|
+
return; // 如果元素还不存在,无法设置位置
|
|
24847
|
+
}
|
|
24848
|
+
// 优先使用传入的固定尺寸,否则从DOM获取
|
|
24849
|
+
/** @type {?} */
|
|
24850
|
+
var popupWidth = popupSize && popupSize.width !== null && popupSize.width !== undefined
|
|
24851
|
+
? popupSize.width
|
|
24852
|
+
: popupRect.width || popupEl.offsetWidth || 300;
|
|
24853
|
+
/** @type {?} */
|
|
24854
|
+
var popupHeight = popupSize && popupSize.height !== null && popupSize.height !== undefined
|
|
24855
|
+
? popupSize.height
|
|
24856
|
+
: popupRect.height || popupEl.offsetHeight || 200;
|
|
24857
|
+
/** @type {?} */
|
|
24858
|
+
var coordinates = this.calculatePositionCoordinates(triggerRect, placement, position, { width: popupWidth, height: popupHeight });
|
|
24859
|
+
popupEl.style.top = coordinates.top;
|
|
24860
|
+
popupEl.style.left = coordinates.left;
|
|
24861
|
+
popupEl.style.transform = "translate(" + coordinates.translateX + ", " + coordinates.translateY + ")";
|
|
24862
|
+
};
|
|
24863
|
+
/**
|
|
24864
|
+
* @return {?}
|
|
24865
|
+
*/
|
|
24866
|
+
SmartPopupComponent.prototype.onWindowResize = /**
|
|
24867
|
+
* @return {?}
|
|
24868
|
+
*/
|
|
24869
|
+
function () {
|
|
24870
|
+
if (this.opened === "yes") {
|
|
24871
|
+
this.updatePopupPosition();
|
|
24872
|
+
}
|
|
24873
|
+
};
|
|
24874
|
+
SmartPopupComponent.decorators = [
|
|
24875
|
+
{ type: Component, args: [{
|
|
24876
|
+
selector: "rs-smart-popup",
|
|
24877
|
+
template: "<!-- \u89E6\u53D1\u5143\u7D20\u63D2\u69FD -->\r\n<ng-container #trigger>\r\n <ng-content select=\"[trigger]\"></ng-content>\r\n</ng-container>\r\n\r\n<!-- \u5F39\u7A97\u5185\u5BB9 -->\r\n<div\r\n #popup\r\n class=\"rs-smart-popup-content\"\r\n [attr.data-opened]=\"opened\"\r\n [attr.data-positioning]=\"positioning\"\r\n (wheel)=\"onPopupWheel($event)\"\r\n (scroll)=\"onPopupScroll($event)\"\r\n>\r\n <div *ngIf=\"loading\" class=\"rs-smart-popup-loading\">\r\n <div class=\"loading-spinner\"></div>\r\n </div>\r\n <div *ngIf=\"!loading\" class=\"rs-smart-popup-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n\r\n",
|
|
24878
|
+
styles: [".rs-smart-popup-trigger{display:inline-block;cursor:pointer}::ng-deep #rs-smart-popup-fixed-container{width:0;height:0;z-index:100000;pointer-events:none}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content{pointer-events:auto;position:fixed;z-index:100001;padding:8px;border-radius:8px;background:#fff;box-shadow:0 0 8px 0 rgba(0,0,0,.25);min-width:200px;max-width:400px;max-height:500px;overflow:auto}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content[data-opened=no]{display:none}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content[data-opened=yes]{display:block}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content[data-opened=yes][data-positioning=yes]{display:none!important}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content[data-opened=yes][data-positioning=no]{display:block;visibility:visible;opacity:1;pointer-events:auto;-webkit-animation:.2s ease-out popup-fade-in;animation:.2s ease-out popup-fade-in}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content .rs-smart-popup-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;min-height:100px}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content .rs-smart-popup-loading .loading-spinner{width:24px;height:24px;border:3px solid #f3f3f3;border-top:3px solid #3498db;border-radius:50%;-webkit-animation:1s linear infinite spin;animation:1s linear infinite spin;margin-bottom:12px}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content .rs-smart-popup-loading .loading-text{color:#666;font-size:14px}@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}::ng-deep #rs-smart-popup-fixed-container .rs-smart-popup-content .rs-smart-popup-body{width:100%}@-webkit-keyframes popup-fade-in{from{opacity:0;transform:translate(var(--translate-x,0),var(--translate-y,0)) scale(.95)}to{opacity:1;transform:translate(var(--translate-x,0),var(--translate-y,0)) scale(1)}}@keyframes popup-fade-in{from{opacity:0;transform:translate(var(--translate-x,0),var(--translate-y,0)) scale(.95)}to{opacity:1;transform:translate(var(--translate-x,0),var(--translate-y,0)) scale(1)}}"]
|
|
24879
|
+
}] }
|
|
24880
|
+
];
|
|
24881
|
+
/** @nocollapse */
|
|
24882
|
+
SmartPopupComponent.ctorParameters = function () { return [
|
|
24883
|
+
{ type: ChangeDetectorRef }
|
|
24884
|
+
]; };
|
|
24885
|
+
SmartPopupComponent.propDecorators = {
|
|
24886
|
+
_placement: [{ type: Input, args: ["placement",] }],
|
|
24887
|
+
_offset: [{ type: Input, args: ["offset",] }],
|
|
24888
|
+
_autoAdjust: [{ type: Input, args: ["autoAdjust",] }],
|
|
24889
|
+
triggerElementRef: [{ type: Input, args: ["triggerElement",] }],
|
|
24890
|
+
loading: [{ type: Input, args: ["loading",] }],
|
|
24891
|
+
_open: [{ type: Input, args: ["open",] }],
|
|
24892
|
+
_width: [{ type: Input, args: ["width",] }],
|
|
24893
|
+
_height: [{ type: Input, args: ["height",] }],
|
|
24894
|
+
openChange: [{ type: Output, args: ["openChange",] }],
|
|
24895
|
+
contentLoad: [{ type: Output, args: ["contentLoad",] }],
|
|
24896
|
+
internalTriggerElement: [{ type: ViewChild, args: ["trigger", { static: false },] }],
|
|
24897
|
+
popupElement: [{ type: ViewChild, args: ["popup", { static: false },] }],
|
|
24898
|
+
onWindowResize: [{ type: HostListener, args: ["window:resize",] }]
|
|
24899
|
+
};
|
|
24900
|
+
return SmartPopupComponent;
|
|
24901
|
+
}());
|
|
24902
|
+
if (false) {
|
|
24903
|
+
/** @type {?} */
|
|
24904
|
+
SmartPopupComponent.prototype._placement;
|
|
24905
|
+
/** @type {?} */
|
|
24906
|
+
SmartPopupComponent.prototype._offset;
|
|
24907
|
+
/** @type {?} */
|
|
24908
|
+
SmartPopupComponent.prototype._autoAdjust;
|
|
24909
|
+
/** @type {?} */
|
|
24910
|
+
SmartPopupComponent.prototype.triggerElementRef;
|
|
24911
|
+
/** @type {?} */
|
|
24912
|
+
SmartPopupComponent.prototype.loading;
|
|
24913
|
+
/** @type {?} */
|
|
24914
|
+
SmartPopupComponent.prototype._open;
|
|
24915
|
+
/** @type {?} */
|
|
24916
|
+
SmartPopupComponent.prototype._width;
|
|
24917
|
+
/** @type {?} */
|
|
24918
|
+
SmartPopupComponent.prototype._height;
|
|
24919
|
+
/** @type {?} */
|
|
24920
|
+
SmartPopupComponent.prototype.openChange;
|
|
24921
|
+
/** @type {?} */
|
|
24922
|
+
SmartPopupComponent.prototype.contentLoad;
|
|
24923
|
+
/** @type {?} */
|
|
24924
|
+
SmartPopupComponent.prototype.internalTriggerElement;
|
|
24925
|
+
/** @type {?} */
|
|
24926
|
+
SmartPopupComponent.prototype.popupElement;
|
|
24927
|
+
/** @type {?} */
|
|
24928
|
+
SmartPopupComponent.prototype.currentTriggerElement;
|
|
24929
|
+
/** @type {?} */
|
|
24930
|
+
SmartPopupComponent.prototype.FIXED_CONTAINER_ID;
|
|
24931
|
+
/** @type {?} */
|
|
24932
|
+
SmartPopupComponent.prototype.fixedContainerEl;
|
|
24933
|
+
/** @type {?} */
|
|
24934
|
+
SmartPopupComponent.prototype.opened;
|
|
24935
|
+
/** @type {?} */
|
|
24936
|
+
SmartPopupComponent.prototype.positioning;
|
|
24937
|
+
/** @type {?} */
|
|
24938
|
+
SmartPopupComponent.prototype.actualPlacement;
|
|
24939
|
+
/** @type {?} */
|
|
24940
|
+
SmartPopupComponent.prototype.actualPosition;
|
|
24941
|
+
/** @type {?} */
|
|
24942
|
+
SmartPopupComponent.prototype.onClickOutside;
|
|
24943
|
+
/** @type {?} */
|
|
24944
|
+
SmartPopupComponent.prototype.onWindowScroll;
|
|
24945
|
+
/**
|
|
24946
|
+
* @type {?}
|
|
24947
|
+
* @private
|
|
24948
|
+
*/
|
|
24949
|
+
SmartPopupComponent.prototype.ref;
|
|
24950
|
+
}
|
|
24951
|
+
|
|
23747
24952
|
/**
|
|
23748
24953
|
* @fileoverview added by tsickle
|
|
23749
24954
|
* Generated from: lib/dashboard/dashboard.service.ts
|
|
@@ -51813,6 +53018,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
51813
53018
|
RSNavCardGroupComponent,
|
|
51814
53019
|
RSToolbarComponent,
|
|
51815
53020
|
TruncatedTextToggleComponent,
|
|
53021
|
+
SmartPopupComponent,
|
|
51816
53022
|
RSStepperComponent,
|
|
51817
53023
|
PaneGroupNewComponent,
|
|
51818
53024
|
SidebarIconlistNewComponent,
|
|
@@ -51995,6 +53201,7 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
51995
53201
|
RSNavCardGroupComponent,
|
|
51996
53202
|
RSToolbarComponent,
|
|
51997
53203
|
TruncatedTextToggleComponent,
|
|
53204
|
+
SmartPopupComponent,
|
|
51998
53205
|
CommonDialogComponent,
|
|
51999
53206
|
RSStepperComponent,
|
|
52000
53207
|
PaneGroupNewComponent,
|
|
@@ -52036,5 +53243,5 @@ var RaiseCommonLibModule = /** @class */ (function () {
|
|
|
52036
53243
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
52037
53244
|
*/
|
|
52038
53245
|
|
|
52039
|
-
export { API_SERVICE_TOKEN, CheckboxGroupComponent, CommonDialogComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, PBF_TOKEN, PaneGroupNewComponent, ROLE_SERVICE_TOKEN, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSStepperComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SearchInputComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, DashboardService as ɵb, ApiList as ɵc, DashboardPorletsService as ɵd, debounce as ɵe, RichtexteditorComponent as ɵf, ConfirmSelectComponent as ɵg, NewActionNotificationComponent as ɵh, CommonDeleteComponent as ɵi, SidebarIconlistNewComponent as ɵj, EmptyIconPromptComponent as ɵk, GadgetTableComponent as ɵl, GadgetPivotComponent as ɵm, GadgetPivotChartComponent as ɵn, GadgetTransposeComponent as ɵo, PortletTypeNewComponent as ɵp, FieldFilterComponent as ɵq, FieldFormatComponent as ɵr, DataMartNewComponent as ɵs, BarChartsComponent as ɵt, PaneDownloadComponent as ɵu };
|
|
53246
|
+
export { API_SERVICE_TOKEN, CheckboxGroupComponent, CommonDialogComponent, CommonFunctionService, CommonGridComponent, DefaultDrawerConfig, DialogService, DrawerComponent, DrawerFormComponent, DrawerService, EmailPattern, EncryptedInputComponent, FloatBoxComponent, GridActionComponent, GridActionItemComponent, GridBoxComponent, IconLoaderService, KeepAliveService, MainContainerComponent, MessageType, MultiTabComponent, PBF_TOKEN, PaneGroupNewComponent, ROLE_SERVICE_TOKEN, RSAsideComponent, RSFooterComponent, RSHeaderComponent, RSNavCardGroupComponent, RSStepperComponent, RSToolbarComponent, RadioGroupComponent, RaiseCommonLibModule, RsCommentaryComponent, RsPageListComponent, RsPageTabComponent, SearchInputComponent, SmartPopupComponent, SwitchInputComponent, TagInputComponent, ToolbarItemComponent, TranslationService, TruncatedTextToggleComponent, filterShowSection, Debounce as ɵa, DashboardService as ɵb, ApiList as ɵc, DashboardPorletsService as ɵd, debounce as ɵe, RichtexteditorComponent as ɵf, ConfirmSelectComponent as ɵg, NewActionNotificationComponent as ɵh, CommonDeleteComponent as ɵi, SidebarIconlistNewComponent as ɵj, EmptyIconPromptComponent as ɵk, GadgetTableComponent as ɵl, GadgetPivotComponent as ɵm, GadgetPivotChartComponent as ɵn, GadgetTransposeComponent as ɵo, PortletTypeNewComponent as ɵp, FieldFilterComponent as ɵq, FieldFormatComponent as ɵr, DataMartNewComponent as ɵs, BarChartsComponent as ɵt, PaneDownloadComponent as ɵu };
|
|
52040
53247
|
//# sourceMappingURL=raise-common-lib.js.map
|