@uni-design-system/uni-angular 3.0.0 → 3.0.2
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.2",
|
|
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.2"
|
|
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,
|
|
2
|
+
import { Signal, WritableSignal, InjectionToken, ElementRef, EventEmitter, OnInit, OnDestroy, OnChanges, SimpleChanges, TemplateRef, AfterViewInit } 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';
|
|
@@ -248,6 +248,8 @@ declare class ThemeService {
|
|
|
248
248
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
declare const UNI_THEMES: InjectionToken<Record<string, UniTheme>>;
|
|
252
|
+
|
|
251
253
|
declare class BaseComponent<T = unknown> {
|
|
252
254
|
protected componentName: ComponentName;
|
|
253
255
|
theme: ThemeService;
|
|
@@ -442,6 +444,22 @@ declare class UniIconComponent {
|
|
|
442
444
|
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
445
|
}
|
|
444
446
|
|
|
447
|
+
declare class UniIconButtonComponent implements OnChanges {
|
|
448
|
+
private theme;
|
|
449
|
+
config: _angular_core.Signal<_uni_design_system_uni_core.ComponentTheme<unknown>>;
|
|
450
|
+
iconName?: IconName;
|
|
451
|
+
symbolName?: string;
|
|
452
|
+
variant: Variant;
|
|
453
|
+
size: Size;
|
|
454
|
+
disable?: boolean;
|
|
455
|
+
loading?: boolean;
|
|
456
|
+
opticalSize: number;
|
|
457
|
+
get className(): string;
|
|
458
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
459
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniIconButtonComponent, never>;
|
|
460
|
+
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: {}; }]>;
|
|
461
|
+
}
|
|
462
|
+
|
|
445
463
|
declare class UniBoxComponent {
|
|
446
464
|
theme: ThemeService;
|
|
447
465
|
color: _angular_core.InputSignal<ContainerColorToken>;
|
|
@@ -581,15 +599,121 @@ declare class UniMenuComponent {
|
|
|
581
599
|
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
600
|
}
|
|
583
601
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
602
|
+
interface UniAlertOptions {
|
|
603
|
+
defaultVariant: Variant;
|
|
604
|
+
borderRadius: Radius;
|
|
605
|
+
transitionSpeed: number;
|
|
606
|
+
topPosition: string | number;
|
|
607
|
+
elevation: Elevation;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
declare class UniAlertComponent extends BaseComponent<UniAlertOptions> implements AfterViewInit {
|
|
611
|
+
show: _angular_core.ModelSignal<boolean>;
|
|
612
|
+
iconName: _angular_core.InputSignal<string>;
|
|
613
|
+
symbolName: _angular_core.InputSignal<string>;
|
|
614
|
+
useVariant: _angular_core.InputSignal<boolean>;
|
|
615
|
+
showing: EventEmitter<boolean>;
|
|
616
|
+
alertRef?: ElementRef<HTMLDialogElement>;
|
|
617
|
+
private readonly alertState;
|
|
618
|
+
private readonly effectiveVariant;
|
|
619
|
+
protected readonly alertClass: _angular_core.Signal<string>;
|
|
620
|
+
private readonly fadeOut;
|
|
621
|
+
constructor();
|
|
622
|
+
ngAfterViewInit(): void;
|
|
623
|
+
open(): void;
|
|
624
|
+
close(): void;
|
|
625
|
+
protected readonly effectiveIconName: _angular_core.Signal<string>;
|
|
626
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniAlertComponent, never>;
|
|
627
|
+
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>;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
declare class ConfirmationDialogComponent {
|
|
631
|
+
show: _angular_core.InputSignal<boolean>;
|
|
632
|
+
confirmation?: Confirmation;
|
|
633
|
+
showing: EventEmitter<any>;
|
|
634
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
635
|
+
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>;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
declare class NotificationsComponent {
|
|
639
|
+
notifications: NotificationService;
|
|
640
|
+
private readonly alertState;
|
|
641
|
+
private readonly snackbarState;
|
|
642
|
+
private readonly confirmationState;
|
|
643
|
+
protected readonly showAlert: _angular_core.Signal<boolean>;
|
|
644
|
+
protected readonly showSnackbar: _angular_core.Signal<boolean>;
|
|
645
|
+
protected readonly showConfirmation: _angular_core.Signal<boolean>;
|
|
646
|
+
protected readonly alert: _angular_core.Signal<Alert>;
|
|
647
|
+
protected readonly snackbar: _angular_core.Signal<Snackbar>;
|
|
648
|
+
protected readonly confirmation: _angular_core.Signal<Confirmation>;
|
|
649
|
+
constructor();
|
|
650
|
+
handleConfirmationShowingEvent(showing: boolean): void;
|
|
651
|
+
handleSnackbarShowingEvent(showing: boolean): void;
|
|
652
|
+
handleAlertShowingEvent(showing: boolean): void;
|
|
653
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationsComponent, never>;
|
|
654
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NotificationsComponent, "uni-notifications, Notifications", never, {}, {}, never, never, true, never>;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
interface UniSnackbarOptions {
|
|
658
|
+
bottomPosition: number;
|
|
659
|
+
transitionDelay: string;
|
|
660
|
+
autoCloseDelay: number;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
declare class UniSnackbarComponent extends BaseComponent<UniSnackbarOptions> implements AfterViewInit, OnChanges {
|
|
664
|
+
timer: {
|
|
665
|
+
start: (durationMs: number, onComplete?: () => void) => void;
|
|
666
|
+
pause: () => void;
|
|
667
|
+
resume: () => void;
|
|
668
|
+
stop: () => void;
|
|
669
|
+
msRemaining: _angular_core.WritableSignal<number>;
|
|
670
|
+
isPaused: _angular_core.WritableSignal<boolean>;
|
|
671
|
+
isActive: _angular_core.Signal<boolean>;
|
|
672
|
+
secondsRemaining: _angular_core.Signal<number>;
|
|
673
|
+
};
|
|
674
|
+
snackbarClass?: string;
|
|
675
|
+
show?: boolean;
|
|
676
|
+
iconName: _angular_core.InputSignal<string>;
|
|
677
|
+
symbolName: _angular_core.InputSignal<string>;
|
|
678
|
+
timeout: _angular_core.InputSignal<string | number>;
|
|
679
|
+
actionLabel: _angular_core.InputSignal<string>;
|
|
680
|
+
useVariant: _angular_core.InputSignal<boolean>;
|
|
681
|
+
action: EventEmitter<any>;
|
|
682
|
+
showing: EventEmitter<any>;
|
|
683
|
+
snackbarRef?: ElementRef;
|
|
684
|
+
private get _snackbar();
|
|
685
|
+
constructor();
|
|
686
|
+
fadeOut: string;
|
|
687
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
688
|
+
ngAfterViewInit(): void;
|
|
689
|
+
private get _timeout();
|
|
690
|
+
open(): void;
|
|
691
|
+
close(): void;
|
|
692
|
+
protected pauseTimer(): void;
|
|
693
|
+
protected resumeTimer(): void;
|
|
694
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniSnackbarComponent, never>;
|
|
695
|
+
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>;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
type SymbolFill = 1 | 0;
|
|
699
|
+
type SymbolWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700;
|
|
700
|
+
type SymbolGrade = -25 | 0 | 200;
|
|
701
|
+
interface SymbolOptions {
|
|
702
|
+
fill?: SymbolFill;
|
|
703
|
+
weight?: SymbolWeight;
|
|
704
|
+
grade?: SymbolGrade;
|
|
705
|
+
opticalSize?: number;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
declare class UniSymbolComponent extends BaseComponent<SymbolOptions> {
|
|
709
|
+
name: _angular_core.InputSignal<string>;
|
|
710
|
+
fill: _angular_core.InputSignal<SymbolFill>;
|
|
711
|
+
weight: _angular_core.InputSignal<SymbolWeight>;
|
|
712
|
+
grade: _angular_core.InputSignal<SymbolGrade>;
|
|
713
|
+
opticalSize: _angular_core.InputSignal<number>;
|
|
590
714
|
get className(): string;
|
|
591
715
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UniSymbolComponent, never>;
|
|
592
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniSymbolComponent, "uni-symbol, Symbol", never, { "name": { "alias": "name"; "required":
|
|
716
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UniSymbolComponent, "uni-symbol, Symbol", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "weight": { "alias": "weight"; "required": false; "isSignal": true; }; "grade": { "alias": "grade"; "required": false; "isSignal": true; }; "opticalSize": { "alias": "opticalSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
593
717
|
}
|
|
594
718
|
|
|
595
719
|
declare class UniTextComponent {
|
|
@@ -650,7 +774,5 @@ declare class UniTooltipComponent extends BaseComponent<UniTooltipOptions> imple
|
|
|
650
774
|
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
775
|
}
|
|
652
776
|
|
|
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 };
|
|
777
|
+
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
778
|
export type { Alert, Confirmation, DataLoader, MenuItem, MenuItemWithLabel, MenuItemWithTemplate, Option, Options, PageRequest, PageResponse, Snackbar, Sort, SortDirection, UniDatasource };
|