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.
Files changed (55) hide show
  1. package/README.md +57 -57
  2. package/bundles/raise-common-lib.umd.js +1208 -0
  3. package/bundles/raise-common-lib.umd.js.map +1 -1
  4. package/bundles/raise-common-lib.umd.min.js +1 -1
  5. package/bundles/raise-common-lib.umd.min.js.map +1 -1
  6. package/esm2015/lib/raise-common-lib.module.js +4 -1
  7. package/esm2015/lib/smart-popup/index.component.js +1089 -0
  8. package/esm2015/public-api.js +2 -1
  9. package/esm2015/raise-common-lib.js +2 -2
  10. package/esm5/lib/raise-common-lib.module.js +4 -1
  11. package/esm5/lib/smart-popup/index.component.js +1208 -0
  12. package/esm5/public-api.js +2 -1
  13. package/esm5/raise-common-lib.js +2 -2
  14. package/fesm2015/raise-common-lib.js +1091 -1
  15. package/fesm2015/raise-common-lib.js.map +1 -1
  16. package/fesm5/raise-common-lib.js +1208 -1
  17. package/fesm5/raise-common-lib.js.map +1 -1
  18. package/lib/smart-popup/index.component.d.ts +57 -0
  19. package/package.json +1 -1
  20. package/public-api.d.ts +1 -0
  21. package/raise-common-lib.metadata.json +1 -1
  22. package/src/assets/img/arrow_right.svg +4 -4
  23. package/src/assets/img/calendar-disabled.svg +6 -6
  24. package/src/assets/img/calendar.svg +6 -6
  25. package/src/assets/img/calendar_arrow_left.svg +3 -3
  26. package/src/assets/img/calendar_arrow_right.svg +3 -3
  27. package/src/assets/img/checked-vector.svg +3 -3
  28. package/src/assets/img/dialog-close.svg +4 -4
  29. package/src/assets/img/dialog-grow.svg +6 -6
  30. package/src/assets/img/dialog-shrink.svg +6 -6
  31. package/src/assets/img/plus.svg +4 -4
  32. package/src/assets/img/search.svg +4 -4
  33. package/src/assets/img/shrink-icon.svg +6 -6
  34. package/src/assets/img/time-disabled.svg +4 -4
  35. package/src/assets/img/time.svg +4 -4
  36. package/src/assets/img/toolbar-action-addFolder.svg +17 -17
  37. package/src/assets/img/toolbar-action-calculator.svg +11 -11
  38. package/src/assets/img/toolbar-action-collapse.svg +7 -7
  39. package/src/assets/img/toolbar-action-combine.svg +4 -4
  40. package/src/assets/img/toolbar-action-edit.svg +4 -4
  41. package/src/assets/img/toolbar-action-expand.svg +7 -7
  42. package/src/assets/img/toolbar-action-folderMove.svg +8 -8
  43. package/src/assets/img/toolbar-action-lock.svg +6 -6
  44. package/src/assets/img/toolbar-action-preview.svg +7 -7
  45. package/src/assets/img/toolbar-action-publish.svg +5 -5
  46. package/src/assets/img/toolbar-action-reminders.svg +10 -10
  47. package/src/assets/img/toolbar-action-rename.svg +7 -7
  48. package/src/assets/img/toolbar-action-saveSequence.svg +5 -5
  49. package/src/assets/img/toolbar-action-send-file.svg +5 -5
  50. package/src/assets/img/toolbar-action-settle.svg +7 -7
  51. package/src/assets/img/toolbar-action-share.svg +5 -5
  52. package/src/assets/img/toolbar-action-submitForApproval.svg +4 -4
  53. package/src/assets/img/toolbar-action-sync.svg +4 -4
  54. package/src/assets/img/toolbar-action-template.svg +6 -6
  55. package/src/assets/img/toolbar-action-workflow.svg +9 -9
@@ -22722,6 +22722,1094 @@ if (false) {
22722
22722
  CommonDialogComponent.prototype.dialogRef;
22723
22723
  }
22724
22724
 
