monkey-style-guide-v2 0.0.4 → 0.0.6

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 (169) hide show
  1. package/assets/scss/directives/_index.scss +7 -0
  2. package/assets/scss/directives/_styles.scss +100 -0
  3. package/assets/scss/input/_index.scss +7 -0
  4. package/assets/scss/input/_styles.scss +43 -0
  5. package/assets/scss/partials/_index.scss +7 -0
  6. package/assets/scss/partials/_style-reset.scss +189 -0
  7. package/assets/scss/partials/_variables.scss +178 -0
  8. package/assets/scss/table/_index.scss +7 -0
  9. package/assets/scss/table/_styles.scss +45 -0
  10. package/assets/scss/theme.scss +11 -0
  11. package/assets/scss/typography/_function.scss +23 -0
  12. package/assets/scss/typography/_index.scss +9 -0
  13. package/assets/scss/typography/_mixins.scss +111 -0
  14. package/assets/scss/typography/_styles.scss +173 -0
  15. package/esm2022/lib/components/index.mjs +14 -1
  16. package/esm2022/lib/components/monkey-accordion/index.mjs +2 -0
  17. package/esm2022/lib/components/monkey-accordion/monkey-accordion.component.mjs +102 -0
  18. package/esm2022/lib/components/monkey-alert/index.mjs +2 -0
  19. package/esm2022/lib/components/monkey-alert/monkey-alert.component.mjs +50 -0
  20. package/esm2022/lib/components/monkey-breadcrumb/index.mjs +2 -0
  21. package/esm2022/lib/components/monkey-breadcrumb/monkey-breadcrumb.component.mjs +56 -0
  22. package/esm2022/lib/components/monkey-button/monkey-button.component.mjs +27 -12
  23. package/esm2022/lib/components/monkey-checkbox/index.mjs +2 -0
  24. package/esm2022/lib/components/monkey-checkbox/monkey-checkbox.component.mjs +216 -0
  25. package/esm2022/lib/components/monkey-divider/index.mjs +2 -0
  26. package/esm2022/lib/components/monkey-divider/monkey-divider.component.mjs +44 -0
  27. package/esm2022/lib/components/monkey-form-field/form-field-control.mjs +15 -0
  28. package/esm2022/lib/components/monkey-form-field/form-field.mjs +250 -0
  29. package/esm2022/lib/components/monkey-form-field/index.mjs +5 -0
  30. package/esm2022/lib/components/monkey-form-field/module.mjs +21 -0
  31. package/esm2022/lib/components/monkey-form-field/utils.mjs +16 -0
  32. package/esm2022/lib/components/monkey-icon/monkey-icon.component.mjs +31 -15
  33. package/esm2022/lib/components/monkey-icon-button/monkey-icon-button.component.mjs +25 -9
  34. package/esm2022/lib/components/monkey-input/index.mjs +5 -0
  35. package/esm2022/lib/components/monkey-input/monkey-input-currency.directive.mjs +187 -0
  36. package/esm2022/lib/components/monkey-input/monkey-input.directive.mjs +166 -0
  37. package/esm2022/lib/components/monkey-input/monkey-input.module.mjs +24 -0
  38. package/esm2022/lib/components/monkey-input/validators.mjs +17 -0
  39. package/esm2022/lib/components/monkey-option/index.mjs +2 -0
  40. package/esm2022/lib/components/monkey-option/monkey-option.component.mjs +54 -0
  41. package/esm2022/lib/components/monkey-security-level/monkey-security-level.component.mjs +30 -14
  42. package/esm2022/lib/components/monkey-select/index.mjs +2 -0
  43. package/esm2022/lib/components/monkey-select/monkey-select.component.mjs +352 -0
  44. package/esm2022/lib/components/monkey-status/monkey-status.component.mjs +28 -12
  45. package/esm2022/lib/components/monkey-table/components/pagination-action/pagination-action.mjs +53 -0
  46. package/esm2022/lib/components/monkey-table/components/pagination-label/pagination-label.mjs +34 -0
  47. package/esm2022/lib/components/monkey-table/components/pagination-size/pagination-size.mjs +57 -0
  48. package/esm2022/lib/components/monkey-table/directives/column-checked.mjs +109 -0
  49. package/esm2022/lib/components/monkey-table/directives/column-expansible.mjs +134 -0
  50. package/esm2022/lib/components/monkey-table/directives/column-sortable.mjs +97 -0
  51. package/esm2022/lib/components/monkey-table/directives/column-stick.mjs +28 -0
  52. package/esm2022/lib/components/monkey-table/index.mjs +10 -0
  53. package/esm2022/lib/components/monkey-table/table.mjs +132 -0
  54. package/esm2022/lib/components/monkey-table/table.module.mjs +60 -0
  55. package/esm2022/lib/components/monkey-toast/index.mjs +2 -0
  56. package/esm2022/lib/components/monkey-toast/monkey-toast.component.mjs +74 -0
  57. package/esm2022/lib/components/monkey-toggle/monkey-toggle.component.mjs +28 -14
  58. package/esm2022/lib/components/monkey-toggle-line/index.mjs +3 -0
  59. package/esm2022/lib/components/monkey-toggle-line/monkey-toggle-line-button/index.mjs +2 -0
  60. package/esm2022/lib/components/monkey-toggle-line/monkey-toggle-line-button/monkey-toggle-line-button.component.mjs +24 -0
  61. package/esm2022/lib/components/monkey-toggle-line/monkey-toggle-line.component.mjs +85 -0
  62. package/esm2022/lib/components/monkey-tooltip/index.mjs +3 -0
  63. package/esm2022/lib/components/monkey-tooltip/monkey-tooltip.directive.mjs +175 -0
  64. package/esm2022/lib/components/monkey-tooltip/tooltip/index.mjs +2 -0
  65. package/esm2022/lib/components/monkey-tooltip/tooltip/tooltip.component.mjs +53 -0
  66. package/esm2022/lib/directives/error.mjs +18 -0
  67. package/esm2022/lib/directives/helper.mjs +18 -0
  68. package/esm2022/lib/directives/index.mjs +8 -0
  69. package/esm2022/lib/directives/info.mjs +18 -0
  70. package/esm2022/lib/directives/label.mjs +18 -0
  71. package/esm2022/lib/directives/module.mjs +26 -0
  72. package/esm2022/lib/directives/prefix.mjs +18 -0
  73. package/esm2022/lib/directives/suffix.mjs +43 -0
  74. package/esm2022/lib/interfaces/alert.mjs +2 -0
  75. package/esm2022/lib/interfaces/breadcrumb.mjs +2 -0
  76. package/esm2022/lib/interfaces/button.mjs +2 -0
  77. package/esm2022/lib/interfaces/index.mjs +7 -0
  78. package/esm2022/lib/interfaces/sizes.mjs +2 -0
  79. package/esm2022/lib/interfaces/table.mjs +2 -0
  80. package/esm2022/lib/interfaces/toast.mjs +10 -0
  81. package/esm2022/lib/services/index.mjs +4 -0
  82. package/esm2022/lib/services/monkey-destroy.service.mjs +15 -0
  83. package/esm2022/lib/services/monkey-icons.service.mjs +45 -0
  84. package/esm2022/lib/services/monkey-toast.service.mjs +72 -0
  85. package/esm2022/public-api.mjs +6 -3
  86. package/esm2022/utils/id-generator.mjs +20 -0
  87. package/esm2022/utils/index.mjs +4 -0
  88. package/esm2022/utils/tests-utils.mjs +4 -0
  89. package/esm2022/utils/utils.mjs +10 -0
  90. package/fesm2022/monkey-style-guide-v2.mjs +3049 -121
  91. package/fesm2022/monkey-style-guide-v2.mjs.map +1 -1
  92. package/lib/components/index.d.ts +13 -0
  93. package/lib/components/monkey-accordion/index.d.ts +1 -0
  94. package/lib/components/monkey-accordion/monkey-accordion.component.d.ts +22 -0
  95. package/lib/components/monkey-alert/index.d.ts +1 -0
  96. package/lib/components/monkey-alert/monkey-alert.component.d.ts +23 -0
  97. package/lib/components/monkey-breadcrumb/index.d.ts +1 -0
  98. package/lib/components/monkey-breadcrumb/monkey-breadcrumb.component.d.ts +18 -0
  99. package/lib/components/monkey-button/monkey-button.component.d.ts +11 -4
  100. package/lib/components/monkey-checkbox/index.d.ts +1 -0
  101. package/lib/components/monkey-checkbox/monkey-checkbox.component.d.ts +50 -0
  102. package/lib/components/monkey-divider/index.d.ts +1 -0
  103. package/lib/components/monkey-divider/monkey-divider.component.d.ts +20 -0
  104. package/lib/components/monkey-form-field/form-field-control.d.ts +18 -0
  105. package/lib/components/monkey-form-field/form-field.d.ts +74 -0
  106. package/lib/components/monkey-form-field/index.d.ts +4 -0
  107. package/lib/components/monkey-form-field/module.d.ts +7 -0
  108. package/lib/components/monkey-form-field/utils.d.ts +6 -0
  109. package/lib/components/monkey-icon/monkey-icon.component.d.ts +6 -1
  110. package/lib/components/monkey-icon-button/monkey-icon-button.component.d.ts +6 -1
  111. package/lib/components/monkey-input/index.d.ts +4 -0
  112. package/lib/components/monkey-input/monkey-input-currency.directive.d.ts +57 -0
  113. package/lib/components/monkey-input/monkey-input.directive.d.ts +46 -0
  114. package/lib/components/monkey-input/monkey-input.module.d.ts +8 -0
  115. package/lib/components/monkey-input/validators.d.ts +1 -0
  116. package/lib/components/monkey-option/index.d.ts +1 -0
  117. package/lib/components/monkey-option/monkey-option.component.d.ts +22 -0
  118. package/lib/components/monkey-security-level/monkey-security-level.component.d.ts +7 -2
  119. package/lib/components/monkey-select/index.d.ts +1 -0
  120. package/lib/components/monkey-select/monkey-select.component.d.ts +74 -0
  121. package/lib/components/monkey-status/monkey-status.component.d.ts +8 -3
  122. package/lib/components/monkey-table/components/pagination-action/pagination-action.d.ts +17 -0
  123. package/lib/components/monkey-table/components/pagination-label/pagination-label.d.ts +10 -0
  124. package/lib/components/monkey-table/components/pagination-size/pagination-size.d.ts +15 -0
  125. package/lib/components/monkey-table/directives/column-checked.d.ts +32 -0
  126. package/lib/components/monkey-table/directives/column-expansible.d.ts +25 -0
  127. package/lib/components/monkey-table/directives/column-sortable.d.ts +24 -0
  128. package/lib/components/monkey-table/directives/column-stick.d.ts +6 -0
  129. package/lib/components/monkey-table/index.d.ts +9 -0
  130. package/lib/components/monkey-table/table.d.ts +32 -0
  131. package/lib/components/monkey-table/table.module.d.ts +15 -0
  132. package/lib/components/monkey-toast/index.d.ts +1 -0
  133. package/lib/components/monkey-toast/monkey-toast.component.d.ts +26 -0
  134. package/lib/components/monkey-toggle/monkey-toggle.component.d.ts +6 -1
  135. package/lib/components/monkey-toggle-line/index.d.ts +2 -0
  136. package/lib/components/monkey-toggle-line/monkey-toggle-line-button/index.d.ts +1 -0
  137. package/lib/components/monkey-toggle-line/monkey-toggle-line-button/monkey-toggle-line-button.component.d.ts +16 -0
  138. package/lib/components/monkey-toggle-line/monkey-toggle-line.component.d.ts +24 -0
  139. package/lib/components/monkey-tooltip/index.d.ts +2 -0
  140. package/lib/components/monkey-tooltip/monkey-tooltip.directive.d.ts +30 -0
  141. package/lib/components/monkey-tooltip/tooltip/index.d.ts +1 -0
  142. package/lib/components/monkey-tooltip/tooltip/tooltip.component.d.ts +19 -0
  143. package/lib/directives/error.d.ts +5 -0
  144. package/lib/directives/helper.d.ts +5 -0
  145. package/lib/directives/index.d.ts +7 -0
  146. package/lib/directives/info.d.ts +5 -0
  147. package/lib/directives/label.d.ts +5 -0
  148. package/lib/directives/module.d.ts +12 -0
  149. package/lib/directives/prefix.d.ts +5 -0
  150. package/lib/directives/suffix.d.ts +9 -0
  151. package/lib/interfaces/alert.d.ts +1 -0
  152. package/lib/interfaces/breadcrumb.d.ts +5 -0
  153. package/lib/interfaces/button.d.ts +1 -0
  154. package/lib/interfaces/index.d.ts +6 -0
  155. package/lib/interfaces/sizes.d.ts +1 -0
  156. package/lib/interfaces/table.d.ts +4 -0
  157. package/lib/interfaces/toast.d.ts +22 -0
  158. package/lib/services/index.d.ts +3 -0
  159. package/lib/services/monkey-destroy.service.d.ts +8 -0
  160. package/lib/services/monkey-icons.service.d.ts +14 -0
  161. package/lib/services/monkey-toast.service.d.ts +13 -0
  162. package/monkey-style-guide-v2-0.0.6.tgz +0 -0
  163. package/package.json +10 -3
  164. package/public-api.d.ts +5 -2
  165. package/utils/id-generator.d.ts +6 -0
  166. package/utils/index.d.ts +3 -0
  167. package/utils/tests-utils.d.ts +1 -0
  168. package/utils/utils.d.ts +1 -0
  169. package/monkey-style-guide-v2-0.0.4.tgz +0 -0
