@ibragim-dev-org/ui-forge-library 1.1.1 → 1.1.3
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.
|
@@ -1636,7 +1636,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1636
1636
|
}] }, { type: i0.DestroyRef }, { type: UiPopupService }, { type: i0.ElementRef }], propDecorators: { $overflowHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "$overflowHidden", required: false }] }], $shouldClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "$shouldClose", required: false }] }, { type: i0.Output, args: ["$shouldCloseChange"] }], $hasCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "$hasCloseButton", required: false }] }], $isEnableFadeAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "$isEnableFadeAnimation", required: false }] }], $iconClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "$iconClose", required: false }] }, { type: i0.Output, args: ["$iconCloseChange"] }] } });
|
|
1637
1637
|
|
|
1638
1638
|
class UiDropdownService extends UiPopupService {
|
|
1639
|
-
tipContainerRef;
|
|
1640
1639
|
tipContainerPortal;
|
|
1641
1640
|
containerSize$ = new BehaviorSubject({
|
|
1642
1641
|
width: 0,
|
|
@@ -1764,7 +1763,8 @@ class UiDropdownService extends UiPopupService {
|
|
|
1764
1763
|
*
|
|
1765
1764
|
*/
|
|
1766
1765
|
openTip(text, attachedRef, id, position = 'top', offsetY = 0, offsetX = 0) {
|
|
1767
|
-
if (this.
|
|
1766
|
+
if (!this.tipContainerPortal) {
|
|
1767
|
+
console.warn('UiDropdownService: Tip component is not defined. Please provide a tip component in the init method.');
|
|
1768
1768
|
return;
|
|
1769
1769
|
}
|
|
1770
1770
|
const tipComponent = this.tipContainerPortal?.component;
|
|
@@ -1798,8 +1798,7 @@ class UiDropdownService extends UiPopupService {
|
|
|
1798
1798
|
if (fetchedParameters.hasAttachedWidth) {
|
|
1799
1799
|
attachedWidth = attachedRef.clientWidth;
|
|
1800
1800
|
}
|
|
1801
|
-
|
|
1802
|
-
if (this.popupInstances.length) {
|
|
1801
|
+
if (fetchedParameters.removePrevious && this.popupInstances.length) {
|
|
1803
1802
|
this.destroyOutsideClickSubscription$.next();
|
|
1804
1803
|
}
|
|
1805
1804
|
if (fetchedParameters.removePrevious && this.popupInstances.length) {
|
|
@@ -1831,8 +1830,7 @@ class UiDropdownService extends UiPopupService {
|
|
|
1831
1830
|
*/
|
|
1832
1831
|
openAtMousePosition(component, event, id, parameters = {}) {
|
|
1833
1832
|
const fetchedParameters = this.fetchDropDownParameters(parameters);
|
|
1834
|
-
|
|
1835
|
-
if (this.popupInstances.length) {
|
|
1833
|
+
if (fetchedParameters.removePrevious && this.popupInstances.length) {
|
|
1836
1834
|
this.destroyOutsideClickSubscription$.next();
|
|
1837
1835
|
}
|
|
1838
1836
|
if (fetchedParameters.removePrevious && this.popupInstances.length) {
|