myrta-ui 17.0.28 → 17.0.30
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/esm2022/lib/components/form/select/enums/index.mjs +3 -0
- package/esm2022/lib/components/form/select/enums/select-size.enum.mjs +6 -0
- package/esm2022/lib/components/form/select/enums/select-type.enum.mjs +6 -0
- package/esm2022/lib/components/form/select/select.component.mjs +62 -0
- package/esm2022/lib/components/form/select/select.module.mjs +28 -0
- package/esm2022/lib/components/popup/components/popup/popup.component.mjs +28 -0
- package/esm2022/lib/components/popup/components/popup-item/popup-item.component.mjs +18 -0
- package/esm2022/lib/components/popup/directives/popup-trigger.directive.mjs +104 -0
- package/esm2022/lib/components/popup/popup.module.mjs +39 -0
- package/esm2022/lib/services/modal-service/helpers/modal-ref.mjs +2 -3
- package/esm2022/lib/services/modal-service/modal-service.module.mjs +1 -1
- package/esm2022/public-api.mjs +8 -1
- package/fesm2022/myrta-ui.mjs +264 -5
- package/fesm2022/myrta-ui.mjs.map +1 -1
- package/lib/components/form/select/enums/index.d.ts +2 -0
- package/lib/components/form/select/enums/select-size.enum.d.ts +5 -0
- package/lib/components/form/select/enums/select-type.enum.d.ts +5 -0
- package/lib/components/form/select/select.component.d.ts +21 -0
- package/lib/components/form/select/select.module.d.ts +9 -0
- package/lib/components/popup/components/popup/popup.component.d.ts +11 -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 +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { SelectSizeTypes, SelectTypeTypes } from './enums';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectComponent implements ControlValueAccessor {
|
|
5
|
+
value: any | any[];
|
|
6
|
+
items: any[];
|
|
7
|
+
type: SelectTypeTypes;
|
|
8
|
+
size: SelectSizeTypes;
|
|
9
|
+
get getClasses(): string;
|
|
10
|
+
private onChange;
|
|
11
|
+
private onTouched;
|
|
12
|
+
registerOnChange(fn: any): void;
|
|
13
|
+
registerOnTouched(fn: () => {}): void;
|
|
14
|
+
writeValue(obj: any): void;
|
|
15
|
+
updateValue(insideValue: any): void;
|
|
16
|
+
logger(value: string): void;
|
|
17
|
+
onOpen(event: MouseEvent): void;
|
|
18
|
+
onClear(event: MouseEvent): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "mrx-select", never, { "items": { "alias": "items"; "required": false; }; "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./select.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../popup/popup.module";
|
|
5
|
+
export declare class SelectModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectModule, [typeof i1.SelectComponent], [typeof i2.CommonModule, typeof i3.PopupModule], [typeof i1.SelectComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SelectModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
templateRef: TemplateRef<any>;
|
|
7
|
+
popupItemComponents: QueryList<PopupItemComponent>;
|
|
8
|
+
closed: EventEmitter<void>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent, "mrx-popup", never, { "closeAfterClick": { "alias": "closeAfterClick"; "required": false; }; }, { "closed": "closed"; }, ["popupItemComponents"], never, false, never>;
|
|
11
|
+
}
|
|
@@ -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, ["*"], false, 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": { "alias": "mrxPopupTrigger"; "required": false; }; "popupPosition": { "alias": "popupPosition"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 "./directives/popup-trigger.directive";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/cdk/overlay";
|
|
7
|
+
export declare class PopupModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PopupModule, [typeof i1.PopupComponent, typeof i2.PopupItemComponent, typeof i3.PopupTriggerDirective], [typeof i4.CommonModule, typeof i5.OverlayModule], [typeof i1.PopupComponent, typeof i2.PopupItemComponent, typeof i3.PopupTriggerDirective]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PopupModule>;
|
|
11
|
+
}
|
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';
|
|
@@ -115,6 +119,9 @@ export * from './lib/components/form/input-number/input-number.enum';
|
|
|
115
119
|
export * from './lib/components/form/input-select/input-select.module';
|
|
116
120
|
export * from './lib/components/form/input-select/input-select.component';
|
|
117
121
|
export * from './lib/components/form/input-select/input-select.enum';
|
|
122
|
+
export * from './lib/components/form/select/select.module';
|
|
123
|
+
export * from './lib/components/form/select/select.component';
|
|
124
|
+
export * from './lib/components/form/select/enums';
|
|
118
125
|
export * from './lib/components/form/input-file/input-file.module';
|
|
119
126
|
export * from './lib/components/form/input-file/input-file.component';
|
|
120
127
|
export * from './lib/components/form/input-file-image/input-file-image.module';
|