@shival99/z-ui 2.0.7 → 2.0.8

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 (81) hide show
  1. package/assets/css/themes/hospital.css +9 -9
  2. package/fesm2022/shival99-z-ui-components-z-accordion.mjs +1 -1
  3. package/fesm2022/shival99-z-ui-components-z-accordion.mjs.map +1 -1
  4. package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +2 -2
  5. package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
  6. package/fesm2022/shival99-z-ui-components-z-avatar.mjs +1 -1
  7. package/fesm2022/shival99-z-ui-components-z-avatar.mjs.map +1 -1
  8. package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs +1 -1
  9. package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs.map +1 -1
  10. package/fesm2022/shival99-z-ui-components-z-button.mjs +32 -9
  11. package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
  12. package/fesm2022/shival99-z-ui-components-z-calendar.mjs +102 -27
  13. package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
  14. package/fesm2022/shival99-z-ui-components-z-card.mjs +1 -1
  15. package/fesm2022/shival99-z-ui-components-z-card.mjs.map +1 -1
  16. package/fesm2022/shival99-z-ui-components-z-chat.mjs +1 -1
  17. package/fesm2022/shival99-z-ui-components-z-chat.mjs.map +1 -1
  18. package/fesm2022/shival99-z-ui-components-z-checkbox.mjs +1 -1
  19. package/fesm2022/shival99-z-ui-components-z-checkbox.mjs.map +1 -1
  20. package/fesm2022/shival99-z-ui-components-z-code.mjs +1 -1
  21. package/fesm2022/shival99-z-ui-components-z-code.mjs.map +1 -1
  22. package/fesm2022/shival99-z-ui-components-z-drawer.mjs +10 -3
  23. package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
  24. package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +1 -1
  25. package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +1 -1
  26. package/fesm2022/shival99-z-ui-components-z-editor.mjs +1 -1
  27. package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +1 -1
  28. package/fesm2022/shival99-z-ui-components-z-empty.mjs +1 -1
  29. package/fesm2022/shival99-z-ui-components-z-empty.mjs.map +1 -1
  30. package/fesm2022/shival99-z-ui-components-z-filter.mjs +1 -1
  31. package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -1
  32. package/fesm2022/shival99-z-ui-components-z-gallery.mjs +3 -3
  33. package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
  34. package/fesm2022/shival99-z-ui-components-z-icon.mjs +72 -5
  35. package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
  36. package/fesm2022/shival99-z-ui-components-z-input.mjs +2 -2
  37. package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
  38. package/fesm2022/shival99-z-ui-components-z-kanban.mjs +1 -1
  39. package/fesm2022/shival99-z-ui-components-z-kanban.mjs.map +1 -1
  40. package/fesm2022/shival99-z-ui-components-z-menu.mjs +4 -3
  41. package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
  42. package/fesm2022/shival99-z-ui-components-z-metric-card.mjs +1 -1
  43. package/fesm2022/shival99-z-ui-components-z-metric-card.mjs.map +1 -1
  44. package/fesm2022/shival99-z-ui-components-z-modal.mjs +11 -3
  45. package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
  46. package/fesm2022/shival99-z-ui-components-z-pagination.mjs +1 -1
  47. package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -1
  48. package/fesm2022/shival99-z-ui-components-z-popover.mjs +77 -9
  49. package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
  50. package/fesm2022/shival99-z-ui-components-z-select.mjs +2 -2
  51. package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
  52. package/fesm2022/shival99-z-ui-components-z-steps.mjs +1 -1
  53. package/fesm2022/shival99-z-ui-components-z-steps.mjs.map +1 -1
  54. package/fesm2022/shival99-z-ui-components-z-switch.mjs +1 -1
  55. package/fesm2022/shival99-z-ui-components-z-switch.mjs.map +1 -1
  56. package/fesm2022/shival99-z-ui-components-z-table.mjs +1264 -421
  57. package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
  58. package/fesm2022/shival99-z-ui-components-z-tabs.mjs +95 -5
  59. package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -1
  60. package/fesm2022/shival99-z-ui-components-z-tags.mjs +1 -1
  61. package/fesm2022/shival99-z-ui-components-z-tags.mjs.map +1 -1
  62. package/fesm2022/shival99-z-ui-components-z-timeline.mjs +1 -1
  63. package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -1
  64. package/fesm2022/shival99-z-ui-components-z-upload.mjs +3 -2
  65. package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -1
  66. package/fesm2022/shival99-z-ui-i18n.mjs +66 -8
  67. package/fesm2022/shival99-z-ui-i18n.mjs.map +1 -1
  68. package/package.json +7 -3
  69. package/types/shival99-z-ui-components-z-autocomplete.d.ts +1 -1
  70. package/types/shival99-z-ui-components-z-button.d.ts +7 -4
  71. package/types/shival99-z-ui-components-z-calendar.d.ts +12 -5
  72. package/types/shival99-z-ui-components-z-drawer.d.ts +8 -1
  73. package/types/shival99-z-ui-components-z-editor.d.ts +1 -1
  74. package/types/shival99-z-ui-components-z-icon.d.ts +27 -4
  75. package/types/shival99-z-ui-components-z-menu.d.ts +1 -0
  76. package/types/shival99-z-ui-components-z-modal.d.ts +10 -2
  77. package/types/shival99-z-ui-components-z-popover.d.ts +9 -2
  78. package/types/shival99-z-ui-components-z-select.d.ts +1 -1
  79. package/types/shival99-z-ui-components-z-table.d.ts +129 -53
  80. package/types/shival99-z-ui-components-z-tabs.d.ts +15 -7
  81. package/types/shival99-z-ui-components-z-upload.d.ts +4 -3
