@indigina/ui-kit 1.1.108 → 1.1.109

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.
@@ -1,43 +1,39 @@
1
- import { ElementRef, EventEmitter, OnInit, WritableSignal } from '@angular/core';
2
- import { KitPopupAlign, KitPopupAlignHorizontal, KitPopupPositionMode } from './kit-popup.model';
1
+ import { ElementRef, InputSignal, OutputEmitterRef, TemplateRef } from '@angular/core';
2
+ import { PopupSettings, PopupService } from '@progress/kendo-angular-popup';
3
3
  import { KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
4
+ import { KitPopupPositionMode } from './kit-popup.model';
4
5
  import * as i0 from "@angular/core";
5
- export declare class KitPopupComponent implements OnInit {
6
- private elementRef;
7
- /**
8
- * Specifies the element that will be used as an anchor. The Popup opens next to that element
9
- */
10
- anchor?: ElementRef | HTMLElement | null;
11
- /**
12
- * Defines whether to close popup when the user clicks outside its boundaries
13
- */
14
- closeOnOutsideClick: boolean;
15
- /**
16
- * Defines the horizontal position of the anchor element
17
- */
18
- anchorHorizontalAlign: KitPopupAlignHorizontal;
19
- /**
20
- * Defines the horizontal position of the popup
21
- */
22
- popupHorizontalAlign: KitPopupAlignHorizontal;
23
- showFooter: boolean;
24
- cancelButtonLabel: string;
25
- applyButtonLabel: string;
26
- isApplyButtonDisabled: boolean;
27
- positionMode: KitPopupPositionMode;
28
- cancel: EventEmitter<void>;
29
- apply: EventEmitter<void>;
30
- readonly visible: WritableSignal<boolean>;
31
- readonly anchorAlign: KitPopupAlign;
32
- readonly popupAlign: KitPopupAlign;
6
+ export declare class KitPopupComponent {
7
+ private readonly popupService;
8
+ popupTemplate: TemplateRef<unknown>;
9
+ readonly anchor: InputSignal<ElementRef | HTMLElement>;
10
+ readonly content: InputSignal<TemplateRef<unknown>>;
11
+ readonly closeOnOutsideClick: InputSignal<boolean>;
12
+ readonly showFooter: InputSignal<boolean>;
13
+ readonly cancelButtonLabel: InputSignal<string>;
14
+ readonly applyButtonLabel: InputSignal<string>;
15
+ readonly isApplyButtonDisabled: InputSignal<boolean>;
16
+ readonly positionMode: InputSignal<KitPopupPositionMode>;
17
+ readonly popupClass: InputSignal<string>;
18
+ readonly onCancel: OutputEmitterRef<void>;
19
+ readonly onApply: OutputEmitterRef<void>;
20
+ readonly onOpen: OutputEmitterRef<void>;
21
+ readonly onClose: OutputEmitterRef<void>;
33
22
  readonly kitButtonKind: typeof KitButtonKind;
34
23
  readonly kitButtonType: typeof KitButtonType;
35
- constructor(elementRef: ElementRef);
24
+ private popupRef;
25
+ private readonly destroy$;
26
+ get popupHTMLElement(): HTMLElement | null;
27
+ get isPopupOpen(): boolean;
28
+ get anchorElement(): HTMLElement;
29
+ constructor(popupService: PopupService);
36
30
  documentClick(event: Event): void;
37
31
  ngOnInit(): void;
38
- get anchorElement(): HTMLElement;
39
- toggle(): void;
40
- hide(): void;
32
+ ngOnDestroy(): void;
33
+ toggle(options?: PopupSettings): void;
34
+ close(): void;
35
+ cancel(): void;
36
+ apply(): void;
41
37
  static ɵfac: i0.ɵɵFactoryDeclaration<KitPopupComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<KitPopupComponent, "kit-popup", never, { "anchor": { "alias": "anchor"; "required": false; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; }; "anchorHorizontalAlign": { "alias": "anchorHorizontalAlign"; "required": false; }; "popupHorizontalAlign": { "alias": "popupHorizontalAlign"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; }; "applyButtonLabel": { "alias": "applyButtonLabel"; "required": false; }; "isApplyButtonDisabled": { "alias": "isApplyButtonDisabled"; "required": false; }; "positionMode": { "alias": "positionMode"; "required": false; }; }, { "cancel": "cancel"; "apply": "apply"; }, never, ["*"], true, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitPopupComponent, "kit-popup", never, { "anchor": { "alias": "anchor"; "required": true; "isSignal": true; }; "content": { "alias": "content"; "required": true; "isSignal": true; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; "isSignal": true; }; "applyButtonLabel": { "alias": "applyButtonLabel"; "required": false; "isSignal": true; }; "isApplyButtonDisabled": { "alias": "isApplyButtonDisabled"; "required": false; "isSignal": true; }; "positionMode": { "alias": "positionMode"; "required": false; "isSignal": true; }; "popupClass": { "alias": "popupClass"; "required": false; "isSignal": true; }; }, { "onCancel": "onCancel"; "onApply": "onApply"; "onOpen": "onOpen"; "onClose": "onClose"; }, never, never, true, never>;
43
39
  }
@@ -21,12 +21,13 @@ export declare class KitProfileMenuComponent {
21
21
  * Defines the image source of the avatar
22
22
  */
23
23
  avatarImageSrc?: string;
24
- userMenu: KitPopupComponent;
24
+ popup: KitPopupComponent;
25
25
  readonly KitAvatarSize: typeof KitAvatarSize;
26
26
  readonly KitSvgIcon: typeof KitSvgIcon;
27
27
  readonly KitPopupAlignHorizontal: typeof KitPopupAlignHorizontal;
28
28
  readonly KitSvgIconType: typeof KitSvgIconType;
29
29
  onClick(item: KitProfileMenuItem): void;
30
+ toggle(): void;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<KitProfileMenuComponent, never>;
31
32
  static ɵcmp: i0.ɵɵComponentDeclaration<KitProfileMenuComponent, "kit-profile-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "companyName": { "alias": "companyName"; "required": false; }; "avatarImageSrc": { "alias": "avatarImageSrc"; "required": false; }; }, {}, never, never, true, never>;
32
33
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.108",
10
+ "version": "1.1.109",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^19.1.4",
13
13
  "@angular/core": "^19.1.4"