myrta-ui 17.0.61 → 17.0.63
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/button/button.component.mjs +17 -4
- package/esm2022/lib/components/button/button.enum.mjs +1 -1
- package/esm2022/lib/components/button/button.module.mjs +5 -4
- package/esm2022/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +1 -1
- package/esm2022/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +6 -7
- package/esm2022/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +5 -9
- package/esm2022/lib/components/form/radio-group/radio-group.component.mjs +16 -21
- package/esm2022/lib/components/form/select/helpers/get-inner-selected.helper.mjs +11 -0
- package/esm2022/lib/components/form/select/select.component.mjs +17 -11
- package/esm2022/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +1 -1
- package/esm2022/lib/components/gallery/gallery.component.mjs +1 -1
- package/esm2022/lib/components/modal/modal.component.mjs +2 -2
- package/esm2022/lib/components/side-page/side-page.component.mjs +2 -2
- package/esm2022/lib/services/modal-service/components/alert-modal/alert-modal.component.mjs +1 -1
- package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs +2 -2
- package/fesm2022/myrta-ui.mjs +65 -45
- package/fesm2022/myrta-ui.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +8 -2
- package/lib/components/button/button.enum.d.ts +1 -0
- package/lib/components/button/button.module.d.ts +2 -1
- package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts +0 -1
- package/lib/components/form/radio-group/radio-group.component.d.ts +4 -6
- package/lib/components/form/select/helpers/get-inner-selected.helper.d.ts +2 -0
- package/lib/components/form/select/select.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { LoaderColorTypes, LoaderSizesTypes } from '../loader/loader.enum';
|
|
3
|
-
import { ButtonAttrTypes, ButtonColorsTypes, ButtonIconPositionTypes, ButtonSizesTypes, ButtonTypes } from './button.enum';
|
|
3
|
+
import { ButtonAttrTypes, ButtonColorsTypes, ButtonIconPositionTypes, ButtonSizesTypes, ButtonTargetTypes, ButtonTypes } from './button.enum';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ButtonComponent {
|
|
6
6
|
size: ButtonSizesTypes;
|
|
@@ -16,6 +16,12 @@ export declare class ButtonComponent {
|
|
|
16
16
|
icon: string;
|
|
17
17
|
iconClass: string;
|
|
18
18
|
buttonType: ButtonAttrTypes;
|
|
19
|
+
href: string;
|
|
20
|
+
target: ButtonTargetTypes;
|
|
21
|
+
routerLink: string;
|
|
22
|
+
queryParams: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
19
25
|
mrxClick: EventEmitter<MouseEvent>;
|
|
20
26
|
get getLabel(): null | string;
|
|
21
27
|
get isIcon(): boolean;
|
|
@@ -27,5 +33,5 @@ export declare class ButtonComponent {
|
|
|
27
33
|
get getReplacedIcon(): string;
|
|
28
34
|
buttonClick($event: MouseEvent): void;
|
|
29
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "mrx-button", never, { "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; }, { "mrxClick": "mrxClick"; }, never, ["*"], false, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "mrx-button", never, { "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; }, { "mrxClick": "mrxClick"; }, never, ["*"], false, never>;
|
|
31
37
|
}
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./button.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../../pipes/safe/safe.module";
|
|
5
5
|
import * as i4 from "../loader/loader.module";
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
6
7
|
export declare class ButtonModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, [typeof i1.ButtonComponent], [typeof i2.CommonModule, typeof i3.SafeModule, typeof i4.LoaderModule], [typeof i1.ButtonComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, [typeof i1.ButtonComponent], [typeof i2.CommonModule, typeof i3.SafeModule, typeof i4.LoaderModule, typeof i5.RouterModule], [typeof i1.ButtonComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
|
|
10
11
|
}
|
package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export declare class RadioGroupItemComponent {
|
|
|
21
21
|
}>;
|
|
22
22
|
constructor(detector: ChangeDetectorRef);
|
|
23
23
|
get isIndeterminate(): boolean;
|
|
24
|
-
trackByFn(index: number, item: RadioGroupItem): string | number;
|
|
25
24
|
radioChangeModel(value: RadioIndeterminateState, item: RadioGroupItem): void;
|
|
26
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItemComponent, never>;
|
|
27
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupItemComponent, "mrx-radio-group-item", never, { "invalid": { "alias": "invalid"; "required": false; }; "name": { "alias": "name"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "item": { "alias": "item"; "required": false; }; "displaced": { "alias": "displaced"; "required": false; }; "level": { "alias": "level"; "required": false; }; "bold": { "alias": "bold"; "required": false; }; "animationTrigger": { "alias": "animationTrigger"; "required": false; }; "isLast": { "alias": "isLast"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "animationEnd": "animationEnd"; "radioChanged": "radioChanged"; }, never, never, false, never>;
|
|
@@ -6,10 +6,9 @@ import { Field } from '../../../services';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class RadioGroupComponent implements ControlValueAccessor {
|
|
8
8
|
private _detector;
|
|
9
|
-
private _isInit;
|
|
10
9
|
private _groupItemsWrapperHeight;
|
|
11
10
|
private _searchValue;
|
|
12
|
-
|
|
11
|
+
_list: RadioGroupItem[];
|
|
13
12
|
selectedValue: RadioGroupItem | null;
|
|
14
13
|
filteredList: RadioGroupItem[];
|
|
15
14
|
uuid: string;
|
|
@@ -44,9 +43,7 @@ export declare class RadioGroupComponent implements ControlValueAccessor {
|
|
|
44
43
|
get displaced(): boolean;
|
|
45
44
|
get getClasses(): string;
|
|
46
45
|
get getShowScroll(): boolean;
|
|
47
|
-
|
|
48
|
-
private onChange;
|
|
49
|
-
private onTouched;
|
|
46
|
+
get isInvalidMessage(): boolean;
|
|
50
47
|
writeValue(selectedValue: RadioGroupItem): void;
|
|
51
48
|
registerOnChange(fn: any): void;
|
|
52
49
|
registerOnTouched(fn: any): void;
|
|
@@ -56,7 +53,8 @@ export declare class RadioGroupComponent implements ControlValueAccessor {
|
|
|
56
53
|
radioChanged({ item }: {
|
|
57
54
|
item: RadioGroupItem;
|
|
58
55
|
}): void;
|
|
59
|
-
|
|
56
|
+
private onChange;
|
|
57
|
+
private onTouched;
|
|
60
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, never>;
|
|
61
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "mrx-radio-group", never, { "fields": { "alias": "fields"; "required": false; }; "searchSize": { "alias": "searchSize"; "required": false; }; "name": { "alias": "name"; "required": false; }; "scrollMaxHeight": { "alias": "scrollMaxHeight"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "bold": { "alias": "bold"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "enableMessage": { "alias": "enableMessage"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "required": { "alias": "required"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "checkInvalid": { "alias": "checkInvalid"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "changed": "changed"; "modelChange": "modelChange"; "modelCheckedChange": "modelCheckedChange"; "modelItemChange": "modelItemChange"; }, never, never, false, never>;
|
|
62
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<RadioGroupComponent>;
|
|
@@ -11,8 +11,9 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export declare class SelectComponent implements ControlValueAccessor {
|
|
12
12
|
searchValue: string;
|
|
13
13
|
isOpen: boolean;
|
|
14
|
-
|
|
14
|
+
originSelected: any | any[];
|
|
15
15
|
originItems: SelectItemModel[];
|
|
16
|
+
selected: SelectItemModel[];
|
|
16
17
|
innerItems: SelectInnerItemModel[];
|
|
17
18
|
uuid: string;
|
|
18
19
|
fields: Field[];
|
|
@@ -60,6 +61,7 @@ export declare class SelectComponent implements ControlValueAccessor {
|
|
|
60
61
|
asOption(option: SelectInnerItemModel): SelectInnerItemModel;
|
|
61
62
|
asLabel(label: SelectInnerItemModel): SelectInnerItemModel;
|
|
62
63
|
writeValue(selected?: any | any[]): void;
|
|
64
|
+
private updateSelected;
|
|
63
65
|
private updateValue;
|
|
64
66
|
private onChange;
|
|
65
67
|
private onTouched;
|