monkey-style-guide-v2 0.0.21 → 0.0.23

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 (94) hide show
  1. package/assets/scss/directives/_index.scss +1 -0
  2. package/assets/scss/directives/_popover.scss +81 -0
  3. package/assets/scss/theme.scss +5 -0
  4. package/esm2022/lib/components/accordion/accordion.component.mjs +11 -20
  5. package/esm2022/lib/components/action-bar/action-bar.component.mjs +3 -3
  6. package/esm2022/lib/components/button/button.component.mjs +6 -2
  7. package/esm2022/lib/components/checkbox/checkbox.component.mjs +9 -13
  8. package/esm2022/lib/components/date-range/date-range.component.mjs +2 -2
  9. package/esm2022/lib/components/form-field/form-field-control.mjs +1 -1
  10. package/esm2022/lib/components/form-field/form-field.component.mjs +15 -18
  11. package/esm2022/lib/components/form-field/form-field.module.mjs +4 -2
  12. package/esm2022/lib/components/icon/icon.component.mjs +4 -4
  13. package/esm2022/lib/components/icon-button/icon-button.component.mjs +2 -2
  14. package/esm2022/lib/components/index.mjs +3 -1
  15. package/esm2022/lib/components/input-phone/index.mjs +7 -0
  16. package/esm2022/lib/components/input-phone/input-phone.component.mjs +324 -0
  17. package/esm2022/lib/components/modal/components/confirmation.component.mjs +68 -0
  18. package/esm2022/lib/components/modal/components/default.mjs +1 -6
  19. package/esm2022/lib/components/modal/modal-config.mjs +2 -3
  20. package/esm2022/lib/components/modal/modal-ref.mjs +9 -2
  21. package/esm2022/lib/components/modal/modal.component.mjs +8 -6
  22. package/esm2022/lib/components/modal/modal.module.mjs +4 -1
  23. package/esm2022/lib/components/modal/modal.service.mjs +44 -31
  24. package/esm2022/lib/components/modal/utils.mjs +2 -1
  25. package/esm2022/lib/components/option/option.component.mjs +21 -5
  26. package/esm2022/lib/components/radio-button/index.mjs +7 -0
  27. package/esm2022/lib/components/radio-button/radio-button.component.mjs +190 -0
  28. package/esm2022/lib/components/security-level/security-level.component.mjs +3 -3
  29. package/esm2022/lib/components/select/select.component.mjs +5 -9
  30. package/esm2022/lib/components/status/status.component.mjs +3 -3
  31. package/esm2022/lib/components/table/components/pagination-size/pagination-size.mjs +2 -2
  32. package/esm2022/lib/components/toast/toast.component.mjs +3 -3
  33. package/esm2022/lib/components/tooltip/tooltip/tooltip.component.mjs +3 -3
  34. package/esm2022/lib/components/tooltip/tooltip.directive.mjs +12 -3
  35. package/esm2022/lib/directives/error.mjs +5 -5
  36. package/esm2022/lib/directives/helper.mjs +5 -5
  37. package/esm2022/lib/directives/index.mjs +2 -1
  38. package/esm2022/lib/directives/info.mjs +5 -5
  39. package/esm2022/lib/directives/label.mjs +5 -5
  40. package/esm2022/lib/directives/module.mjs +41 -35
  41. package/esm2022/lib/directives/popover.mjs +380 -0
  42. package/esm2022/lib/directives/prefix.mjs +5 -5
  43. package/esm2022/lib/directives/suffix.mjs +5 -5
  44. package/esm2022/lib/interfaces/index.mjs +2 -1
  45. package/esm2022/lib/interfaces/popover.mjs +2 -0
  46. package/esm2022/lib/services/dictionary.service.mjs +3 -3
  47. package/esm2022/lib/services/index.mjs +1 -2
  48. package/esm2022/lib/tokens/index.mjs +4 -2
  49. package/esm2022/utils/icon.mjs +277 -0
  50. package/esm2022/utils/index.mjs +2 -1
  51. package/fesm2022/monkey-style-guide-v2.mjs +2019 -828
  52. package/fesm2022/monkey-style-guide-v2.mjs.map +1 -1
  53. package/lib/components/accordion/accordion.component.d.ts +0 -3
  54. package/lib/components/button/button.component.d.ts +2 -0
  55. package/lib/components/checkbox/checkbox.component.d.ts +0 -3
  56. package/lib/components/form-field/form-field-control.d.ts +3 -3
  57. package/lib/components/form-field/form-field.component.d.ts +0 -5
  58. package/lib/components/form-field/form-field.module.d.ts +2 -1
  59. package/lib/components/icon/icon.component.d.ts +1 -1
  60. package/lib/components/index.d.ts +2 -0
  61. package/lib/components/input-phone/index.d.ts +6 -0
  62. package/lib/components/input-phone/input-phone.component.d.ts +68 -0
  63. package/lib/components/modal/components/confirmation.component.d.ts +12 -0
  64. package/lib/components/modal/components/default.d.ts +0 -5
  65. package/lib/components/modal/modal-config.d.ts +10 -6
  66. package/lib/components/modal/modal-ref.d.ts +1 -0
  67. package/lib/components/modal/modal.module.d.ts +10 -9
  68. package/lib/components/modal/modal.service.d.ts +4 -4
  69. package/lib/components/modal/utils.d.ts +3 -1
  70. package/lib/components/option/option.component.d.ts +4 -1
  71. package/lib/components/radio-button/index.d.ts +6 -0
  72. package/lib/components/radio-button/radio-button.component.d.ts +54 -0
  73. package/lib/components/select/select.component.d.ts +0 -3
  74. package/lib/components/tooltip/tooltip.directive.d.ts +1 -0
  75. package/lib/directives/error.d.ts +3 -3
  76. package/lib/directives/helper.d.ts +3 -3
  77. package/lib/directives/index.d.ts +1 -0
  78. package/lib/directives/info.d.ts +3 -3
  79. package/lib/directives/label.d.ts +3 -3
  80. package/lib/directives/module.d.ts +2 -1
  81. package/lib/directives/popover.d.ts +65 -0
  82. package/lib/directives/prefix.d.ts +3 -3
  83. package/lib/directives/suffix.d.ts +3 -3
  84. package/lib/interfaces/index.d.ts +1 -0
  85. package/lib/interfaces/popover.d.ts +7 -0
  86. package/lib/services/index.d.ts +0 -1
  87. package/lib/tokens/index.d.ts +3 -1
  88. package/monkey-style-guide-v2-0.0.23.tgz +0 -0
  89. package/package.json +3 -2
  90. package/utils/icon.d.ts +8 -0
  91. package/utils/index.d.ts +1 -0
  92. package/esm2022/lib/services/icons.service.mjs +0 -56
  93. package/lib/services/icons.service.d.ts +0 -16
  94. package/monkey-style-guide-v2-0.0.21.tgz +0 -0