@@ -339,6 +339,7 @@ function getActualPopoverPosition(change) {
339
339
  const Z_POPOVER_ANIMATION_DURATION = 200;
340
340
 
341
341
  class ZPopoverComponent {
342
+ static _openPopovers = new Set();
342
343
  _overlay = inject(Overlay);
343
344
  _overlayPositionBuilder = inject(OverlayPositionBuilder);
344
345
  _renderer = inject(Renderer2);
@@ -359,6 +360,7 @@ class ZPopoverComponent {
359
360
  zDisabled = input(false, { ...(ngDevMode ? { debugName: "zDisabled" } : {}), transform: zTransform });
360
361
  zOffset = input(8, ...(ngDevMode ? [{ debugName: "zOffset" }] : []));
361
362
  zManualClose = input(false, { ...(ngDevMode ? { debugName: "zManualClose" } : {}), transform: zTransform });
363
+ zOutsideClickClose = input(false, { ...(ngDevMode ? { debugName: "zOutsideClickClose" } : {}), transform: zTransform });
362
364
  zScrollClose = input(false, { ...(ngDevMode ? { debugName: "zScrollClose" } : {}), transform: zTransform });
363
365
  zShowArrow = input(false, { ...(ngDevMode ? { debugName: "zShowArrow" } : {}), transform: zTransform });
364
366
  _overlayRef = null;
@@ -459,6 +461,7 @@ class ZPopoverComponent {
459
461
  this._overlayRef?.dispose();
460
462
  this._overlayRef = null;
461
463
  this._componentRef = null;
464
+ ZPopoverComponent._openPopovers.delete(this);
462
465
  }
463
466
  _setupDelayMechanism() {
464
467
  this._delaySubject
@@ -495,11 +498,12 @@ class ZPopoverComponent {
495
498
  }
496
499
  this._overlayRef
497
500
  .outsidePointerEvents()
498
- .pipe(filter(() => !this.zManualClose()), takeUntilDestroyed(this._destroyRef))
501
+ .pipe(filter(() => !this.zManualClose() || this.zOutsideClickClose()), takeUntilDestroyed(this._destroyRef))
499
502
  .subscribe(event => {
500
503
  const triggerEl = this._trigger().nativeElement;
501
- if (!triggerEl.contains(event.target)) {
502
- this._delay(false, 0);
504
+ const target = event.target;
505
+ if (!triggerEl.contains(target) && !this._isNestedPopoverTarget(target)) {
506
+ this.hideImmediate();
503
507
  }
504
508
  });
505
509
  }
@@ -576,8 +580,28 @@ class ZPopoverComponent {
576
580
  }
577
581
  this._setupResizeObserver();
578
582
  this._isVisible.set(true);
583
+ ZPopoverComponent._openPopovers.add(this);
579
584
  this.zShow.emit();
580
585
  }
586
+ _isNestedPopoverTarget(target) {
587
+ const overlayElement = this._overlayRef?.overlayElement;
588
+ if (!overlayElement) {
589
+ return false;
590
+ }
591
+ for (const popover of ZPopoverComponent._openPopovers) {
592
+ if (popover === this) {
593
+ continue;
594
+ }
595
+ const nestedOverlayElement = popover._overlayRef?.overlayElement;
596
+ if (!nestedOverlayElement?.contains(target)) {
597
+ continue;
598
+ }
599
+ if (overlayElement.contains(popover._trigger().nativeElement)) {
600
+ return true;
601
+ }
602
+ }
603
+ return false;
604
+ }
581
605
  _setupResizeObserver() {
582
606
  this._resizeObserver?.disconnect();
583
607
  this._resizeObserver = new ResizeObserver(() => {
@@ -635,7 +659,7 @@ class ZPopoverComponent {
635
659
  this._listenerCleanups = [];
636
660
  }
637
661
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ZPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
638
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.9", type: ZPopoverComponent, isStandalone: true, selector: "z-popover", inputs: { zContent: { classPropertyName: "zContent", publicName: "zContent", isSignal: true, isRequired: false, transformFunction: null }, zPosition: { classPropertyName: "zPosition", publicName: "zPosition", isSignal: true, isRequired: false, transformFunction: null }, zTrigger: { classPropertyName: "zTrigger", publicName: "zTrigger", isSignal: true, isRequired: false, transformFunction: null }, zClass: { classPropertyName: "zClass", publicName: "zClass", isSignal: true, isRequired: false, transformFunction: null }, zShowDelay: { classPropertyName: "zShowDelay", publicName: "zShowDelay", isSignal: true, isRequired: false, transformFunction: null }, zHideDelay: { classPropertyName: "zHideDelay", publicName: "zHideDelay", isSignal: true, isRequired: false, transformFunction: null }, zDisabled: { classPropertyName: "zDisabled", publicName: "zDisabled", isSignal: true, isRequired: false, transformFunction: null }, zOffset: { classPropertyName: "zOffset", publicName: "zOffset", isSignal: true, isRequired: false, transformFunction: null }, zManualClose: { classPropertyName: "zManualClose", publicName: "zManualClose", isSignal: true, isRequired: false, transformFunction: null }, zScrollClose: { classPropertyName: "zScrollClose", publicName: "zScrollClose", isSignal: true, isRequired: false, transformFunction: null }, zShowArrow: { classPropertyName: "zShowArrow", publicName: "zShowArrow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zShow: "zShow", zHide: "zHide", zControl: "zControl" }, host: { classAttribute: "inline-block" }, viewQueries: [{ propertyName: "_trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: `
662
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.9", type: ZPopoverComponent, isStandalone: true, selector: "z-popover", inputs: { zContent: { classPropertyName: "zContent", publicName: "zContent", isSignal: true, isRequired: false, transformFunction: null }, zPosition: { classPropertyName: "zPosition", publicName: "zPosition", isSignal: true, isRequired: false, transformFunction: null }, zTrigger: { classPropertyName: "zTrigger", publicName: "zTrigger", isSignal: true, isRequired: false, transformFunction: null }, zClass: { classPropertyName: "zClass", publicName: "zClass", isSignal: true, isRequired: false, transformFunction: null }, zShowDelay: { classPropertyName: "zShowDelay", publicName: "zShowDelay", isSignal: true, isRequired: false, transformFunction: null }, zHideDelay: { classPropertyName: "zHideDelay", publicName: "zHideDelay", isSignal: true, isRequired: false, transformFunction: null }, zDisabled: { classPropertyName: "zDisabled", publicName: "zDisabled", isSignal: true, isRequired: false, transformFunction: null }, zOffset: { classPropertyName: "zOffset", publicName: "zOffset", isSignal: true, isRequired: false, transformFunction: null }, zManualClose: { classPropertyName: "zManualClose", publicName: "zManualClose", isSignal: true, isRequired: false, transformFunction: null }, zOutsideClickClose: { classPropertyName: "zOutsideClickClose", publicName: "zOutsideClickClose", isSignal: true, isRequired: false, transformFunction: null }, zScrollClose: { classPropertyName: "zScrollClose", publicName: "zScrollClose", isSignal: true, isRequired: false, transformFunction: null }, zShowArrow: { classPropertyName: "zShowArrow", publicName: "zShowArrow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zShow: "zShow", zHide: "zHide", zControl: "zControl" }, host: { classAttribute: "inline-block" }, viewQueries: [{ propertyName: "_trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: `
639
663
  <span #trigger class="z-popover-trigger inline-block">
640
664
  <ng-content />
641
665
  </span>
@@ -656,9 +680,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
656
680
  class: 'inline-block',
657
681
  },
658
682
  }]
659
- }], propDecorators: { _trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], zShow: [{ type: i0.Output, args: ["zShow"] }], zHide: [{ type: i0.Output, args: ["zHide"] }], zControl: [{ type: i0.Output, args: ["zControl"] }], zContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "zContent", required: false }] }], zPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPosition", required: false }] }], zTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "zTrigger", required: false }] }], zClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "zClass", required: false }] }], zShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowDelay", required: false }] }], zHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zHideDelay", required: false }] }], zDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "zDisabled", required: false }] }], zOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "zOffset", required: false }] }], zManualClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zManualClose", required: false }] }], zScrollClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zScrollClose", required: false }] }], zShowArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowArrow", required: false }] }] } });
683
+ }], propDecorators: { _trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], zShow: [{ type: i0.Output, args: ["zShow"] }], zHide: [{ type: i0.Output, args: ["zHide"] }], zControl: [{ type: i0.Output, args: ["zControl"] }], zContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "zContent", required: false }] }], zPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPosition", required: false }] }], zTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "zTrigger", required: false }] }], zClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "zClass", required: false }] }], zShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowDelay", required: false }] }], zHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zHideDelay", required: false }] }], zDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "zDisabled", required: false }] }], zOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "zOffset", required: false }] }], zManualClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zManualClose", required: false }] }], zOutsideClickClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zOutsideClickClose", required: false }] }], zScrollClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zScrollClose", required: false }] }], zShowArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowArrow", required: false }] }] } });
660
684
 