22725
+ /**
22726
+ * @fileoverview added by tsickle
22727
+ * Generated from: lib/smart-popup/index.component.ts
22728
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22729
+ */
22730
+ class SmartPopupComponent {
22731
+ /**
22732
+ * @param {?} ref
22733
+ */
22734
+ constructor(ref) {
22735
+ this.ref = ref;
22736
+ this._placement = "BottomLeft";
22737
+ this._offset = 8;
22738
+ this._autoAdjust = "yes";
22739
+ this.triggerElementRef = null;
22740
+ this.loading = false;
22741
+ this._open = false;
22742
+ this._width = null;
22743
+ this._height = null;
22744
+ this.openChange = new EventEmitter();
22745
+ this.contentLoad = new EventEmitter();
22746
+ this.currentTriggerElement = null;
22747
+ this.FIXED_CONTAINER_ID = "rs-smart-popup-fixed-container";
22748
+ this.opened = "no";
22749
+ this.positioning = "no";
22750
+ this.actualPlacement = "bottom";
22751
+ this.actualPosition = "start";
22752
+ this.onClickOutside = (/**
22753
+ * @param {?} event
22754
+ * @return {?}
22755
+ */
22756
+ (event) => {
22757
+ /** @type {?} */
22758
+ const target = (/** @type {?} */ (event.target));
22759
+ /** @type {?} */
22760
+ const isClickOnTrigger = this.currentTriggerElement && this.currentTriggerElement.contains(target);
22761
+ /** @type {?} */
22762
+ const isClickOnPopup = this.popupElement &&
22763
+ this.popupElement.nativeElement &&
22764
+ this.popupElement.nativeElement.contains(target);
22765
+ if (!isClickOnTrigger && !isClickOnPopup) {
22766
+ this.close();
22767
+ }
22768
+ });
22769
+ this.onWindowScroll = (/**
22770
+ * @param {?} event
22771
+ * @return {?}
22772
+ */
22773
+ (event) => {
22774
+ if (this.opened === "yes") {
22775
+ // 检查滚动是否发生在弹窗内部
22776
+ /** @type {?} */
22777
+ const target = (/** @type {?} */ (event.target));
22778
+ /** @type {?} */
22779
+ const isScrollOnPopup = this.popupElement &&
22780
+ this.popupElement.nativeElement &&
22781
+ this.popupElement.nativeElement.contains(target);
22782
+ // 如果滚动发生在弹窗内部,不更新位置(避免不必要的计算)
22783
+ // 如果滚动发生在外部,更新位置(因为触发元素位置可能改变)
22784
+ if (!isScrollOnPopup) {
22785
+ this.updatePopupPosition();
22786
+ }
22787
+ }
22788
+ });
22789
+ }
22790
+ // 解析placement格式
22791
+ /**
22792
+ * @return {?}
22793
+ */
22794
+ get placementInfo() {
22795
+ /** @type {?} */
22796
+ const placementMap = {
22797
+ TopLeft: { placement: "top", position: "start" },
22798
+ TopCenter: { placement: "top", position: "center" },
22799
+ TopRight: { placement: "top", position: "end" },
22800
+ BottomLeft: { placement: "bottom", position: "start" },
22801
+ BottomCenter: { placement: "bottom", position: "center" },
22802
+ BottomRight: { placement: "bottom", position: "end" },
22803
+ LeftTop: { placement: "left", position: "start" },
22804
+ LeftCenter: { placement: "left", position: "center" },
22805
+ LeftBottom: { placement: "left", position: "end" },
22806
+ RightTop: { placement: "right", position: "start" },
22807
+ RightCenter: { placement: "right", position: "center" },
22808
+ RightBottom: { placement: "right", position: "end" },
22809
+ };
22810
+ return (placementMap[this._placement] || {
22811
+ placement: "bottom",
22812
+ position: "start",
22813
+ });
22814
+ }
22815
+ /**
22816
+ * @return {?}
22817
+ */
22818
+ get offset() {
22819
+ return this._offset || 8;
22820
+ }
22821
+ /**
22822
+ * @return {?}
22823
+ */
22824
+ get autoAdjust() {
22825
+ return this._autoAdjust === "yes";
22826
+ }
22827
+ /**
22828
+ * @return {?}
22829
+ */
22830
+ ngAfterViewInit() {
22831
+ this.fixedContainerEl = this.getFixedContainer();
22832
+ this.fixedContainerEl.append(this.popupElement.nativeElement);
22833
+ this.updateTriggerElement();
22834
+ // 如果提供了固定尺寸,立即应用
22835
+ if (this._width !== null &&
22836
+ this._height !== null &&
22837
+ this.popupElement &&
22838
+ this.popupElement.nativeElement) {
22839
+ /** @type {?} */
22840
+ const popupEl = this.popupElement.nativeElement;
22841
+ popupEl.style.width = this._width + "px";
22842
+ popupEl.style.height = this._height + "px";
22843
+ popupEl.style.minWidth = this._width + "px";
22844
+ popupEl.style.maxWidth = this._width + "px";
22845
+ popupEl.style.minHeight = this._height + "px";
22846
+ popupEl.style.maxHeight = this._height + "px";
22847
+ }
22848
+ // 如果外部传入 open 属性为 true,自动打开
22849
+ if (this._open) {
22850
+ setTimeout((/**
22851
+ * @return {?}
22852
+ */
22853
+ () => this.open()), 0);
22854
+ }
22855
+ }
22856
+ /**
22857
+ * @param {?} changes
22858
+ * @return {?}
22859
+ */
22860
+ ngOnChanges(changes) {
22861
+ // 处理固定尺寸变化
22862
+ if ((changes._width || changes._height) &&
22863
+ this.popupElement &&
22864
+ this.popupElement.nativeElement) {
22865
+ /** @type {?} */
22866
+ const popupEl = this.popupElement.nativeElement;
22867
+ if (this._width !== null) {
22868
+ popupEl.style.width = this._width + "px";
22869
+ popupEl.style.minWidth = this._width + "px";
22870
+ popupEl.style.maxWidth = this._width + "px";
22871
+ }
22872
+ if (this._height !== null) {
22873
+ popupEl.style.height = this._height + "px";
22874
+ popupEl.style.minHeight = this._height + "px";
22875
+ popupEl.style.maxHeight = this._height + "px";
22876
+ }
22877
+ }
22878
+ // 先处理触发元素变化(确保在打开前更新触发元素)
22879
+ if (changes.triggerElementRef) {
22880
+ /** @type {?} */
22881
+ const previousTrigger = this.currentTriggerElement;
22882
+ this.updateTriggerElement();
22883
+ // 如果弹窗已经打开,且触发元素发生了变化,立即更新位置
22884
+ if (this.opened === "yes" &&
22885
+ previousTrigger !== this.currentTriggerElement &&
22886
+ this.currentTriggerElement) {
22887
+ // 使用新的打开方式更新位置
22888
+ this.positioning = "yes";
22889
+ this.ref.markForCheck();
22890
+ requestAnimationFrame((/**
22891
+ * @return {?}
22892
+ */
22893
+ () => {
22894
+ requestAnimationFrame((/**
22895
+ * @return {?}
22896
+ */
22897
+ () => {
22898
+ this.updatePopupPosition();
22899
+ this.positioning = "no";
22900
+ this.ref.markForCheck();
22901
+ }));
22902
+ }));
22903
+ }
22904
+ }
22905
+ // 处理 open 变化(确保在触发元素更新后处理)
22906
+ if (changes._open) {
22907
+ if (this._open && this.opened === "no") {
22908
+ // 确保触发元素已更新
22909
+ this.updateTriggerElement();
22910
+ // 使用 setTimeout 确保所有变更都已处理
22911
+ setTimeout((/**
22912
+ * @return {?}
22913
+ */
22914
+ () => {
22915
+ // 再次确保触发元素已更新
22916
+ this.updateTriggerElement();
22917
+ this.open();
22918
+ }), 0);
22919
+ }
22920
+ else if (!this._open && this.opened === "yes") {
22921
+ this.close();
22922
+ }
22923
+ }
22924
+ // 当加载完成时,更新位置(如果提供了固定尺寸,不需要更新位置)
22925
+ if (changes.loading &&
22926
+ !changes.loading.currentValue &&
22927
+ changes.loading.previousValue) {
22928
+ if (this.opened === "yes") {
22929
+ // 如果提供了固定尺寸,位置已经计算好了,不需要更新
22930
+ if (this._width !== null && this._height !== null) {
22931
+ this.contentLoad.emit();
22932
+ }
22933
+ else {
22934
+ // 如果正在定位,不需要更新位置
22935
+ if (this.positioning === "no") {
22936
+ requestAnimationFrame((/**
22937
+ * @return {?}
22938
+ */
22939
+ () => {
22940
+ this.updatePopupPosition();
22941
+ this.contentLoad.emit();
22942
+ }));
22943
+ }
22944
+ else {
22945
+ // 如果正在定位,等待定位完成后再触发事件
22946
+ /** @type {?} */
22947
+ const checkPositioning = (/**
22948
+ * @return {?}
22949
+ */
22950
+ () => {
22951
+ if (this.positioning === "no") {
22952
+ this.contentLoad.emit();
22953
+ }
22954
+ else {
22955
+ setTimeout(checkPositioning, 10);
22956
+ }
22957
+ });
22958
+ checkPositioning();
22959
+ }
22960
+ }
22961
+ }
22962
+ }
22963
+ }
22964
+ /**
22965
+ * @return {?}
22966
+ */
22967
+ ngOnDestroy() {
22968
+ if (this.popupElement && this.popupElement.nativeElement) {
22969
+ this.popupElement.nativeElement.remove();
22970
+ }
22971
+ window.removeEventListener("click", this.onClickOutside);
22972
+ window.removeEventListener("scroll", this.onWindowScroll, true);
22973
+ }
22974
+ /**
22975
+ * @return {?}
22976
+ */
22977
+ updateTriggerElement() {
22978
+ if (this.triggerElementRef) {
22979
+ this.currentTriggerElement = this.triggerElementRef;
22980
+ }
22981
+ else if (this.internalTriggerElement &&
22982
+ this.internalTriggerElement.nativeElement) {
22983
+ this.currentTriggerElement = this.internalTriggerElement.nativeElement;
22984
+ }
22985
+ else {
22986
+ this.currentTriggerElement = null;
22987
+ }
22988
+ }
22989
+ /**
22990
+ * @return {?}
22991
+ */
22992
+ getFixedContainer() {
22993
+ /** @type {?} */
22994
+ let containerElement = document.getElementById(this.FIXED_CONTAINER_ID);
22995
+ if (!containerElement) {
22996
+ containerElement = document.createElement("div");
22997
+ containerElement.setAttribute("id", this.FIXED_CONTAINER_ID);
22998
+ document.body.append(containerElement);
22999
+ }
23000
+ return containerElement;
23001
+ }
23002
+ /**
23003
+ * @param {?=} triggerElement
23004
+ * @return {?}
23005
+ */
23006
+ open(triggerElement) {
23007
+ // 如果传入了触发元素,使用它
23008
+ if (triggerElement) {
23009
+ this.currentTriggerElement = triggerElement;
23010
+ }
23011
+ else {
23012
+ this.updateTriggerElement();
23013
+ }
23014
+ if (!this.currentTriggerElement) {
23015
+ console.warn("SmartPopupComponent: No trigger element found");
23016
+ return;
23017
+ }
23018
+ // 如果已经打开,先关闭再打开(更新位置)
23019
+ if (this.opened === "yes") {
23020
+ // 先关闭弹窗
23021
+ this.opened = "no";
23022
+ this.positioning = "no";
23023
+ this.ref.markForCheck();
23024
+ // 立即在新位置打开
23025
+ requestAnimationFrame((/**
23026
+ * @return {?}
23027
+ */
23028
+ () => {
23029
+ // 再次确保触发元素已更新
23030
+ this.updateTriggerElement();
23031
+ this.openPopup();
23032
+ }));
23033
+ return;
23034
+ }
23035
+ // 确保触发元素已更新
23036
+ this.updateTriggerElement();
23037
+ this.openPopup();
23038
+ }
23039
+ /**
23040
+ * @private
23041
+ * @return {?}
23042
+ */
23043
+ openPopup() {
23044
+ // 再次确保触发元素已更新
23045
+ this.updateTriggerElement();
23046
+ if (!this.currentTriggerElement) {
23047
+ console.warn("SmartPopupComponent: No trigger element found when opening popup");
23048
+ return;
23049
+ }
23050
+ // 如果提供了固定尺寸,可以在打开前就计算好位置
23051
+ if (this._width !== null && this._height !== null) {
23052
+ // 先计算位置(不依赖DOM渲染,直接根据triggerElement计算)
23053
+ /** @type {?} */
23054
+ const triggerRect = this.currentTriggerElement.getBoundingClientRect();
23055
+ /** @type {?} */
23056
+ const viewportWidth = window.innerWidth;
23057
+ /** @type {?} */
23058
+ const viewportHeight = window.innerHeight;
23059
+ /** @type {?} */
23060
+ const popupSize = {
23061
+ width: this._width,
23062
+ height: this._height,
23063
+ };
23064
+ /** @type {?} */
23065
+ const popupRect = (/** @type {?} */ ({
23066
+ width: popupSize.width,
23067
+ height: popupSize.height,
23068
+ top: 0,
23069
+ left: 0,
23070
+ right: popupSize.width,
23071
+ bottom: popupSize.height,
23072
+ x: 0,
23073
+ y: 0,
23074
+ toJSON: (/**
23075
+ * @return {?}
23076
+ */
23077
+ () => ({})),
23078
+ }));
23079
+ /** @type {?} */
23080
+ const targetInfo = this.placementInfo;
23081
+ /** @type {?} */
23082
+ let finalPlacement = targetInfo.placement;
23083
+ /** @type {?} */
23084
+ let finalPosition = targetInfo.position;
23085
+ if (this.autoAdjust) {
23086
+ /** @type {?} */
23087
+ const optimal = this.calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight);
23088
+ finalPlacement = optimal.placement;
23089
+ finalPosition = optimal.position;
23090
+ }
23091
+ this.actualPlacement = finalPlacement;
23092
+ this.actualPosition = finalPosition;
23093
+ // 计算位置坐标(不依赖DOM,直接计算)
23094
+ /** @type {?} */
23095
+ const position = this.calculatePositionCoordinates(triggerRect, finalPlacement, finalPosition, popupSize);
23096
+ // 先设置打开状态,但保持隐藏(positioning = yes)
23097
+ this.opened = "yes";
23098
+ this.positioning = "yes";
23099
+ this.openChange.emit(true);
23100
+ this.ref.markForCheck();
23101
+ // 强制更新视图,确保DOM已更新
23102
+ this.ref.detectChanges();
23103
+ // 如果元素已经存在,立即设置位置(不等待 requestAnimationFrame)
23104
+ if (this.popupElement && this.popupElement.nativeElement) {
23105
+ /** @type {?} */
23106
+ const popupEl = this.popupElement.nativeElement;
23107
+ // 立即设置尺寸和位置
23108
+ popupEl.style.width = this._width + "px";
23109
+ popupEl.style.height = this._height + "px";
23110
+ popupEl.style.minWidth = this._width + "px";
23111
+ popupEl.style.maxWidth = this._width + "px";
23112
+ popupEl.style.minHeight = this._height + "px";
23113
+ popupEl.style.maxHeight = this._height + "px";
23114
+ popupEl.style.top = position.top;
23115
+ popupEl.style.left = position.left;
23116
+ popupEl.style.transform = `translate(${position.translateX}, ${position.translateY})`;
23117
+ // 强制同步应用样式
23118
+ popupEl.offsetHeight;
23119
+ // 位置设置完成后,立即显示弹窗
23120
+ this.positioning = "no";
23121
+ this.ref.markForCheck();
23122
+ }
23123
+ else {
23124
+ // 如果元素还不存在,等待渲染
23125
+ requestAnimationFrame((/**
23126
+ * @return {?}
23127
+ */
23128
+ () => {
23129
+ if (this.popupElement && this.popupElement.nativeElement) {
23130
+ /** @type {?} */
23131
+ const popupEl = this.popupElement.nativeElement;
23132
+ // 立即设置尺寸和位置
23133
+ popupEl.style.width = this._width + "px";
23134
+ popupEl.style.height = this._height + "px";
23135
+ popupEl.style.minWidth = this._width + "px";
23136
+ popupEl.style.maxWidth = this._width + "px";
23137
+ popupEl.style.minHeight = this._height + "px";
23138
+ popupEl.style.maxHeight = this._height + "px";
23139
+ popupEl.style.top = position.top;
23140
+ popupEl.style.left = position.left;
23141
+ popupEl.style.transform = `translate(${position.translateX}, ${position.translateY})`;
23142
+ // 强制同步应用样式
23143
+ popupEl.offsetHeight;
23144
+ // 位置设置完成后,立即显示弹窗
23145
+ this.positioning = "no";
23146
+ this.ref.markForCheck();
23147
+ }
23148
+ }));
23149
+ }
23150
+ }
23151
+ else {
23152
+ // 没有固定尺寸,需要等待DOM渲染
23153
+ this.positioning = "yes";
23154
+ this.ref.markForCheck();
23155
+ // 立即强制更新视图,确保DOM已更新
23156
+ this.ref.detectChanges();
23157
+ // 使用 requestAnimationFrame 确保在浏览器渲染之前更新位置
23158
+ requestAnimationFrame((/**
23159
+ * @return {?}
23160
+ */
23161
+ () => {
23162
+ // 确保元素已渲染并获取尺寸
23163
+ if (this.popupElement && this.popupElement.nativeElement) {
23164
+ // 强制重新计算布局,确保元素尺寸已计算
23165
+ this.popupElement.nativeElement.offsetHeight;
23166
+ // 计算并设置位置
23167
+ this.updatePopupPosition();
23168
+ // 位置设置完成后,移除定位状态,显示弹窗
23169
+ this.positioning = "no";
23170
+ this.ref.markForCheck();
23171
+ }
23172
+ }));
23173
+ }
23174
+ window.addEventListener("click", this.onClickOutside);
23175
+ window.addEventListener("scroll", this.onWindowScroll, true);
23176
+ }
23177
+ /**
23178
+ * @return {?}
23179
+ */
23180
+ close() {
23181
+ if (this.opened === "no") {
23182
+ return;
23183
+ }
23184
+ this.opened = "no";
23185
+ this.positioning = "no";
23186
+ this.openChange.emit(false);
23187
+ window.removeEventListener("click", this.onClickOutside);
23188
+ window.removeEventListener("scroll", this.onWindowScroll, true);
23189
+ this.ref.markForCheck();
23190
+ }
23191
+ /**
23192
+ * @return {?}
23193
+ */
23194
+ toggle() {
23195
+ if (this.opened === "yes") {
23196
+ this.close();
23197
+ }
23198
+ else {
23199
+ this.open();
23200
+ }
23201
+ }
23202
+ /**
23203
+ * @param {?} event
23204
+ * @return {?}
23205
+ */
23206
+ onClickTrigger(event) {
23207
+ event.stopPropagation();
23208
+ this.toggle();
23209
+ }
23210
+ // 处理弹窗内部的滚轮事件
23211
+ /**
23212
+ * @param {?} event
23213
+ * @return {?}
23214
+ */
23215
+ onPopupWheel(event) {
23216
+ // 阻止滚轮事件冒泡,避免触发外部滚动处理
23217
+ event.stopPropagation();
23218
+ }
23219
+ // 处理弹窗内部的滚动事件
23220
+ /**
23221
+ * @param {?} event
23222
+ * @return {?}
23223
+ */
23224
+ onPopupScroll(event) {
23225
+ // 阻止滚动事件冒泡,避免触发外部滚动处理
23226
+ event.stopPropagation();
23227
+ }
23228
+ // 计算并设置位置(支持固定尺寸,可在打开前调用)
23229
+ /**
23230
+ * @private
23231
+ * @return {?}
23232
+ */
23233
+ calculateAndSetPosition() {
23234
+ if (!this.currentTriggerElement) {
23235
+ return;
23236
+ }
23237
+ /** @type {?} */
23238
+ const triggerRect = this.currentTriggerElement.getBoundingClientRect();
23239
+ /** @type {?} */
23240
+ const viewportWidth = window.innerWidth;
23241
+ /** @type {?} */
23242
+ const viewportHeight = window.innerHeight;
23243
+ // 获取弹窗尺寸(优先使用固定尺寸)
23244
+ /** @type {?} */
23245
+ const popupSize = {
23246
+ width: this._width !== null
23247
+ ? this._width
23248
+ : this.popupElement && this.popupElement.nativeElement
23249
+ ? this.popupElement.nativeElement.offsetWidth
23250
+ : 300,
23251
+ height: this._height !== null
23252
+ ? this._height
23253
+ : this.popupElement && this.popupElement.nativeElement
23254
+ ? this.popupElement.nativeElement.offsetHeight
23255
+ : 200,
23256
+ };
23257
+ // 创建虚拟的 popupRect(用于计算)
23258
+ /** @type {?} */
23259
+ const popupRect = (/** @type {?} */ ({
23260
+ width: popupSize.width,
23261
+ height: popupSize.height,
23262
+ top: 0,
23263
+ left: 0,
23264
+ right: popupSize.width,
23265
+ bottom: popupSize.height,
23266
+ x: 0,
23267
+ y: 0,
23268
+ toJSON: (/**
23269
+ * @return {?}
23270
+ */
23271
+ () => ({})),
23272
+ }));
23273
+ // 获取目标位置信息
23274
+ /** @type {?} */
23275
+ const targetInfo = this.placementInfo;
23276
+ /** @type {?} */
23277
+ let finalPlacement = targetInfo.placement;
23278
+ /** @type {?} */
23279
+ let finalPosition = targetInfo.position;
23280
+ if (this.autoAdjust) {
23281
+ /** @type {?} */
23282
+ const optimal = this.calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight);
23283
+ finalPlacement = optimal.placement;
23284
+ finalPosition = optimal.position;
23285
+ }
23286
+ this.actualPlacement = finalPlacement;
23287
+ this.actualPosition = finalPosition;
23288
+ // 立即设置位置(即使元素还没完全渲染,也要先设置位置)
23289
+ if (this.popupElement && this.popupElement.nativeElement) {
23290
+ this.setPopupPosition(triggerRect, popupRect, finalPlacement, finalPosition, popupSize);
23291
+ // 强制应用样式,确保位置立即生效
23292
+ this.ref.detectChanges();
23293
+ }
23294
+ else {
23295
+ // 如果元素还不存在,延迟设置位置
23296
+ setTimeout((/**
23297
+ * @return {?}
23298
+ */
23299
+ () => {
23300
+ if (this.popupElement && this.popupElement.nativeElement) {
23301
+ this.setPopupPosition(triggerRect, popupRect, finalPlacement, finalPosition, popupSize);
23302
+ this.ref.detectChanges();
23303
+ }
23304
+ }), 0);
23305
+ }
23306
+ this.ref.markForCheck();
23307
+ }
23308
+ /**
23309
+ * @return {?}
23310
+ */
23311
+ updatePopupPosition() {
23312
+ if (!this.currentTriggerElement ||
23313
+ !this.popupElement ||
23314
+ !this.popupElement.nativeElement) {
23315
+ return;
23316
+ }
23317
+ // 如果提供了固定尺寸,使用固定尺寸计算
23318
+ if (this._width !== null && this._height !== null) {
23319
+ this.calculateAndSetPosition();
23320
+ return;
23321
+ }
23322
+ /** @type {?} */
23323
+ const triggerRect = this.currentTriggerElement.getBoundingClientRect();
23324
+ /** @type {?} */
23325
+ const popupRect = this.popupElement.nativeElement.getBoundingClientRect();
23326
+ /** @type {?} */
23327
+ const viewportWidth = window.innerWidth;
23328
+ /** @type {?} */
23329
+ const viewportHeight = window.innerHeight;
23330
+ // 获取目标位置信息
23331
+ /** @type {?} */
23332
+ const targetInfo = this.placementInfo;
23333
+ /** @type {?} */
23334
+ let finalPlacement = targetInfo.placement;
23335
+ /** @type {?} */
23336
+ let finalPosition = targetInfo.position;
23337
+ if (this.autoAdjust) {
23338
+ /** @type {?} */
23339
+ const optimal = this.calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight);
23340
+ finalPlacement = optimal.placement;
23341
+ finalPosition = optimal.position;
23342
+ }
23343
+ this.actualPlacement = finalPlacement;
23344
+ this.actualPosition = finalPosition;
23345
+ this.setPopupPosition(triggerRect, popupRect, finalPlacement, finalPosition);
23346
+ this.ref.markForCheck();
23347
+ }
23348
+ /**
23349
+ * @param {?} triggerRect
23350
+ * @param {?} popupRect
23351
+ * @param {?} viewportWidth
23352
+ * @param {?} viewportHeight
23353
+ * @return {?}
23354
+ */
23355
+ calculateOptimalPlacement(triggerRect, popupRect, viewportWidth, viewportHeight) {
23356
+ /** @type {?} */
23357
+ const targetInfo = this.placementInfo;
23358
+ /** @type {?} */
23359
+ const preferred = targetInfo.placement;
23360
+ /** @type {?} */
23361
+ const preferredPosition = targetInfo.position;
23362
+ /** @type {?} */
23363
+ const space = {
23364
+ top: triggerRect.top,
23365
+ bottom: viewportHeight - triggerRect.bottom,
23366
+ left: triggerRect.left,
23367
+ right: viewportWidth - triggerRect.right,
23368
+ };
23369
+ /** @type {?} */
23370
+ const popupSize = {
23371
+ width: popupRect.width || 300,
23372
+ // 默认宽度,如果还没有渲染
23373
+ height: popupRect.height || 200,
23374
+ };
23375
+ // 检查首选位置是否有足够空间
23376
+ /** @type {?} */
23377
+ const hasEnoughSpace = (/**
23378
+ * @param {?} placement
23379
+ * @return {?}
23380
+ */
23381
+ (placement) => {
23382
+ switch (placement) {
23383
+ case "top":
23384
+ return space.top >= popupSize.height + this.offset;
23385
+ case "bottom":
23386
+ return space.bottom >= popupSize.height + this.offset;
23387
+ case "left":
23388
+ return space.left >= popupSize.width + this.offset;
23389
+ case "right":
23390
+ return space.right >= popupSize.width + this.offset;
23391
+ }
23392
+ });
23393
+ // 检查指定位置是否有足够空间
23394
+ /** @type {?} */
23395
+ const checkPositionSpace = (/**
23396
+ * @param {?} placement
23397
+ * @param {?} position
23398
+ * @return {?}
23399
+ */
23400
+ (placement, position) => {
23401
+ if (placement === "top" || placement === "bottom") {
23402
+ // 对于上下位置,检查水平对齐空间
23403
+ /** @type {?} */
23404
+ const popupWidth = popupSize.width;
23405
+ /** @type {?} */
23406
+ const spaceLeft = triggerRect.left;
23407
+ /** @type {?} */
23408
+ const spaceRight = viewportWidth - triggerRect.right;
23409
+ if (position === "center") {
23410
+ return spaceLeft >= popupWidth / 2 && spaceRight >= popupWidth / 2;
23411
+ }
23412
+ else if (position === "start") {
23413
+ return spaceLeft >= popupWidth;
23414
+ }
23415
+ else {
23416
+ // end
23417
+ return spaceRight >= popupWidth;
23418
+ }
23419
+ }
23420
+ else {
23421
+ // 对于左右位置,检查垂直对齐空间
23422
+ /** @type {?} */
23423
+ const popupHeight = popupSize.height;
23424
+ /** @type {?} */
23425
+ const spaceTop = triggerRect.top;
23426
+ /** @type {?} */
23427
+ const spaceBottom = viewportHeight - triggerRect.bottom;
23428
+ if (position === "center") {
23429
+ return spaceTop >= popupHeight / 2 && spaceBottom >= popupHeight / 2;
23430
+ }
23431
+ else if (position === "start") {
23432
+ return spaceTop >= popupHeight;
23433
+ }
23434
+ else {
23435
+ // end
23436
+ return spaceBottom >= popupHeight;
23437
+ }
23438
+ }
23439
+ });
23440
+ // 计算位置是否合适(考虑水平/垂直对齐)
23441
+ /** @type {?} */
23442
+ const calculatePosition = (/**
23443
+ * @param {?} placement
23444
+ * @return {?}
23445
+ */
23446
+ (placement) => {
23447
+ if (placement === "top" || placement === "bottom") {
23448
+ // 对于上下位置,检查水平对齐
23449
+ /** @type {?} */
23450
+ const popupWidth = popupSize.width;
23451
+ /** @type {?} */
23452
+ const spaceLeft = triggerRect.left;
23453
+ /** @type {?} */
23454
+ const spaceRight = viewportWidth - triggerRect.right;
23455
+ // 优先尝试使用用户指定的position
23456
+ if (checkPositionSpace(placement, preferredPosition)) {
23457
+ return preferredPosition;
23458
+ }
23459
+ // 如果中心对齐有足够空间,优先使用中心
23460
+ if (spaceLeft >= popupWidth / 2 && spaceRight >= popupWidth / 2) {
23461
+ return "center";
23462
+ }
23463
+ // 如果左侧空间不足,使用右对齐
23464
+ if (spaceLeft < popupWidth / 2) {
23465
+ return "end";
23466
+ }
23467
+ // 如果右侧空间不足,使用左对齐
23468
+ if (spaceRight < popupWidth / 2) {
23469
+ return "start";
23470
+ }
23471
+ return preferredPosition;
23472
+ }
23473
+ else {
23474
+ // 对于左右位置,检查垂直对齐
23475
+ /** @type {?} */
23476
+ const popupHeight = popupSize.height;
23477
+ /** @type {?} */
23478
+ const spaceTop = triggerRect.top;
23479
+ /** @type {?} */
23480
+ const spaceBottom = viewportHeight - triggerRect.bottom;
23481
+ // 优先尝试使用用户指定的position
23482
+ if (checkPositionSpace(placement, preferredPosition)) {
23483
+ return preferredPosition;
23484
+ }
23485
+ // 如果中心对齐有足够空间,优先使用中心
23486
+ if (spaceTop >= popupHeight / 2 && spaceBottom >= popupHeight / 2) {
23487
+ return "center";
23488
+ }
23489
+ // 如果上方空间不足,使用下对齐
23490
+ if (spaceTop < popupHeight / 2) {
23491
+ return "end";
23492
+ }
23493
+ // 如果下方空间不足,使用上对齐
23494
+ if (spaceBottom < popupHeight / 2) {
23495
+ return "start";
23496
+ }
23497
+ return preferredPosition;
23498
+ }
23499
+ });
23500
+ // 如果首选位置有足够空间,优先使用用户指定的position
23501
+ if (hasEnoughSpace(preferred)) {
23502
+ // 检查用户指定的position是否有足够空间
23503
+ if (checkPositionSpace(preferred, preferredPosition)) {
23504
+ return {
23505
+ placement: preferred,
23506
+ position: preferredPosition,
23507
+ };
23508
+ }
23509
+ // 如果指定的position空间不足,自动计算最佳position
23510
+ return {
23511
+ placement: preferred,
23512
+ position: calculatePosition(preferred),
23513
+ };
23514
+ }
23515
+ // 根据首选位置选择备选位置
23516
+ /** @type {?} */
23517
+ const alternatives = {
23518
+ bottom: ["top", "right", "left"],
23519
+ top: ["bottom", "right", "left"],
23520
+ right: ["left", "bottom", "top"],
23521
+ left: ["right", "bottom", "top"],
23522
+ };
23523
+ /** @type {?} */
23524
+ const altList = alternatives[preferred] || [];
23525
+ // 尝试找到第一个有足够空间的备选位置
23526
+ for (const alt of altList) {
23527
+ if (hasEnoughSpace(alt)) {
23528
+ return {
23529
+ placement: alt,
23530
+ position: calculatePosition(alt),
23531
+ };
23532
+ }
23533
+ }
23534
+ // 如果都没有足够空间,选择空间最大的位置
23535
+ /** @type {?} */
23536
+ const maxSpace = Math.max(space.top, space.bottom, space.left, space.right);
23537
+ /** @type {?} */
23538
+ let bestPlacement;
23539
+ if (maxSpace === space.top)
23540
+ bestPlacement = "top";
23541
+ else if (maxSpace === space.bottom)
23542
+ bestPlacement = "bottom";
23543
+ else if (maxSpace === space.left)
23544
+ bestPlacement = "left";
23545
+ else
23546
+ bestPlacement = "right";
23547
+ return {
23548
+ placement: bestPlacement,
23549
+ position: calculatePosition(bestPlacement),
23550
+ };
23551
+ }
23552
+ // 计算位置坐标(纯计算,不依赖DOM,包含边界约束)
23553
+ /**
23554
+ * @private
23555
+ * @param {?} triggerRect
23556
+ * @param {?} placement
23557
+ * @param {?} position
23558
+ * @param {?} popupSize
23559
+ * @return {?}
23560
+ */
23561
+ calculatePositionCoordinates(triggerRect, placement, position, popupSize) {
23562
+ /** @type {?} */
23563
+ const triggerWidth = triggerRect.width;
23564
+ /** @type {?} */
23565
+ const triggerHeight = triggerRect.height;
23566
+ /** @type {?} */
23567
+ const viewportWidth = window.innerWidth;
23568
+ /** @type {?} */
23569
+ const viewportHeight = window.innerHeight;
23570
+ /** @type {?} */
23571
+ const scrollX = window.scrollX;
23572
+ /** @type {?} */
23573
+ const scrollY = window.scrollY;
23574
+ /** @type {?} */
23575
+ let top = 0;
23576
+ /** @type {?} */
23577
+ let left = 0;
23578
+ /** @type {?} */
23579
+ let translateX = "0";
23580
+ /** @type {?} */
23581
+ let translateY = "0";
23582
+ switch (placement) {
23583
+ case "top":
23584
+ top = triggerRect.top + scrollY - this.offset;
23585
+ translateY = "-100%";
23586
+ if (position === "start") {
23587
+ left = triggerRect.left + scrollX;
23588
+ }
23589
+ else if (position === "center") {
23590
+ left = triggerRect.left + scrollX + triggerWidth / 2;
23591
+ translateX = "-50%";
23592
+ }
23593
+ else {
23594
+ left = triggerRect.left + scrollX + triggerWidth;
23595
+ translateX = "-100%";
23596
+ }
23597
+ // 边界约束:确保弹窗不超出视口
23598
+ if (top - popupSize.height < scrollY) {
23599
+ top = scrollY + 8; // 距离顶部至少8px
23600
+ }
23601
+ if (left < scrollX) {
23602
+ left = scrollX + 8;
23603
+ translateX = "0";
23604
+ }
23605
+ else if (left + popupSize.width > scrollX + viewportWidth) {
23606
+ left = scrollX + viewportWidth - popupSize.width - 8;
23607
+ translateX = "0";
23608
+ }
23609
+ break;
23610
+ case "bottom":
23611
+ top = triggerRect.bottom + scrollY + this.offset;
23612
+ if (position === "start") {
23613
+ left = triggerRect.left + scrollX;
23614
+ }
23615
+ else if (position === "center") {
23616
+ left = triggerRect.left + scrollX + triggerWidth / 2;
23617
+ translateX = "-50%";
23618
+ }
23619
+ else {
23620
+ left = triggerRect.left + scrollX + triggerWidth;
23621
+ translateX = "-100%";
23622
+ }
23623
+ // 边界约束:确保弹窗不超出视口
23624
+ if (top + popupSize.height > scrollY + viewportHeight) {
23625
+ top = scrollY + viewportHeight - popupSize.height - 8; // 距离底部至少8px
23626
+ }
23627
+ if (left < scrollX) {
23628
+ left = scrollX + 8;
23629
+ translateX = "0";
23630
+ }
23631
+ else if (left + popupSize.width > scrollX + viewportWidth) {
23632
+ left = scrollX + viewportWidth - popupSize.width - 8;
23633
+ translateX = "0";
23634
+ }
23635
+ break;
23636
+ case "left":
23637
+ left = triggerRect.left + scrollX - this.offset;
23638
+ translateX = "-100%";
23639
+ if (position === "start") {
23640
+ top = triggerRect.top + scrollY;
23641
+ }
23642
+ else if (position === "center") {
23643
+ top = triggerRect.top + scrollY + triggerHeight / 2;
23644
+ translateY = "-50%";
23645
+ }
23646
+ else {
23647
+ top = triggerRect.top + scrollY + triggerHeight;
23648
+ translateY = "-100%";
23649
+ }
23650
+ // 边界约束:确保弹窗不超出视口
23651
+ if (left - popupSize.width < scrollX) {
23652
+ left = scrollX + 8; // 距离左侧至少8px
23653
+ }
23654
+ if (top < scrollY) {
23655
+ top = scrollY + 8;
23656
+ translateY = "0";
23657
+ }
23658
+ else if (top + popupSize.height > scrollY + viewportHeight) {
23659
+ top = scrollY + viewportHeight - popupSize.height - 8;
23660
+ translateY = "0";
23661
+ }
23662
+ break;
23663
+ case "right":
23664
+ left = triggerRect.right + scrollX + this.offset;
23665
+ if (position === "start") {
23666
+ top = triggerRect.top + scrollY;
23667
+ }
23668
+ else if (position === "center") {
23669
+ top = triggerRect.top + scrollY + triggerHeight / 2;
23670
+ translateY = "-50%";
23671
+ }
23672
+ else {
23673
+ top = triggerRect.top + scrollY + triggerHeight;
23674
+ translateY = "-100%";
23675
+ }
23676
+ // 边界约束:确保弹窗不超出视口
23677
+ if (left + popupSize.width > scrollX + viewportWidth) {
23678
+ left = scrollX + viewportWidth - popupSize.width - 8; // 距离右侧至少8px
23679
+ }
23680
+ if (top < scrollY) {
23681
+ top = scrollY + 8;
23682
+ translateY = "0";
23683
+ }
23684
+ else if (top + popupSize.height > scrollY + viewportHeight) {
23685
+ top = scrollY + viewportHeight - popupSize.height - 8;
23686
+ translateY = "0";
23687
+ }
23688
+ break;
23689
+ }
23690
+ return {
23691
+ top: top + "px",
23692
+ left: left + "px",
23693
+ translateX,
23694
+ translateY,
23695
+ };
23696
+ }
23697
+ /**
23698
+ * @param {?} triggerRect
23699
+ * @param {?} popupRect
23700
+ * @param {?} placement
23701
+ * @param {?} position
23702
+ * @param {?=} popupSize
23703
+ * @return {?}
23704
+ */
23705
+ setPopupPosition(triggerRect, popupRect, placement, position, popupSize) {
23706
+ /** @type {?} */
23707
+ const popupEl = this.popupElement && this.popupElement.nativeElement
23708
+ ? this.popupElement.nativeElement
23709
+ : null;
23710
+ if (!popupEl) {
23711
+ return; // 如果元素还不存在,无法设置位置
23712
+ }
23713
+ // 优先使用传入的固定尺寸,否则从DOM获取
23714
+ /** @type {?} */
23715
+ const popupWidth = popupSize && popupSize.width !== null && popupSize.width !== undefined
23716
+ ? popupSize.width
23717
+ : popupRect.width || popupEl.offsetWidth || 300;
23718
+ /** @type {?} */
23719
+ const popupHeight = popupSize && popupSize.height !== null && popupSize.height !== undefined
23720
+ ? popupSize.height
23721
+ : popupRect.height || popupEl.offsetHeight || 200;
23722
+ /** @type {?} */
23723
+ const coordinates = this.calculatePositionCoordinates(triggerRect, placement, position, { width: popupWidth, height: popupHeight });
23724
+ popupEl.style.top = coordinates.top;
23725
+ popupEl.style.left = coordinates.left;
23726
+ popupEl.style.transform = `translate(${coordinates.translateX}, ${coordinates.translateY})`;
23727
+ }
23728
+ /**
23729
+ * @return {?}
23730
+ */
23731
+ onWindowResize() {
23732
+ if (this.opened === "yes") {
23733
+ this.updatePopupPosition();
23734
+ }
23735
+ }
23736
+ }
23737
+ SmartPopupComponent.decorators = [
23738
+ { type: Component, args: [{
23739
+ selector: "rs-smart-popup",
23740
+ 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",
23741
+ 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)}}"]
23742
+ }] }
23743
+ ];
23744
+ /** @nocollapse */
23745
+ SmartPopupComponent.ctorParameters = () => [
23746
+ { type: ChangeDetectorRef }
23747
+ ];
23748
+ SmartPopupComponent.propDecorators = {
23749
+ _placement: [{ type: Input, args: ["placement",] }],
23750
+ _offset: [{ type: Input, args: ["offset",] }],
23751
+ _autoAdjust: [{ type: Input, args: ["autoAdjust",] }],
23752
+ triggerElementRef: [{ type: Input, args: ["triggerElement",] }],
23753
+ loading: [{ type: Input, args: ["loading",] }],
23754
+ _open: [{ type: Input, args: ["open",] }],
23755
+ _width: [{ type: Input, args: ["width",] }],
23756
+ _height: [{ type: Input, args: ["height",] }],
23757
+ openChange: [{ type: Output, args: ["openChange",] }],
23758
+ contentLoad: [{ type: Output, args: ["contentLoad",] }],
23759
+ internalTriggerElement: [{ type: ViewChild, args: ["trigger", { static: false },] }],
23760
+ popupElement: [{ type: ViewChild, args: ["popup", { static: false },] }],
23761
+ onWindowResize: [{ type: HostListener, args: ["window:resize",] }]
23762
+ };
23763
+ if (false) {
23764
+ /** @type {?} */
23765
+ SmartPopupComponent.prototype._placement;
23766
+ /** @type {?} */
23767
+ SmartPopupComponent.prototype._offset;
23768
+ /** @type {?} */
23769
+ SmartPopupComponent.prototype._autoAdjust;
23770
+ /** @type {?} */
23771
+ SmartPopupComponent.prototype.triggerElementRef;
23772
+ /** @type {?} */
23773
+ SmartPopupComponent.prototype.loading;
23774
+ /** @type {?} */
23775
+ SmartPopupComponent.prototype._open;
23776
+ /** @type {?} */
23777
+ SmartPopupComponent.prototype._width;
23778
+ /** @type {?} */
23779
+ SmartPopupComponent.prototype._height;
23780
+ /** @type {?} */
23781
+ SmartPopupComponent.prototype.openChange;
23782
+ /** @type {?} */
23783
+ SmartPopupComponent.prototype.contentLoad;
23784
+ /** @type {?} */
23785
+ SmartPopupComponent.prototype.internalTriggerElement;
23786
+ /** @type {?} */
23787
+ SmartPopupComponent.prototype.popupElement;
23788
+ /** @type {?} */
23789
+ SmartPopupComponent.prototype.currentTriggerElement;
23790
+ /** @type {?} */
23791
+ SmartPopupComponent.prototype.FIXED_CONTAINER_ID;
23792
+ /** @type {?} */
23793
+ SmartPopupComponent.prototype.fixedContainerEl;
23794
+ /** @type {?} */
23795
+ SmartPopupComponent.prototype.opened;
23796
+ /** @type {?} */
23797
+ SmartPopupComponent.prototype.positioning;
23798
+ /** @type {?} */
23799
+ SmartPopupComponent.prototype.actualPlacement;
23800
+ /** @type {?} */
23801
+ SmartPopupComponent.prototype.actualPosition;
23802
+ /** @type {?} */
23803
+ SmartPopupComponent.prototype.onClickOutside;
23804
+ /** @type {?} */
23805
+ SmartPopupComponent.prototype.onWindowScroll;
23806
+ /**
23807
+ * @type {?}
23808
+ * @private
23809
+ */
23810
+ SmartPopupComponent.prototype.ref;
23811
+ }
23812
+
22725
23813
  /**
22726
23814
  * @fileoverview added by tsickle
22727
23815
  * Generated from: lib/dashboard/dashboard.service.ts
@@ -47707,6 +48795,7 @@ RaiseCommonLibModule.decorators = [
47707
48795
  RSNavCardGroupComponent,
47708
48796
  RSToolbarComponent,
47709
48797
  TruncatedTextToggleComponent,
48798
+ SmartPopupComponent,
47710
48799
  RSStepperComponent,
47711
48800
  PaneGroupNewComponent,
47712
48801
  SidebarIconlistNewComponent,
@@ -47889,6 +48978,7 @@ RaiseCommonLibModule.decorators = [
47889
48978
  RSNavCardGroupComponent,
47890
48979
  RSToolbarComponent,
47891
48980
  TruncatedTextToggleComponent,
48981
+ SmartPopupComponent,
47892
48982
  CommonDialogComponent,
47893
48983
  RSStepperComponent,
47894
48984
  PaneGroupNewComponent,
@@ -47928,5 +49018,5 @@ RaiseCommonLibModule.decorators = [
47928
49018
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
47929
49019
  */
47930
49020
 
47931
- 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 };
49021
+ 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 };
47932
49022
  //# sourceMappingURL=raise-common-lib.js.map