@ng-doc/ui-kit 19.1.0 → 19.3.0

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 (61) hide show
  1. package/components/dialog-outlet/dialog-outlet.component.d.ts +2 -1
  2. package/components/option-group/option-group.component.d.ts +1 -0
  3. package/components/selection/selection.component.d.ts +1 -0
  4. package/components/tab-group/tab-group.component.d.ts +1 -0
  5. package/directives/event-switcher/event-switcher.directive.d.ts +1 -0
  6. package/directives/tooltip/tooltip.directive.d.ts +1 -0
  7. package/fesm2022/ng-doc-ui-kit-animations.mjs.map +1 -1
  8. package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs +4 -9
  9. package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs.map +1 -1
  10. package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs +1 -2
  11. package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs.map +1 -1
  12. package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs +4 -9
  13. package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs.map +1 -1
  14. package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs +15 -18
  15. package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs.map +1 -1
  16. package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs +3 -13
  17. package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs.map +1 -1
  18. package/fesm2022/ng-doc-ui-kit-components-expander.mjs +3 -3
  19. package/fesm2022/ng-doc-ui-kit-components-expander.mjs.map +1 -1
  20. package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs +3 -11
  21. package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs.map +1 -1
  22. package/fesm2022/ng-doc-ui-kit-components-list.mjs +5 -12
  23. package/fesm2022/ng-doc-ui-kit-components-list.mjs.map +1 -1
  24. package/fesm2022/ng-doc-ui-kit-components-option-group.mjs +6 -10
  25. package/fesm2022/ng-doc-ui-kit-components-option-group.mjs.map +1 -1
  26. package/fesm2022/ng-doc-ui-kit-components-option.mjs.map +1 -1
  27. package/fesm2022/ng-doc-ui-kit-components-pane.mjs +7 -14
  28. package/fesm2022/ng-doc-ui-kit-components-pane.mjs.map +1 -1
  29. package/fesm2022/ng-doc-ui-kit-components-selection.mjs +6 -11
  30. package/fesm2022/ng-doc-ui-kit-components-selection.mjs.map +1 -1
  31. package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs +1 -3
  32. package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs.map +1 -1
  33. package/fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs.map +1 -1
  34. package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs +9 -11
  35. package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs.map +1 -1
  36. package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs +1 -1
  37. package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs.map +1 -1
  38. package/fesm2022/ng-doc-ui-kit-components-text.mjs.map +1 -1
  39. package/fesm2022/ng-doc-ui-kit-components-toggle.mjs +4 -9
  40. package/fesm2022/ng-doc-ui-kit-components-toggle.mjs.map +1 -1
  41. package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs.map +1 -1
  42. package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs +6 -10
  43. package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs.map +1 -1
  44. package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs +6 -15
  45. package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs.map +1 -1
  46. package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs +6 -10
  47. package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs.map +1 -1
  48. package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs +2 -8
  49. package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs.map +1 -1
  50. package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs +2 -8
  51. package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs.map +1 -1
  52. package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs +7 -18
  53. package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs.map +1 -1
  54. package/fesm2022/ng-doc-ui-kit-helpers.mjs.map +1 -1
  55. package/fesm2022/ng-doc-ui-kit-interceptors.mjs.map +1 -1
  56. package/fesm2022/ng-doc-ui-kit-observables.mjs.map +1 -1
  57. package/fesm2022/ng-doc-ui-kit-services-notify.mjs +4 -10
  58. package/fesm2022/ng-doc-ui-kit-services-notify.mjs.map +1 -1
  59. package/fesm2022/ng-doc-ui-kit-types.mjs.map +1 -1
  60. package/fesm2022/ng-doc-ui-kit-utils.mjs.map +1 -1
  61. package/package.json +30 -31
@@ -1,4 +1,4 @@
1
- import { AfterContentInit, TemplateRef } from '@angular/core';
1
+ import { AfterContentInit, DestroyRef, TemplateRef } from '@angular/core';
2
2
  import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
3
3
  import { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';
4
4
  import { NgDocDialogConfig, NgDocDialogService } from '@ng-doc/ui-kit/services/dialog';
@@ -11,6 +11,7 @@ export declare class DialogOutletComponent implements AfterContentInit {
11
11
  protected readonly router: Router;
12
12
  protected readonly route: ActivatedRoute;
13
13
  protected readonly dialogService: NgDocDialogService;
14
+ protected readonly destroyRef: DestroyRef;
14
15
  ngAfterContentInit(): void;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogOutletComponent, never>;
16
17
  static ɵcmp: i0.ɵɵComponentDeclaration<DialogOutletComponent, "ng-doc-dialog-outlet", never, { "config": { "alias": "config"; "required": false; }; }, {}, ["routerOutlet"], ["*"], true, never>;
@@ -9,6 +9,7 @@ export declare class NgDocOptionGroupComponent<T> implements AfterContentInit {
9
9
  private changeDetectorRef;
10
10
  options: QueryList<NgDocOptionComponent<T>>;
11
11
  hasHeader: boolean;
12
+ private readonly destroyRef;
12
13
  constructor(changeDetectorRef: ChangeDetectorRef);
13
14
  ngAfterContentInit(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NgDocOptionGroupComponent<any>, never>;
@@ -6,6 +6,7 @@ export declare class NgDocSelectionComponent implements AfterViewInit {
6
6
  private readonly elementRef;
7
7
  private readonly selectionHost;
8
8
  align: NgDocHorizontalAlign | NgDocVerticalAlign;
9
+ private readonly destroyRef;
9
10
  constructor(elementRef: ElementRef<HTMLElement>, selectionHost: NgDocSelectionHostDirective);
10
11
  ngAfterViewInit(): void;
11
12
  private setStyles;
@@ -7,6 +7,7 @@ export declare class NgDocTabGroupComponent<T = number> implements AfterContentI
7
7
  tabElements: QueryList<ElementRef>;
8
8
  tabs: QueryList<NgDocTabComponent<T>>;
9
9
  selectedTab?: NgDocTabComponent<T>;
10
+ private readonly destroyRef;
10
11
  constructor(changeDetectorRef: ChangeDetectorRef);
11
12
  ngAfterContentInit(): void;
12
13
  ngAfterViewInit(): void;
@@ -6,6 +6,7 @@ export declare class NgDocEventSwitcherDirective implements OnInit {
6
6
  private ngZone;
7
7
  switchTo: BaseElement<HTMLElement> | null;
8
8
  events: string | string[];
9
+ private readonly destroyRef;
9
10
  constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
10
11
  ngOnInit(): void;
11
12
  private makeEvent;
@@ -29,6 +29,7 @@ export declare class NgDocTooltipDirective implements AfterViewInit, OnDestroy {
29
29
  beforeClose: EventEmitter<void>;
30
30
  afterClose: EventEmitter<void>;
31
31
  overlayRef: NgDocOverlayRef | null;
32
+ private readonly destroyRef;
32
33
  constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, viewContainerRef: ViewContainerRef, overlayService: NgDocOverlayService, ngZone: NgZone, scrollStrategy: NgDocOverlayStrategy);
33
34
  ngAfterViewInit(): void;
34
35
  show(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-animations.mjs","sources":["../../../../libs/ui-kit/animations/expand-collapse.ts","../../../../libs/ui-kit/animations/fade.ts","../../../../libs/ui-kit/animations/overlay.ts","../../../../libs/ui-kit/animations/popup.ts","../../../../libs/ui-kit/animations/prevent-initial-animation.ts","../../../../libs/ui-kit/animations/tab-fade.ts","../../../../libs/ui-kit/animations/ng-doc-ui-kit-animations.ts"],"sourcesContent":["import {\n\tanimate,\n\tAnimationTriggerMetadata,\n\tstate,\n\tstyle,\n\ttransition,\n\ttrigger,\n} from '@angular/animations';\n\nexport const expandCollapseAnimation: AnimationTriggerMetadata = trigger('expandCollapse', [\n\ttransition(\n\t\t':enter',\n\t\t[\n\t\t\tstyle({ opacity: '{{opacity}}', height: '{{from}}' }),\n\t\t\tanimate('225ms cubic-bezier(0.4,0.0,0.2,1)', style({ opacity: 1, height: '*' })),\n\t\t],\n\t\t{ params: { from: 0, opacity: 0 } },\n\t),\n\ttransition(\n\t\t':leave',\n\t\t[\n\t\t\tstyle({ opacity: 1, height: '*' }),\n\t\t\tanimate(\n\t\t\t\t'225ms cubic-bezier(0.4,0.0,0.2,1)',\n\t\t\t\tstyle({\n\t\t\t\t\topacity: '{{opacity}}',\n\t\t\t\t\theight: '{{from}}',\n\t\t\t\t}),\n\t\t\t),\n\t\t],\n\t\t{ params: { from: 0, opacity: 0 } },\n\t),\n\tstate('true', style({ opacity: 1, height: '*' })),\n\tstate('false', style({ opacity: '{{opacity}}', height: '{{from}}' }), {\n\t\tparams: {\n\t\t\tfrom: 0,\n\t\t\topacity: 0,\n\t\t},\n\t}),\n\ttransition('* => true', [animate('225ms cubic-bezier(0.4,0.0,0.2,1)')]),\n\ttransition('* => false', [animate('225ms cubic-bezier(0.4,0.0,0.2,1)')]),\n]);\n","import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations';\n\nexport const fadeAnimation: AnimationTriggerMetadata = trigger('fadeAnimation', [\n\ttransition(':enter', [\n\t\tstyle({ opacity: 0 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 1 })),\n\t]),\n\ttransition(':leave', [\n\t\tstyle({ opacity: 1 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 0 })),\n\t]),\n]);\n","import { animate, AnimationMetadata, style } from '@angular/animations';\n\nexport const dropdownOpenAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(0.9)', opacity: 0 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)', opacity: 1 })),\n];\n\nexport const dropdownCloseAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scaleY(1)', opacity: 1 }),\n\tanimate(\n\t\t'120ms cubic-bezier(0.25, 0.8, 0.25, 1)',\n\t\tstyle({ transform: 'scaleY(0.9)', opacity: 0 }),\n\t),\n];\n\nexport const tooltipOpenAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(0.8)', opacity: 0 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)', opacity: 1 })),\n];\n\nexport const tooltipCloseAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(1)', opacity: 1 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(0.8)', opacity: 0 })),\n];\n\nexport const notificationOpenAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(0.7)', opacity: 0 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)', opacity: 1 })),\n];\n\nexport const notificationCloseAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(1)', opacity: 1 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(0.7)', opacity: 0 })),\n];\n","import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations';\n\nexport const popupAnimation: AnimationTriggerMetadata = trigger('popupAnimation', [\n transition(':enter', [\n style({ transform: 'scale(0.9)' }),\n animate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)' })),\n ]),\n]);\n","import { AnimationTriggerMetadata, transition, trigger } from '@angular/animations';\n\nexport const preventInitialChildAnimations: AnimationTriggerMetadata = trigger(\n\t'preventInitialChild',\n\t[transition(':enter', [])],\n);\n","import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations';\n\nexport const tabFadeAnimation: AnimationTriggerMetadata = trigger('tabFadeAnimation', [\n\ttransition(':enter', [\n\t\tstyle({ opacity: 0 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 1 })),\n\t]),\n\ttransition(':leave', [\n\t\tstyle({ opacity: 1 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 0 })),\n\t]),\n]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AASa,MAAA,uBAAuB,GAA6B,OAAO,CAAC,gBAAgB,EAAE;IAC1F,UAAU,CACT,QAAQ,EACR;QACC,KAAK,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AACrD,QAAA,OAAO,CAAC,mCAAmC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;AAChF,KAAA,EACD,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,CACnC;IACD,UAAU,CACT,QAAQ,EACR;QACC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAClC,QAAA,OAAO,CACN,mCAAmC,EACnC,KAAK,CAAC;AACL,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,MAAM,EAAE,UAAU;AAClB,SAAA,CAAC,CACF;AACD,KAAA,EACD,EAAE,MAAM,EAAE,EAAE,I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AAE,SAAS,EAAE,YAAY,EAAE,CAAC;QAClC,OAAO,CAAC,wCAAwC,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;KACpF,CAAC;AACH,CAAA;;ACLY,MAAA,6BAA6B,GAA6B,OAAO,CAC7E,qBAAqB,EACrB,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;;ACFd,MAAA,gBAAgB,GAA6B,OAAO,CAAC,kBAAkB,EAAE;IACrF,UAAU,CAAC,QAAQ,EAAE;AACpB,QAAA,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;QACrB,OAAO,CAAC,wCAAwC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;KACxE,CAAC;IACF,UAAU,CAAC,QAAQ,EAAE;AACpB,QAAA,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;QACrB,OAAO,CAAC,wCAAwC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;KACxE,CAAC;AACF,CAAA;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-ui-kit-animations.mjs","sources":["../../../../libs/ui-kit/animations/expand-collapse.ts","../../../../libs/ui-kit/animations/fade.ts","../../../../libs/ui-kit/animations/overlay.ts","../../../../libs/ui-kit/animations/popup.ts","../../../../libs/ui-kit/animations/prevent-initial-animation.ts","../../../../libs/ui-kit/animations/tab-fade.ts","../../../../libs/ui-kit/animations/ng-doc-ui-kit-animations.ts"],"sourcesContent":["import {\n animate,\n AnimationTriggerMetadata,\n state,\n style,\n transition,\n trigger,\n} from '@angular/animations';\n\nexport const expandCollapseAnimation: AnimationTriggerMetadata = trigger('expandCollapse', [\n transition(\n ':enter',\n [\n style({ opacity: '{{opacity}}', height: '{{from}}' }),\n animate('225ms cubic-bezier(0.4,0.0,0.2,1)', style({ opacity: 1, height: '*' })),\n ],\n { params: { from: 0, opacity: 0 } },\n ),\n transition(\n ':leave',\n [\n style({ opacity: 1, height: '*' }),\n animate(\n '225ms cubic-bezier(0.4,0.0,0.2,1)',\n style({\n opacity: '{{opacity}}',\n height: '{{from}}',\n }),\n ),\n ],\n { params: { from: 0, opacity: 0 } },\n ),\n state('true', style({ opacity: 1, height: '*' })),\n state('false', style({ opacity: '{{opacity}}', height: '{{from}}' }), {\n params: {\n from: 0,\n opacity: 0,\n },\n }),\n transition('* => true', [animate('225ms cubic-bezier(0.4,0.0,0.2,1)')]),\n transition('* => false', [animate('225ms cubic-bezier(0.4,0.0,0.2,1)')]),\n]);\n","import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations';\n\nexport const fadeAnimation: AnimationTriggerMetadata = trigger('fadeAnimation', [\n\ttransition(':enter', [\n\t\tstyle({ opacity: 0 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 1 })),\n\t]),\n\ttransition(':leave', [\n\t\tstyle({ opacity: 1 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 0 })),\n\t]),\n]);\n","import { animate, AnimationMetadata, style } from '@angular/animations';\n\nexport const dropdownOpenAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(0.9)', opacity: 0 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)', opacity: 1 })),\n];\n\nexport const dropdownCloseAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scaleY(1)', opacity: 1 }),\n\tanimate(\n\t\t'120ms cubic-bezier(0.25, 0.8, 0.25, 1)',\n\t\tstyle({ transform: 'scaleY(0.9)', opacity: 0 }),\n\t),\n];\n\nexport const tooltipOpenAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(0.8)', opacity: 0 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)', opacity: 1 })),\n];\n\nexport const tooltipCloseAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(1)', opacity: 1 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(0.8)', opacity: 0 })),\n];\n\nexport const notificationOpenAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(0.7)', opacity: 0 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)', opacity: 1 })),\n];\n\nexport const notificationCloseAnimation: AnimationMetadata[] = [\n\tstyle({ transform: 'scale(1)', opacity: 1 }),\n\tanimate('120ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(0.7)', opacity: 0 })),\n];\n","import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations';\n\nexport const popupAnimation: AnimationTriggerMetadata = trigger('popupAnimation', [\n transition(':enter', [\n style({ transform: 'scale(0.9)' }),\n animate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ transform: 'scale(1)' })),\n ]),\n]);\n","import { AnimationTriggerMetadata, transition, trigger } from '@angular/animations';\n\nexport const preventInitialChildAnimations: AnimationTriggerMetadata = trigger(\n\t'preventInitialChild',\n\t[transition(':enter', [])],\n);\n","import { animate, AnimationTriggerMetadata, style, transition, trigger } from '@angular/animations';\n\nexport const tabFadeAnimation: AnimationTriggerMetadata = trigger('tabFadeAnimation', [\n\ttransition(':enter', [\n\t\tstyle({ opacity: 0 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 1 })),\n\t]),\n\ttransition(':leave', [\n\t\tstyle({ opacity: 1 }),\n\t\tanimate('220ms cubic-bezier(0.25, 0.8, 0.25, 1)', style({ opacity: 0 })),\n\t]),\n]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AASa,MAAA,uBAAuB,GAA6B,OAAO,CAAC,gBAAgB,EAAE;IACzF,UAAU,CACR,QAAQ,EACR;QACE,KAA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AAC;KACxE,CAAC;AACF,CAAA;;ACXD;;AAEG;;;;"}