@@ -1,14 +1,11 @@
1
1
  import { TemplateRef } from '@angular/core';
2
- import { SafeHtml } from '@angular/platform-browser';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class MonkeyAccordionComponent {
5
- private readonly _icons;
6
4
  open: boolean;
7
5
  disabled: boolean;
8
6
  set title(data: string | TemplateRef<any>);
9
7
  titleStr: string | undefined;
10
8
  titleRef: TemplateRef<any> | undefined;
11
- imgArrowDown: SafeHtml | null;
12
9
  protected _uid: string;
13
10
  protected _id: string;
14
11
  get id(): string;
@@ -5,12 +5,14 @@ export declare class MonkeyButtonComponent {
5
5
  disabled: boolean;
6
6
  size: MonkeySize;
7
7
  type: MonkeyButtonType;
8
+ private readonly elementRef;
8
9
  protected _uid: string;
9
10
  protected _id: string;
10
11
  get id(): string;
11
12
  set id(value: string);
12
13
  constructor();
13
14
  onClick(event: PointerEvent): void;
15
+ get element(): HTMLElement;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyButtonComponent, never>;
15
17
  static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyButtonComponent, "monkey-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["[first]", "*", "[last]"], true, never>;
16
18
  }
@@ -12,13 +12,10 @@ export declare class MonkeyCheckboxComponent implements ControlValueAccessor, On
12
12
  size: 'sm' | 'md' | 'lg';
13
13
  onChange: EventEmitter<boolean>;
14
14
  private _destroyRef;
15
- private readonly icons;
16
15
  private readonly idGenerator;
17
16
  private injector;
18
17
  private cdr;
19
18
  control: AbstractControl<any, any> | null | undefined;
20
- readonly iconCheck: import("@angular/platform-browser").SafeHtml | null;
21
- readonly iconIndeterminate: import("@angular/platform-browser").SafeHtml | null;
22
19
  readonly inputId: string;
23
20
  value: boolean;
24
21
  isFocused: boolean;
@@ -7,9 +7,9 @@ export declare abstract class MonkeyFormFieldControl {
7
7
  readonly disabled: boolean;
8
8
  readonly focused: boolean;
9
9
  readonly stateChanges: Observable<void>;
10
- readonly type: string;
11
- readonly currency: boolean;
12
- readonly percent: boolean;
10
+ readonly type?: string;
11
+ readonly currency?: boolean;
12
+ readonly percent?: boolean;
13
13
  abstract onContainerClick(event: MouseEvent): void;
14
14
  loading?: boolean;
15
15
  disableToBeDirty?: boolean;
@@ -4,7 +4,6 @@
4
4
  * MIT Licence
5
5
  ************************* */
6
6
  import { AfterContentChecked, AfterContentInit, ElementRef, OnDestroy } from '@angular/core';
7
- import { SafeHtml } from '@angular/platform-browser';
8
7
  import { MonkeySize } from '../../interfaces';
9
8
  import { MonkeyFormFieldControl } from './form-field-control';
10
9
  import * as i0 from "@angular/core";
@@ -22,7 +21,6 @@ export declare class MonkeyFormFieldComponent implements AfterContentInit, After
22
21
  private _infoChildren;
23
22
  private _errorChildren;
24
23
  elementRef: ElementRef<any>;
25
- private readonly _icons;
26
24
  private readonly _changeDetectorRef;
27
25
  private readonly _idGenerator;
28
26
  private readonly _labelId;
@@ -35,9 +33,6 @@ export declare class MonkeyFormFieldComponent implements AfterContentInit, After
35
33
  private _valueChanges;
36
34
  readonly currencySymbol: string | undefined;
37
35
  readonly percentSymbol = "%";
38
- imgClear: SafeHtml | null;
39
- imgCalendar: SafeHtml | null;
40
- imgLoading: SafeHtml | null;
41
36
  hasLabel: boolean;
42
37
  hasHelper: boolean;
43
38
  hasPrefix: boolean;
@@ -1,7 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form-field.component";
3
+ import * as i2 from "../../../utils/icon";
3
4
  export declare class MonkeyFormFieldModule {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFormFieldModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFormFieldModule, [typeof i1.MonkeyFormFieldComponent], never, [typeof i1.MonkeyFormFieldComponent]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFormFieldModule, [typeof i1.MonkeyFormFieldComponent], [typeof i2.UtilIconComponent], [typeof i1.MonkeyFormFieldComponent]>;
6
7
  static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyFormFieldModule>;
7
8
  }
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MonkeyIconComponent implements OnInit {
4
4
  set icon(val: string);
5
- size: string;
5
+ size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
6
6
  _icon: string;
7
7
  protected _uid: string;
8
8
  protected _id: string;
@@ -13,9 +13,11 @@ export * from './icon';
13
13
  export * from './icon-button';
14
14
  export * from './input';
15
15
  export * from './input-code';
16
+ export * from './input-phone';
16
17
  export * from './input-upload';
17
18
  export * from './modal';
18
19
  export * from './option';
20
+ export * from './radio-button';
19
21
  export * from './security-level';
20
22
  export * from './select';
21
23
  export * from './status';
@@ -0,0 +1,6 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ export * from './input-phone.component';
@@ -0,0 +1,68 @@
1
+ import { AfterContentInit, ElementRef, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { MonkeyFormFieldControl } from '../form-field';
5
+ import * as i0 from "@angular/core";
6
+ interface Country {
7
+ code: string;
8
+ name: string;
9
+ flag: string;
10
+ }
11
+ export declare class MonkeyInputPhoneComponent implements MonkeyFormFieldControl, ControlValueAccessor, AfterContentInit, OnDestroy, OnChanges {
12
+ placeholder: string;
13
+ tabIndex: number;
14
+ get disabled(): boolean;
15
+ set disabled(value: boolean);
16
+ _disabled: boolean;
17
+ get required(): boolean;
18
+ set required(value: boolean);
19
+ private _required;
20
+ set value(value: any);
21
+ get value(): any;
22
+ _value: string | null;
23
+ constructor();
24
+ ngControl: NgControl | null;
25
+ private readonly idGenerator;
26
+ private readonly countryCode;
27
+ private readonly locale;
28
+ readonly id: string;
29
+ readonly inputId: string;
30
+ focused: boolean;
31
+ readonly type: string;
32
+ readonly stateChanges: Subject<void>;
33
+ countries: Country[];
34
+ countriesFiltered: Country[];
35
+ selectedCallingCode: string;
36
+ phoneFormatted: string;
37
+ phoneValid: boolean;
38
+ inputs: QueryList<ElementRef<HTMLInputElement>>;
39
+ private getCountryNameFromCode;
40
+ private getCountryByCallingCode;
41
+ private isoToFlagEmoji;
42
+ private getCountryFromPhoneNumber;
43
+ private performValue;
44
+ private validateValue;
45
+ private formatValue;
46
+ disableToBeDirty?: boolean | undefined;
47
+ _onChange: any;
48
+ _onTouched: any;
49
+ ngAfterContentInit(): void;
50
+ ngOnChanges(changes: SimpleChanges): void;
51
+ ngOnDestroy(): void;
52
+ onContainerClick(event: MouseEvent): void;
53
+ _onFocus(): void;
54
+ _onBlur(): void;
55
+ registerOnChange(fn: any): void;
56
+ registerOnTouched(fn: any): void;
57
+ setDisabledState(isDisabled: boolean): void;
58
+ writeValue(value: any): void;
59
+ onInputChange(event: Event): void;
60
+ onCountryChange(): void;
61
+ getMaxLength(): number;
62
+ onHandleSearchSelect(query: string): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInputPhoneComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyInputPhoneComponent, "monkey-input-phone", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
65
+ static ngAcceptInputType_disabled: unknown;
66
+ static ngAcceptInputType_required: unknown;
67
+ }
68
+ export {};
@@ -0,0 +1,12 @@
1
+ import { MonkeyModalConfirmationConfig } from '../modal-config';
2
+ import { MonkeyModalRef } from '../modal-ref';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MonkeyModalConfirmationComponent {
5
+ config: MonkeyModalConfirmationConfig;
6
+ private modalRef;
7
+ constructor(config: MonkeyModalConfirmationConfig, modalRef: MonkeyModalRef);
8
+ onSubmit(): void;
9
+ onClose(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyModalConfirmationComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyModalConfirmationComponent, "monkey-modal-confirmation", never, {}, {}, never, never, false, never>;
12
+ }
@@ -4,11 +4,6 @@ import * as i0 from "@angular/core";
4
4
  export declare class MonkeyModalDefaultComponent {
5
5
  config: MonkeyModalDefaultConfig;
6
6
  private modalRef;
7
- title: string;
8
- subtitle: string;
9
- content: string;
10
- cancelLabel: string;
11
- okLabel: string;
12
7
  constructor(config: MonkeyModalDefaultConfig, modalRef: MonkeyModalRef);
13
8
  onSubmit(): void;
14
9
  onClose(): void;
@@ -3,7 +3,6 @@
3
3
  * This style guide was developed by Monkey Exchange Team
4
4
  * MIT Licence
5
5
  ************************* */
6
- import { ScrollStrategy } from '@angular/cdk/overlay';
7
6
  import { StaticProvider } from '@angular/core';
8
7
  export declare class MonkeyModalConfig {
9
8
  id?: string;
@@ -13,15 +12,11 @@ export declare class MonkeyModalConfig {
13
12
  backdropClass?: string | string[];
14
13
  disableClose?: boolean;
15
14
  disableBackdropClose?: boolean;
16
- width?: string;
17
- height?: string;
18
- minWidth?: number | string;
19
- minHeight?: number | string;
20
15
  maxWidth?: number | string;
21
16
  maxHeight?: number | string;
17
+ fullscreen?: boolean;
22
18
  position?: 'left-top' | 'center-top' | 'right-top' | 'left-center' | 'center-center' | 'right-center' | 'left-bottom' | 'center-bottom' | 'right-bottom';
23
19
  data?: any | null;
24
- scrollStrategy?: ScrollStrategy;
25
20
  closeOnNavigation?: boolean;
26
21
  providers?: StaticProvider[];
27
22
  }
@@ -32,3 +27,12 @@ export interface MonkeyModalDefaultConfig {
32
27
  cancelLabel: string;
33
28
  okLabel: string;
34
29
  }
30
+ export interface MonkeyModalConfirmationConfig {
31
+ title: string;
32
+ content: string;
33
+ cancelLabel: string;
34
+ okLabel: string;
35
+ type?: 'error' | 'success' | 'warning';
36
+ confirmColor?: 'error' | 'success' | 'theme';
37
+ icon?: string;
38
+ }
@@ -17,6 +17,7 @@ export declare class MonkeyModalRef {
17
17
  disableClose: boolean | undefined;
18
18
  disableBackdropClose: boolean | undefined;
19
19
  closeOnNavigation: boolean | undefined;
20
+ componentElement: HTMLElement;
20
21
  readonly closed: Observable<any>;
21
22
  readonly backdropClick: Observable<MouseEvent>;
22
23
  readonly keydownEvents: Observable<KeyboardEvent>;
@@ -1,16 +1,17 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./modal.component";
3
3
  import * as i2 from "./components/default";
4
- import * as i3 from "./directives/title";
5
- import * as i4 from "./directives/subtitle";
6
- import * as i5 from "./directives/content";
7
- import * as i6 from "./directives/actions";
8
- import * as i7 from "@angular/common";
9
- import * as i8 from "../button/button.component";
10
- import * as i9 from "../icon-button/icon-button.component";
11
- import * as i10 from "../icon/icon.component";
4
+ import * as i3 from "./components/confirmation.component";
5
+ import * as i4 from "./directives/title";
6
+ import * as i5 from "./directives/subtitle";
7
+ import * as i6 from "./directives/content";
8
+ import * as i7 from "./directives/actions";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "../button/button.component";
11
+ import * as i10 from "../icon-button/icon-button.component";
12
+ import * as i11 from "../icon/icon.component";
12
13
  export declare class MonkeyModalModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyModalModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyModalModule, [typeof i1.MonkeyModalComponent, typeof i2.MonkeyModalDefaultComponent, typeof i3.MonkeyModalTitleDirective, typeof i4.MonkeyModalSubtitleDirective, typeof i5.MonkeyModalContentDirective, typeof i6.MonkeyModalActionsDirective], [typeof i7.CommonModule, typeof i8.MonkeyButtonComponent, typeof i9.MonkeyIconButtonComponent, typeof i10.MonkeyIconComponent], [typeof i1.MonkeyModalComponent, typeof i3.MonkeyModalTitleDirective, typeof i4.MonkeyModalSubtitleDirective, typeof i5.MonkeyModalContentDirective, typeof i6.MonkeyModalActionsDirective]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyModalModule, [typeof i1.MonkeyModalComponent, typeof i2.MonkeyModalDefaultComponent, typeof i3.MonkeyModalConfirmationComponent, typeof i4.MonkeyModalTitleDirective, typeof i5.MonkeyModalSubtitleDirective, typeof i6.MonkeyModalContentDirective, typeof i7.MonkeyModalActionsDirective], [typeof i8.CommonModule, typeof i9.MonkeyButtonComponent, typeof i10.MonkeyIconButtonComponent, typeof i11.MonkeyIconComponent], [typeof i1.MonkeyModalComponent, typeof i4.MonkeyModalTitleDirective, typeof i5.MonkeyModalSubtitleDirective, typeof i6.MonkeyModalContentDirective, typeof i7.MonkeyModalActionsDirective]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyModalModule>;
16
17
  }
@@ -7,21 +7,21 @@ import { Overlay } from '@angular/cdk/overlay';
7
7
  import { ComponentType } from '@angular/cdk/portal';
8
8
  import { Injector } from '@angular/core';
9
9
  import { IdGenerator } from '../../../utils';
10
- import { MonkeyModalConfig, MonkeyModalDefaultConfig } from './modal-config';
10
+ import { MonkeyModalConfig, MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig } from './modal-config';
11
11
  import { MonkeyModalRef } from './modal-ref';
12
12
  import * as i0 from "@angular/core";
13
13
  export declare class MonkeyModalService {
14
- private overlay;
15
- private injector;
16
14
  protected _idGenerator: IdGenerator;
15
+ protected _injector: Injector;
16
+ protected _overlay: Overlay;
17
17
  protected _openDialogsAtThisLevel: MonkeyModalRef[];
18
18
  protected _parentDialog: MonkeyModalService | null;
19
- constructor(overlay: Overlay, injector: Injector);
20
19
  protected get openDialogs(): readonly MonkeyModalRef[];
21
20
  private getOverlayConfig;
22
21
  private createInjector;
23
22
  open<T>(component: ComponentType<T>, config: MonkeyModalConfig): MonkeyModalRef;
24
23
  openDefault(params: MonkeyModalDefaultConfig, config: MonkeyModalConfig): MonkeyModalRef;
24
+ openConfirmation(params: MonkeyModalConfirmationConfig, config: MonkeyModalConfig): MonkeyModalRef;
25
25
  closeAll(): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyModalService, never>;
27
27
  static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyModalService>;
@@ -4,8 +4,10 @@
4
4
  * MIT Licence
5
5
  ************************* */
6
6
  import { InjectionToken } from '@angular/core';
7
+ import { MonkeyModalConfirmationConfig, MonkeyModalDefaultConfig } from './modal-config';
7
8
  export declare const MECX_MODAL_DATA: InjectionToken<any>;
8
- export declare const MECX_MODAL_DEFAULT_CONFIG: InjectionToken<any>;
9
+ export declare const MECX_MODAL_DEFAULT_CONFIG: InjectionToken<MonkeyModalDefaultConfig>;
10
+ export declare const MECX_MODAL_CONFIRMATION_CONFIG: InjectionToken<MonkeyModalConfirmationConfig>;
9
11
  /**
10
12
  * @license
11
13
  * Copyright Google LLC All Rights Reserved.
@@ -10,13 +10,16 @@ export declare class MonkeyOptionComponent {
10
10
  _content: ElementRef<HTMLElement> | undefined;
11
11
  value: any;
12
12
  disabled: boolean;
13
+ type: string;
13
14
  get displayContent(): string;
14
15
  selected: boolean;
15
16
  tabIndex: number;
16
17
  action: Function;
17
18
  readonly id: string;
19
+ private handleAction;
18
20
  onClick(event: MouseEvent): void;
21
+ handleKeyDown(event: KeyboardEvent): void;
19
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyOptionComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyOptionComponent, "monkey-option", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyOptionComponent, "monkey-option", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
21
24
  static ngAcceptInputType_disabled: unknown;
22
25
  }
@@ -0,0 +1,6 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ export * from './radio-button.component';
@@ -0,0 +1,54 @@
1
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, QueryList } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { MonkeySize } from '../../interfaces';
5
+ import { MonkeyFormFieldControl } from '../form-field/form-field-control';
6
+ import { MonkeyFormFieldComponent } from '../form-field/form-field.component';
7
+ import { MonkeyOptionComponent } from '../option/option.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeyRadioButtonComponent implements MonkeyFormFieldControl, ControlValueAccessor, AfterContentInit {
10
+ private changeDetectorRef;
11
+ private formField;
12
+ options: QueryList<MonkeyOptionComponent>;
13
+ tabIndex: number;
14
+ onChange: EventEmitter<any>;
15
+ onSearch: EventEmitter<any>;
16
+ position: string;
17
+ size: MonkeySize;
18
+ get classes(): string;
19
+ get disabled(): boolean;
20
+ set disabled(value: boolean);
21
+ get required(): boolean;
22
+ set required(value: boolean);
23
+ private _required;
24
+ set value(value: any);
25
+ get value(): any;
26
+ _value: null;
27
+ private _destroyRef;
28
+ private readonly idGenerator;
29
+ ngControl: NgControl | null;
30
+ protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
31
+ focused: boolean;
32
+ _disabled: boolean;
33
+ readonly id: string;
34
+ readonly stateChanges: Subject<void>;
35
+ readonly type: string;
36
+ constructor(changeDetectorRef: ChangeDetectorRef, formField: MonkeyFormFieldComponent);
37
+ private changeSelected;
38
+ private initializeOptions;
39
+ ngAfterContentInit(): void;
40
+ selectOption(option: MonkeyOptionComponent): void;
41
+ writeValue(value: any): void;
42
+ onContainerClick(event: MouseEvent): void;
43
+ _onFocus(): void;
44
+ _onBlur(): void;
45
+ _onChange: any;
46
+ _onTouched: any;
47
+ registerOnChange(fn: any): void;
48
+ registerOnTouched(fn: any): void;
49
+ setDisabledState(isDisabled: boolean): void;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyRadioButtonComponent, [null, { optional: true; }]>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyRadioButtonComponent, "monkey-radiobutton", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "position": { "alias": "position"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onChange": "onChange"; "onSearch": "onSearch"; }, ["options"], ["*"], true, never>;
52
+ static ngAcceptInputType_disabled: unknown;
53
+ static ngAcceptInputType_required: unknown;
54
+ }
@@ -34,7 +34,6 @@ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, Co
34
34
  labelSelected: string;
35
35
  private overlayRef;
36
36
  private _destroyRef;
37
- readonly iconArrowDown: import("@angular/platform-browser").SafeHtml | null;
38
37
  private readonly idGenerator;
39
38
  ngControl: NgControl | null;
40
39
  protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
@@ -48,8 +47,6 @@ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, Co
48
47
  readonly searchHandle: EventEmitter<string>;
49
48
  readonly searchDictionary: import("rxjs").Observable<any>;
50
49
  readonly loadingDictionary: import("rxjs").Observable<any>;
51
- readonly imgSearchNoData: import("@angular/platform-browser").SafeHtml | null;
52
- readonly imgSearch: import("@angular/platform-browser").SafeHtml | null;
53
50
  showSearchNoData: boolean;
54
51
  isOpen: boolean;
55
52
  searchData: string;
@@ -23,6 +23,7 @@ export declare class MonkeyTooltipDirective {
23
23
  private positionBottom;
24
24
  show(): void;
25
25
  hide(): void;
26
+ onScroll(): void;
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTooltipDirective, never>;
27
28
  static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTooltipDirective, "[monkeyTooltip]", never, { "tooltipText": { "alias": "monkeyTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; }, {}, never, never, true, never>;
28
29
  static ngAcceptInputType_enabled: unknown;
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class MonkeyError {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyError, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyError, "monkey-error", never, {}, {}, never, never, false, never>;
2
+ export declare class MonkeyErrorDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyErrorDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyErrorDirective, "monkey-error", never, {}, {}, never, never, false, never>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class MonkeyHelper {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyHelper, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyHelper, "monkey-helper", never, {}, {}, never, never, false, never>;
2
+ export declare class MonkeyHelperDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyHelperDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyHelperDirective, "monkey-helper", never, {}, {}, never, never, false, never>;
5
5
  }
@@ -4,5 +4,6 @@ export * from './helper';
4
4
  export * from './info';
5
5
  export * from './label';
6
6
  export * from './module';
7
+ export * from './popover';
7
8
  export * from './prefix';
8
9
  export * from './suffix';
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class MonkeyInfo {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInfo, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyInfo, "monkey-info", never, {}, {}, never, never, false, never>;
2
+ export declare class MonkeyInfoDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInfoDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyInfoDirective, "monkey-info", never, {}, {}, never, never, false, never>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class MonkeyLabel {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyLabel, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyLabel, "monkey-label", never, {}, {}, never, never, false, never>;
2
+ export declare class MonkeyLabelDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyLabelDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyLabelDirective, "monkey-label", never, {}, {}, never, never, false, never>;
5
5
  }
@@ -6,8 +6,9 @@ import * as i4 from "./label";
6
6
  import * as i5 from "./prefix";
7
7
  import * as i6 from "./suffix";
8
8
  import * as i7 from "./badge";
9
+ import * as i8 from "./popover";
9
10
  export declare class MonkeyDirectivesModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyDirectivesModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyDirectivesModule, [typeof i1.MonkeyError, typeof i2.MonkeyHelper, typeof i3.MonkeyInfo, typeof i4.MonkeyLabel, typeof i5.MonkeyPrefix, typeof i6.MonkeySuffix, typeof i7.MonkeyBadgeDirective], never, [typeof i1.MonkeyError, typeof i2.MonkeyHelper, typeof i3.MonkeyInfo, typeof i4.MonkeyLabel, typeof i5.MonkeyPrefix, typeof i6.MonkeySuffix, typeof i7.MonkeyBadgeDirective]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyDirectivesModule, [typeof i1.MonkeyErrorDirective, typeof i2.MonkeyHelperDirective, typeof i3.MonkeyInfoDirective, typeof i4.MonkeyLabelDirective, typeof i5.MonkeyPrefixDirective, typeof i6.MonkeySuffixDirective, typeof i7.MonkeyBadgeDirective, typeof i8.MonkeyPopoverDirective], [typeof i8.MonkeyPopoverContentComponent], [typeof i1.MonkeyErrorDirective, typeof i2.MonkeyHelperDirective, typeof i3.MonkeyInfoDirective, typeof i4.MonkeyLabelDirective, typeof i5.MonkeyPrefixDirective, typeof i6.MonkeySuffixDirective, typeof i7.MonkeyBadgeDirective, typeof i8.MonkeyPopoverDirective]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyDirectivesModule>;
13
14
  }
@@ -0,0 +1,65 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { MonkeyPopoverDir } from '../interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MonkeyPopoverContentComponent implements AfterViewInit {
5
+ private host;
6
+ title?: string | TemplateRef<any>;
7
+ content: TemplateRef<any>;
8
+ actions?: string | TemplateRef<any>;
9
+ onClose: EventEmitter<any>;
10
+ hideHeader: boolean;
11
+ hideClose: boolean;
12
+ hideActions: boolean;
13
+ constructor(host: ElementRef<HTMLElement>);
14
+ ngAfterViewInit(): void;
15
+ isTemplate(value: unknown): value is TemplateRef<any>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPopoverContentComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyPopoverContentComponent, "monkey-popover-content", never, { "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "hideHeader": { "alias": "hideHeader"; "required": false; }; "hideClose": { "alias": "hideClose"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; }, { "onClose": "onClose"; }, never, never, true, never>;
18
+ static ngAcceptInputType_hideHeader: unknown;
19
+ static ngAcceptInputType_hideClose: unknown;
20
+ static ngAcceptInputType_hideActions: unknown;
21
+ }
22
+ export declare class MonkeyPopoverDirective implements OnDestroy {
23
+ private readonly _tpl;
24
+ private readonly _vcr;
25
+ private readonly _el;
26
+ private readonly _zone;
27
+ private readonly _overlay;
28
+ private readonly _overlayPositionBuilder;
29
+ private readonly _router;
30
+ private readonly _destroyRef;
31
+ private readonly _options?;
32
+ private _overlayRef?;
33
+ private _componentRef?;
34
+ private _positionStrategy?;
35
+ private _resizeObserver?;
36
+ private _show;
37
+ set popover(show: boolean);
38
+ get popover(): boolean;
39
+ closed?: (e?: MouseEvent) => void;
40
+ private _target?;
41
+ set target(value: any | undefined);
42
+ get target(): HTMLElement | undefined;
43
+ minwidth: boolean;
44
+ backdrop: boolean;
45
+ watch: boolean;
46
+ dir: MonkeyPopoverDir;
47
+ contextmenu: boolean;
48
+ height?: number | string;
49
+ title?: string | TemplateRef<unknown>;
50
+ actions?: string | TemplateRef<unknown>;
51
+ hideClose: boolean;
52
+ hideHeader: boolean;
53
+ hideActions: boolean;
54
+ constructor();
55
+ ngOnDestroy(): void;
56
+ private closePopover;
57
+ private disposePopover;
58
+ private getPositions;
59
+ private createPopover;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPopoverDirective, never>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyPopoverDirective, "[monkeyPopover]", never, { "popover": { "alias": "monkeyPopover"; "required": false; }; "closed": { "alias": "monkeyPopoverClosed"; "required": false; }; "target": { "alias": "monkeyPopoverTarget"; "required": false; }; "minwidth": { "alias": "monkeyPopoverMinwidth"; "required": false; }; "backdrop": { "alias": "monkeyPopoverBackdrop"; "required": false; }; "watch": { "alias": "monkeyPopoverWatch"; "required": false; }; "dir": { "alias": "monkeyPopoverDir"; "required": false; }; "contextmenu": { "alias": "monkeyPopoverContextmenu"; "required": false; }; "height": { "alias": "monkeyPopoverHeight"; "required": false; }; "title": { "alias": "monkeyPopoverTitle"; "required": false; }; "actions": { "alias": "monkeyPopoverActions"; "required": false; }; "hideClose": { "alias": "monkeyPopoverHideClose"; "required": false; }; "hideHeader": { "alias": "monkeyPopoverHideHeader"; "required": false; }; "hideActions": { "alias": "monkeyPopoverHideActions"; "required": false; }; }, {}, never, never, false, never>;
62
+ static ngAcceptInputType_hideClose: unknown;
63
+ static ngAcceptInputType_hideHeader: unknown;
64
+ static ngAcceptInputType_hideActions: unknown;
65
+ }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class MonkeyPrefix {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPrefix, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyPrefix, "monkey-prefix", never, {}, {}, never, never, false, never>;
2
+ export declare class MonkeyPrefixDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPrefixDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyPrefixDirective, "monkey-prefix", never, {}, {}, never, never, false, never>;
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- export declare class MonkeySuffix {
2
+ export declare class MonkeySuffixDirective {
3
3
  set _hasAction(value: '');
4
4
  hasAction: boolean;
5
5
  action: Function | null;
6
6
  onClick(event: PointerEvent): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeySuffix, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeySuffix, "monkey-suffix", never, { "_hasAction": { "alias": "hasAction"; "required": false; }; }, {}, never, never, false, never>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeySuffixDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeySuffixDirective, "monkey-suffix", never, { "_hasAction": { "alias": "hasAction"; "required": false; }; }, {}, never, never, false, never>;
9
9
  }
@@ -1,6 +1,7 @@
1
1
  export * from './alert';
2
2
  export * from './breadcrumb';
3
3
  export * from './button';
4
+ export * from './popover';
4
5
  export * from './sizes';
5
6
  export * from './table';
6
7
  export * from './toast';
@@ -0,0 +1,7 @@
1
+ export type MonkeyPopoverDir = 'rtl' | 'ltr' | 'trtl' | 'tltr' | 'ct' | 'cc' | 'cr' | 'rt' | 'rb' | 'lt' | 'lb';
2
+ export interface MonkeyPopoverOptions {
3
+ dir?: MonkeyPopoverDir;
4
+ minwidth?: boolean;
5
+ backdrop?: boolean;
6
+ contextmenu?: boolean;
7
+ }
@@ -3,5 +3,4 @@
3
3
  * This style guide was developed by Monkey Exchange Team
4
4
  * MIT Licence
5
5
  ************************* */
6
- export * from './icons.service';
7
6
  export * from './toast.service';