@ng-nest/ui 21.0.4 → 21.0.6
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/fesm2022/ng-nest-ui-base-form.mjs +2 -1
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-bubble.mjs +141 -129
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +49 -45
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +2 -2
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +16 -4
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +5 -5
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +37 -25
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +12 -2
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +3 -0
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +16 -4
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +14 -6
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +277 -243
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +18 -6
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +37 -19
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ng-nest-ui-bubble.d.ts +12 -7
- package/types/ng-nest-ui-dialog.d.ts +170 -102
- package/types/ng-nest-ui-form.d.ts +15 -3
- package/types/ng-nest-ui-i18n.d.ts +23 -24
- package/types/ng-nest-ui-image.d.ts +28 -13
- package/types/ng-nest-ui-input.d.ts +1 -0
- package/types/ng-nest-ui-list.d.ts +31 -20
- package/types/ng-nest-ui-menu.d.ts +15 -3
- package/types/ng-nest-ui-message-box.d.ts +16 -3
- package/types/ng-nest-ui-message.d.ts +15 -3
- package/types/ng-nest-ui-notification.d.ts +15 -3
- package/types/ng-nest-ui-scrollable.d.ts +4 -2
- package/types/ng-nest-ui-table-view.d.ts +99 -65
- package/types/ng-nest-ui-table.d.ts +60 -5
- package/types/ng-nest-ui-tree.d.ts +29 -3
|
@@ -1,107 +1,16 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { Subscription, Subject } from 'rxjs';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { ViewContainerRef, ComponentRef, EmbeddedViewRef, EventEmitter, InjectionToken, OnInit, AfterViewInit, TemplateRef, Renderer2, ChangeDetectorRef } from '@angular/core';
|
|
5
5
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
6
6
|
import { XTemplate, XPlace, XNumber, XStatus, XBoolean, XEffect, XProperty, XConfigService, XDialogConfig } from '@ng-nest/ui/core';
|
|
7
|
-
import {
|
|
8
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, ComponentType } from '@angular/cdk/portal';
|
|
7
|
+
import { XPortalOverlayRef, XPortalService } from '@ng-nest/ui/portal';
|
|
9
8
|
import * as i1 from '@angular/cdk/drag-drop';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { CdkDragEnd, CdkDrag } from '@angular/cdk/drag-drop';
|
|
10
|
+
import { ComponentPortal, TemplatePortal, BasePortalOutlet, CdkPortalOutlet, ComponentType } from '@angular/cdk/portal';
|
|
11
|
+
import { BlockScrollStrategy, OverlayRef } from '@angular/cdk/overlay';
|
|
12
12
|
import { XI18nDialog } from '@ng-nest/ui/i18n';
|
|
13
13
|
|
|
14
|
-
declare class XDialogCloseDirective {
|
|
15
|
-
onCloseClick(): void;
|
|
16
|
-
dialogRef: XDialogRef<any> | null;
|
|
17
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogCloseDirective, never>;
|
|
18
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogCloseDirective, "[x-dialog-close]", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
20
|
-
declare class XDialogTitleDirective {
|
|
21
|
-
_has: boolean;
|
|
22
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogTitleDirective, never>;
|
|
23
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogTitleDirective, "[x-dialog-title], x-dialog-title", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
25
|
-
declare class XDialogContentDirective {
|
|
26
|
-
_has: boolean;
|
|
27
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogContentDirective, never>;
|
|
28
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogContentDirective, "[x-dialog-content], x-dialog-content", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
30
|
-
declare class XDialogActionsDirective {
|
|
31
|
-
_has: boolean;
|
|
32
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogActionsDirective, never>;
|
|
33
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogActionsDirective, "[x-dialog-actions], x-dialog-actions", never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
|
35
|
-
declare class XDialogDragHandleDirective {
|
|
36
|
-
get getDraggable(): boolean | undefined;
|
|
37
|
-
dialogRef: XDialogRef<any> | null;
|
|
38
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogDragHandleDirective, never>;
|
|
39
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogDragHandleDirective, "[x-dialog-drag-handle], x-dialog-drag-handle", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkDragHandle; inputs: { "cdkDragHandleDisabled": "xDialogDragHandleDisabled"; }; outputs: {}; }]>;
|
|
40
|
-
}
|
|
41
|
-
declare class XDialogFullscreenDirective {
|
|
42
|
-
onFullscreenClick(): void;
|
|
43
|
-
dialogRef: XDialogRef<any> | null;
|
|
44
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogFullscreenDirective, never>;
|
|
45
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogFullscreenDirective, "[x-dialog-fullscreen], x-dialog-fullscreen", never, {}, {}, never, never, true, never>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare class XDialogRef<C> {
|
|
49
|
-
overlayRef: OverlayRef;
|
|
50
|
-
containerInstance: XDialogPortalComponent;
|
|
51
|
-
renderer: Renderer2;
|
|
52
|
-
portalService: XPortalService;
|
|
53
|
-
componentInstance: C;
|
|
54
|
-
option: XDialogRefOption;
|
|
55
|
-
fullscreen: boolean;
|
|
56
|
-
dragHandleRefs: (XDialogDragHandleDirective | CdkDragHandle)[];
|
|
57
|
-
afterClose: Subject<any>;
|
|
58
|
-
unsubject: Subject<void>;
|
|
59
|
-
private _isFristFullscreen;
|
|
60
|
-
constructor(overlayRef: OverlayRef, containerInstance: XDialogPortalComponent, renderer: Renderer2, portalService: XPortalService);
|
|
61
|
-
close(result?: any): void;
|
|
62
|
-
onFullscreen(): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
declare class XDialogPortalComponent extends BasePortalOutlet {
|
|
66
|
-
placement: _angular_core.ModelSignal<XDialogAnimationState>;
|
|
67
|
-
get enimateEnter(): string;
|
|
68
|
-
get enimateLeave(): string;
|
|
69
|
-
done(event: AnimationEvent): void;
|
|
70
|
-
start(event: AnimationEvent): void;
|
|
71
|
-
renderer: Renderer2;
|
|
72
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
73
|
-
portalOutlet: _angular_core.Signal<CdkPortalOutlet>;
|
|
74
|
-
dragRef: _angular_core.Signal<CdkDrag<any>>;
|
|
75
|
-
handles: _angular_core.Signal<readonly XDialogDragHandleDirective[]>;
|
|
76
|
-
animationChanged: EventEmitter<XDialogAnimationEvent>;
|
|
77
|
-
option: XDialogRefOption;
|
|
78
|
-
dialogRef: XDialogRef<any>;
|
|
79
|
-
offsetLeft: number;
|
|
80
|
-
offsetTop: number;
|
|
81
|
-
minWidth: string;
|
|
82
|
-
minHeight: string;
|
|
83
|
-
initHeight: number;
|
|
84
|
-
initContentHeight: number;
|
|
85
|
-
dialogContent?: HTMLElement;
|
|
86
|
-
defaultMaximize: boolean;
|
|
87
|
-
overlayElement?: HTMLElement;
|
|
88
|
-
hostElement?: HTMLElement;
|
|
89
|
-
distance: {
|
|
90
|
-
x: number;
|
|
91
|
-
y: number;
|
|
92
|
-
};
|
|
93
|
-
dialogBox: {
|
|
94
|
-
[key: string]: any;
|
|
95
|
-
};
|
|
96
|
-
ngOnInit(): void;
|
|
97
|
-
ngAfterViewInit(): void;
|
|
98
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
99
|
-
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
100
|
-
onDragEnded(event: CdkDragEnd): void;
|
|
101
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogPortalComponent, never>;
|
|
102
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogPortalComponent, "x-dialog-portal", never, { "placement": { "alias": "placement"; "required": true; "isSignal": true; }; }, { "placement": "placementChange"; }, ["handles"], never, true, never>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
14
|
/**
|
|
106
15
|
* Dialog
|
|
107
16
|
* @selector x-dialog
|
|
@@ -430,13 +339,67 @@ type XDialogAction = 'confirm' | 'cancel' | 'close';
|
|
|
430
339
|
* @zh_CN 创建的弹框对象
|
|
431
340
|
* @en_US Dialog object created
|
|
432
341
|
*/
|
|
433
|
-
interface XDialogOverlayRef extends XPortalOverlayRef<
|
|
342
|
+
interface XDialogOverlayRef extends XPortalOverlayRef<XDialogHandle> {
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* @zh_CN 创建的弹框组件定义
|
|
346
|
+
* @en_US Dialog object created
|
|
347
|
+
*/
|
|
348
|
+
interface XDialogHandle {
|
|
349
|
+
create(): void;
|
|
350
|
+
onClose(action: XDialogAction, execFunction?: boolean): void;
|
|
351
|
+
onDragEnded(event: CdkDragEnd): void;
|
|
352
|
+
onSize(): void;
|
|
353
|
+
onMaximize(): void;
|
|
354
|
+
onMinimize(): void;
|
|
355
|
+
moveDone(event: AnimationEvent): void;
|
|
356
|
+
portalAttached(): boolean;
|
|
357
|
+
setVisible(): void;
|
|
358
|
+
setWidthHeight(): void;
|
|
434
359
|
}
|
|
435
360
|
/**
|
|
436
361
|
* @zh_CN 创建的弹框对象,通过服务
|
|
437
362
|
* @en_US Dialog object created by service
|
|
438
363
|
*/
|
|
439
|
-
interface XDialogPortalOverlayRef extends XPortalOverlayRef<
|
|
364
|
+
interface XDialogPortalOverlayRef extends XPortalOverlayRef<XDialogPortalHandle> {
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* @zh_CN 创建的弹框对象定义
|
|
368
|
+
* @en_US Dialog object created definition
|
|
369
|
+
*/
|
|
370
|
+
interface XDialogPortalHandle {
|
|
371
|
+
option: XDialogRefOption;
|
|
372
|
+
defaultMaximize: boolean;
|
|
373
|
+
dialogBox: {
|
|
374
|
+
draggable?: boolean;
|
|
375
|
+
resizable?: boolean;
|
|
376
|
+
width?: string;
|
|
377
|
+
height?: string;
|
|
378
|
+
minWidth?: string;
|
|
379
|
+
minHeight?: string;
|
|
380
|
+
distance?: {
|
|
381
|
+
x: number;
|
|
382
|
+
y: number;
|
|
383
|
+
};
|
|
384
|
+
marginTop?: string;
|
|
385
|
+
marginLeft?: string;
|
|
386
|
+
marginRight?: string;
|
|
387
|
+
marginBottom?: string;
|
|
388
|
+
};
|
|
389
|
+
hostElement?: HTMLElement;
|
|
390
|
+
overlayElement?: HTMLElement;
|
|
391
|
+
distance: {
|
|
392
|
+
x: number;
|
|
393
|
+
y: number;
|
|
394
|
+
};
|
|
395
|
+
offsetLeft: number;
|
|
396
|
+
offsetTop: number;
|
|
397
|
+
initHeight: number;
|
|
398
|
+
dialogContent?: HTMLElement;
|
|
399
|
+
initContentHeight: number;
|
|
400
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
401
|
+
attachTemplatePortal<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
|
|
402
|
+
animationChanged: EventEmitter<XDialogAnimationEvent>;
|
|
440
403
|
}
|
|
441
404
|
/**
|
|
442
405
|
* @zh_CN 类型
|
|
@@ -450,7 +413,7 @@ declare class XDialogContainerComponent extends XDialogContainerProperty {
|
|
|
450
413
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogContainerComponent, "x-dialog-container", never, {}, {}, never, ["*"], true, never>;
|
|
451
414
|
}
|
|
452
415
|
|
|
453
|
-
declare class XDialogComponent extends XDialogProperty implements OnInit, AfterViewInit {
|
|
416
|
+
declare class XDialogComponent extends XDialogProperty implements OnInit, AfterViewInit, XDialogHandle {
|
|
454
417
|
private static dialogOverlayRefs;
|
|
455
418
|
private viewContainerRef;
|
|
456
419
|
private protalService;
|
|
@@ -504,7 +467,7 @@ declare class XDialogComponent extends XDialogProperty implements OnInit, AfterV
|
|
|
504
467
|
setVisible(): void;
|
|
505
468
|
create(): void;
|
|
506
469
|
setWidthHeight(): void;
|
|
507
|
-
portalAttached(): boolean
|
|
470
|
+
portalAttached(): boolean;
|
|
508
471
|
onClose(action: XDialogAction, execFunction?: boolean): void;
|
|
509
472
|
onDragEnded($event: CdkDragEnd): void;
|
|
510
473
|
onSize(): void;
|
|
@@ -515,6 +478,111 @@ declare class XDialogComponent extends XDialogProperty implements OnInit, AfterV
|
|
|
515
478
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogComponent, "x-dialog", never, {}, {}, never, ["*"], true, never>;
|
|
516
479
|
}
|
|
517
480
|
|
|
481
|
+
interface XDialogRefHandle {
|
|
482
|
+
fullscreen: boolean;
|
|
483
|
+
option: {
|
|
484
|
+
draggable?: boolean;
|
|
485
|
+
};
|
|
486
|
+
close(result?: any): void;
|
|
487
|
+
onFullscreen(): void;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
declare class XDialogRef<C> implements XDialogRefHandle {
|
|
491
|
+
componentInstance: C;
|
|
492
|
+
option: XDialogRefOption;
|
|
493
|
+
fullscreen: boolean;
|
|
494
|
+
afterClose: Subject<any>;
|
|
495
|
+
unsubject: Subject<void>;
|
|
496
|
+
private _isFristFullscreen;
|
|
497
|
+
overlayRef: OverlayRef;
|
|
498
|
+
containerInstance: XDialogPortalHandle;
|
|
499
|
+
renderer: Renderer2;
|
|
500
|
+
portalService: XPortalService;
|
|
501
|
+
constructor(params: {
|
|
502
|
+
overlayRef: OverlayRef;
|
|
503
|
+
containerInstance: XDialogPortalHandle;
|
|
504
|
+
renderer: Renderer2;
|
|
505
|
+
option: XDialogRefOption;
|
|
506
|
+
fullscreen: boolean;
|
|
507
|
+
portalService: XPortalService;
|
|
508
|
+
});
|
|
509
|
+
close(result?: any): void;
|
|
510
|
+
onFullscreen(): void;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
declare class XDialogCloseDirective {
|
|
514
|
+
onCloseClick(): void;
|
|
515
|
+
dialogRef: XDialogRef<any> | null;
|
|
516
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogCloseDirective, never>;
|
|
517
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogCloseDirective, "[x-dialog-close]", never, {}, {}, never, never, true, never>;
|
|
518
|
+
}
|
|
519
|
+
declare class XDialogTitleDirective {
|
|
520
|
+
_has: boolean;
|
|
521
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogTitleDirective, never>;
|
|
522
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogTitleDirective, "[x-dialog-title], x-dialog-title", never, {}, {}, never, never, true, never>;
|
|
523
|
+
}
|
|
524
|
+
declare class XDialogContentDirective {
|
|
525
|
+
_has: boolean;
|
|
526
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogContentDirective, never>;
|
|
527
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogContentDirective, "[x-dialog-content], x-dialog-content", never, {}, {}, never, never, true, never>;
|
|
528
|
+
}
|
|
529
|
+
declare class XDialogActionsDirective {
|
|
530
|
+
_has: boolean;
|
|
531
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogActionsDirective, never>;
|
|
532
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogActionsDirective, "[x-dialog-actions], x-dialog-actions", never, {}, {}, never, never, true, never>;
|
|
533
|
+
}
|
|
534
|
+
declare class XDialogDragHandleDirective {
|
|
535
|
+
get getDraggable(): boolean | undefined;
|
|
536
|
+
dialogRef: XDialogRef<any> | null;
|
|
537
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogDragHandleDirective, never>;
|
|
538
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogDragHandleDirective, "[x-dialog-drag-handle], x-dialog-drag-handle", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkDragHandle; inputs: { "cdkDragHandleDisabled": "xDialogDragHandleDisabled"; }; outputs: {}; }]>;
|
|
539
|
+
}
|
|
540
|
+
declare class XDialogFullscreenDirective {
|
|
541
|
+
onFullscreenClick(): void;
|
|
542
|
+
dialogRef: XDialogRef<any> | null;
|
|
543
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogFullscreenDirective, never>;
|
|
544
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<XDialogFullscreenDirective, "[x-dialog-fullscreen], x-dialog-fullscreen", never, {}, {}, never, never, true, never>;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
declare class XDialogPortalComponent extends BasePortalOutlet implements XDialogPortalHandle {
|
|
548
|
+
placement: _angular_core.ModelSignal<XDialogAnimationState>;
|
|
549
|
+
get enimateEnter(): string;
|
|
550
|
+
get enimateLeave(): string;
|
|
551
|
+
done(event: AnimationEvent): void;
|
|
552
|
+
start(event: AnimationEvent): void;
|
|
553
|
+
renderer: Renderer2;
|
|
554
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
555
|
+
portalOutlet: _angular_core.Signal<CdkPortalOutlet>;
|
|
556
|
+
dragRef: _angular_core.Signal<CdkDrag<any>>;
|
|
557
|
+
handles: _angular_core.Signal<readonly XDialogDragHandleDirective[]>;
|
|
558
|
+
animationChanged: EventEmitter<XDialogAnimationEvent>;
|
|
559
|
+
option: XDialogRefOption;
|
|
560
|
+
offsetLeft: number;
|
|
561
|
+
offsetTop: number;
|
|
562
|
+
minWidth: string;
|
|
563
|
+
minHeight: string;
|
|
564
|
+
initHeight: number;
|
|
565
|
+
initContentHeight: number;
|
|
566
|
+
dialogContent?: HTMLElement;
|
|
567
|
+
defaultMaximize: boolean;
|
|
568
|
+
overlayElement?: HTMLElement;
|
|
569
|
+
hostElement?: HTMLElement;
|
|
570
|
+
distance: {
|
|
571
|
+
x: number;
|
|
572
|
+
y: number;
|
|
573
|
+
};
|
|
574
|
+
dialogBox: {
|
|
575
|
+
[key: string]: any;
|
|
576
|
+
};
|
|
577
|
+
ngOnInit(): void;
|
|
578
|
+
ngAfterViewInit(): void;
|
|
579
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
580
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
581
|
+
onDragEnded(event: CdkDragEnd): void;
|
|
582
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogPortalComponent, never>;
|
|
583
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XDialogPortalComponent, "x-dialog-portal", never, { "placement": { "alias": "placement"; "required": true; "isSignal": true; }; }, { "placement": "placementChange"; }, ["handles"], never, true, never>;
|
|
584
|
+
}
|
|
585
|
+
|
|
518
586
|
declare class XDialogModule {
|
|
519
587
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XDialogModule, never>;
|
|
520
588
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<XDialogModule, never, [typeof XDialogComponent, typeof XDialogContainerComponent, typeof XDialogCloseDirective, typeof XDialogTitleDirective, typeof XDialogContentDirective, typeof XDialogActionsDirective, typeof XDialogDragHandleDirective, typeof XDialogFullscreenDirective], [typeof XDialogComponent, typeof XDialogContainerComponent, typeof XDialogCloseDirective, typeof XDialogTitleDirective, typeof XDialogContentDirective, typeof XDialogActionsDirective, typeof XDialogDragHandleDirective, typeof XDialogFullscreenDirective]>;
|
|
@@ -539,4 +607,4 @@ declare class XDialogService {
|
|
|
539
607
|
}
|
|
540
608
|
|
|
541
609
|
export { XDialogActionsDirective, XDialogCloseDirective, XDialogComponent, XDialogContainer, XDialogContainerComponent, XDialogContainerPrefix, XDialogContainerProperty, XDialogContentDirective, XDialogDragHandleDirective, XDialogFullscreenDirective, XDialogModule, XDialogPortalComponent, XDialogPrefix, XDialogProperty, XDialogRef, XDialogService, XDialogTitleDirective, X_DIALOG_CONFIG_NAME, X_DIALOG_CONTAINER, X_DIALOG_DATA };
|
|
542
|
-
export type { XDialogAction, XDialogAnimationEvent, XDialogAnimationState, XDialogCallback, XDialogOverlayRef, XDialogPortalOverlayRef, XDialogRefOption, XDialogType };
|
|
610
|
+
export type { XDialogAction, XDialogAnimationEvent, XDialogAnimationState, XDialogCallback, XDialogHandle, XDialogOverlayRef, XDialogPortalHandle, XDialogPortalOverlayRef, XDialogRefOption, XDialogType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, OnChanges, AfterViewInit, SimpleChanges, OnInit, OnDestroy, ComponentRef } from '@angular/core';
|
|
2
|
+
import { TemplateRef, InputSignal, InputSignalWithTransform, OnChanges, AfterViewInit, SimpleChanges, OnInit, OnDestroy, ComponentRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
5
5
|
import { XBoolean, XNumber, XIdentity } from '@ng-nest/ui/core';
|
|
@@ -497,7 +497,19 @@ declare class XAutoCompleteControl extends XControl {
|
|
|
497
497
|
interface XTemplateControlOption extends XControlOption, XFormOption {
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
interface XFormContext {
|
|
501
|
+
formGroup: InputSignal<UntypedFormGroup>;
|
|
502
|
+
controlComponents: {
|
|
503
|
+
[property: string]: XFormControlComponent;
|
|
504
|
+
};
|
|
505
|
+
controlTypes: {
|
|
506
|
+
[property: string]: XControl;
|
|
507
|
+
};
|
|
508
|
+
disabled: InputSignalWithTransform<boolean, XBoolean>;
|
|
509
|
+
labelSuffix: InputSignal<string>;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
declare class XFormComponent extends XFormProperty implements OnChanges, AfterViewInit, XFormContext {
|
|
501
513
|
controlsType: _angular_core.Signal<"rows" | "controls">;
|
|
502
514
|
controlComponents: {
|
|
503
515
|
[property: string]: XFormControlComponent;
|
|
@@ -528,7 +540,7 @@ declare class XControlComponent extends XControlProperty implements OnInit, Afte
|
|
|
528
540
|
private formControl;
|
|
529
541
|
private _unSubject;
|
|
530
542
|
value: _angular_core.WritableSignal<any>;
|
|
531
|
-
form:
|
|
543
|
+
form: XFormContext;
|
|
532
544
|
locale: _angular_core.Signal<XI18nForm | {
|
|
533
545
|
required: string;
|
|
534
546
|
}>;
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { PipeTransform, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _ng_nest_ui_i18n from '@ng-nest/ui/i18n';
|
|
4
4
|
import { XTemplate } from '@ng-nest/ui/core';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
|
|
7
|
+
declare class XI18nPipe implements PipeTransform {
|
|
8
|
+
private i18n;
|
|
9
|
+
private lastKey?;
|
|
10
|
+
private lastLang?;
|
|
11
|
+
private lastValue?;
|
|
12
|
+
locale: i0.Signal<_ng_nest_ui_i18n.XI18nProperty | undefined>;
|
|
13
|
+
transform(key: string, params?: object): string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XI18nPipe, never>;
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<XI18nPipe, "xI18n", true>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class XI18nDirective {
|
|
19
|
+
path: i0.InputSignal<string>;
|
|
20
|
+
private locale;
|
|
21
|
+
private elementRef;
|
|
22
|
+
localeChanged: i0.Signal<_ng_nest_ui_i18n.XI18nProperty | undefined>;
|
|
23
|
+
content: i0.Signal<string>;
|
|
24
|
+
constructor();
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XI18nDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<XI18nDirective, "[x-i18n]", never, { "path": { "alias": "x-i18n"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
/**
|
|
8
30
|
* I18n
|
|
9
31
|
* @selector xI18n
|
|
@@ -213,29 +235,6 @@ declare class XI18nService {
|
|
|
213
235
|
static ɵprov: i0.ɵɵInjectableDeclaration<XI18nService>;
|
|
214
236
|
}
|
|
215
237
|
|
|
216
|
-
declare class XI18nPipe implements PipeTransform {
|
|
217
|
-
private i18n;
|
|
218
|
-
private lastKey?;
|
|
219
|
-
private lastLang?;
|
|
220
|
-
private lastValue?;
|
|
221
|
-
locale: i0.Signal<_ng_nest_ui_i18n.XI18nProperty | undefined>;
|
|
222
|
-
constructor(i18n: XI18nService);
|
|
223
|
-
transform(key: string, params?: object): string;
|
|
224
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<XI18nPipe, never>;
|
|
225
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<XI18nPipe, "xI18n", true>;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
declare class XI18nDirective {
|
|
229
|
-
path: i0.InputSignal<string>;
|
|
230
|
-
private locale;
|
|
231
|
-
private elementRef;
|
|
232
|
-
localeChanged: i0.Signal<_ng_nest_ui_i18n.XI18nProperty | undefined>;
|
|
233
|
-
content: i0.Signal<string>;
|
|
234
|
-
constructor();
|
|
235
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<XI18nDirective, never>;
|
|
236
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<XI18nDirective, "[x-i18n]", never, { "path": { "alias": "x-i18n"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
238
|
declare class XI18nModule {
|
|
240
239
|
static ɵfac: i0.ɵɵFactoryDeclaration<XI18nModule, never>;
|
|
241
240
|
static ɵmod: i0.ɵɵNgModuleDeclaration<XI18nModule, never, [typeof XI18nPipe, typeof XI18nDirective], [typeof XI18nPipe, typeof XI18nDirective]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _ng_nest_ui_i18n from '@ng-nest/ui/i18n';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
+
import { InputSignal, OnInit, OnDestroy, ElementRef, WritableSignal } from '@angular/core';
|
|
4
4
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
5
5
|
import { XNumber, XTemplate, XProperty, XConfigService } from '@ng-nest/ui/core';
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ declare class XImageProperty extends XImageProperty_base {
|
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
readonly src:
|
|
34
|
+
readonly src: InputSignal<string | undefined>;
|
|
35
35
|
/**
|
|
36
36
|
* @zh_CN 图片宽度
|
|
37
37
|
* @en_US Picture width
|
|
@@ -77,7 +77,7 @@ declare class XImageProperty extends XImageProperty_base {
|
|
|
77
77
|
* ```
|
|
78
78
|
*
|
|
79
79
|
*/
|
|
80
|
-
readonly alt:
|
|
80
|
+
readonly alt: InputSignal<string | undefined>;
|
|
81
81
|
/**
|
|
82
82
|
* @zh_CN 加载失败显示的地址
|
|
83
83
|
* @en_US Load fault tolerance address
|
|
@@ -93,7 +93,7 @@ declare class XImageProperty extends XImageProperty_base {
|
|
|
93
93
|
* ```
|
|
94
94
|
*
|
|
95
95
|
*/
|
|
96
|
-
readonly fallback:
|
|
96
|
+
readonly fallback: InputSignal<string | undefined>;
|
|
97
97
|
/**
|
|
98
98
|
* @zh_CN 预览文字
|
|
99
99
|
* @en_US Preview text
|
|
@@ -110,17 +110,17 @@ declare class XImageProperty extends XImageProperty_base {
|
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
*/
|
|
113
|
-
readonly previewText:
|
|
113
|
+
readonly previewText: InputSignal<string>;
|
|
114
114
|
/**
|
|
115
115
|
* @zh_CN 渐进加载显示的图片地址
|
|
116
116
|
* @en_US Progressive loading image addresses
|
|
117
117
|
*/
|
|
118
|
-
readonly placeholder:
|
|
118
|
+
readonly placeholder: InputSignal<string | undefined>;
|
|
119
119
|
/**
|
|
120
120
|
* @zh_CN 自定义预览操作
|
|
121
121
|
* @en_US Custom preview operation
|
|
122
122
|
*/
|
|
123
|
-
readonly previewTpl:
|
|
123
|
+
readonly previewTpl: InputSignal<XTemplate | undefined>;
|
|
124
124
|
/**
|
|
125
125
|
* @zh_CN 图片加载错误
|
|
126
126
|
* @en_US Picture load failed
|
|
@@ -213,8 +213,17 @@ declare class XImagePreviewProperty extends XProperty {
|
|
|
213
213
|
* @decorator component
|
|
214
214
|
*/
|
|
215
215
|
declare const XImageGroupPrefix = "x-image-group";
|
|
216
|
+
/**
|
|
217
|
+
* @zh_CN 图片组件定义
|
|
218
|
+
* @en_US Image component definition
|
|
219
|
+
*/
|
|
220
|
+
interface XImageHandle {
|
|
221
|
+
src: InputSignal<string | undefined>;
|
|
222
|
+
alt: InputSignal<string | undefined>;
|
|
223
|
+
fallback: InputSignal<string | undefined>;
|
|
224
|
+
}
|
|
216
225
|
|
|
217
|
-
declare class XImageComponent extends XImageProperty implements OnInit, OnDestroy {
|
|
226
|
+
declare class XImageComponent extends XImageProperty implements OnInit, OnDestroy, XImageHandle {
|
|
218
227
|
private dialog;
|
|
219
228
|
private i18n;
|
|
220
229
|
private group;
|
|
@@ -266,10 +275,16 @@ declare class XImagePreviewComponent extends XImagePreviewProperty implements On
|
|
|
266
275
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XImagePreviewComponent, "x-image-preview", never, {}, {}, never, never, true, never>;
|
|
267
276
|
}
|
|
268
277
|
|
|
269
|
-
|
|
270
|
-
images:
|
|
271
|
-
addImage(image:
|
|
272
|
-
removeImage(image:
|
|
278
|
+
interface XImageGroupContext {
|
|
279
|
+
images: WritableSignal<XImageHandle[]>;
|
|
280
|
+
addImage(image: XImageHandle): void;
|
|
281
|
+
removeImage(image: XImageHandle): void;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
declare class XImageGroupComponent implements XImageGroupContext {
|
|
285
|
+
images: _angular_core.WritableSignal<XImageHandle[]>;
|
|
286
|
+
addImage(image: XImageHandle): void;
|
|
287
|
+
removeImage(image: XImageHandle): void;
|
|
273
288
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XImageGroupComponent, never>;
|
|
274
289
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XImageGroupComponent, "x-image-group", never, {}, {}, never, ["*"], true, never>;
|
|
275
290
|
}
|
|
@@ -281,4 +296,4 @@ declare class XImageModule {
|
|
|
281
296
|
}
|
|
282
297
|
|
|
283
298
|
export { XImageComponent, XImageGroupComponent, XImageGroupPrefix, XImageModule, XImagePrefix, XImagePreviewComponent, XImagePreviewPrefix, XImagePreviewProperty, XImageProperty };
|
|
284
|
-
export type { XImageNode };
|
|
299
|
+
export type { XImageHandle, XImageNode };
|
|
@@ -636,6 +636,7 @@ declare class XInputComponent extends XInputProperty implements OnInit {
|
|
|
636
636
|
setEvent(): void;
|
|
637
637
|
inputCheckValue(x: Event): void;
|
|
638
638
|
change(value: any): void;
|
|
639
|
+
validatorValue(value: any): void;
|
|
639
640
|
onClear(): void;
|
|
640
641
|
setInheritedValue(): void;
|
|
641
642
|
inputFocus(type?: 'focus' | 'select' | 'before' | 'after'): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { TemplateRef, ElementRef, OnChanges, QueryList, SimpleChanges, InjectionToken, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
@@ -9,23 +9,6 @@ import { Highlightable, ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
|
9
9
|
import { XI18nList } from '@ng-nest/ui/i18n';
|
|
10
10
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
11
11
|
|
|
12
|
-
declare class XListOptionComponent extends XListOptionProperty implements Highlightable {
|
|
13
|
-
role: string;
|
|
14
|
-
elementRef: ElementRef<any>;
|
|
15
|
-
classMap: _angular_core.Signal<{}>;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
nodeStyleComputed: _angular_core.Signal<{
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
}>;
|
|
20
|
-
constructor();
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
setActiveStyles(): void;
|
|
23
|
-
setInactiveStyles(): void;
|
|
24
|
-
getLabel(): string;
|
|
25
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XListOptionComponent, never>;
|
|
26
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XListOptionComponent, "x-list-option", never, {}, {}, never, never, true, never>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
12
|
/**
|
|
30
13
|
* List
|
|
31
14
|
* @selector x-list
|
|
@@ -316,8 +299,18 @@ interface XListNode extends XParentIdentityProperty<XListNode> {
|
|
|
316
299
|
* @zh_CN 对应的节点组件
|
|
317
300
|
* @en_US List option component
|
|
318
301
|
*/
|
|
319
|
-
component?:
|
|
302
|
+
component?: XListOptionHandle;
|
|
320
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* @zh_CN 对应的节点组件
|
|
306
|
+
* @en_US List option component
|
|
307
|
+
*/
|
|
308
|
+
type XListOptionHandle = {
|
|
309
|
+
setActiveStyles(): void;
|
|
310
|
+
setInactiveStyles(): void;
|
|
311
|
+
getLabel(): string;
|
|
312
|
+
getElementRef(): ElementRef<HTMLElement>;
|
|
313
|
+
};
|
|
321
314
|
/**
|
|
322
315
|
* List Option
|
|
323
316
|
* @selector x-list-option
|
|
@@ -450,6 +443,24 @@ type XListDragDrop = {
|
|
|
450
443
|
event: CdkDragDrop<XListNode[]>;
|
|
451
444
|
};
|
|
452
445
|
|
|
446
|
+
declare class XListOptionComponent extends XListOptionProperty implements Highlightable, XListOptionHandle {
|
|
447
|
+
role: string;
|
|
448
|
+
elementRef: ElementRef<HTMLElement>;
|
|
449
|
+
classMap: _angular_core.Signal<{}>;
|
|
450
|
+
disabled: boolean;
|
|
451
|
+
nodeStyleComputed: _angular_core.Signal<{
|
|
452
|
+
[x: string]: any;
|
|
453
|
+
}>;
|
|
454
|
+
constructor();
|
|
455
|
+
ngOnDestroy(): void;
|
|
456
|
+
setActiveStyles(): void;
|
|
457
|
+
setInactiveStyles(): void;
|
|
458
|
+
getLabel(): string;
|
|
459
|
+
getElementRef(): ElementRef<HTMLElement>;
|
|
460
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<XListOptionComponent, never>;
|
|
461
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XListOptionComponent, "x-list-option", never, {}, {}, never, never, true, never>;
|
|
462
|
+
}
|
|
463
|
+
|
|
453
464
|
declare class XListComponent extends XListProperty implements OnChanges {
|
|
454
465
|
private unSubject;
|
|
455
466
|
private i18n;
|
|
@@ -539,4 +550,4 @@ declare class XListModule {
|
|
|
539
550
|
}
|
|
540
551
|
|
|
541
552
|
export { XListComponent, XListDropGroup, XListModule, XListOptionComponent, XListOptionPrefix, XListOptionProperty, XListPrefix, XListProperty, X_LIST_DROP_GROUP };
|
|
542
|
-
export type { XListDragDrop, XListNode };
|
|
553
|
+
export type { XListDragDrop, XListNode, XListOptionHandle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef,
|
|
2
|
+
import { TemplateRef, Signal, WritableSignal, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as _ng_nest_ui_core from '@ng-nest/ui/core';
|
|
4
4
|
import { XParentIdentityProperty, XDataArray, XSize, XNumber, XBoolean, XTrigger, XProperty } from '@ng-nest/ui/core';
|
|
5
5
|
|
|
@@ -149,7 +149,19 @@ declare class XMenuNodeProperty extends XProperty {
|
|
|
149
149
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<XMenuNodeProperty, "x-menu-node-property", never, {}, {}, never, never, true, never>;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
interface XMenuContext {
|
|
153
|
+
activatedId: Signal<any>;
|
|
154
|
+
activatedElementRef: WritableSignal<ElementRef<HTMLElement> | null>;
|
|
155
|
+
setScrollTop(): void;
|
|
156
|
+
onNodeClick(node: XMenuNode): void;
|
|
157
|
+
rootIndexChange(index: number): void;
|
|
158
|
+
onToggle(event: Event | null, node: XMenuNode, isDropdown?: boolean): void;
|
|
159
|
+
setCategory(nodes: XMenuNode[]): void;
|
|
160
|
+
setActivatedNode(nodes: XMenuNode[]): void;
|
|
161
|
+
setParentOpen(nodes: XMenuNode[], node: XMenuNode): void;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare class XMenuComponent extends XMenuProperty implements OnChanges, XMenuContext {
|
|
153
165
|
showCategory: _angular_core.WritableSignal<boolean>;
|
|
154
166
|
get scroll(): HTMLElement;
|
|
155
167
|
datas: _angular_core.WritableSignal<XMenuNode[]>;
|
|
@@ -183,7 +195,7 @@ declare class XMenuComponent extends XMenuProperty implements OnChanges {
|
|
|
183
195
|
}
|
|
184
196
|
|
|
185
197
|
declare class XMenuNodeComponent extends XMenuNodeProperty {
|
|
186
|
-
menu:
|
|
198
|
+
menu: XMenuContext;
|
|
187
199
|
routerLink: _angular_core.InputSignal<string | undefined>;
|
|
188
200
|
leaf: _angular_core.InputSignal<boolean | undefined>;
|
|
189
201
|
icon: _angular_core.InputSignal<string | undefined>;
|