@@ -1,16 +1,15 @@
1
- import { __decorate, __metadata } from 'tslib';
2
1
  import * as i0 from '@angular/core';
3
2
  import { inject, NgZone, forwardRef, ElementRef, Component, ChangeDetectionStrategy, Input, ViewChild, ContentChild } from '@angular/core';
3
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { NgDocOverlayHost, NgDocInputHost, NgDocDisplayValueHost, NgDocListHost, NgDocBaseInput } from '@ng-doc/ui-kit/classes';
5
5
  import { NgDocDropdownComponent } from '@ng-doc/ui-kit/components/dropdown';
6
6
  import { NgDocDropdownHandlerDirective } from '@ng-doc/ui-kit/directives/dropdown-handler';
7
7
  import { NgDocFocusCatcherDirective } from '@ng-doc/ui-kit/directives/focus-catcher';
8
8
  import { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';
9
- import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
10
9
  import { DIControl, injectHostControl, DIStateControl, DI_DEFAULT_COMPARE, provideHostControl, provideCompareHost } from 'di-controls';
11
10
  import { filter } from 'rxjs/operators';
12
11
 
13
- let NgDocComboboxHostComponent = class NgDocComboboxHostComponent extends DIControl {
12
+ class NgDocComboboxHostComponent extends DIControl {
14
13
  constructor() {
15
14
  super({
16
15
  host: injectHostControl({ skipSelf: true, optional: true }),
@@ -27,7 +26,7 @@ let NgDocComboboxHostComponent = class NgDocComboboxHostComponent extends DICont
27
26
  }
28
27
  ngAfterContentInit() {
29
28
  this.inputControl?.changes
30
- .pipe(filter(() => !!this.inputControl?.isFocused), untilDestroyed(this), ngDocZoneOptimize(this.ngZone))
29
+ .pipe(filter(() => !!this.inputControl?.isFocused), ngDocZoneOptimize(this.ngZone), takeUntilDestroyed(this['destroyRef']))
31
30
  .subscribe(() => this.dropdown?.open());
32
31
  }
33
32
  get listHostOrigin() {
@@ -68,11 +67,7 @@ let NgDocComboboxHostComponent = class NgDocComboboxHostComponent extends DICont
68
67
  useExisting: forwardRef(() => NgDocComboboxHostComponent),
69
68
  },
70
69
  ], queries: [{ propertyName: "dropdown", first: true, predicate: NgDocDropdownComponent, descendants: true }, { propertyName: "inputControl", first: true, predicate: NgDocBaseInput, descendants: true }], viewQueries: [{ propertyName: "origin", first: true, predicate: ["origin"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<label\n\tclass=\"ng-doc-dropdown-host\"\n\tngDocFocusCatcher\n\t[ngDocDropdownHandler]=\"dropdown\"\n\t(click)=\"clickEvent()\"\n\t#origin>\n\t<ng-content></ng-content>\n</label>\n", styles: [":host{position:relative;display:block;width:100%}::ng-deep .ng-doc-combobox-host-overlay .ng-doc-overlay-content{display:block;max-height:300px;overflow:auto}\n"], dependencies: [{ kind: "directive", type: NgDocFocusCatcherDirective, selector: "[ngDocFocusCatcher]", outputs: ["focusEvent", "blurEvent"], exportAs: ["ngDocFocusCatcher"] }, { kind: "directive", type: NgDocDropdownHandlerDirective, selector: "[ngDocDropdownHandler]", inputs: ["ngDocDropdownHandler"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
71
- };
72
- NgDocComboboxHostComponent = __decorate([
73
- UntilDestroy(),
74
- __metadata("design:paramtypes", [])
75
- ], NgDocComboboxHostComponent);
70
+ }
76
71
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocComboboxHostComponent, decorators: [{
77
72
  type: Component,
78
73
  args: [{ selector: 'ng-doc-combobox-host', providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-cdk-combobox-host.mjs","sources":["../../../../libs/ui-kit/cdk/combobox-host/combobox-host.component.ts","../../../../libs/ui-kit/cdk/combobox-host/combobox-host.component.html","../../../../libs/ui-kit/cdk/combobox-host/ng-doc-ui-kit-cdk-combobox-host.ts"],"sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n forwardRef,\n inject,\n Input,\n NgZone,\n ViewChild,\n} from '@angular/core';\nimport {\n NgDocBaseInput,\n NgDocDisplayValueHost,\n NgDocInputHost,\n NgDocListHost,\n NgDocOverlayHost,\n} from '@ng-doc/ui-kit/classes';\nimport { NgDocDropdownComponent } from '@ng-doc/ui-kit/components/dropdown';\nimport { NgDocDropdownHandlerDirective } from '@ng-doc/ui-kit/directives/dropdown-handler';\nimport { NgDocFocusCatcherDirective } from '@ng-doc/ui-kit/directives/focus-catcher';\nimport { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { NgDocDisplayValueFunction, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport {\n DI_DEFAULT_COMPARE,\n DICompareFunction,\n DICompareHost,\n DIControl,\n DIStateControl,\n injectHostControl,\n provideCompareHost,\n provideHostControl,\n} from 'di-controls';\nimport { filter } from 'rxjs/operators';\n\n@Component({\n selector: 'ng-doc-combobox-host',\n templateUrl: './combobox-host.component.html',\n styleUrls: ['./combobox-host.component.scss'],\n providers: [\n provideHostControl(forwardRef(() => NgDocComboboxHostComponent)),\n provideCompareHost(forwardRef(() => NgDocComboboxHostComponent)),\n {\n provide: NgDocOverlayHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n {\n provide: NgDocInputHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n {\n provide: NgDocDisplayValueHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n {\n provide: NgDocListHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgDocFocusCatcherDirective, NgDocDropdownHandlerDirective],\n})\n@UntilDestroy()\nexport class NgDocComboboxHostComponent<T>\n extends DIControl<T>\n implements\n NgDocOverlayHost,\n NgDocInputHost<string>,\n DICompareHost<T>,\n NgDocDisplayValueHost<T>,\n NgDocListHost,\n AfterContentInit\n{\n @Input()\n compareFn: DICompareFunction<T> = DI_DEFAULT_COMPARE;\n\n @Input()\n displayValueFn: NgDocDisplayValueFunction<T> = String;\n\n @ViewChild('origin', { read: ElementRef, static: true })\n origin?: ElementRef<HTMLElement>;\n\n @ContentChild(NgDocDropdownComponent)\n dropdown?: NgDocDropdownComponent;\n\n @ContentChild(NgDocBaseInput)\n inputControl?: NgDocBaseInput<string>;\n\n readonly positions: NgDocOverlayPosition[] = ['bottom-center', 'top-center'];\n\n protected readonly ngZone: NgZone = inject(NgZone);\n\n constructor() {\n super({\n host: injectHostControl({ skipSelf: true, optional: true }),\n onChildControlChange: (control) => {\n if (control instanceof DIStateControl) {\n this.dropdown?.close();\n }\n },\n });\n }\n\n ngAfterContentInit(): void {\n this.inputControl?.changes\n .pipe(\n filter(() => !!this.inputControl?.isFocused),\n untilDestroyed(this),\n ngDocZoneOptimize(this.ngZone),\n )\n .subscribe(() => this.dropdown?.open());\n }\n\n get listHostOrigin(): ElementRef<HTMLElement> | undefined {\n return this.inputControl?.elementRef;\n }\n\n get searchText(): string {\n return this.hasValue ? '' : this.inputControl?.value || '';\n }\n\n get width(): number {\n return this.origin?.nativeElement.offsetWidth || 0;\n }\n\n get panelClass(): string {\n return `ng-doc-combobox-host-overlay`;\n }\n\n clickEvent(): void {\n if (!this.disabled) {\n this.dropdown?.open();\n }\n }\n}\n","<label\n\tclass=\"ng-doc-dropdown-host\"\n\tngDocFocusCatcher\n\t[ngDocDropdownHandler]=\"dropdown\"\n\t(click)=\"clickEvent()\"\n\t#origin>\n\t<ng-content></ng-content>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAiEO,IAAM,0BAA0B,GAAhC,MAAM,0BACX,SAAQ,SAAY,CAAA;AA4BpB,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,CAAC;AACJ,YAAA,IAAI,EAAE,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAA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AE,aAAa;AACtB,4BAAA,WAAW,EAAE,UAAU,CAAC,gCAAgC,CAAC;AAC1D,yBAAA;qBACF,EACgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,EAAA,QAAA,EAAA,uLAAA,EAAA,MAAA,EAAA,CAAA,kKAAA,CAAA,EAAA;wDAcpE,SAAS,EAAA,CAAA;sBADR;gBAID,cAAc,EAAA,CAAA;sBADb;gBAID,MAAM,EAAA,CAAA;sBADL,SAAS;uBAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;gBAIvD,QAAQ,EAAA,CAAA;sBADP,YAAY;uBAAC,sBAAsB;gBAIpC,YAAY,EAAA,CAAA;sBADX,YAAY;uBAAC,cAAc;;;AEvF9B;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-ui-kit-cdk-combobox-host.mjs","sources":["../../../../libs/ui-kit/cdk/combobox-host/combobox-host.component.ts","../../../../libs/ui-kit/cdk/combobox-host/combobox-host.component.html","../../../../libs/ui-kit/cdk/combobox-host/ng-doc-ui-kit-cdk-combobox-host.ts"],"sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n forwardRef,\n inject,\n Input,\n NgZone,\n ViewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n NgDocBaseInput,\n NgDocDisplayValueHost,\n NgDocInputHost,\n NgDocListHost,\n NgDocOverlayHost,\n} from '@ng-doc/ui-kit/classes';\nimport { NgDocDropdownComponent } from '@ng-doc/ui-kit/components/dropdown';\nimport { NgDocDropdownHandlerDirective } from '@ng-doc/ui-kit/directives/dropdown-handler';\nimport { NgDocFocusCatcherDirective } from '@ng-doc/ui-kit/directives/focus-catcher';\nimport { ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { NgDocDisplayValueFunction, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport {\n DI_DEFAULT_COMPARE,\n DICompareFunction,\n DICompareHost,\n DIControl,\n DIStateControl,\n injectHostControl,\n provideCompareHost,\n provideHostControl,\n} from 'di-controls';\nimport { filter } from 'rxjs/operators';\n\n@Component({\n selector: 'ng-doc-combobox-host',\n templateUrl: './combobox-host.component.html',\n styleUrls: ['./combobox-host.component.scss'],\n providers: [\n provideHostControl(forwardRef(() => NgDocComboboxHostComponent)),\n provideCompareHost(forwardRef(() => NgDocComboboxHostComponent)),\n {\n provide: NgDocOverlayHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n {\n provide: NgDocInputHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n {\n provide: NgDocDisplayValueHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n {\n provide: NgDocListHost,\n useExisting: forwardRef(() => NgDocComboboxHostComponent),\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgDocFocusCatcherDirective, NgDocDropdownHandlerDirective],\n})\nexport class NgDocComboboxHostComponent<T>\n extends DIControl<T>\n implements\n NgDocOverlayHost,\n NgDocInputHost<string>,\n DICompareHost<T>,\n NgDocDisplayValueHost<T>,\n NgDocListHost,\n AfterContentInit\n{\n @Input()\n compareFn: DICompareFunction<T> = DI_DEFAULT_COMPARE;\n\n @Input()\n displayValueFn: NgDocDisplayValueFunction<T> = String;\n\n @ViewChild('origin', { read: ElementRef, static: true })\n origin?: ElementRef<HTMLElement>;\n\n @ContentChild(NgDocDropdownComponent)\n dropdown?: NgDocDropdownComponent;\n\n @ContentChild(NgDocBaseInput)\n inputControl?: NgDocBaseInput<string>;\n\n readonly positions: NgDocOverlayPosition[] = ['bottom-center', 'top-center'];\n\n protected readonly ngZone: NgZone = inject(NgZone);\n\n constructor() {\n super({\n host: injectHostControl({ skipSelf: true, optional: true }),\n onChildControlChange: (control) => {\n if (control instanceof DIStateControl) {\n this.dropdown?.close();\n }\n },\n });\n }\n\n ngAfterContentInit(): void {\n this.inputControl?.changes\n .pipe(\n filter(() => !!this.inputControl?.isFocused),\n ngDocZoneOptimize(this.ngZone),\n takeUntilDestroyed(this['destroyRef']),\n )\n .subscribe(() => this.dropdown?.open());\n }\n\n get listHostOrigin(): ElementRef<HTMLElement> | undefined {\n return this.inputControl?.elementRef;\n }\n\n get searchText(): string {\n return this.hasValue ? '' : this.inputControl?.value || '';\n }\n\n get width(): number {\n return this.origin?.nativeElement.offsetWidth || 0;\n }\n\n get panelClass(): string {\n return `ng-doc-combobox-host-overlay`;\n }\n\n clickEvent(): void {\n if (!this.disabled) {\n this.dropdown?.open();\n }\n }\n}\n","<label\n\tclass=\"ng-doc-dropdown-host\"\n\tngDocFocusCatcher\n\t[ngDocDropdownHandler]=\"dropdown\"\n\t(click)=\"clickEvent()\"\n\t#origin>\n\t<ng-content></ng-content>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAgEM,MAAO,0BACX,SAAQ,SAAY,CAAA;AA4BpB,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,CAAC;AACJ,YAAA,IAAI,EAAE,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC3D,YAAA,oBAAoB,EAAE,CAAC,OAAO,KAAI;AAChC,gBAAA,IAAI,OAAO,YAAY,cAAc,EAAE;AACrC,oBAAA,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE;;aAEzB;AACF,SAAA,CAAC;QA1BJ,IAAS,CAAA,SAAA,GAAyB,kBAAkB;QAGpD,IAAc,CAAA,cAAA,GAAiC,MAAM;AAW5C,QAAA,IAAA,CAAA,SAAS,GAA2B,CAAC,eAAe,EAAE,YAAY,CAAC;AAEzD,QAAA,IAAA,CAAA,MAAM,GAAW,MAAM,CAAC,MAAM,CAAC;;IAalD,kBAAkB,GAAA;QAChB,IAAI,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sBADX,YAAY;uBAAC,cAAc;;;AEtF9B;;AAEG;;;;"}
@@ -1,4 +1,3 @@
1
- import { NgIf, NgSwitch, NgSwitchCase } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
2
  import { Component, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';
4
3
  import { NgDocIconComponent } from '@ng-doc/ui-kit/components/icon';
@@ -12,7 +11,7 @@ class NgDocBlockquoteComponent {
12
11
  }
13
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocBlockquoteComponent, decorators: [{
14
13
  type: Component,
15
- args: [{ selector: 'blockquote[ng-doc-blockquote]', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, NgSwitch, NgSwitchCase, NgDocIconComponent], template: "@if (type !== 'default') {\n <div class=\"ng-doc-blockquote-icon\">\n @if (icon) {\n <ng-doc-icon [icon]=\"icon\" size=\"24\"></ng-doc-icon>\n } @else {\n @switch (type) {\n @case ('note') {\n <ng-doc-icon icon=\"info\" size=\"24\"></ng-doc-icon>\n }\n @case ('warning') {\n <ng-doc-icon icon=\"alert-triangle\" size=\"24\"></ng-doc-icon>\n }\n @case ('success') {\n <ng-doc-icon icon=\"check\" size=\"24\"></ng-doc-icon>\n }\n @case ('alert') {\n <ng-doc-icon icon=\"alert-circle\" size=\"24\"></ng-doc-icon>\n }\n }\n }\n </div>\n}\n<div class=\"ng-doc-blockquote\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);position:relative;display:flex;padding:calc(var(--ng-doc-base-gutter) * 2);border-radius:var(--ng-doc-base-gutter);margin:var(--ng-doc-blockquote-margin);background:color-mix(in srgb,var(--ng-doc-blockquote-background, var(--ng-doc-base-9)),transparent 90%);border:1px solid color-mix(in srgb,var(--ng-doc-blockquote-border-color, var(--ng-doc-base-9)),transparent 80%);overflow:hidden;--ng-doc-code-margin: var(--ng-doc-base-gutter) 0}:host[data-ng-doc-type=note]{--ng-doc-blockquote-background: var(--ng-doc-info);--ng-doc-blockquote-border-color: var(--ng-doc-info);--ng-doc-icon-color: var(--ng-doc-info)}:host[data-ng-doc-type=warning]{--ng-doc-blockquote-background: var(--ng-doc-warning);--ng-doc-blockquote-border-color: var(--ng-doc-warning);--ng-doc-icon-color: var(--ng-doc-warning)}:host[data-ng-doc-type=alert]{--ng-doc-blockquote-background: var(--ng-doc-alert);--ng-doc-blockquote-border-color: var(--ng-doc-alert);--ng-doc-icon-color: var(--ng-doc-alert)}:host[data-ng-doc-type=success]{--ng-doc-blockquote-background: var(--ng-doc-success);--ng-doc-blockquote-border-color: var(--ng-doc-success);--ng-doc-icon-color: var(--ng-doc-success)}:host .ng-doc-blockquote-icon{display:flex;margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-blockquote{text-decoration:none}:host ::ng-deep p{margin:0}\n"] }]
14
+ args: [{ selector: 'blockquote[ng-doc-blockquote]', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgDocIconComponent], template: "@if (type !== 'default') {\n <div class=\"ng-doc-blockquote-icon\">\n @if (icon) {\n <ng-doc-icon [icon]=\"icon\" size=\"24\"></ng-doc-icon>\n } @else {\n @switch (type) {\n @case ('note') {\n <ng-doc-icon icon=\"info\" size=\"24\"></ng-doc-icon>\n }\n @case ('warning') {\n <ng-doc-icon icon=\"alert-triangle\" size=\"24\"></ng-doc-icon>\n }\n @case ('success') {\n <ng-doc-icon icon=\"check\" size=\"24\"></ng-doc-icon>\n }\n @case ('alert') {\n <ng-doc-icon icon=\"alert-circle\" size=\"24\"></ng-doc-icon>\n }\n }\n }\n </div>\n}\n<div class=\"ng-doc-blockquote\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);position:relative;display:flex;padding:calc(var(--ng-doc-base-gutter) * 2);border-radius:var(--ng-doc-base-gutter);margin:var(--ng-doc-blockquote-margin);background:color-mix(in srgb,var(--ng-doc-blockquote-background, var(--ng-doc-base-9)),transparent 90%);border:1px solid color-mix(in srgb,var(--ng-doc-blockquote-border-color, var(--ng-doc-base-9)),transparent 80%);overflow:hidden;--ng-doc-code-margin: var(--ng-doc-base-gutter) 0}:host[data-ng-doc-type=note]{--ng-doc-blockquote-background: var(--ng-doc-info);--ng-doc-blockquote-border-color: var(--ng-doc-info);--ng-doc-icon-color: var(--ng-doc-info)}:host[data-ng-doc-type=warning]{--ng-doc-blockquote-background: var(--ng-doc-warning);--ng-doc-blockquote-border-color: var(--ng-doc-warning);--ng-doc-icon-color: var(--ng-doc-warning)}:host[data-ng-doc-type=alert]{--ng-doc-blockquote-background: var(--ng-doc-alert);--ng-doc-blockquote-border-color: var(--ng-doc-alert);--ng-doc-icon-color: var(--ng-doc-alert)}:host[data-ng-doc-type=success]{--ng-doc-blockquote-background: var(--ng-doc-success);--ng-doc-blockquote-border-color: var(--ng-doc-success);--ng-doc-icon-color: var(--ng-doc-success)}:host .ng-doc-blockquote-icon{display:flex;margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-blockquote{text-decoration:none}:host ::ng-deep p{margin:0}\n"] }]
16
15
  }], propDecorators: { type: [{
17
16
  type: Input
18
17
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-components-blockquote.mjs","sources":["../../../../libs/ui-kit/components/blockquote/blockquote.component.ts","../../../../libs/ui-kit/components/blockquote/blockquote.component.html","../../../../libs/ui-kit/components/blockquote/ng-doc-ui-kit-components-blockquote.ts"],"sourcesContent":["import { NgIf, NgSwitch, NgSwitchCase } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';\nimport { NgDocIconComponent } from '@ng-doc/ui-kit/components/icon';\nimport { NgDocBlockquoteType } from '@ng-doc/ui-kit/types';\n\n@Component({\n selector: 'blockquote[ng-doc-blockquote]',\n templateUrl: './blockquote.component.html',\n styleUrls: ['./blockquote.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgIf, NgSwitch, NgSwitchCase, NgDocIconComponent],\n})\nexport class NgDocBlockquoteComponent {\n @Input()\n @HostBinding('attr.data-ng-doc-type')\n type: NgDocBlockquoteType = 'default';\n\n @Input()\n icon?: string;\n}\n","@if (type !== 'default') {\n <div class=\"ng-doc-blockquote-icon\">\n @if (icon) {\n <ng-doc-icon [icon]=\"icon\" size=\"24\"></ng-doc-icon>\n } @else {\n @switch (type) {\n @case ('note') {\n <ng-doc-icon icon=\"info\" size=\"24\"></ng-doc-icon>\n }\n @case ('warning') {\n <ng-doc-icon icon=\"alert-triangle\" size=\"24\"></ng-doc-icon>\n }\n @case ('success') {\n <ng-doc-icon icon=\"check\" size=\"24\"></ng-doc-icon>\n }\n @case ('alert') {\n <ng-doc-icon icon=\"alert-circle\" size=\"24\"></ng-doc-icon>\n }\n }\n }\n </div>\n}\n<div class=\"ng-doc-blockquote\">\n <ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAYa,wBAAwB,CAAA;AAPrC,IAAA,WAAA,GAAA;QAUE,IAAI,CAAA,IAAA,GAAwB,SAAS;AAItC;8GAPY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZrC,utBAyBA,EAAA,MAAA,EAAA,CAAA,2/CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDf0C,kBAAkB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAE/C,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAPpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,EAGxB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,kBAAkB,CAAC,EAAA,QAAA,EAAA,utBAAA,EAAA,MAAA,EAAA,CAAA,2/CAAA,CAAA,EAAA;8BAK3D,IAAI,EAAA,CAAA;sBAFH;;sBACA,WAAW;uBAAC,uBAAuB;gBAIpC,IAAI,EAAA,CAAA;sBADH;;;AEjBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-ui-kit-components-blockquote.mjs","sources":["../../../../libs/ui-kit/components/blockquote/blockquote.component.ts","../../../../libs/ui-kit/components/blockquote/blockquote.component.html","../../../../libs/ui-kit/components/blockquote/ng-doc-ui-kit-components-blockquote.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';\nimport { NgDocIconComponent } from '@ng-doc/ui-kit/components/icon';\nimport { NgDocBlockquoteType } from '@ng-doc/ui-kit/types';\n\n@Component({\n selector: 'blockquote[ng-doc-blockquote]',\n templateUrl: './blockquote.component.html',\n styleUrls: ['./blockquote.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgDocIconComponent],\n})\nexport class NgDocBlockquoteComponent {\n @Input()\n @HostBinding('attr.data-ng-doc-type')\n type: NgDocBlockquoteType = 'default';\n\n @Input()\n icon?: string;\n}\n","@if (type !== 'default') {\n <div class=\"ng-doc-blockquote-icon\">\n @if (icon) {\n <ng-doc-icon [icon]=\"icon\" size=\"24\"></ng-doc-icon>\n } @else {\n @switch (type) {\n @case ('note') {\n <ng-doc-icon icon=\"info\" size=\"24\"></ng-doc-icon>\n }\n @case ('warning') {\n <ng-doc-icon icon=\"alert-triangle\" size=\"24\"></ng-doc-icon>\n }\n @case ('success') {\n <ng-doc-icon icon=\"check\" size=\"24\"></ng-doc-icon>\n }\n @case ('alert') {\n <ng-doc-icon icon=\"alert-circle\" size=\"24\"></ng-doc-icon>\n }\n }\n }\n </div>\n}\n<div class=\"ng-doc-blockquote\">\n <ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAWa,wBAAwB,CAAA;AAPrC,IAAA,WAAA,GAAA;QAUE,IAAI,CAAA,IAAA,GAAwB,SAAS;AAItC;8GAPY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXrC,utBAyBA,EAAA,MAAA,EAAA,CAAA,2/CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDhBY,kBAAkB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEjB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAPpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,+BAA+B,mBAGxB,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA,CAAC,kBAAkB,CAAC,EAAA,QAAA,EAAA,utBAAA,EAAA,MAAA,EAAA,CAAA,2/CAAA,CAAA,EAAA;8BAK7B,IAAI,EAAA,CAAA;sBAFH;;sBACA,WAAW;uBAAC,uBAAuB;gBAIpC,IAAI,EAAA,CAAA;sBADH;;;AEhBH;;AAEG;;;;"}
@@ -1,15 +1,14 @@
1
- import { __decorate, __metadata } from 'tslib';
2
1
  import { NgIf } from '@angular/common';
3
2
  import * as i0 from '@angular/core';
4
3
  import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
4
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { NgDocInputHost } from '@ng-doc/ui-kit/classes/input-host';
6
6
  import { NgDocButtonIconComponent } from '@ng-doc/ui-kit/components/button-icon';
7
7
  import { NgDocIconComponent } from '@ng-doc/ui-kit/components/icon';
8
8
  import { NgDocFocusableDirective } from '@ng-doc/ui-kit/directives/focusable';
9
- import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
10
9
  import { DIControl, injectHostControl } from 'di-controls';
11
10
 
12
- let NgDocClearControlComponent = class NgDocClearControlComponent extends DIControl {
11
+ class NgDocClearControlComponent extends DIControl {
13
12
  constructor() {
14
13
  super({
15
14
  host: injectHostControl(),
@@ -21,7 +20,7 @@ let NgDocClearControlComponent = class NgDocClearControlComponent extends DICont
21
20
  ngAfterContentInit() {
22
21
  if (this.inputHost?.inputControl) {
23
22
  this.inputHost.inputControl.changes
24
- .pipe(untilDestroyed(this))
23
+ .pipe(takeUntilDestroyed(this['destroyRef']))
25
24
  .subscribe(() => this.changeDetectorRef.detectChanges());
26
25
  }
27
26
  }
@@ -34,11 +33,7 @@ let NgDocClearControlComponent = class NgDocClearControlComponent extends DICont
34
33
  }
35
34
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocClearControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
36
35
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: NgDocClearControlComponent, isStandalone: true, selector: "ng-doc-clear-control", usesInheritance: true, ngImport: i0, template: "<button\n ng-doc-button-icon-transparent\n size=\"large\"\n [ngDocFocusable]=\"false\"\n [disabled]=\"disabled\"\n [rounded]=\"false\"\n (click)=\"clear()\"\n (focusout)=\"touch()\"\n *ngIf=\"isVisible\">\n <ng-doc-icon icon=\"x\"></ng-doc-icon>\n</button>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon], button[ng-doc-button-icon-raised], a[ng-doc-button-icon-raised], button[ng-doc-button-icon-transparent], a[ng-doc-button-icon-transparent]", inputs: ["size", "rounded"] }, { kind: "directive", type: NgDocFocusableDirective, selector: "[ngDocFocusable]", inputs: ["ngDocFocusable"], exportAs: ["ngDocFocusable"] }, { kind: "component", type: NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "customIcon", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
- };
38
- NgDocClearControlComponent = __decorate([
39
- UntilDestroy(),
40
- __metadata("design:paramtypes", [])
41
- ], NgDocClearControlComponent);
36
+ }
42
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocClearControlComponent, decorators: [{
43
38
  type: Component,
44
39
  args: [{ selector: 'ng-doc-clear-control', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, NgDocButtonIconComponent, NgDocFocusableDirective, NgDocIconComponent], template: "<button\n ng-doc-button-icon-transparent\n size=\"large\"\n [ngDocFocusable]=\"false\"\n [disabled]=\"disabled\"\n [rounded]=\"false\"\n (click)=\"clear()\"\n (focusout)=\"touch()\"\n *ngIf=\"isVisible\">\n <ng-doc-icon icon=\"x\"></ng-doc-icon>\n</button>\n", styles: [":host{display:inline-block}\n"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-components-clear-control.mjs","sources":["../../../../libs/ui-kit/components/clear-control/clear-control.component.ts","../../../../libs/ui-kit/components/clear-control/clear-control.component.html","../../../../libs/ui-kit/components/clear-control/ng-doc-ui-kit-components-clear-control.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { NgDocInputHost } from '@ng-doc/ui-kit/classes/input-host';\nimport { NgDocButtonIconComponent } from '@ng-doc/ui-kit/components/button-icon';\nimport { NgDocIconComponent } from '@ng-doc/ui-kit/components/icon';\nimport { NgDocFocusableDirective } from '@ng-doc/ui-kit/directives/focusable';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { DIControl, injectHostControl } from 'di-controls';\n\n@Component({\n selector: 'ng-doc-clear-control',\n templateUrl: './clear-control.component.html',\n styleUrls: ['./clear-control.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgIf, NgDocButtonIconComponent, NgDocFocusableDirective, NgDocIconComponent],\n})\n@UntilDestroy()\nexport class NgDocClearControlComponent<T> extends DIControl<T> implements AfterContentInit {\n protected readonly inputHost: NgDocInputHost<T> | null = inject(NgDocInputHost, {\n optional: true,\n });\n\n constructor() {\n super({\n host: injectHostControl(),\n });\n }\n\n ngAfterContentInit(): void {\n if (this.inputHost?.inputControl) {\n this.inputHost.inputControl.changes\n .pipe(untilDestroyed(this))\n .subscribe(() => this.changeDetectorRef.detectChanges());\n }\n }\n\n get isVisible(): boolean {\n return this.inputHost?.inputControl?.hasValue || this.hasValue;\n }\n\n clear(): void {\n this.inputHost?.inputControl?.writeValueFromHost(null);\n this.updateModel(null);\n }\n}\n","<button\n ng-doc-button-icon-transparent\n size=\"large\"\n [ngDocFocusable]=\"false\"\n [disabled]=\"disabled\"\n [rounded]=\"false\"\n (click)=\"clear()\"\n (focusout)=\"touch()\"\n *ngIf=\"isVisible\">\n <ng-doc-icon icon=\"x\"></ng-doc-icon>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAiBO,IAAM,0BAA0B,GAAhC,MAAM,0BAA8B,SAAQ,SAAY,CAAA;AAK7D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,CAAC;YACJ,IAAI,EAAE,iBAAiB,EAAE;AAC1B,SAAA,CAAC;AAPe,QAAA,IAAA,CAAA,SAAS,GAA6B,MAAM,CAAC,cAAc,EAAE;AAC9E,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA,CAAC;;IAQF,kBAAkB,GAAA;AAChB,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE;AAChC,YAAA,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;AACzB,iBAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;iBACzB,SAAS,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;;;AAI9D,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,IAAI,IAAI,CAAC,QAAQ;;IAGhE,KAAK,GAAA;QACH,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,kBAAkB,CAAC,IAAI,CAAC;AACtD,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;;8GAzBb,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CA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../../../../libs/ui-kit/components/clear-control/clear-control.component.html","../../../../libs/ui-kit/components/clear-control/ng-doc-ui-kit-components-clear-control.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgDocInputHost } from '@ng-doc/ui-kit/classes/input-host';\nimport { NgDocButtonIconComponent } from '@ng-doc/ui-kit/components/button-icon';\nimport { NgDocIconComponent } from '@ng-doc/ui-kit/components/icon';\nimport { NgDocFocusableDirective } from '@ng-doc/ui-kit/directives/focusable';\nimport { DIControl, injectHostControl } from 'di-controls';\n\n@Component({\n selector: 'ng-doc-clear-control',\n templateUrl: './clear-control.component.html',\n styleUrls: ['./clear-control.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgIf, NgDocButtonIconComponent, NgDocFocusableDirective, NgDocIconComponent],\n})\nexport class NgDocClearControlComponent<T> extends DIControl<T> implements AfterContentInit {\n protected readonly inputHost: NgDocInputHost<T> | null = inject(NgDocInputHost, {\n optional: true,\n });\n\n constructor() {\n super({\n host: injectHostControl(),\n });\n }\n\n ngAfterContentInit(): void {\n if (this.inputHost?.inputControl) {\n this.inputHost.inputControl.changes\n .pipe(takeUntilDestroyed(this['destroyRef']))\n .subscribe(() => this.changeDetectorRef.detectChanges());\n }\n }\n\n get isVisible(): boolean {\n return this.inputHost?.inputControl?.hasValue || this.hasValue;\n }\n\n clear(): void {\n this.inputHost?.inputControl?.writeValueFromHost(null);\n this.updateModel(null);\n }\n}\n","<button\n ng-doc-button-icon-transparent\n size=\"large\"\n [ngDocFocusable]=\"false\"\n [disabled]=\"disabled\"\n [rounded]=\"false\"\n (click)=\"clear()\"\n (focusout)=\"touch()\"\n *ngIf=\"isVisible\">\n <ng-doc-icon icon=\"x\"></ng-doc-icon>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;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AA,EAAA,WAAA,EAAA,IAAA,EAAE,uBAAuB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,YAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAE1E,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAPtC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAGf,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA,CAAC,IAAI,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,kBAAkB,CAAC,EAAA,QAAA,EAAA,6QAAA,EAAA,MAAA,EAAA,CAAA,+BAAA,CAAA,EAAA;;;AEdxF;;AAEG;;;;"}
@@ -1,23 +1,23 @@
1
- import { __decorate } from 'tslib';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, Component, ChangeDetectionStrategy, Input, ViewChild, ContentChild } from '@angular/core';
2
+ import { inject, DestroyRef, Component, ChangeDetectionStrategy, Input, ViewChild, ContentChild } from '@angular/core';
3
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { Router, ActivatedRoute, RouterOutlet } from '@angular/router';
5
5
  import { NgDocDialogService } from '@ng-doc/ui-kit/services/dialog';
6
- import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
7
6
  import { Subject, switchMap, NEVER, merge } from 'rxjs';
8
7
  import { takeUntil, map, startWith } from 'rxjs/operators';
9
8
 
10
- let DialogOutletComponent = class DialogOutletComponent {
9
+ class DialogOutletComponent {
11
10
  constructor() {
12
11
  this.router = inject(Router);
13
12
  this.route = inject(ActivatedRoute);
14
13
  this.dialogService = inject(NgDocDialogService);
14
+ this.destroyRef = inject(DestroyRef);
15
15
  }
16
16
  ngAfterContentInit() {
17
17
  if (this.routerOutlet) {
18
18
  const dialogRef = new Subject();
19
19
  dialogRef
20
- .pipe(switchMap((dialogRef) => dialogRef.beforeClose().pipe(takeUntil(this.routerOutlet?.deactivateEvents ?? NEVER))), untilDestroyed(this))
20
+ .pipe(switchMap((dialogRef) => dialogRef.beforeClose().pipe(takeUntil(this.routerOutlet?.deactivateEvents ?? NEVER))), takeUntilDestroyed(this.destroyRef))
21
21
  .subscribe(() => {
22
22
  const url = this.route.pathFromRoot
23
23
  .map((r) => r.snapshot.url)
@@ -27,7 +27,7 @@ let DialogOutletComponent = class DialogOutletComponent {
27
27
  this.router.navigateByUrl(url);
28
28
  });
29
29
  merge(this.routerOutlet.activateEvents.pipe(map(() => true)), this.routerOutlet.deactivateEvents.pipe(map(() => false)))
30
- .pipe(startWith(this.routerOutlet.isActivated), untilDestroyed(this))
30
+ .pipe(startWith(this.routerOutlet.isActivated), takeUntilDestroyed(this.destroyRef))
31
31
  .subscribe((activated) => {
32
32
  if (activated) {
33
33
  this.dialogRef = this.dialogService.open(this.outletContent, this.config);
@@ -41,24 +41,21 @@ let DialogOutletComponent = class DialogOutletComponent {
41
41
  }
42
42
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: DialogOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
43
43
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: DialogOutletComponent, isStandalone: true, selector: "ng-doc-dialog-outlet", inputs: { config: "config" }, queries: [{ propertyName: "routerOutlet", first: true, predicate: RouterOutlet, descendants: true }], viewQueries: [{ propertyName: "outletContent", first: true, predicate: ["outletContent"], descendants: true, static: true }], ngImport: i0, template: `
44
- <ng-template #outletContent>
45
- <ng-content></ng-content>
46
- </ng-template>
47
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
- };
49
- DialogOutletComponent = __decorate([
50
- UntilDestroy()
51
- ], DialogOutletComponent);
44
+ <ng-template #outletContent>
45
+ <ng-content></ng-content>
46
+ </ng-template>
47
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
+ }
52
49
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: DialogOutletComponent, decorators: [{
53
50
  type: Component,
54
51
  args: [{
55
52
  selector: 'ng-doc-dialog-outlet',
56
53
  standalone: true,
57
54
  template: `
58
- <ng-template #outletContent>
59
- <ng-content></ng-content>
60
- </ng-template>
61
- `,
55
+ <ng-template #outletContent>
56
+ <ng-content></ng-content>
57
+ </ng-template>
58
+ `,
62
59
  changeDetection: ChangeDetectionStrategy.OnPush,
63
60
  }]
64
61
  }], propDecorators: { config: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-components-dialog-outlet.mjs","sources":["../../../../libs/ui-kit/components/dialog-outlet/dialog-outlet.component.ts","../../../../libs/ui-kit/components/dialog-outlet/ng-doc-ui-kit-components-dialog-outlet.ts"],"sourcesContent":["import {\n\tAfterContentInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tContentChild,\n\tinject,\n\tInput,\n\tTemplateRef,\n\tViewChild,\n} from '@angular/core';\nimport { ActivatedRoute, Router, RouterOutlet } from '@angular/router';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';\nimport { NgDocDialogConfig, NgDocDialogService } from '@ng-doc/ui-kit/services/dialog';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { merge, NEVER, Subject, switchMap } from 'rxjs';\nimport { map, startWith, takeUntil } from 'rxjs/operators';\n\n@Component({\n\tselector: 'ng-doc-dialog-outlet',\n\tstandalone: true,\n\ttemplate: `\n\t\t<ng-template #outletContent>\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\n@UntilDestroy()\nexport class DialogOutletComponent implements AfterContentInit {\n\t@Input()\n\tconfig?: NgDocDialogConfig;\n\n\t@ViewChild('outletContent', { static: true })\n\toutletContent!: TemplateRef<never>;\n\n\t@ContentChild(RouterOutlet)\n\trouterOutlet?: RouterOutlet;\n\n\tdialogRef?: NgDocOverlayRef;\n\n\tprotected readonly router: Router = inject(Router);\n\tprotected readonly route: ActivatedRoute = inject(ActivatedRoute);\n\tprotected readonly dialogService: NgDocDialogService = inject(NgDocDialogService);\n\n\tngAfterContentInit(): void {\n\t\tif (this.routerOutlet) {\n\t\t\tconst dialogRef = new Subject<NgDocOverlayRef>();\n\n\t\t\tdialogRef\n\t\t\t\t.pipe(\n\t\t\t\t\tswitchMap((dialogRef: NgDocOverlayRef) =>\n\t\t\t\t\t\tdialogRef.beforeClose().pipe(takeUntil(this.routerOutlet?.deactivateEvents ?? NEVER)),\n\t\t\t\t\t),\n\t\t\t\t\tuntilDestroyed(this),\n\t\t\t\t)\n\t\t\t\t.subscribe(() => {\n\t\t\t\t\tconst url = this.route.pathFromRoot\n\t\t\t\t\t\t.map((r) => r.snapshot.url)\n\t\t\t\t\t\t.filter((f) => !!f[0])\n\t\t\t\t\t\t.map(([f]) => f.path)\n\t\t\t\t\t\t.join('/');\n\n\t\t\t\t\tthis.router.navigateByUrl(url);\n\t\t\t\t});\n\n\t\t\tmerge(\n\t\t\t\tthis.routerOutlet.activateEvents.pipe(map(() => true)),\n\t\t\t\tthis.routerOutlet.deactivateEvents.pipe(map(() => false)),\n\t\t\t)\n\t\t\t\t.pipe(startWith(this.routerOutlet.isActivated), untilDestroyed(this))\n\t\t\t\t.subscribe((activated: boolean) => {\n\t\t\t\t\tif (activated) {\n\t\t\t\t\t\tthis.dialogRef = this.dialogService.open(this.outletContent, this.config);\n\n\t\t\t\t\t\tdialogRef.next(this.dialogRef);\n\t\t\t\t\t} else {\n\t\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,qBAAqB,GAAA,UAAA,CAAA;AADjC,IAAA,YAAY;AACA,CAAA,EAAA,qBAAqB,CAqDjC;2FArDY,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAXjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE;;;;AAIT,CAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,iBAAA;8BAIA,MAAM,EAAA,CAAA;sBADL;gBAID,aAAa,EAAA,CAAA;sBADZ,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,eAAe,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBAI5C,YAAY,EAAA,CAAA;sBADX,YAAY;uBAAC,YAAY;;;ACnC3B;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-ui-kit-components-dialog-outlet.mjs","sources":["../../../../libs/ui-kit/components/dialog-outlet/dialog-outlet.component.ts","../../../../libs/ui-kit/components/dialog-outlet/ng-doc-ui-kit-components-dialog-outlet.ts"],"sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n DestroyRef,\n inject,\n Input,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Router, RouterOutlet } from '@angular/router';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';\nimport { NgDocDialogConfig, NgDocDialogService } from '@ng-doc/ui-kit/services/dialog';\nimport { merge, NEVER, Subject, switchMap } from 'rxjs';\nimport { map, startWith, takeUntil } from 'rxjs/operators';\n\n@Component({\n selector: 'ng-doc-dialog-outlet',\n standalone: true,\n template: `\n <ng-template #outletContent>\n <ng-content></ng-content>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogOutletComponent implements AfterContentInit {\n @Input()\n config?: NgDocDialogConfig;\n\n @ViewChild('outletContent', { static: true })\n outletContent!: TemplateRef<never>;\n\n @ContentChild(RouterOutlet)\n routerOutlet?: RouterOutlet;\n\n dialogRef?: NgDocOverlayRef;\n\n protected readonly router: Router = inject(Router);\n protected readonly route: ActivatedRoute = inject(ActivatedRoute);\n protected readonly dialogService: NgDocDialogService = inject(NgDocDialogService);\n protected readonly destroyRef = inject(DestroyRef);\n\n ngAfterContentInit(): void {\n if (this.routerOutlet) {\n const dialogRef = new Subject<NgDocOverlayRef>();\n\n dialogRef\n .pipe(\n switchMap((dialogRef: NgDocOverlayRef) =>\n dialogRef.beforeClose().pipe(takeUntil(this.routerOutlet?.deactivateEvents ?? NEVER)),\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => {\n const url = this.route.pathFromRoot\n .map((r) => r.snapshot.url)\n .filter((f) => !!f[0])\n .map(([f]) => f.path)\n .join('/');\n\n this.router.navigateByUrl(url);\n });\n\n merge(\n this.routerOutlet.activateEvents.pipe(map(() => true)),\n this.routerOutlet.deactivateEvents.pipe(map(() => false)),\n )\n .pipe(startWith(this.routerOutlet.isActivated), takeUntilDestroyed(this.destroyRef))\n .subscribe((activated: boolean) => {\n if (activated) {\n this.dialogRef = this.dialogService.open(this.outletContent, this.config);\n\n dialogRef.next(this.dialogRef);\n } else {\n this.dialogRef?.close();\n }\n });\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MA4Ba,qBAAqB,CAAA;AAVlC,IAAA,WAAA,GAAA;AAsBqB,QAAA,IAAA,CAAA,MAAM,GAAW,MAAM,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAA,CAAA,KAAK,GAAmB,MAAM,CAAC,cAAc,CAAC;AAC9C,QAAA,IAAA,CAAA,aAAa,GAAuB,MAAM,CAAC,kBAAkB,CAAC;AAC9D,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAA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AE,IAAI,EAAE;gBAI5C,YAAY,EAAA,CAAA;sBADX,YAAY;uBAAC,YAAY;;;ACnC5B;;AAEG;;;;"}
@@ -1,7 +1,6 @@
1
- import { __decorate, __metadata } from 'tslib';
2
1
  import { FlexibleConnectedPositionStrategy, CdkOverlayOrigin } from '@angular/cdk/overlay';
3
2
  import * as i0 from '@angular/core';
4
- import { EventEmitter, ChangeDetectorRef, ViewContainerRef, NgZone, Component, ChangeDetectionStrategy, Inject, Optional, Input, Output, HostBinding, HostListener } from '@angular/core';
3
+ import { EventEmitter, Component, ChangeDetectionStrategy, Inject, Optional, Input, Output, HostBinding, HostListener } from '@angular/core';
5
4
  import { asArray } from '@ng-doc/core/helpers/as-array';
6
5
  import { dropdownOpenAnimation } from '@ng-doc/ui-kit/animations';
7
6
  import * as i2 from '@ng-doc/ui-kit/classes/overlay-host';
@@ -12,9 +11,8 @@ import { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';
12
11
  import * as i1 from '@ng-doc/ui-kit/services/overlay';
13
12
  import { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';
14
13
  import { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';
15
- import { UntilDestroy } from '@ngneat/until-destroy';
16
14
 
17
- let NgDocDropdownComponent = class NgDocDropdownComponent {
15
+ class NgDocDropdownComponent {
18
16
  constructor(changeDetectorRef, overlayService, viewContainerRef, ngZone, overlayHost) {
19
17
  this.changeDetectorRef = changeDetectorRef;
20
18
  this.overlayService = overlayService;
@@ -176,15 +174,7 @@ let NgDocDropdownComponent = class NgDocDropdownComponent {
176
174
  }
177
175
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocDropdownComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.NgDocOverlayService }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: NgDocOverlayHost, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
178
176
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: NgDocDropdownComponent, isStandalone: true, selector: "ng-doc-dropdown", inputs: { content: "content", origin: "origin", closeIfOutsideClick: "closeIfOutsideClick", closeIfInnerClick: "closeIfInnerClick", withArrow: "withArrow", borderOffset: "borderOffset", panelClass: "panelClass", contactBorder: "contactBorder", hasBackdrop: "hasBackdrop", positions: "positions", minHeight: "minHeight", maxHeight: "maxHeight", height: "height", minWidth: "minWidth", maxWidth: "maxWidth", width: "width" }, outputs: { beforeOpen: "beforeOpen", afterOpen: "afterOpen", beforeClose: "beforeClose", afterClose: "afterClose" }, host: { listeners: { "focus": "focus()" }, properties: { "attr.tabIndex": "this.tabIndex" } }, providers: [NgDocOverlayService], usesOnChanges: true, ngImport: i0, template: ``, isInline: true, styles: ["::ng-deep .ng-doc-dropdown{--ng-doc-overlay-background: var(--ng-doc-background);--ng-doc-overlay-border: var(--ng-doc-base-2);--ng-doc-overlay-border-radius: var(--ng-doc-base-gutter);--ng-doc-overlay-shadow: 0px 12px 16px -4px rgba(16, 24, 40, .08), 0px 4px 6px -2px rgba(16, 24, 40, .03)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
179
- };
180
- NgDocDropdownComponent = __decorate([
181
- UntilDestroy(),
182
- __metadata("design:paramtypes", [ChangeDetectorRef,
183
- NgDocOverlayService,
184
- ViewContainerRef,
185
- NgZone,
186
- NgDocOverlayHost])
187
- ], NgDocDropdownComponent);
177
+ }
188
178
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocDropdownComponent, decorators: [{
189
179
  type: Component,
190
180
  args: [{ selector: 'ng-doc-dropdown', template: ``, changeDetection: ChangeDetectionStrategy.OnPush, providers: [NgDocOverlayService], standalone: true, styles: ["::ng-deep .ng-doc-dropdown{--ng-doc-overlay-background: var(--ng-doc-background);--ng-doc-overlay-border: var(--ng-doc-base-2);--ng-doc-overlay-border-radius: var(--ng-doc-base-gutter);--ng-doc-overlay-shadow: 0px 12px 16px -4px rgba(16, 24, 40, .08), 0px 4px 6px -2px rgba(16, 24, 40, .03)}\n"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-components-dropdown.mjs","sources":["../../../../libs/ui-kit/components/dropdown/dropdown.component.ts","../../../../libs/ui-kit/components/dropdown/ng-doc-ui-kit-components-dropdown.ts"],"sourcesContent":["import { Point } from '@angular/cdk/drag-drop';\nimport {\n\tCdkOverlayOrigin,\n\tFlexibleConnectedPositionStrategy,\n\tPositionStrategy,\n} from '@angular/cdk/overlay';\nimport {\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tEventEmitter,\n\tHostBinding,\n\tHostListener,\n\tInject,\n\tInput,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tOptional,\n\tOutput,\n\tSimpleChanges,\n\tViewContainerRef,\n} from '@angular/core';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { dropdownOpenAnimation } from '@ng-doc/ui-kit/animations';\nimport { NgDocOverlayHost } from '@ng-doc/ui-kit/classes/overlay-host';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';\nimport { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';\nimport { mergeOverlayConfigs, toElement } from '@ng-doc/ui-kit/helpers';\nimport { NgDocOverlayConfig, NgDocOverlayProperties } from '@ng-doc/ui-kit/interfaces';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';\nimport { NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\nimport { UntilDestroy } from '@ngneat/until-destroy';\n\n@Component({\n\tselector: 'ng-doc-dropdown',\n\ttemplate: ``,\n\tstyleUrls: ['./dropdown.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tproviders: [NgDocOverlayService],\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocDropdownComponent implements OnChanges, OnDestroy {\n\t@Input()\n\tcontent: NgDocContent = '';\n\n\t@Input()\n\torigin: CdkOverlayOrigin | Point | null = null;\n\n\t@Input()\n\tcloseIfOutsideClick: boolean = true;\n\n\t@Input()\n\tcloseIfInnerClick: boolean = false;\n\n\t@Input()\n\twithArrow: boolean = false;\n\n\t@Input()\n\tborderOffset: number = -8;\n\n\t@Input()\n\tpanelClass: string | string[] = [];\n\n\t@Input()\n\tcontactBorder: boolean = true;\n\n\t@Input()\n\thasBackdrop: boolean = false;\n\n\t@Input()\n\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[] = [\n\t\t'bottom-center',\n\t\t'top-center',\n\t\t'right-center',\n\t\t'left-center',\n\t];\n\n\t@Input()\n\tminHeight: number | string = '';\n\n\t@Input()\n\tmaxHeight: number | string = '';\n\n\t@Input()\n\theight: number | string = '';\n\n\t@Input()\n\tminWidth: number | string = '';\n\n\t@Input()\n\tmaxWidth: number | string = '';\n\n\t@Input()\n\twidth: number | string = '';\n\n\t@Output()\n\tbeforeOpen: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tafterOpen: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tbeforeClose: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tafterClose: EventEmitter<void> = new EventEmitter<void>();\n\n\toverlay: NgDocOverlayRef | null = null;\n\toverlayProperties: NgDocOverlayProperties = this.getOverlayProperties();\n\n\tconstructor(\n\t\tprotected changeDetectorRef: ChangeDetectorRef,\n\t\tprotected overlayService: NgDocOverlayService,\n\t\tprotected viewContainerRef: ViewContainerRef,\n\t\tprotected ngZone: NgZone,\n\t\t@Inject(NgDocOverlayHost)\n\t\t@Optional()\n\t\tprotected overlayHost?: NgDocOverlayHost,\n\t) {}\n\n\tngOnChanges({ origin }: SimpleChanges): void {\n\t\tif (origin && origin.currentValue !== origin.previousValue) {\n\t\t\tif (!origin.currentValue) {\n\t\t\t\tthis.origin = origin.previousValue as CdkOverlayOrigin | Point | null;\n\t\t\t}\n\n\t\t\tif (this.overlay) {\n\t\t\t\tconst positionStrategy: PositionStrategy | undefined =\n\t\t\t\t\tthis.overlay.overlayRef.getConfig().positionStrategy;\n\t\t\t\tif (positionStrategy instanceof FlexibleConnectedPositionStrategy && this.currentOrigin) {\n\t\t\t\t\tthis.overlay.overlayRef.updatePositionStrategy(\n\t\t\t\t\t\tpositionStrategy.setOrigin(this.currentOrigin),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.updateOverlayPosition();\n\t}\n\n\t@HostBinding('attr.tabIndex')\n\tget tabIndex(): number {\n\t\treturn this.isOpened ? 0 : -1;\n\t}\n\n\t@HostListener('focus')\n\tfocus(): void {\n\t\tthis.overlay?.focus();\n\t}\n\n\tget isFocused(): boolean {\n\t\treturn !!this.overlay?.isFocused;\n\t}\n\n\topen(): void {\n\t\tif (!this.overlay?.hasAttached) {\n\t\t\tconst config: NgDocOverlayConfig = this.getConfig();\n\t\t\tthis.overlay = this.overlayService.open(this.content, config);\n\t\t\tthis.beforeOpen.emit();\n\t\t\tthis.overlay\n\t\t\t\t?.afterOpen()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.afterOpen.emit());\n\n\t\t\tthis.overlay\n\t\t\t\t?.beforeClose()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.beforeClose.emit());\n\n\t\t\tthis.overlay\n\t\t\t\t?.afterClose()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.afterClose.emit());\n\n\t\t\tthis.overlay.beforeClose().subscribe(() => this.close());\n\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\tclose(): void {\n\t\tif (this.isOpened) {\n\t\t\tthis.overlay?.close();\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\ttoggle(): void {\n\t\tthis.isOpened ? this.close() : this.open();\n\t}\n\n\tget isOpened(): boolean {\n\t\treturn this.overlay?.isOpened === true;\n\t}\n\n\tupdateOverlayPosition(): void {\n\t\tif (this.overlay && this.overlay.hasAttached) {\n\t\t\tthis.overlay.overlayRef.updateSize(this.getConfig());\n\t\t\tthis.overlay.overlayRef.updatePosition();\n\t\t}\n\t}\n\n\tprivate get currentOrigin(): NgDocOverlayOrigin | null {\n\t\treturn this.origin instanceof CdkOverlayOrigin\n\t\t\t? (this.origin.elementRef.nativeElement as HTMLElement)\n\t\t\t: this.origin || this.overlayHost?.origin || null;\n\t}\n\n\tprivate getPositions(\n\t\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t\tborder: number,\n\t): NgDocOverlayPosition[] {\n\t\tconst origin: NgDocOverlayOrigin = toElement(this.currentOrigin) as HTMLElement;\n\t\tif (origin instanceof HTMLElement) {\n\t\t\treturn NgDocOverlayUtils.getConnectedPosition(\n\t\t\t\t!!positions && asArray(positions).length\n\t\t\t\t\t? positions\n\t\t\t\t\t: ['bottom-center', 'top-center', 'right-center', 'left-center'],\n\t\t\t\torigin,\n\t\t\t\tborder * -1,\n\t\t\t\tthis.withArrow,\n\t\t\t);\n\t\t} else {\n\t\t\treturn !!positions && asArray(positions).length\n\t\t\t\t? asArray(positions)\n\t\t\t\t: ['bottom-center', 'top-center', 'right-center', 'left-center'];\n\t\t}\n\t}\n\n\tprivate getConfig(): NgDocOverlayConfig {\n\t\tconst overlayProperties: NgDocOverlayProperties = mergeOverlayConfigs(\n\t\t\tthis.overlayProperties,\n\t\t\tthis.getOverlayProperties(),\n\t\t\tthis.overlayHost,\n\t\t);\n\t\tif (!this.currentOrigin) {\n\t\t\tthrow new Error('Origin for the dropdown was not provided.');\n\t\t}\n\t\treturn {\n\t\t\toverlayContainer: NgDocOverlayContainerComponent,\n\t\t\tpositionStrategy: this.overlayService.connectedPositionStrategy(\n\t\t\t\tthis.currentOrigin,\n\t\t\t\tthis.getPositions(overlayProperties.positions || [], overlayProperties.borderOffset || 0),\n\t\t\t),\n\t\t\tscrollStrategy: this.overlayService.scrollStrategy().reposition(),\n\t\t\tviewContainerRef: this.viewContainerRef,\n\t\t\topenAnimation: dropdownOpenAnimation,\n\t\t\thasBackdrop: this.hasBackdrop,\n\t\t\t...overlayProperties,\n\t\t\tpanelClass: [\n\t\t\t\t'ng-doc-dropdown',\n\t\t\t\t...asArray(this.panelClass),\n\t\t\t\t...asArray(this.overlayHost?.panelClass),\n\t\t\t],\n\t\t};\n\t}\n\n\tprivate getOverlayProperties(): NgDocOverlayProperties {\n\t\treturn {\n\t\t\torigin: this.currentOrigin || undefined,\n\t\t\tpositions: this.positions,\n\t\t\tcloseIfOutsideClick: this.closeIfOutsideClick,\n\t\t\tcloseIfInnerClick: this.closeIfInnerClick,\n\t\t\twithPointer: this.withArrow,\n\t\t\tcontactBorder: this.contactBorder,\n\t\t\tborderOffset: this.borderOffset,\n\t\t\tpanelClass: this.panelClass,\n\t\t\twidth: this.width,\n\t\t\theight: this.height,\n\t\t\tminWidth: this.minWidth,\n\t\t\tminHeight: this.minHeight,\n\t\t\tmaxWidth: this.maxWidth,\n\t\t\tmaxHeight: this.maxHeight,\n\t\t\tdisposeOnNavigation: true,\n\t\t\tdisposeOnRouteNavigation: true,\n\t\t};\n\t}\n\n\tngOnDestroy(): void {\n\t\tif (this.overlay) {\n\t\t\tthis.overlay.overlayRef.dispose();\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA6Ca,IAAA,sBAAsB,GAA5B,MAAM,sBAAsB,CAAA;IAqElC,WACW,CAAA,iBAAoC,EACpC,cAAmC,EACnC,gBAAkC,EAClC,MAAc,EAGd,WAA8B,EAAA;QAN9B,IAAiB,CAAA,iBAAA,GAA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AAE;qCAuEgB,iBAAiB;QACpB,mBAAmB;QACjB,gBAAgB;QAC1B,MAAM;QAGA,gBAAgB,CAAA;AA5E7B,CAAA,EAAA,sBAAsB,CAiPlC;2FAjPY,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBATlC,SAAS;+BACC,iBAAiB,EAAA,QAAA,EACjB,CAAE,CAAA,EAAA,eAAA,EAEK,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,mBAAmB,CAAC,EAAA,UAAA,EACpB,IAAI,EAAA,MAAA,EAAA,CAAA,uSAAA,CAAA,EAAA;;0BA6Ed,MAAM;2BAAC,gBAAgB;;0BACvB;yCAzEF,OAAO,EAAA,CAAA;sBADN;gBAID,MAAM,EAAA,CAAA;sBADL;gBAID,mBAAmB,EAAA,CAAA;sBADlB;gBAID,iBAAiB,EAAA,CAAA;sBADhB;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,YAAY,EAAA,CAAA;sBADX;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,SAAS,EAAA,CAAA;sBADR;gBASD,SAAS,EAAA,CAAA;sBADR;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,MAAM,EAAA,CAAA;sBADL;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,KAAK,EAAA,CAAA;sBADJ;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,UAAU,EAAA,CAAA;sBADT;gBAoCG,QAAQ,EAAA,CAAA;sBADX,WAAW;uBAAC,eAAe;gBAM5B,KAAK,EAAA,CAAA;sBADJ,YAAY;uBAAC,OAAO;;;ACpJtB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-ui-kit-components-dropdown.mjs","sources":["../../../../libs/ui-kit/components/dropdown/dropdown.component.ts","../../../../libs/ui-kit/components/dropdown/ng-doc-ui-kit-components-dropdown.ts"],"sourcesContent":["import { Point } from '@angular/cdk/drag-drop';\nimport {\n CdkOverlayOrigin,\n FlexibleConnectedPositionStrategy,\n PositionStrategy,\n} from '@angular/cdk/overlay';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n Optional,\n Output,\n SimpleChanges,\n ViewContainerRef,\n} from '@angular/core';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { dropdownOpenAnimation } from '@ng-doc/ui-kit/animations';\nimport { NgDocOverlayHost } from '@ng-doc/ui-kit/classes/overlay-host';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';\nimport { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';\nimport { mergeOverlayConfigs, toElement } from '@ng-doc/ui-kit/helpers';\nimport { NgDocOverlayConfig, NgDocOverlayProperties } from '@ng-doc/ui-kit/interfaces';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';\nimport { NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\n\n@Component({\n selector: 'ng-doc-dropdown',\n template: ``,\n styleUrls: ['./dropdown.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [NgDocOverlayService],\n standalone: true,\n})\nexport class NgDocDropdownComponent implements OnChanges, OnDestroy {\n @Input()\n content: NgDocContent = '';\n\n @Input()\n origin: CdkOverlayOrigin | Point | null = null;\n\n @Input()\n closeIfOutsideClick: boolean = true;\n\n @Input()\n closeIfInnerClick: boolean = false;\n\n @Input()\n withArrow: boolean = false;\n\n @Input()\n borderOffset: number = -8;\n\n @Input()\n panelClass: string | string[] = [];\n\n @Input()\n contactBorder: boolean = true;\n\n @Input()\n hasBackdrop: boolean = false;\n\n @Input()\n positions: NgDocOverlayPosition | NgDocOverlayPosition[] = [\n 'bottom-center',\n 'top-center',\n 'right-center',\n 'left-center',\n ];\n\n @Input()\n minHeight: number | string = '';\n\n @Input()\n maxHeight: number | string = '';\n\n @Input()\n height: number | string = '';\n\n @Input()\n minWidth: number | string = '';\n\n @Input()\n maxWidth: number | string = '';\n\n @Input()\n width: number | string = '';\n\n @Output()\n beforeOpen: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n afterOpen: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n beforeClose: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n afterClose: EventEmitter<void> = new EventEmitter<void>();\n\n overlay: NgDocOverlayRef | null = null;\n overlayProperties: NgDocOverlayProperties = this.getOverlayProperties();\n\n constructor(\n protected changeDetectorRef: ChangeDetectorRef,\n protected overlayService: NgDocOverlayService,\n protected viewContainerRef: ViewContainerRef,\n protected ngZone: NgZone,\n @Inject(NgDocOverlayHost)\n @Optional()\n protected overlayHost?: NgDocOverlayHost,\n ) {}\n\n ngOnChanges({ origin }: SimpleChanges): void {\n if (origin && origin.currentValue !== origin.previousValue) {\n if (!origin.currentValue) {\n this.origin = origin.previousValue as CdkOverlayOrigin | Point | null;\n }\n\n if (this.overlay) {\n const positionStrategy: PositionStrategy | undefined =\n this.overlay.overlayRef.getConfig().positionStrategy;\n if (positionStrategy instanceof FlexibleConnectedPositionStrategy && this.currentOrigin) {\n this.overlay.overlayRef.updatePositionStrategy(\n positionStrategy.setOrigin(this.currentOrigin),\n );\n }\n }\n }\n this.updateOverlayPosition();\n }\n\n @HostBinding('attr.tabIndex')\n get tabIndex(): number {\n return this.isOpened ? 0 : -1;\n }\n\n @HostListener('focus')\n focus(): void {\n this.overlay?.focus();\n }\n\n get isFocused(): boolean {\n return !!this.overlay?.isFocused;\n }\n\n open(): void {\n if (!this.overlay?.hasAttached) {\n const config: NgDocOverlayConfig = this.getConfig();\n this.overlay = this.overlayService.open(this.content, config);\n this.beforeOpen.emit();\n this.overlay\n ?.afterOpen()\n .pipe(ngDocZoneDetach(this.ngZone))\n .subscribe(() => this.afterOpen.emit());\n\n this.overlay\n ?.beforeClose()\n .pipe(ngDocZoneDetach(this.ngZone))\n .subscribe(() => this.beforeClose.emit());\n\n this.overlay\n ?.afterClose()\n .pipe(ngDocZoneDetach(this.ngZone))\n .subscribe(() => this.afterClose.emit());\n\n this.overlay.beforeClose().subscribe(() => this.close());\n\n this.changeDetectorRef.markForCheck();\n }\n }\n\n close(): void {\n if (this.isOpened) {\n this.overlay?.close();\n this.changeDetectorRef.markForCheck();\n }\n }\n\n toggle(): void {\n this.isOpened ? this.close() : this.open();\n }\n\n get isOpened(): boolean {\n return this.overlay?.isOpened === true;\n }\n\n updateOverlayPosition(): void {\n if (this.overlay && this.overlay.hasAttached) {\n this.overlay.overlayRef.updateSize(this.getConfig());\n this.overlay.overlayRef.updatePosition();\n }\n }\n\n private get currentOrigin(): NgDocOverlayOrigin | null {\n return this.origin instanceof CdkOverlayOrigin\n ? (this.origin.elementRef.nativeElement as HTMLElement)\n : this.origin || this.overlayHost?.origin || null;\n }\n\n private getPositions(\n positions: NgDocOverlayPosition | NgDocOverlayPosition[],\n border: number,\n ): NgDocOverlayPosition[] {\n const origin: NgDocOverlayOrigin = toElement(this.currentOrigin) as HTMLElement;\n if (origin instanceof HTMLElement) {\n return NgDocOverlayUtils.getConnectedPosition(\n !!positions && asArray(positions).length\n ? positions\n : ['bottom-center', 'top-center', 'right-center', 'left-center'],\n origin,\n border * -1,\n this.withArrow,\n );\n } else {\n return !!positions && asArray(positions).length\n ? asArray(positions)\n : ['bottom-center', 'top-center', 'right-center', 'left-center'];\n }\n }\n\n private getConfig(): NgDocOverlayConfig {\n const overlayProperties: NgDocOverlayProperties = mergeOverlayConfigs(\n this.overlayProperties,\n this.getOverlayProperties(),\n this.overlayHost,\n );\n if (!this.currentOrigin) {\n throw new Error('Origin for the dropdown was not provided.');\n }\n return {\n overlayContainer: NgDocOverlayContainerComponent,\n positionStrategy: this.overlayService.connectedPositionStrategy(\n this.currentOrigin,\n this.getPositions(overlayProperties.positions || [], overlayProperties.borderOffset || 0),\n ),\n scrollStrategy: this.overlayService.scrollStrategy().reposition(),\n viewContainerRef: this.viewContainerRef,\n openAnimation: dropdownOpenAnimation,\n hasBackdrop: this.hasBackdrop,\n ...overlayProperties,\n panelClass: [\n 'ng-doc-dropdown',\n ...asArray(this.panelClass),\n ...asArray(this.overlayHost?.panelClass),\n ],\n };\n }\n\n private getOverlayProperties(): NgDocOverlayProperties {\n return {\n origin: this.currentOrigin || undefined,\n positions: this.positions,\n closeIfOutsideClick: this.closeIfOutsideClick,\n closeIfInnerClick: this.closeIfInnerClick,\n withPointer: this.withArrow,\n contactBorder: this.contactBorder,\n borderOffset: this.borderOffset,\n panelClass: this.panelClass,\n width: this.width,\n height: this.height,\n minWidth: this.minWidth,\n minHeight: this.minHeight,\n maxWidth: this.maxWidth,\n maxHeight: this.maxHeight,\n disposeOnNavigation: true,\n disposeOnRouteNavigation: true,\n };\n }\n\n ngOnDestroy(): void {\n if (this.overlay) {\n this.overlay.overlayRef.dispose();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MA2Ca,sBAAsB,CAAA;IAqEjC,WACY,CAAA,iBAAoC,EACpC,cAAmC,EACnC,gBAAkC,EAClC,MAAc,EAGd,WAA8B,EAAA;QAN9B,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB;QACjB,IAAc,CAAA,cAAA,GAAd,cAAc;QACd,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAM,CAAA,MAAA,GAAN,MAAM;QAGN,IAAW,CAAA,WAAA,GAAX,WAAW;QA1EvB,IAAO,CAAA,OAAA,GAAiB,EAAE;QAG1B,IAAM,CAAA,MAAA,GAAoC,IAAI;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AAA,CAAA;sBADN;gBAID,MAAM,EAAA,CAAA;sBADL;gBAID,mBAAmB,EAAA,CAAA;sBADlB;gBAID,iBAAiB,EAAA,CAAA;sBADhB;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,YAAY,EAAA,CAAA;sBADX;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,SAAS,EAAA,CAAA;sBADR;gBASD,SAAS,EAAA,CAAA;sBADR;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,MAAM,EAAA,CAAA;sBADL;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,KAAK,EAAA,CAAA;sBADJ;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,UAAU,EAAA,CAAA;sBADT;gBAoCG,QAAQ,EAAA,CAAA;sBADX,WAAW;uBAAC,eAAe;gBAM5B,KAAK,EAAA,CAAA;sBADJ,YAAY;uBAAC,OAAO;;;AClJvB;;AAEG;;;;"}
@@ -1,4 +1,4 @@
1
- import { NgIf, NgTemplateOutlet } from '@angular/common';
1
+ import { NgIf } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
4
4
  import { preventInitialChildAnimations, expandCollapseAnimation } from '@ng-doc/ui-kit/animations';
@@ -22,11 +22,11 @@ class NgDocExpanderComponent {
22
22
  this.expanded = !this.expanded;
23
23
  }
24
24
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocExpanderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: NgDocExpanderComponent, isStandalone: true, selector: "ng-doc-expander", inputs: { expanded: "expanded", content: "content", collapseMod: "collapseMod", from: "from" }, ngImport: i0, template: "<div\n *ngIf=\"expanded || from || collapseMod === 'hide'\"\n [@.disabled]=\"animationDisabled\"\n [@expandCollapse]=\"{ value: expanded, params: { from: from + 'px', opacity: from ? 1 : 0 } }\">\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: PolymorpheusModule }, { kind: "directive", type: i1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [preventInitialChildAnimations, expandCollapseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: NgDocExpanderComponent, isStandalone: true, selector: "ng-doc-expander", inputs: { expanded: "expanded", content: "content", collapseMod: "collapseMod", from: "from" }, ngImport: i0, template: "<div\n *ngIf=\"expanded || from || collapseMod === 'hide'\"\n [@.disabled]=\"animationDisabled\"\n [@expandCollapse]=\"{ value: expanded, params: { from: from + 'px', opacity: from ? 1 : 0 } }\">\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{display:block}:host>div{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: PolymorpheusModule }, { kind: "directive", type: i1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [preventInitialChildAnimations, expandCollapseAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
26
  }
27
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocExpanderComponent, decorators: [{
28
28
  type: Component,
29
- args: [{ animations: [preventInitialChildAnimations, expandCollapseAnimation], selector: 'ng-doc-expander', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, PolymorpheusModule, NgTemplateOutlet], template: "<div\n *ngIf=\"expanded || from || collapseMod === 'hide'\"\n [@.disabled]=\"animationDisabled\"\n [@expandCollapse]=\"{ value: expanded, params: { from: from + 'px', opacity: from ? 1 : 0 } }\">\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{display:block}\n"] }]
29
+ args: [{ animations: [preventInitialChildAnimations, expandCollapseAnimation], selector: 'ng-doc-expander', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, PolymorpheusModule], template: "<div\n *ngIf=\"expanded || from || collapseMod === 'hide'\"\n [@.disabled]=\"animationDisabled\"\n [@expandCollapse]=\"{ value: expanded, params: { from: from + 'px', opacity: from ? 1 : 0 } }\">\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{display:block}:host>div{overflow:hidden}\n"] }]
30
30
  }], propDecorators: { expanded: [{
31
31
  type: Input
32
32
  }], content: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-ui-kit-components-expander.mjs","sources":["../../../../libs/ui-kit/components/expander/expander.component.ts","../../../../libs/ui-kit/components/expander/expander.component.html","../../../../libs/ui-kit/components/expander/ng-doc-ui-kit-components-expander.ts"],"sourcesContent":["import { NgIf, NgTemplateOutlet } from '@angular/common';\nimport { AfterViewInit, ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { expandCollapseAnimation, preventInitialChildAnimations } from '@ng-doc/ui-kit/animations';\nimport { NgDocContent } from '@ng-doc/ui-kit/types';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\n\n/** Component helps to expand or collapse content */\n@Component({\n animations: [preventInitialChildAnimations, expandCollapseAnimation],\n selector: 'ng-doc-expander',\n templateUrl: './expander.component.html',\n styleUrls: ['./expander.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgIf, PolymorpheusModule, NgTemplateOutlet],\n})\nexport class NgDocExpanderComponent implements AfterViewInit {\n /** Change expand state */\n @Input()\n expanded: boolean = false;\n\n /** Expander content */\n @Input({ required: true })\n content!: NgDocContent;\n\n @Input()\n collapseMod: 'remove' | 'hide' = 'remove';\n\n /** Closed height could be used to show preview of the content */\n @Input()\n from: number = 0;\n\n protected animationDisabled = true;\n\n ngAfterViewInit(): void {\n this.animationDisabled = false;\n }\n\n toggle(): void {\n this.expanded = !this.expanded;\n }\n}\n","<div\n *ngIf=\"expanded || from || collapseMod === 'hide'\"\n [@.disabled]=\"animationDisabled\"\n [@expandCollapse]=\"{ value: expanded, params: { from: from + 'px', opacity: from ? 1 : 0 } }\">\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;MASa,sBAAsB,CAAA;AARnC,IAAA,WAAA,GAAA;;QAWE,IAAQ,CAAA,QAAA,GAAY,KAAK;QAOzB,IAAW,CAAA,WAAA,GAAsB,QAAQ;;QAIzC,IAAI,CAAA,IAAA,GAAW,CAAC;QAEN,IAAiB,CAAA,iBAAA,GAAG,IAAI;AASnC;IAPC,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,iBAAiB,GAAG,KAAK;;IAGhC,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;;8GAvBrB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OA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libs/ui-kit/components/expander/expander.component.ts","../../../../libs/ui-kit/components/expander/expander.component.html","../../../../libs/ui-kit/components/expander/ng-doc-ui-kit-components-expander.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { AfterViewInit, ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { expandCollapseAnimation, preventInitialChildAnimations } from '@ng-doc/ui-kit/animations';\nimport { NgDocContent } from '@ng-doc/ui-kit/types';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\n\n/** Component helps to expand or collapse content */\n@Component({\n animations: [preventInitialChildAnimations, expandCollapseAnimation],\n selector: 'ng-doc-expander',\n templateUrl: './expander.component.html',\n styleUrls: ['./expander.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgIf, PolymorpheusModule],\n})\nexport class NgDocExpanderComponent implements AfterViewInit {\n /** Change expand state */\n @Input()\n expanded: boolean = false;\n\n /** Expander content */\n @Input({ required: true })\n content!: NgDocContent;\n\n @Input()\n collapseMod: 'remove' | 'hide' = 'remove';\n\n /** Closed height could be used to show preview of the content */\n @Input()\n from: number = 0;\n\n protected animationDisabled = true;\n\n ngAfterViewInit(): void {\n this.animationDisabled = false;\n }\n\n toggle(): void {\n this.expanded = !this.expanded;\n }\n}\n","<div\n *ngIf=\"expanded || from || collapseMod === 'hide'\"\n [@.disabled]=\"animationDisabled\"\n [@expandCollapse]=\"{ value: expanded, params: { from: from + 'px', opacity: from ? 1 : 0 } }\">\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;MASa,sBAAsB,CAAA;AARnC,IAAA,WAAA,GAAA;;QAWE,IAAQ,CAAA,QAAA,GAAY,KAAK;QAOzB,IAAW,CAAA,WAAA,GAAsB,QAAQ;;QAIzC,IAAI,CAAA,IAAA,GAAW,CAAC;QAEN,IAAiB,CAAA,iBAAA,GAAG,IA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