@shival99/z-ui 2.1.19 → 2.1.21
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.
- package/assets/css/base.css +2 -46
- package/assets/css/global.css +100 -0
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +9 -3
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +129 -9
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +4 -4
- package/types/shival99-z-ui-components-z-popover.d.ts +2 -0
- package/types/shival99-z-ui-components-z-table.d.ts +4 -4
- package/types/shival99-z-ui-components-z-timeline.d.ts +10 -1
|
@@ -4,7 +4,7 @@ import { NgTemplateOutlet, DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { signal, computed, ChangeDetectionStrategy, Component, inject, Renderer2, DestroyRef, PLATFORM_ID, viewChild, output, input, ElementRef, Directive } from '@angular/core';
|
|
6
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
|
-
import { ZOverlayContainerService } from '@shival99/z-ui/services';
|
|
7
|
+
import { ZOverlayContainerService, ZOverlayZIndexService } from '@shival99/z-ui/services';
|
|
8
8
|
import { zMergeClasses, zIsMobileViewport, zTransform } from '@shival99/z-ui/utils';
|
|
9
9
|
import { Subject, switchMap, of, timer, map, filter } from 'rxjs';
|
|
10
10
|
import { cva } from 'class-variance-authority';
|
|
@@ -445,6 +445,7 @@ class ZPopoverComponent {
|
|
|
445
445
|
_platformId = inject(PLATFORM_ID);
|
|
446
446
|
_document = inject(DOCUMENT);
|
|
447
447
|
_overlayContainerService = inject(ZOverlayContainerService);
|
|
448
|
+
_zIndexService = inject(ZOverlayZIndexService);
|
|
448
449
|
_trigger = viewChild.required('trigger');
|
|
449
450
|
zShow = output();
|
|
450
451
|
zHide = output();
|
|
@@ -549,12 +550,14 @@ class ZPopoverComponent {
|
|
|
549
550
|
}
|
|
550
551
|
_createOverlay() {
|
|
551
552
|
const positionStrategy = createPopoverPositionStrategy(this._overlayPositionBuilder, this._trigger(), this.zPosition(), this.zOffset());
|
|
552
|
-
|
|
553
|
+
const overlayRef = this._overlay.create({
|
|
553
554
|
positionStrategy,
|
|
554
555
|
scrollStrategy: this._createScrollStrategy(),
|
|
555
556
|
hasBackdrop: false,
|
|
556
557
|
...getPopoverOverlaySize(),
|
|
557
558
|
});
|
|
559
|
+
this._zIndexService.applyToOverlay(overlayRef);
|
|
560
|
+
return overlayRef;
|
|
558
561
|
}
|
|
559
562
|
_createScrollStrategy() {
|
|
560
563
|
if (this.zScrollClose()) {
|
|
@@ -975,6 +978,7 @@ class ZPopoverDirective {
|
|
|
975
978
|
_platformId = inject(PLATFORM_ID);
|
|
976
979
|
_document = inject(DOCUMENT);
|
|
977
980
|
_overlayContainerService = inject(ZOverlayContainerService);
|
|
981
|
+
_zIndexService = inject(ZOverlayZIndexService);
|
|
978
982
|
_overlayRef = null;
|
|
979
983
|
_componentRef = null;
|
|
980
984
|
_delaySubject = new Subject();
|
|
@@ -1070,12 +1074,14 @@ class ZPopoverDirective {
|
|
|
1070
1074
|
_createOverlay() {
|
|
1071
1075
|
const positionStrategy = createPopoverPositionStrategy(this._overlayPositionBuilder, this._getTriggerElement(), this.zPosition(), this.zOffset());
|
|
1072
1076
|
const widthConfig = this._getWidthConfig();
|
|
1073
|
-
|
|
1077
|
+
const overlayRef = this._overlay.create({
|
|
1074
1078
|
positionStrategy,
|
|
1075
1079
|
scrollStrategy: this._createScrollStrategy(),
|
|
1076
1080
|
hasBackdrop: false,
|
|
1077
1081
|
...widthConfig,
|
|
1078
1082
|
});
|
|
1083
|
+
this._zIndexService.applyToOverlay(overlayRef);
|
|
1084
|
+
return overlayRef;
|
|
1079
1085
|
}
|
|
1080
1086
|
_createScrollStrategy() {
|
|
1081
1087
|
if (this.zScrollClose()) {
|