@@ -1,6 +1,19 @@
1
+ export * from './monkey-accordion';
2
+ export * from './monkey-alert';
3
+ export * from './monkey-breadcrumb';
1
4
  export * from './monkey-button';
5
+ export * from './monkey-checkbox';
6
+ export * from './monkey-divider';
7
+ export * from './monkey-form-field';
2
8
  export * from './monkey-icon';
3
9
  export * from './monkey-icon-button';
10
+ export * from './monkey-input';
4
11
  export * from './monkey-security-level';
5
12
  export * from './monkey-status';
13
+ export * from './monkey-table';
14
+ export * from './monkey-toast';
6
15
  export * from './monkey-toggle';
16
+ export * from './monkey-toggle-line';
17
+ export * from './monkey-tooltip';
18
+ export * from './monkey-select';
19
+ export * from './monkey-option';
@@ -0,0 +1 @@
1
+ export * from './monkey-accordion.component';
@@ -0,0 +1,22 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { SafeHtml } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MonkeyAccordionComponent {
5
+ private readonly _icons;
6
+ open: boolean;
7
+ disabled: boolean;
8
+ set title(data: string | TemplateRef<any>);
9
+ titleStr: string | undefined;
10
+ titleRef: TemplateRef<any> | undefined;
11
+ imgArrowDown: SafeHtml | null;
12
+ protected _uid: string;
13
+ protected _id: string;
14
+ get id(): string;
15
+ set id(value: string);
16
+ constructor();
17
+ onClick(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyAccordionComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyAccordionComponent, "monkey-accordion", never, { "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "title": { "alias": "title"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
20
+ static ngAcceptInputType_open: unknown;
21
+ static ngAcceptInputType_disabled: unknown;
22
+ }
@@ -0,0 +1 @@
1
+ export * from './monkey-alert.component';
@@ -0,0 +1,23 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { InputSignal, OutputEmitterRef } from '@angular/core';
7
+ import { type MonkeyAlertType } from '../../interfaces';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeyAlertComponent {
10
+ buttonLabel: InputSignal<string>;
11
+ message: InputSignal<string>;
12
+ title: InputSignal<string>;
13
+ type: InputSignal<MonkeyAlertType>;
14
+ onButtonClicked: OutputEmitterRef<void>;
15
+ protected _uid: string;
16
+ protected _id: string;
17
+ get id(): string;
18
+ set id(value: string);
19
+ constructor();
20
+ icon(type: MonkeyAlertType): string;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyAlertComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyAlertComponent, "monkey-alert", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, { "onButtonClicked": "onButtonClicked"; }, never, never, true, never>;
23
+ }
@@ -0,0 +1 @@
1
+ export * from './monkey-breadcrumb.component';
@@ -0,0 +1,18 @@
1
+ import { Router } from '@angular/router';
2
+ import { Breadcrumb } from '../../interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MonkeyBreadcrumbComponent {
5
+ first: Breadcrumb;
6
+ last: Breadcrumb;
7
+ colapsed: boolean;
8
+ protected _router: Router;
9
+ protected _uid: string;
10
+ protected _id: string;
11
+ get id(): string;
12
+ set id(value: string);
13
+ constructor();
14
+ handleNavigate(item: Breadcrumb): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyBreadcrumbComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyBreadcrumbComponent, "monkey-breadcrumb", never, { "first": { "alias": "first"; "required": true; }; "last": { "alias": "last"; "required": true; }; "colapsed": { "alias": "colapsed"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
17
+ static ngAcceptInputType_colapsed: unknown;
18
+ }
@@ -1,9 +1,16 @@
1
+ import { MonkeyButtonType } from '../../interfaces/button';
2
+ import { MonkeySize } from '../../interfaces/sizes';
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class MonkeyButtonComponent {
3
- type: 'primary' | 'secondary' | 'tertiary';
4
- size: 'sm' | 'md' | 'lg';
5
5
  disabled: boolean;
6
- onClick(event: any): void;
6
+ size: MonkeySize;
7
+ type: MonkeyButtonType;
8
+ protected _uid: string;
9
+ protected _id: string;
10
+ get id(): string;
11
+ set id(value: string);
12
+ constructor();
13
+ onClick(event: PointerEvent): void;
7
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyButtonComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyButtonComponent, "monkey-button-v2", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["[first]", "*", "[last]"], true, never>;
15
+ 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>;
9
16
  }
@@ -0,0 +1 @@
1
+ export * from './monkey-checkbox.component';
@@ -0,0 +1,50 @@
1
+ import { EventEmitter, OnChanges, OnInit } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MonkeyCheckboxComponent implements ControlValueAccessor, OnChanges, OnInit, Validator {
5
+ private infoChildren;
6
+ private labelChildren;
7
+ private helperChildren;
8
+ disabled: boolean;
9
+ indeterminate: boolean;
10
+ required: boolean;
11
+ showFooter: boolean;
12
+ size: 'sm' | 'md' | 'lg';
13
+ onChange: EventEmitter<boolean>;
14
+ private _destroyed;
15
+ private readonly icons;
16
+ private readonly idGenerator;
17
+ private injector;
18
+ private cdr;
19
+ 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
+ readonly inputId: string;
23
+ value: boolean;
24
+ isFocused: boolean;
25
+ get showInvalid(): boolean;
26
+ get hasHeader(): boolean;
27
+ get isTouched(): boolean;
28
+ get isInvalid(): boolean;
29
+ ngOnInit(): void;
30
+ _onChange: any;
31
+ _onTouched: any;
32
+ _onValidatorChange: any;
33
+ ngOnChanges(changes: any): void;
34
+ onBlur: () => void;
35
+ onFocus: () => void;
36
+ validate(control: AbstractControl): ValidationErrors | null;
37
+ writeValue(value: boolean): void;
38
+ registerOnChange(fn: any): void;
39
+ registerOnTouched(fn: any): void;
40
+ registerOnValidatorChange(fn: () => void): void;
41
+ setDisabledState(isDisabled: boolean): void;
42
+ onChangeEvent(event: Event): void;
43
+ getFooterMessages(): 'info' | 'error' | '';
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyCheckboxComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyCheckboxComponent, "monkey-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "required": { "alias": "required"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onChange": "onChange"; }, ["infoChildren", "labelChildren", "helperChildren"], ["monkey-label", "monkey-helper", "*", "monkey-error", "monkey-info"], true, never>;
46
+ static ngAcceptInputType_disabled: unknown;
47
+ static ngAcceptInputType_indeterminate: unknown;
48
+ static ngAcceptInputType_required: unknown;
49
+ static ngAcceptInputType_showFooter: unknown;
50
+ }
@@ -0,0 +1 @@
1
+ export * from './monkey-divider.component';
@@ -0,0 +1,20 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { InputSignal, InputSignalWithTransform } from '@angular/core';
7
+ import { MonkeySize } from '../../interfaces';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeyDividerComponent {
10
+ size: InputSignal<MonkeySize>;
11
+ vertical: InputSignalWithTransform<boolean, unknown>;
12
+ get classes(): string;
13
+ protected _uid: string;
14
+ protected _id: string;
15
+ get id(): string;
16
+ set id(value: string);
17
+ constructor();
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyDividerComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyDividerComponent, "monkey-divider", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
20
+ }
@@ -0,0 +1,18 @@
1
+ import { AbstractControlDirective, NgControl } from '@angular/forms';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare abstract class MonkeyFormFieldControl {
5
+ readonly id: string;
6
+ readonly ngControl: NgControl | AbstractControlDirective | null;
7
+ readonly disabled: boolean;
8
+ readonly focused: boolean;
9
+ readonly stateChanges: Observable<void>;
10
+ readonly type: string;
11
+ readonly currency: boolean;
12
+ readonly percent: boolean;
13
+ abstract onContainerClick(event: MouseEvent): void;
14
+ loading?: boolean;
15
+ disableToBeDirty?: boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFormFieldControl, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyFormFieldControl, never, never, {}, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,74 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { AfterContentChecked, AfterContentInit, ElementRef, OnDestroy } from '@angular/core';
7
+ import { SafeHtml } from '@angular/platform-browser';
8
+ import { MonkeyFormFieldControl } from './form-field-control';
9
+ import * as i0 from "@angular/core";
10
+ export declare class MonkeyFormFieldComponent implements AfterContentInit, AfterContentChecked, OnDestroy {
11
+ get id(): string;
12
+ set id(value: string);
13
+ hideClear: boolean;
14
+ private _formFieldControl;
15
+ private _labelChildren;
16
+ private _helperChildren;
17
+ private _prefixChildren;
18
+ private _suffixChildren;
19
+ private _infoChildren;
20
+ private _errorChildren;
21
+ elementRef: ElementRef<any>;
22
+ private readonly _icons;
23
+ private readonly _changeDetectorRef;
24
+ private readonly _idGenerator;
25
+ private readonly _labelId;
26
+ protected _uid: string;
27
+ protected _id: string;
28
+ private _destroyed;
29
+ private _isFocused;
30
+ private _previousControl;
31
+ private _stateChanges;
32
+ private _valueChanges;
33
+ readonly currencySymbol: string | undefined;
34
+ readonly percentSymbol = "%";
35
+ imgClear: SafeHtml | null;
36
+ imgCalendar: SafeHtml | null;
37
+ imgLoading: SafeHtml | null;
38
+ hasLabel: boolean;
39
+ hasHelper: boolean;
40
+ hasPrefix: boolean;
41
+ hasSuffix: boolean;
42
+ hasInfo: boolean;
43
+ hasError: boolean;
44
+ get control(): MonkeyFormFieldControl;
45
+ get labelId(): string;
46
+ get showHeader(): boolean;
47
+ get showFooter(): boolean;
48
+ get showInvalid(): boolean;
49
+ get showClear(): boolean;
50
+ get showCalendar(): boolean;
51
+ get showCurrency(): boolean;
52
+ get showPercent(): boolean;
53
+ get showLoading(): boolean;
54
+ constructor();
55
+ private updateFocusState;
56
+ private handleFormFieldControl;
57
+ private checkPrefixAndSuffix;
58
+ private initializePrefixAndSuffix;
59
+ private checkInfoError;
60
+ private initializeInfoError;
61
+ private initializeComponents;
62
+ private initializeControl;
63
+ private openDatePicker;
64
+ ngAfterContentInit(): void;
65
+ ngAfterContentChecked(): void;
66
+ ngOnDestroy(): void;
67
+ getFooterMessages(): 'info' | 'error' | '';
68
+ getSymbols(): string;
69
+ onClear(event: MouseEvent): void;
70
+ onOpenCalendar(event: MouseEvent): void;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFormFieldComponent, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyFormFieldComponent, "monkey-form-field", ["monkeyFormField"], { "id": { "alias": "id"; "required": false; }; "hideClear": { "alias": "hideClear"; "required": false; }; }, {}, ["_formFieldControl", "_labelChildren", "_helperChildren", "_prefixChildren", "_suffixChildren", "_infoChildren", "_errorChildren"], ["monkey-label", "monkey-helper", "monkey-prefix", "*", "monkey-suffix", "monkey-error", "monkey-info"], false, never>;
73
+ static ngAcceptInputType_hideClear: unknown;
74
+ }
@@ -0,0 +1,4 @@
1
+ export * from './form-field';
2
+ export * from './form-field-control';
3
+ export * from './module';
4
+ export * from './utils';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./form-field";
3
+ export declare class MonkeyFormFieldModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFormFieldModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFormFieldModule, [typeof i1.MonkeyFormFieldComponent], never, [typeof i1.MonkeyFormFieldComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyFormFieldModule>;
7
+ }
@@ -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 declare function getCurrencySymbol(code: string): string | undefined;
@@ -4,7 +4,12 @@ export declare class MonkeyIconComponent implements OnInit {
4
4
  set icon(val: string);
5
5
  size: string;
6
6
  _icon: string;
7
+ protected _uid: string;
8
+ protected _id: string;
9
+ get id(): string;
10
+ set id(value: string);
11
+ constructor();
7
12
  ngOnInit(): void;
8
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyIconComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyIconComponent, "monkey-icon-v2", never, { "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyIconComponent, "monkey-icon", never, { "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
10
15
  }
@@ -4,7 +4,12 @@ export declare class MonkeyIconButtonComponent {
4
4
  size: 'sm' | 'md' | 'lg';
5
5
  disabled: boolean;
6
6
  icon: string;
7
+ protected _uid: string;
8
+ protected _id: string;
9
+ get id(): string;
10
+ set id(value: string);
11
+ constructor();
7
12
  onClick(event: any): void;
8
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyIconButtonComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyIconButtonComponent, "monkey-icon-button-v2", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyIconButtonComponent, "monkey-icon-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
10
15
  }
@@ -0,0 +1,4 @@
1
+ export * from './monkey-input-currency.directive';
2
+ export * from './monkey-input.directive';
3
+ export * from './monkey-input.module';
4
+ export * from './validators';
@@ -0,0 +1,57 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { BooleanInput } from '@angular/cdk/coercion';
7
+ import { CurrencyPipe } from '@angular/common';
8
+ import { ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
9
+ import { NgControl } from '@angular/forms';
10
+ import { Subject } from 'rxjs';
11
+ import { MonkeyFormFieldControl } from '../monkey-form-field';
12
+ import * as i0 from "@angular/core";
13
+ export declare class MonkeyInputCurrencyDirective implements MonkeyFormFieldControl, OnChanges, OnInit, OnDestroy {
14
+ private el;
15
+ private renderer;
16
+ private currencyPipe;
17
+ protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
18
+ protected _uid: string;
19
+ protected _id: string;
20
+ readonly stateChanges: Subject<void>;
21
+ name: string;
22
+ get disabled(): boolean;
23
+ set disabled(value: boolean);
24
+ get id(): string;
25
+ set id(value: string);
26
+ get required(): boolean;
27
+ set required(value: BooleanInput);
28
+ protected _required: boolean | undefined;
29
+ protected _disabled: boolean;
30
+ get type(): string;
31
+ set type(value: string);
32
+ protected _type: string;
33
+ get currency(): boolean;
34
+ get percent(): boolean;
35
+ private readonly _changeDetectorRef;
36
+ private readonly _currencyCode;
37
+ private readonly _localeId;
38
+ private _destroyed;
39
+ private _valueChanges;
40
+ private _rawValue;
41
+ ngControl: NgControl | null;
42
+ focused: boolean;
43
+ constructor(el: ElementRef, renderer: Renderer2, currencyPipe: CurrencyPipe);
44
+ private markAsUntouched;
45
+ private focus;
46
+ private formatValue;
47
+ private handleControlValue;
48
+ ngOnInit(): void;
49
+ ngOnDestroy(): void;
50
+ ngOnChanges({ disabled }: SimpleChanges): void;
51
+ onContainerClick(): void;
52
+ focusChanged(isFocused: boolean): void;
53
+ focusOutChanged(): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInputCurrencyDirective, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyInputCurrencyDirective, "input[monkey-input-currency]", ["monkeyInput"], { "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
56
+ static ngAcceptInputType_disabled: unknown;
57
+ }
@@ -0,0 +1,46 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { BooleanInput } from '@angular/cdk/coercion';
7
+ import { ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
8
+ import { NgControl } from '@angular/forms';
9
+ import { Subject } from 'rxjs';
10
+ import { MonkeyFormFieldControl } from '../monkey-form-field';
11
+ import * as i0 from "@angular/core";
12
+ export declare class MonkeyInputDirective implements MonkeyFormFieldControl, OnChanges, OnDestroy {
13
+ protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
14
+ protected _uid: string;
15
+ protected _id: string;
16
+ readonly stateChanges: Subject<void>;
17
+ name: string;
18
+ get disabled(): boolean;
19
+ set disabled(value: boolean);
20
+ get id(): string;
21
+ set id(value: string);
22
+ get required(): boolean;
23
+ set required(value: BooleanInput);
24
+ protected _required: boolean | undefined;
25
+ protected _disabled: boolean;
26
+ get type(): string;
27
+ set type(value: string);
28
+ protected _type: string;
29
+ get currency(): boolean;
30
+ get percent(): boolean;
31
+ set percent(value: '');
32
+ protected _percent: boolean;
33
+ ngControl: NgControl | null;
34
+ focused: boolean;
35
+ constructor();
36
+ private markAsUntouched;
37
+ private focus;
38
+ ngOnDestroy(): void;
39
+ ngOnChanges({ disabled }: SimpleChanges): void;
40
+ onContainerClick(): void;
41
+ focusChanged(isFocused: boolean): void;
42
+ focusOutChanged(): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInputDirective, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyInputDirective, "input[monkey-input],textarea[monkey-input]", ["monkeyInput"], { "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; }, {}, never, never, false, never>;
45
+ static ngAcceptInputType_disabled: unknown;
46
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./monkey-input.directive";
3
+ import * as i2 from "./monkey-input-currency.directive";
4
+ export declare class MonkeyInputModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyInputModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyInputModule, [typeof i1.MonkeyInputDirective, typeof i2.MonkeyInputCurrencyDirective], never, [typeof i1.MonkeyInputDirective, typeof i2.MonkeyInputCurrencyDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyInputModule>;
8
+ }
@@ -0,0 +1 @@
1
+ export declare function validateType(type: string): void;
@@ -0,0 +1 @@
1
+ export * from './monkey-option.component';
@@ -0,0 +1,22 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { ElementRef } from '@angular/core';
7
+ import * as i0 from "@angular/core";
8
+ export declare class MonkeyOptionComponent {
9
+ private readonly idGenerator;
10
+ _content: ElementRef<HTMLElement> | undefined;
11
+ value: any;
12
+ disabled: boolean;
13
+ get displayContent(): string;
14
+ selected: boolean;
15
+ tabIndex: number;
16
+ action: Function;
17
+ readonly id: string;
18
+ onClick(event: MouseEvent): void;
19
+ 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>;
21
+ static ngAcceptInputType_disabled: unknown;
22
+ }
@@ -1,9 +1,14 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class MonkeySecurityLevelComponent {
3
- score: import("@angular/core").InputSignal<number>;
4
3
  label: import("@angular/core").InputSignal<string | undefined>;
4
+ score: import("@angular/core").InputSignal<number>;
5
5
  strengthLabel: import("@angular/core").InputSignal<string | undefined>;
6
6
  get class(): string;
7
+ protected _uid: string;
8
+ protected _id: string;
9
+ get id(): string;
10
+ set id(value: string);
11
+ constructor();
7
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeySecurityLevelComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeySecurityLevelComponent, "monkey-security-level", never, { "score": { "alias": "score"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "strengthLabel": { "alias": "strengthLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeySecurityLevelComponent, "monkey-security-level", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "score": { "alias": "score"; "required": true; "isSignal": true; }; "strengthLabel": { "alias": "strengthLabel"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
9
14
  }
@@ -0,0 +1 @@
1
+ export * from './monkey-select.component';
@@ -0,0 +1,74 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
3
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
4
+ import { Subject } from 'rxjs';
5
+ import { MonkeyFormFieldComponent } from '../monkey-form-field/form-field';
6
+ import { MonkeyFormFieldControl } from '../monkey-form-field/form-field-control';
7
+ import { MonkeyOptionComponent } from '../monkey-option/monkey-option.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeySelectComponent implements MonkeyFormFieldControl, ControlValueAccessor, AfterContentInit, OnDestroy, OnChanges {
10
+ private overlay;
11
+ private changeDetectorRef;
12
+ private viewContainerRef;
13
+ private formField;
14
+ overlayTemplate: TemplateRef<any>;
15
+ overlayEl: ElementRef;
16
+ trigger: ElementRef;
17
+ options: QueryList<MonkeyOptionComponent>;
18
+ tabIndex: number;
19
+ onChange: EventEmitter<any>;
20
+ placeholder: string;
21
+ loading: boolean;
22
+ get disabled(): boolean;
23
+ set disabled(value: boolean);
24
+ get required(): boolean;
25
+ set required(value: boolean);
26
+ private _required;
27
+ set value(value: any);
28
+ get value(): any;
29
+ _value: null;
30
+ labelSelected: string;
31
+ private overlayRef;
32
+ isOpen: boolean;
33
+ private _destroyed;
34
+ readonly iconArrowDown: import("@angular/platform-browser").SafeHtml | null;
35
+ private readonly idGenerator;
36
+ ngControl: NgControl | null;
37
+ protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
38
+ readonly currency: boolean;
39
+ focused: boolean;
40
+ _disabled: boolean;
41
+ readonly id: string;
42
+ readonly percent: boolean;
43
+ readonly stateChanges: Subject<void>;
44
+ readonly type: string;
45
+ constructor(overlay: Overlay, changeDetectorRef: ChangeDetectorRef, viewContainerRef: ViewContainerRef, formField: MonkeyFormFieldComponent);
46
+ private changeControl;
47
+ private changeSelected;
48
+ private initializeOptions;
49
+ ngAfterContentInit(): void;
50
+ ngOnDestroy(): void;
51
+ toggleDropdown(): void;
52
+ private openDropdown;
53
+ private closeDropdown;
54
+ private closeOverlay;
55
+ onAnimationEnd: (event: any) => void;
56
+ private createOverlay;
57
+ selectOption(option: MonkeyOptionComponent): void;
58
+ private updateSelectedLabel;
59
+ writeValue(value: any): void;
60
+ onContainerClick(event: MouseEvent): void;
61
+ _onFocus(): void;
62
+ _onBlur(): void;
63
+ _onChange: any;
64
+ _onTouched: any;
65
+ registerOnChange(fn: any): void;
66
+ registerOnTouched(fn: any): void;
67
+ setDisabledState(isDisabled: boolean): void;
68
+ ngOnChanges(changes: SimpleChanges): void;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeySelectComponent, [null, null, null, { optional: true; }]>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeySelectComponent, "monkey-select", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": true; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onChange": "onChange"; }, ["options"], ["*"], true, never>;
71
+ static ngAcceptInputType_loading: unknown;
72
+ static ngAcceptInputType_disabled: unknown;
73
+ static ngAcceptInputType_required: unknown;
74
+ }
@@ -1,12 +1,17 @@
1
+ import { MonkeySize } from '../../interfaces';
1
2
  import * as i0 from "@angular/core";
2
3
  type Status = 'default' | 'success' | 'warning' | 'error' | 'question' | 'info';
3
- type Size = 'md' | 'sm' | 'lg';
4
4
  export declare class MonkeyStatusComponent {
5
5
  type: import("@angular/core").InputSignal<Status>;
6
- size: import("@angular/core").InputSignal<Size>;
6
+ size: import("@angular/core").InputSignal<MonkeySize>;
7
7
  label: import("@angular/core").InputSignal<string | undefined>;
8
8
  get class(): string;
9
+ protected _uid: string;
10
+ protected _id: string;
11
+ get id(): string;
12
+ set id(value: string);
13
+ constructor();
9
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyStatusComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyStatusComponent, "monkey-status", never, { "type": { "alias": "type"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyStatusComponent, "monkey-status", never, { "type": { "alias": "type"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
11
16
  }
12
17
  export {};
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MonkeyPaginationActionComponent {
4
+ disabled: boolean;
5
+ first: boolean;
6
+ last: boolean;
7
+ next: boolean;
8
+ prev: boolean;
9
+ onAction: EventEmitter<any>;
10
+ protected _uid: string;
11
+ protected _id: string;
12
+ get id(): string;
13
+ set id(value: string);
14
+ constructor();
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyPaginationActionComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyPaginationActionComponent, "monkey-pagination-action", ["monkeyPaginationAction"], { "disabled": { "alias": "disabled"; "required": false; }; "first": { "alias": "first"; "required": false; }; "last": { "alias": "last"; "required": false; }; "next": { "alias": "next"; "required": true; }; "prev": { "alias": "prev"; "required": true; }; "id": { "alias": "id"; "required": false; }; }, { "onAction": "onAction"; }, never, never, true, never>;
17
+ }