661
685
  class ZPopoverDirective {
686
+ static _openPopovers = new Set();
662
687
  zContent = input(null, { ...(ngDevMode ? { debugName: "zContent" } : {}), alias: 'zPopoverContent' });
663
688
  zPosition = input('bottom', ...(ngDevMode ? [{ debugName: "zPosition" }] : []));
664
689
  zTrigger = input('click', ...(ngDevMode ? [{ debugName: "zTrigger" }] : []));
@@ -670,6 +695,7 @@ class ZPopoverDirective {
670
695
  zPopoverWidth = input('auto', ...(ngDevMode ? [{ debugName: "zPopoverWidth" }] : []));
671
696
  zTriggerRef = input(null, ...(ngDevMode ? [{ debugName: "zTriggerRef" }] : []));
672
697
  zManualClose = input(false, { ...(ngDevMode ? { debugName: "zManualClose" } : {}), transform: zTransform });
698
+ zOutsideClickClose = input(false, { ...(ngDevMode ? { debugName: "zOutsideClickClose" } : {}), transform: zTransform });
673
699
  zScrollClose = input(false, { ...(ngDevMode ? { debugName: "zScrollClose" } : {}), transform: zTransform });
674
700
  zShowArrow = input(false, { ...(ngDevMode ? { debugName: "zShowArrow" } : {}), transform: zTransform });
675
701
  zShow = output();
@@ -723,6 +749,8 @@ class ZPopoverDirective {
723
749
  ngOnDestroy() {
724
750
  this._isDestroyed.set(true);
725
751
  this._clearHideTimeout();
752
+ this._renderer.removeClass(this._elementRef.nativeElement, 'z-popover-open');
753
+ this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-expanded');
726
754
  this._delaySubject.complete();
727
755
  this._cleanupListeners();
728
756
  this._disposeOverlay();
@@ -747,6 +775,8 @@ class ZPopoverDirective {
747
775
  this._clearHideTimeout();
748
776
  if (this._isVisible()) {
749
777
  this._isVisible.set(false);
778
+ this._renderer.removeClass(this._elementRef.nativeElement, 'z-popover-open');
779
+ this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-expanded');
750
780
  this.zHideStart.emit();
751
781
  }
752
782
  this._disposeOverlay();
@@ -762,6 +792,16 @@ class ZPopoverDirective {
762
792
  isOpen() {
763
793
  return this._isVisible();
764
794
  }
795
+ updatePosition() {
796
+ if (!this._isVisible()) {
797
+ return;
798
+ }
799
+ this._overlayRef?.updatePosition();
800
+ const widthConfig = this._getWidthConfig();
801
+ if (widthConfig.width) {
802
+ this._overlayRef?.updateSize({ width: widthConfig.width, minWidth: widthConfig.minWidth });
803
+ }
804
+ }
765
805
  _createOverlay() {
766
806
  const positionStrategy = this._overlayPositionBuilder
767
807
  .flexibleConnectedTo(this._getTriggerElement())
@@ -808,6 +848,7 @@ class ZPopoverDirective {
808
848
  this._overlayRef?.dispose();
809
849
  this._overlayRef = null;
810
850
  this._componentRef = null;
851
+ ZPopoverDirective._openPopovers.delete(this);
811
852
  }
812
853
  _setupDelayMechanism() {
813
854
  this._delaySubject
@@ -851,7 +892,7 @@ class ZPopoverDirective {
851
892
  }
852
893
  this._overlayRef
853
894
  .outsidePointerEvents()
854
- .pipe(filter(() => !this.zManualClose()), filter(() => this.zTrigger() === 'click' || this.zTrigger() === 'manual'), filter(event => {
895
+ .pipe(filter(() => !this.zManualClose() || this.zOutsideClickClose()), filter(() => this.zTrigger() === 'click' || this.zTrigger() === 'manual'), filter(event => {
855
896
  const target = event.target;
856
897
  // Check if click is inside trigger element
857
898
  if (this._elementRef.nativeElement.contains(target)) {
@@ -862,9 +903,12 @@ class ZPopoverDirective {
862
903
  if (overlayElement?.contains(target)) {
863
904
  return false;
864
905
  }
906
+ if (this._isNestedPopoverTarget(target)) {
907
+ return false;
908
+ }
865
909
  return true;
866
910
  }), takeUntilDestroyed(this._destroyRef))
867
- .subscribe(() => this._delay(false, 0));
911
+ .subscribe(() => this.hideImmediate());
868
912
  }
869
913
  _setupScrollClose() {
870
914
  this._scrollSubscription?.unsubscribe();
@@ -941,8 +985,30 @@ class ZPopoverDirective {
941
985
  }
942
986
  this._setupResizeObserver();
943
987
  this._isVisible.set(true);
988
+ ZPopoverDirective._openPopovers.add(this);
989
+ this._renderer.addClass(this._elementRef.nativeElement, 'z-popover-open');
990
+ this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-expanded', 'true');
944
991
  this.zShow.emit();
945
992
  }
993
+ _isNestedPopoverTarget(target) {
994
+ const overlayElement = this._overlayRef?.overlayElement;
995
+ if (!overlayElement) {
996
+ return false;
997
+ }
998
+ for (const popover of ZPopoverDirective._openPopovers) {
999
+ if (popover === this) {
1000
+ continue;
1001
+ }
1002
+ const nestedOverlayElement = popover._overlayRef?.overlayElement;
1003
+ if (!nestedOverlayElement?.contains(target)) {
1004
+ continue;
1005
+ }
1006
+ if (overlayElement.contains(popover._getTriggerElement())) {
1007
+ return true;
1008
+ }
1009
+ }
1010
+ return false;
1011
+ }
946
1012
  _setupResizeObserver() {
947
1013
  this._resizeObserver?.disconnect();
948
1014
  this._resizeObserver = new ResizeObserver(() => {
@@ -986,6 +1052,8 @@ class ZPopoverDirective {
986
1052
  return;
987
1053
  }
988
1054
  this._isVisible.set(false);
1055
+ this._renderer.removeClass(this._elementRef.nativeElement, 'z-popover-open');
1056
+ this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-expanded');
989
1057
  this.zHideStart.emit();
990
1058
  this._componentRef.instance.state.set('closed');
991
1059
  this._hideTimeout = setTimeout(() => {
@@ -1008,7 +1076,7 @@ class ZPopoverDirective {
1008
1076
  this._listenerCleanups = [];
1009
1077
  }
1010
1078
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ZPopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1011
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: ZPopoverDirective, isStandalone: true, selector: "[z-popover]", inputs: { zContent: { classPropertyName: "zContent", publicName: "zPopoverContent", isSignal: true, isRequired: false, transformFunction: null }, zPosition: { classPropertyName: "zPosition", publicName: "zPosition", isSignal: true, isRequired: false, transformFunction: null }, zTrigger: { classPropertyName: "zTrigger", publicName: "zTrigger", isSignal: true, isRequired: false, transformFunction: null }, zClass: { classPropertyName: "zClass", publicName: "zClass", isSignal: true, isRequired: false, transformFunction: null }, zShowDelay: { classPropertyName: "zShowDelay", publicName: "zShowDelay", isSignal: true, isRequired: false, transformFunction: null }, zHideDelay: { classPropertyName: "zHideDelay", publicName: "zHideDelay", isSignal: true, isRequired: false, transformFunction: null }, zDisabled: { classPropertyName: "zDisabled", publicName: "zDisabled", isSignal: true, isRequired: false, transformFunction: null }, zOffset: { classPropertyName: "zOffset", publicName: "zOffset", isSignal: true, isRequired: false, transformFunction: null }, zPopoverWidth: { classPropertyName: "zPopoverWidth", publicName: "zPopoverWidth", isSignal: true, isRequired: false, transformFunction: null }, zTriggerRef: { classPropertyName: "zTriggerRef", publicName: "zTriggerRef", isSignal: true, isRequired: false, transformFunction: null }, zManualClose: { classPropertyName: "zManualClose", publicName: "zManualClose", isSignal: true, isRequired: false, transformFunction: null }, zScrollClose: { classPropertyName: "zScrollClose", publicName: "zScrollClose", isSignal: true, isRequired: false, transformFunction: null }, zShowArrow: { classPropertyName: "zShowArrow", publicName: "zShowArrow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zShow: "zShow", zHide: "zHide", zHideStart: "zHideStart", zControl: "zControl", zPositionChange: "zPositionChange" }, exportAs: ["zPopover"], ngImport: i0 });
1079
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: ZPopoverDirective, isStandalone: true, selector: "[z-popover]", inputs: { zContent: { classPropertyName: "zContent", publicName: "zPopoverContent", isSignal: true, isRequired: false, transformFunction: null }, zPosition: { classPropertyName: "zPosition", publicName: "zPosition", isSignal: true, isRequired: false, transformFunction: null }, zTrigger: { classPropertyName: "zTrigger", publicName: "zTrigger", isSignal: true, isRequired: false, transformFunction: null }, zClass: { classPropertyName: "zClass", publicName: "zClass", isSignal: true, isRequired: false, transformFunction: null }, zShowDelay: { classPropertyName: "zShowDelay", publicName: "zShowDelay", isSignal: true, isRequired: false, transformFunction: null }, zHideDelay: { classPropertyName: "zHideDelay", publicName: "zHideDelay", isSignal: true, isRequired: false, transformFunction: null }, zDisabled: { classPropertyName: "zDisabled", publicName: "zDisabled", isSignal: true, isRequired: false, transformFunction: null }, zOffset: { classPropertyName: "zOffset", publicName: "zOffset", isSignal: true, isRequired: false, transformFunction: null }, zPopoverWidth: { classPropertyName: "zPopoverWidth", publicName: "zPopoverWidth", isSignal: true, isRequired: false, transformFunction: null }, zTriggerRef: { classPropertyName: "zTriggerRef", publicName: "zTriggerRef", isSignal: true, isRequired: false, transformFunction: null }, zManualClose: { classPropertyName: "zManualClose", publicName: "zManualClose", isSignal: true, isRequired: false, transformFunction: null }, zOutsideClickClose: { classPropertyName: "zOutsideClickClose", publicName: "zOutsideClickClose", isSignal: true, isRequired: false, transformFunction: null }, zScrollClose: { classPropertyName: "zScrollClose", publicName: "zScrollClose", isSignal: true, isRequired: false, transformFunction: null }, zShowArrow: { classPropertyName: "zShowArrow", publicName: "zShowArrow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zShow: "zShow", zHide: "zHide", zHideStart: "zHideStart", zControl: "zControl", zPositionChange: "zPositionChange" }, exportAs: ["zPopover"], ngImport: i0 });
1012
1080
  }
1013
1081
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ZPopoverDirective, decorators: [{
1014
1082
  type: Directive,
@@ -1017,7 +1085,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
1017
1085
  standalone: true,
1018
1086
  exportAs: 'zPopover',
1019
1087
  }]
1020
- }], propDecorators: { zContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPopoverContent", required: false }] }], zPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPosition", required: false }] }], zTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "zTrigger", required: false }] }], zClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "zClass", required: false }] }], zShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowDelay", required: false }] }], zHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zHideDelay", required: false }] }], zDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "zDisabled", required: false }] }], zOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "zOffset", required: false }] }], zPopoverWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPopoverWidth", required: false }] }], zTriggerRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "zTriggerRef", required: false }] }], zManualClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zManualClose", required: false }] }], zScrollClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zScrollClose", required: false }] }], zShowArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowArrow", required: false }] }], zShow: [{ type: i0.Output, args: ["zShow"] }], zHide: [{ type: i0.Output, args: ["zHide"] }], zHideStart: [{ type: i0.Output, args: ["zHideStart"] }], zControl: [{ type: i0.Output, args: ["zControl"] }], zPositionChange: [{ type: i0.Output, args: ["zPositionChange"] }] } });
1088
+ }], propDecorators: { zContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPopoverContent", required: false }] }], zPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPosition", required: false }] }], zTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "zTrigger", required: false }] }], zClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "zClass", required: false }] }], zShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowDelay", required: false }] }], zHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "zHideDelay", required: false }] }], zDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "zDisabled", required: false }] }], zOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "zOffset", required: false }] }], zPopoverWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "zPopoverWidth", required: false }] }], zTriggerRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "zTriggerRef", required: false }] }], zManualClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zManualClose", required: false }] }], zOutsideClickClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zOutsideClickClose", required: false }] }], zScrollClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "zScrollClose", required: false }] }], zShowArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "zShowArrow", required: false }] }], zShow: [{ type: i0.Output, args: ["zShow"] }], zHide: [{ type: i0.Output, args: ["zHide"] }], zHideStart: [{ type: i0.Output, args: ["zHideStart"] }], zControl: [{ type: i0.Output, args: ["zControl"] }], zPositionChange: [{ type: i0.Output, args: ["zPositionChange"] }] } });
1021
1089
 
1022
1090
  /**
1023
1091
  * Generated bundle index. Do not edit.