myrta-ui 1.1.47 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/button/button.component.mjs +2 -2
- package/esm2020/lib/components/modal/modal.component.mjs +3 -3
- package/esm2020/lib/components/popup/components/popup/popup.component.mjs +30 -0
- package/esm2020/lib/components/popup/components/popup-item/popup-item.component.mjs +19 -0
- package/esm2020/lib/components/popup/directives/popup-trigger.directive.mjs +97 -0
- package/esm2020/lib/components/popup/popup.module.mjs +36 -0
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/myrta-ui.mjs +172 -8
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +172 -8
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/lib/components/popup/components/popup/popup.component.d.ts +12 -0
- package/lib/components/popup/components/popup-item/popup-item.component.d.ts +8 -0
- package/lib/components/popup/directives/popup-trigger.directive.d.ts +27 -0
- package/lib/components/popup/popup.module.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PopupItemComponent } from '../popup-item/popup-item.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PopupComponent {
|
|
5
|
+
closeAfterClick: boolean;
|
|
6
|
+
maxWidth: string;
|
|
7
|
+
templateRef: TemplateRef<any>;
|
|
8
|
+
popupItemComponents: QueryList<PopupItemComponent>;
|
|
9
|
+
closed: EventEmitter<void>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent, "mrx-popup", never, { "closeAfterClick": "closeAfterClick"; "maxWidth": "maxWidth"; }, { "closed": "closed"; }, ["popupItemComponents"], never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PopupItemComponent {
|
|
4
|
+
templateRef: TemplateRef<any>;
|
|
5
|
+
clicked: EventEmitter<void>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupItemComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupItemComponent, "mrx-popup-item", never, {}, { "clicked": "clicked"; }, never, ["*"]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { PopupComponent } from '../components/popup/popup.component';
|
|
3
|
+
import { Overlay, OverlayOutsideClickDispatcher } from '@angular/cdk/overlay';
|
|
4
|
+
import { ConnectedPositionVariantsType } from '../../cdk-tooltip/constants';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PopupTriggerDirective implements OnDestroy {
|
|
7
|
+
private overlay;
|
|
8
|
+
private elementRef;
|
|
9
|
+
private viewContainerRef;
|
|
10
|
+
private dispatcher;
|
|
11
|
+
private _subscriber$;
|
|
12
|
+
private _isDropdownOpen;
|
|
13
|
+
private _overlayRef;
|
|
14
|
+
popupPanel: PopupComponent;
|
|
15
|
+
popupPosition: ConnectedPositionVariantsType;
|
|
16
|
+
constructor(overlay: Overlay, elementRef: ElementRef<HTMLElement>, viewContainerRef: ViewContainerRef, dispatcher: OverlayOutsideClickDispatcher);
|
|
17
|
+
togglePopup(): void;
|
|
18
|
+
openDropdown(): void;
|
|
19
|
+
close(): void;
|
|
20
|
+
private getPositionStrategy;
|
|
21
|
+
private destroyDropdown;
|
|
22
|
+
private hideOtherOverlays;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
handleClick(event: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupTriggerDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PopupTriggerDirective, "[mrxPopupTrigger]", never, { "popupPanel": "mrxPopupTrigger"; "popupPosition": "popupPosition"; }, {}, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/popup/popup.component";
|
|
3
|
+
import * as i2 from "./components/popup-item/popup-item.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/cdk/overlay";
|
|
6
|
+
export declare class PopupModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PopupModule, [typeof i1.PopupComponent, typeof i2.PopupItemComponent], [typeof i3.CommonModule, typeof i4.OverlayModule], [typeof i1.PopupComponent, typeof i2.PopupItemComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PopupModule>;
|
|
10
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ export * from './lib/components/cdk-tooltip/models/tooltip-data';
|
|
|
34
34
|
export * from './lib/components/dropdown/dropdown.module';
|
|
35
35
|
export * from './lib/components/dropdown/dropdown.component';
|
|
36
36
|
export * from './lib/components/dropdown/directives/hide-after-click.directive';
|
|
37
|
+
export * from './lib/components/popup/popup.module';
|
|
38
|
+
export * from './lib/components/popup/components/popup/popup.component';
|
|
39
|
+
export * from './lib/components/popup/components/popup-item/popup-item.component';
|
|
40
|
+
export * from './lib/components/popup/directives/popup-trigger.directive';
|
|
37
41
|
export * from './lib/components/error-message/error-message.module';
|
|
38
42
|
export * from './lib/components/error-message/error-message.component';
|
|
39
43
|
export * from './lib/components/hint-error-message/hint-error-message.module';
|