raise-common-lib 0.0.217 → 0.0.218

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