@shival99/z-ui 2.3.2 → 2.3.3
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/overlay.css +14 -4
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +2 -11
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +2 -11
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-overlay.mjs +15 -2
- package/fesm2022/shival99-z-ui-components-z-overlay.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +1 -0
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +1 -1
- package/types/shival99-z-ui-components-z-drawer.d.ts +0 -1
- package/types/shival99-z-ui-components-z-editor.d.ts +1 -1
- package/types/shival99-z-ui-components-z-modal.d.ts +0 -1
- package/types/shival99-z-ui-components-z-overlay.d.ts +6 -2
- package/types/shival99-z-ui-components-z-select.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 22, featuring 40+ customizable components with dark mode, accessibility, and enterprise-ready features.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -278,7 +278,7 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
278
278
|
|
|
279
279
|
declare const zAutocompleteInputVariants: (props?: ({
|
|
280
280
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
281
|
-
zStatus?: "default" | "
|
|
281
|
+
zStatus?: "default" | "open" | "error" | "disabled" | "readonly" | null | undefined;
|
|
282
282
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
283
283
|
type ZAutocompleteInputVariants = VariantProps<typeof zAutocompleteInputVariants>;
|
|
284
284
|
declare const zAutocompleteOptionVariants: (props?: ({
|
|
@@ -210,7 +210,6 @@ declare class ZDrawerComponent<T, U> implements OnDestroy, AfterViewChecked {
|
|
|
210
210
|
private readonly _resizedHeight;
|
|
211
211
|
ngAfterViewChecked(): void;
|
|
212
212
|
private _checkScrollState;
|
|
213
|
-
onContentWheel(event: WheelEvent): void;
|
|
214
213
|
onContentScroll(event: Event): void;
|
|
215
214
|
protected readonly effectiveTitle: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
|
|
216
215
|
protected readonly effectiveDescription: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
|
|
@@ -328,7 +328,7 @@ declare const Z_EDITOR_DEFAULT_TOOLBAR: readonly ZEditorToolbarItem[];
|
|
|
328
328
|
|
|
329
329
|
declare const zEditorVariants: (props?: ({
|
|
330
330
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
331
|
-
zStatus?: "default" | "
|
|
331
|
+
zStatus?: "default" | "error" | "disabled" | "readonly" | null | undefined;
|
|
332
332
|
zPlaceholderMode?: "firstLine" | "everyLine" | null | undefined;
|
|
333
333
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
334
334
|
type ZEditorVariants = VariantProps<typeof zEditorVariants>;
|
|
@@ -233,7 +233,6 @@ declare class ZModalComponent<T, U> implements OnDestroy, AfterViewChecked {
|
|
|
233
233
|
private _lastScrollHeight;
|
|
234
234
|
ngAfterViewChecked(): void;
|
|
235
235
|
private _checkScrollState;
|
|
236
|
-
onContentWheel(event: WheelEvent): void;
|
|
237
236
|
onContentScroll(event: Event): void;
|
|
238
237
|
protected readonly confirmIconColors: _angular_core.Signal<ZModalConfirmIconColors>;
|
|
239
238
|
protected readonly effectiveTitle: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
|
|
@@ -39,6 +39,8 @@ interface ZOverlayGlobalConfig {
|
|
|
39
39
|
backdropClass?: string;
|
|
40
40
|
panelClass?: string;
|
|
41
41
|
scrollLock?: boolean;
|
|
42
|
+
/** Lets free-form overlays own viewport scrolling when their content exceeds the viewport. */
|
|
43
|
+
scrollable?: boolean;
|
|
42
44
|
size?: ZOverlaySizeConfig;
|
|
43
45
|
}
|
|
44
46
|
interface ZOverlayAnchoredConfig {
|
|
@@ -58,6 +60,7 @@ declare const Z_OVERLAY_DEFAULT_VIEWPORT_PADDING = 8;
|
|
|
58
60
|
declare const Z_OVERLAY_DEFAULT_ARROW_EDGE_PADDING = 12;
|
|
59
61
|
declare const Z_OVERLAY_CONTAINER_CLASS = "z-overlay-container";
|
|
60
62
|
declare const Z_OVERLAY_HOST_CLASS = "z-overlay-host";
|
|
63
|
+
declare const Z_OVERLAY_SCROLLABLE_CLASS = "z-overlay-scrollable";
|
|
61
64
|
/** Z-UI position name -> Floating UI placement (12 vị trí khớp 1:1). */
|
|
62
65
|
declare const Z_OVERLAY_PLACEMENT_MAP: Record<ZOverlayPlacement, Placement>;
|
|
63
66
|
declare const Z_OVERLAY_PLACEMENT_REVERSE_MAP: Record<Placement, ZOverlayPlacement>;
|
|
@@ -128,18 +131,19 @@ declare class ZOverlayService {
|
|
|
128
131
|
/**
|
|
129
132
|
* Khoá scroll trang khi overlay toàn màn hình (modal/drawer) mở — thay cho
|
|
130
133
|
* `scrollStrategies.block()` của CDK. Đếm tham chiếu để modal-trong-modal không mở khoá sớm.
|
|
131
|
-
* Giữ nguyên document flow
|
|
134
|
+
* Giữ nguyên document flow bằng cách bù chiều rộng scrollbar ở body khi scrollbar biến mất.
|
|
132
135
|
* Vị trí scroll vẫn được lưu để khôi phục nếu ứng dụng thay đổi scroll programmatically trong lúc khoá.
|
|
133
136
|
*/
|
|
134
137
|
declare class ZScrollLockService {
|
|
135
138
|
private readonly _document;
|
|
136
139
|
private _lockCount;
|
|
137
140
|
private _scrollPosition;
|
|
141
|
+
private _bodyPaddingRight;
|
|
138
142
|
lock(): void;
|
|
139
143
|
unlock(): void;
|
|
140
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZScrollLockService, never>;
|
|
141
145
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZScrollLockService>;
|
|
142
146
|
}
|
|
143
147
|
|
|
144
|
-
export { ZOverlayRef, ZOverlayService, ZScrollLockService, Z_OVERLAY_CONTAINER_CLASS, Z_OVERLAY_DEFAULT_ARROW_EDGE_PADDING, Z_OVERLAY_DEFAULT_VIEWPORT_PADDING, Z_OVERLAY_FALLBACK_ORDER, Z_OVERLAY_HOST_CLASS, Z_OVERLAY_PLACEMENT_MAP, Z_OVERLAY_PLACEMENT_REVERSE_MAP, Z_OVERLAY_PREFERRED_SIDE_ORDER, computeZOverlayArrowOffset, computeZOverlayPlacement, startZOverlayAutoUpdate };
|
|
148
|
+
export { ZOverlayRef, ZOverlayService, ZScrollLockService, Z_OVERLAY_CONTAINER_CLASS, Z_OVERLAY_DEFAULT_ARROW_EDGE_PADDING, Z_OVERLAY_DEFAULT_VIEWPORT_PADDING, Z_OVERLAY_FALLBACK_ORDER, Z_OVERLAY_HOST_CLASS, Z_OVERLAY_PLACEMENT_MAP, Z_OVERLAY_PLACEMENT_REVERSE_MAP, Z_OVERLAY_PREFERRED_SIDE_ORDER, Z_OVERLAY_SCROLLABLE_CLASS, computeZOverlayArrowOffset, computeZOverlayPlacement, startZOverlayAutoUpdate };
|
|
145
149
|
export type { ZFloatingArrowOffsetConfig, ZFloatingPlacementConfig, ZFloatingPlacementResult, ZOverlayAnchoredConfig, ZOverlayGlobalConfig, ZOverlayPlacement, ZOverlaySide, ZOverlaySizeConfig };
|
|
@@ -331,7 +331,7 @@ declare class ZTagClassesPipe implements PipeTransform {
|
|
|
331
331
|
|
|
332
332
|
declare const zSelectVariants: (props?: ({
|
|
333
333
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
334
|
-
zStatus?: "default" | "
|
|
334
|
+
zStatus?: "default" | "open" | "error" | "disabled" | "readonly" | null | undefined;
|
|
335
335
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
336
336
|
declare const zSelectTagVariants: (props?: ({
|
|
337
337
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|