@uni-design-system/uni-angular 3.0.0 → 3.0.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-angular",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/uni-design-system/uni",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@angular/common": "^21.2.0",
|
|
17
17
|
"@angular/core": "^21.2.0",
|
|
18
18
|
"@emotion/css": "^11.0.0",
|
|
19
|
-
"@uni-design-system/uni-core": "3.0.
|
|
19
|
+
"@uni-design-system/uni-core": "3.0.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@floating-ui/dom": "^1.7.6",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Signal, WritableSignal, ElementRef, EventEmitter, OnInit, OnDestroy, TemplateRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { Signal, WritableSignal, ElementRef, EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges, TemplateRef, AfterViewInit, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _uni_design_system_uni_core from '@uni-design-system/uni-core';
|
|
4
4
|
import { Icons, Variant, ContainerColorToken, UniTheme, ComponentName, ComponentTheme, NullableSize, ThemeName, TextRole, ContentColorToken, Size, Thickness, NullableStyleExpression, ColorKey, Typeface, Radius, OptionalSize, Border, Shadow, ZIndexableElements, ColorToken, RadiiSize, Elevation, JustifyContent, StyleExpression, Orientation, OptionalAlignSelf, OptionalAlignItems, OptionalAlignContent, OptionalJustifyContent, OptionalDisplay, OptionalPosition, OptionalOverflow, OptionalFlexDirection, OptionalTextAlign, OptionalWrap } from '@uni-design-system/uni-core';
|
|
5
5
|
import { Placement as Placement$1, OffsetOptions } from '@floating-ui/dom';
|
|
@@ -442,6 +442,22 @@ declare class UniIconComponent {
|
|
|
442
442
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniIconComponent, "uni-icon, Icon", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
+
declare class UniIconButtonComponent implements OnChanges {
|
|
446
|
+
private theme;
|
|
447
|
+
config: _angular_core.Signal<_uni_design_system_uni_core.ComponentTheme<unknown>>;
|
|
448
|
+
iconName?: IconName;
|
|
449
|
+
symbolName?: string;
|
|
450
|
+
variant: Variant;
|
|
451
|
+
size: Size;
|
|
452
|
+
disable?: boolean;
|
|
453
|
+
loading?: boolean;
|
|
454
|
+
opticalSize: number;
|
|
455
|
+
get className(): string;
|
|
456
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
457
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniIconButtonComponent, never>;
|
|
458
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniIconButtonComponent, "button[uni-icon-button], button[icon-button]", never, { "iconName": { "alias": "iconName"; "required": false; }; "symbolName": { "alias": "symbolName"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "opticalSize": { "alias": "opticalSize"; "required": false; }; }, {}, never, never, true, [{ directive: typeof RippleDirective; inputs: {}; outputs: {}; }]>;
|
|
459
|
+
}
|
|
460
|
+
|
|
445
461
|
declare class UniBoxComponent {
|
|
446
462
|
theme: ThemeService;
|
|
447
463
|
color: _angular_core.InputSignal<ContainerColorToken>;
|
|
@@ -581,6 +597,102 @@ declare class UniMenuComponent {
|
|
|
581
597
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniMenuComponent, "Menu, uni-menu", never, { "menuItems": { "alias": "menuItems"; "required": true; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; }, { "menuItemClicked": "menuItemClicked"; }, never, ["*"], true, never>;
|
|
582
598
|
}
|
|
583
599
|
|
|
600
|
+
interface UniAlertOptions {
|
|
601
|
+
defaultVariant: Variant;
|
|
602
|
+
borderRadius: Radius;
|
|
603
|
+
transitionSpeed: number;
|
|
604
|
+
topPosition: string | number;
|
|
605
|
+
elevation: Elevation;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
declare class UniAlertComponent extends BaseComponent<UniAlertOptions> implements AfterViewInit {
|
|
609
|
+
show: _angular_core.ModelSignal<boolean>;
|
|
610
|
+
iconName: _angular_core.InputSignal<string>;
|
|
611
|
+
symbolName: _angular_core.InputSignal<string>;
|
|
612
|
+
useVariant: _angular_core.InputSignal<boolean>;
|
|
613
|
+
showing: EventEmitter<boolean>;
|
|
614
|
+
alertRef?: ElementRef<HTMLDialogElement>;
|
|
615
|
+
private readonly alertState;
|
|
616
|
+
private readonly effectiveVariant;
|
|
617
|
+
protected readonly alertClass: _angular_core.Signal<string>;
|
|
618
|
+
private readonly fadeOut;
|
|
619
|
+
constructor();
|
|
620
|
+
ngAfterViewInit(): void;
|
|
621
|
+
open(): void;
|
|
622
|
+
close(): void;
|
|
623
|
+
protected readonly effectiveIconName: _angular_core.Signal<string>;
|
|
624
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniAlertComponent, never>;
|
|
625
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniAlertComponent, "uni-alert, Alert", never, { "show": { "alias": "show"; "required": false; "isSignal": true; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "symbolName": { "alias": "symbolName"; "required": false; "isSignal": true; }; "useVariant": { "alias": "useVariant"; "required": false; "isSignal": true; }; }, { "show": "showChange"; "showing": "showing"; }, never, ["*"], true, never>;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
declare class ConfirmationDialogComponent {
|
|
629
|
+
show: _angular_core.InputSignal<boolean>;
|
|
630
|
+
confirmation?: Confirmation;
|
|
631
|
+
showing: EventEmitter<any>;
|
|
632
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
633
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmationDialogComponent, "uni-confirmation-dialog, Confirmation", never, { "show": { "alias": "show"; "required": false; "isSignal": true; }; "confirmation": { "alias": "confirmation"; "required": false; }; }, { "showing": "showing"; }, never, never, true, never>;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
declare class NotificationsComponent {
|
|
637
|
+
notifications: NotificationService;
|
|
638
|
+
private readonly alertState;
|
|
639
|
+
private readonly snackbarState;
|
|
640
|
+
private readonly confirmationState;
|
|
641
|
+
protected readonly showAlert: _angular_core.Signal<boolean>;
|
|
642
|
+
protected readonly showSnackbar: _angular_core.Signal<boolean>;
|
|
643
|
+
protected readonly showConfirmation: _angular_core.Signal<boolean>;
|
|
644
|
+
protected readonly alert: _angular_core.Signal<Alert>;
|
|
645
|
+
protected readonly snackbar: _angular_core.Signal<Snackbar>;
|
|
646
|
+
protected readonly confirmation: _angular_core.Signal<Confirmation>;
|
|
647
|
+
constructor();
|
|
648
|
+
handleConfirmationShowingEvent(showing: boolean): void;
|
|
649
|
+
handleSnackbarShowingEvent(showing: boolean): void;
|
|
650
|
+
handleAlertShowingEvent(showing: boolean): void;
|
|
651
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationsComponent, never>;
|
|
652
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationsComponent, "uni-notifications, Notifications", never, {}, {}, never, never, true, never>;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
interface UniSnackbarOptions {
|
|
656
|
+
bottomPosition: number;
|
|
657
|
+
transitionDelay: string;
|
|
658
|
+
autoCloseDelay: number;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare class UniSnackbarComponent extends BaseComponent<UniSnackbarOptions> implements AfterViewInit, OnChanges {
|
|
662
|
+
timer: {
|
|
663
|
+
start: (durationMs: number, onComplete?: () => void) => void;
|
|
664
|
+
pause: () => void;
|
|
665
|
+
resume: () => void;
|
|
666
|
+
stop: () => void;
|
|
667
|
+
msRemaining: _angular_core.WritableSignal<number>;
|
|
668
|
+
isPaused: _angular_core.WritableSignal<boolean>;
|
|
669
|
+
isActive: _angular_core.Signal<boolean>;
|
|
670
|
+
secondsRemaining: _angular_core.Signal<number>;
|
|
671
|
+
};
|
|
672
|
+
snackbarClass?: string;
|
|
673
|
+
show?: boolean;
|
|
674
|
+
iconName: _angular_core.InputSignal<string>;
|
|
675
|
+
symbolName: _angular_core.InputSignal<string>;
|
|
676
|
+
timeout: _angular_core.InputSignal<string | number>;
|
|
677
|
+
actionLabel: _angular_core.InputSignal<string>;
|
|
678
|
+
useVariant: _angular_core.InputSignal<boolean>;
|
|
679
|
+
action: EventEmitter<any>;
|
|
680
|
+
showing: EventEmitter<any>;
|
|
681
|
+
snackbarRef?: ElementRef;
|
|
682
|
+
private get _snackbar();
|
|
683
|
+
constructor();
|
|
684
|
+
fadeOut: string;
|
|
685
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
686
|
+
ngAfterViewInit(): void;
|
|
687
|
+
private get _timeout();
|
|
688
|
+
open(): void;
|
|
689
|
+
close(): void;
|
|
690
|
+
protected pauseTimer(): void;
|
|
691
|
+
protected resumeTimer(): void;
|
|
692
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniSnackbarComponent, never>;
|
|
693
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniSnackbarComponent, "uni-snackbar, Snackbar", never, { "show": { "alias": "show"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "symbolName": { "alias": "symbolName"; "required": false; "isSignal": true; }; "timeout": { "alias": "timeout"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "useVariant": { "alias": "useVariant"; "required": false; "isSignal": true; }; }, { "action": "action"; "showing": "showing"; }, never, ["*"], true, never>;
|
|
694
|
+
}
|
|
695
|
+
|
|
584
696
|
declare class UniSymbolComponent {
|
|
585
697
|
name: string;
|
|
586
698
|
fill: 1 | 0;
|
|
@@ -592,6 +704,8 @@ declare class UniSymbolComponent {
|
|
|
592
704
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniSymbolComponent, "uni-symbol, Symbol", never, { "name": { "alias": "name"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "grade": { "alias": "grade"; "required": false; }; "opticalSize": { "alias": "opticalSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
593
705
|
}
|
|
594
706
|
|
|
707
|
+
declare const UNI_THEMES: InjectionToken<Record<string, UniTheme>>;
|
|
708
|
+
|
|
595
709
|
declare class UniTextComponent {
|
|
596
710
|
theme: ThemeService;
|
|
597
711
|
typeface: _angular_core.InputSignal<string>;
|
|
@@ -650,7 +764,5 @@ declare class UniTooltipComponent extends BaseComponent<UniTooltipOptions> imple
|
|
|
650
764
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniTooltipComponent, "uni-tooltip, Tooltip", never, { "hoverDelay": { "alias": "hoverDelay"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "inlineText": { "alias": "inlineText"; "required": false; "isSignal": true; }; "appendToBody": { "alias": "appendToBody"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
651
765
|
}
|
|
652
766
|
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
export { LocalStorageService, NotificationService, RippleDirective, ThemeService, UNI_THEMES, UniBadgeComponent, UniBaseDatasource, UniBoxComponent, UniButtonComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDropdownComponent, UniGridAreaComponent, UniGridComponent, UniIconComponent, UniMenuComponent, UniRecordDatasource, UniRowComponent, UniServerSideDatasource, UniStackComponent, UniSymbolComponent, UniTextComponent, UniTooltipComponent, UniWrapComponent, useTimer };
|
|
767
|
+
export { ConfirmationDialogComponent, LocalStorageService, NotificationService, NotificationsComponent, RippleDirective, ThemeService, UNI_THEMES, UniAlertComponent, UniBadgeComponent, UniBaseDatasource, UniBoxComponent, UniButtonComponent, UniCardComponent, UniCardContentComponent, UniCardHeaderComponent, UniCenterComponent, UniDialogButtonsComponent, UniDialogComponent, UniDialogHeaderComponent, UniDividerComponent, UniDropdownComponent, UniGridAreaComponent, UniGridComponent, UniIconButtonComponent, UniIconComponent, UniMenuComponent, UniRecordDatasource, UniRowComponent, UniServerSideDatasource, UniSnackbarComponent, UniStackComponent, UniSymbolComponent, UniTextComponent, UniTooltipComponent, UniWrapComponent, useTimer };
|
|
656
768
|
export type { Alert, Confirmation, DataLoader, MenuItem, MenuItemWithLabel, MenuItemWithTemplate, Option, Options, PageRequest, PageResponse, Snackbar, Sort, SortDirection, UniDatasource };
|