monkey-style-guide-v2 0.0.33 → 0.0.34

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.
@@ -6,6 +6,7 @@ export declare class MonkeyButtonComponent {
6
6
  color: MonkeyButtonColor;
7
7
  size: MonkeySize;
8
8
  type: MonkeyButtonType;
9
+ loading: boolean;
9
10
  private readonly elementRef;
10
11
  protected _uid: string;
11
12
  protected _id: string;
@@ -15,5 +16,5 @@ export declare class MonkeyButtonComponent {
15
16
  onClick(event: PointerEvent): void;
16
17
  get element(): HTMLElement;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyButtonComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyButtonComponent, "monkey-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["[first]", "*", "[last]"], true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyButtonComponent, "monkey-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["[first]", "*", "[last]"], true, never>;
19
20
  }
@@ -29,7 +29,7 @@ export declare class MonkeyCheckboxComponent implements ControlValueAccessor, On
29
29
  _onValidatorChange: any;
30
30
  ngOnChanges(changes: any): void;
31
31
  onBlur: () => void;
32
- onFocus: () => void;
32
+ onFocus: (event: any) => void;
33
33
  validate(control: AbstractControl): ValidationErrors | null;
34
34
  writeValue(value: boolean): void;
35
35
  registerOnChange(fn: any): void;
@@ -4,6 +4,7 @@ export declare class MonkeyIconButtonComponent {
4
4
  size: 'sm' | 'md' | 'lg';
5
5
  disabled: boolean;
6
6
  icon: string;
7
+ loading: boolean;
7
8
  protected _uid: string;
8
9
  protected _id: string;
9
10
  get id(): string;
@@ -11,5 +12,5 @@ export declare class MonkeyIconButtonComponent {
11
12
  constructor();
12
13
  onClick(event: any): void;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyIconButtonComponent, 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>;
15
+ 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; }; "loading": { "alias": "loading"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
15
16
  }
@@ -32,3 +32,5 @@ export * from './toast';
32
32
  export * from './toggle';
33
33
  export * from './toggle-line';
34
34
  export * from './tooltip';
35
+ export * from './stepper';
36
+ export * from './tabs';
@@ -0,0 +1,3 @@
1
+ export * from './stepper.module';
2
+ export * from './stepper.component';
3
+ export * from './step/step.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 { AfterContentInit, QueryList } from '@angular/core';
7
+ import * as i0 from "@angular/core";
8
+ export declare class MonkeyStepComponent implements AfterContentInit {
9
+ protected id: string;
10
+ subSteps: QueryList<MonkeyStepComponent>;
11
+ label: string;
12
+ step: string;
13
+ icon: string;
14
+ number?: number;
15
+ hasSubSteps: boolean;
16
+ isSubStep: boolean;
17
+ isCurrent: boolean;
18
+ isComplete: boolean;
19
+ isActive: boolean;
20
+ ngAfterContentInit(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyStepComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyStepComponent, "monkey-step", never, { "label": { "alias": "label"; "required": false; }; "step": { "alias": "step"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, ["subSteps"], ["*"], false, never>;
23
+ }
@@ -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 { AfterContentInit, OnChanges, QueryList } from '@angular/core';
7
+ import { MonkeyStepComponent } from './step/step.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeyStepperComponent implements AfterContentInit, OnChanges {
10
+ protected monkeyId: string;
11
+ steps: QueryList<MonkeyStepComponent>;
12
+ direction: 'horizontal' | 'vertical';
13
+ private _id;
14
+ set id(value: string);
15
+ get id(): string;
16
+ currentStep?: string | undefined;
17
+ ngAfterContentInit(): void;
18
+ ngOnChanges(): void;
19
+ render(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyStepperComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyStepperComponent, "monkey-stepper", never, { "direction": { "alias": "direction"; "required": false; }; "id": { "alias": "id"; "required": false; }; "currentStep": { "alias": "currentStep"; "required": false; }; }, {}, ["steps"], ["*"], false, never>;
22
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./stepper.component";
3
+ import * as i2 from "./step/step.component";
4
+ import * as i3 from "../../../utils/icon";
5
+ import * as i4 from "../icon/icon.component";
6
+ export declare class MonkeyStepperModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyStepperModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyStepperModule, [typeof i1.MonkeyStepperComponent, typeof i2.MonkeyStepComponent], [typeof i3.UtilIconComponent, typeof i4.MonkeyIconComponent], [typeof i1.MonkeyStepperComponent, typeof i2.MonkeyStepComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyStepperModule>;
10
+ }
@@ -0,0 +1,4 @@
1
+ export * from './tab-link.directive';
2
+ export * from './tab.component';
3
+ export * from './tabs.component';
4
+ export * from './tabs.module';
@@ -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 { OnInit } from '@angular/core';
7
+ import { Router } from '@angular/router';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeyTabLinkDirective implements OnInit {
10
+ private router;
11
+ disabled: boolean;
12
+ get isDisabled(): boolean;
13
+ get tabIndex(): 0 | -1;
14
+ private destroyRef;
15
+ private el;
16
+ constructor(router: Router);
17
+ ngOnInit(): void;
18
+ private updateActiveState;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTabLinkDirective, [{ optional: true; }]>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyTabLinkDirective, "[monkey-tab-link]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
21
+ static ngAcceptInputType_disabled: unknown;
22
+ }
@@ -0,0 +1,17 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { EventEmitter } from '@angular/core';
7
+ import * as i0 from "@angular/core";
8
+ export declare class MonkeyTabComponent {
9
+ value: string;
10
+ disabled: boolean;
11
+ onClick: EventEmitter<string>;
12
+ isSelected: boolean;
13
+ handleClick(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTabComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyTabComponent, "monkey-tab", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onClick": "onClick"; }, never, ["*"], false, never>;
16
+ static ngAcceptInputType_disabled: unknown;
17
+ }
@@ -0,0 +1,38 @@
1
+ /** ************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ ************************* */
6
+ import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList } from '@angular/core';
7
+ import { MonkeyTabComponent } from './tab.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MonkeyTabsComponent implements AfterContentInit, AfterViewInit, OnDestroy, OnChanges {
10
+ protected monkeyId: string;
11
+ selected: string;
12
+ fullWidth: boolean;
13
+ position: 'start' | 'center' | 'end';
14
+ onChange: EventEmitter<string>;
15
+ tabs: QueryList<MonkeyTabComponent>;
16
+ tabsHeader: ElementRef<HTMLDivElement>;
17
+ tabsContent: ElementRef<HTMLDivElement>;
18
+ enabledLeftArrow: boolean;
19
+ enabledRightArrow: boolean;
20
+ hasScroll: boolean;
21
+ scrollPosition: number;
22
+ private destroyRef;
23
+ private resizeObserver?;
24
+ private updateScrollPosition;
25
+ private updateScrollArrows;
26
+ private selectTab;
27
+ private updateTabSelection;
28
+ ngOnChanges(): void;
29
+ ngAfterViewInit(): void;
30
+ ngAfterContentInit(): void;
31
+ updateTabsEvents(): void;
32
+ scrollLeft(): void;
33
+ scrollRight(): void;
34
+ ngOnDestroy(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTabsComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyTabsComponent, "monkey-tabs", never, { "selected": { "alias": "selected"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "onChange": "onChange"; }, ["tabs"], ["*"], false, never>;
37
+ static ngAcceptInputType_fullWidth: unknown;
38
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tabs.component";
3
+ import * as i2 from "./tab.component";
4
+ import * as i3 from "./tab-link.directive";
5
+ export declare class MonkeyTabsModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyTabsModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyTabsModule, [typeof i1.MonkeyTabsComponent, typeof i2.MonkeyTabComponent, typeof i3.MonkeyTabLinkDirective], never, [typeof i1.MonkeyTabsComponent, typeof i2.MonkeyTabComponent, typeof i3.MonkeyTabLinkDirective]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyTabsModule>;
9
+ }
@@ -4,3 +4,4 @@
4
4
  * MIT Licence
5
5
  ************************* */
6
6
  export * from './toast.service';
7
+ export * from './stepper.service';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MonkeyStepperService {
3
+ private _steppers;
4
+ currentStep(id: string): import("@angular/core").Signal<string | undefined>;
5
+ setCurrentStep(id: string, step: string): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyStepperService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyStepperService>;
8
+ }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-style-guide-v2",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",
package/utils/icon.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- type IconName = 'clear' | 'calendar' | 'arrowDown' | 'check' | 'minus' | 'loading' | 'searchFail' | 'search';
2
+ type IconName = 'clear' | 'calendar' | 'arrowDown' | 'arrowRight' | 'check' | 'minus' | 'loading' | 'searchFail' | 'search';
3
3
  export declare class UtilIconComponent {
4
4
  name: import("@angular/core").InputSignal<IconName>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilIconComponent, never>;
package/utils/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from './id-generator';
2
- export * from './tests-utils';
3
2
  export * from './utils';
4
3
  export * from './icon';
Binary file
@@ -1 +0,0 @@
1
- export declare function stripHtmlComments(htmlContent: string): string;