tecnualng 21.0.27 → 21.0.28
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/tecnualng.mjs +219 -1
- package/fesm2022/tecnualng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/tecnualng.d.ts +87 -2
package/package.json
CHANGED
package/types/tecnualng.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef, TemplateRef, AfterViewInit, OnDestroy, NgZone, ApplicationRef, EnvironmentInjector, AfterContentInit, QueryList } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import * as tecnualng from 'tecnualng';
|
|
4
5
|
|
|
5
6
|
type TngButtonAppearance = 'text' | 'filled' | 'elevated' | 'outlined' | 'tonal';
|
|
6
7
|
declare class TngButton {
|
|
@@ -522,5 +523,89 @@ declare class TngSliderComponent implements ControlValueAccessor {
|
|
|
522
523
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngSliderComponent, "tng-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
523
524
|
}
|
|
524
525
|
|
|
525
|
-
|
|
526
|
-
|
|
526
|
+
type TngLoaderType = 'spinner' | 'bar' | 'dots' | 'pulse';
|
|
527
|
+
type TngLoaderSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
528
|
+
type TngLoaderColor = 'primary' | 'secondary' | 'accent' | 'warn';
|
|
529
|
+
declare class TngLoaderComponent {
|
|
530
|
+
type: _angular_core.InputSignal<TngLoaderType>;
|
|
531
|
+
size: _angular_core.InputSignal<TngLoaderSize>;
|
|
532
|
+
duration: _angular_core.InputSignal<string | null>;
|
|
533
|
+
label: _angular_core.InputSignal<string>;
|
|
534
|
+
progress: _angular_core.InputSignal<number | null>;
|
|
535
|
+
fullscreen: _angular_core.InputSignal<boolean>;
|
|
536
|
+
inline: _angular_core.InputSignal<boolean>;
|
|
537
|
+
hidden: _angular_core.InputSignal<boolean>;
|
|
538
|
+
color: _angular_core.InputSignal<TngLoaderColor | null>;
|
|
539
|
+
hostClasses: _angular_core.Signal<string>;
|
|
540
|
+
containerStyles: _angular_core.Signal<Record<string, string>>;
|
|
541
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngLoaderComponent, never>;
|
|
542
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngLoaderComponent, "tng-loader", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "progress": { "alias": "progress"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
type TngNotificationType = 'success' | 'error' | 'warning' | 'info' | 'default';
|
|
546
|
+
type TngNotificationPosition = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
547
|
+
interface TngNotificationConfig {
|
|
548
|
+
id: string;
|
|
549
|
+
message: string;
|
|
550
|
+
type: TngNotificationType;
|
|
551
|
+
duration?: number;
|
|
552
|
+
position?: TngNotificationPosition;
|
|
553
|
+
clipboard?: string;
|
|
554
|
+
closable?: boolean;
|
|
555
|
+
icon?: string;
|
|
556
|
+
pauseOnHover?: boolean;
|
|
557
|
+
}
|
|
558
|
+
type TngNotificationOptions = Omit<TngNotificationConfig, 'id' | 'message' | 'type'> & {
|
|
559
|
+
type?: TngNotificationType;
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
declare class TngNotificationService {
|
|
563
|
+
private notifications;
|
|
564
|
+
private timers;
|
|
565
|
+
private remainingTimes;
|
|
566
|
+
private startTimes;
|
|
567
|
+
readonly activeNotifications: _angular_core.Signal<TngNotificationConfig[]>;
|
|
568
|
+
show(message: string, options?: Partial<TngNotificationConfig>): string;
|
|
569
|
+
success(message: string, options?: TngNotificationOptions): string;
|
|
570
|
+
error(message: string, options?: TngNotificationOptions): string;
|
|
571
|
+
warning(message: string, options?: TngNotificationOptions): string;
|
|
572
|
+
info(message: string, options?: TngNotificationOptions): string;
|
|
573
|
+
remove(id: string): void;
|
|
574
|
+
clear(): void;
|
|
575
|
+
pauseTimer(id: string): void;
|
|
576
|
+
resumeTimer(id: string): void;
|
|
577
|
+
private startTimer;
|
|
578
|
+
private clearTimer;
|
|
579
|
+
private generateId;
|
|
580
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngNotificationService, never>;
|
|
581
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TngNotificationService>;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare class TngNotificationContainerComponent {
|
|
585
|
+
private service;
|
|
586
|
+
notifications: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
587
|
+
topLeft: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
588
|
+
topRight: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
589
|
+
topCenter: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
590
|
+
bottomLeft: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
591
|
+
bottomRight: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
592
|
+
bottomCenter: _angular_core.Signal<tecnualng.TngNotificationConfig[]>;
|
|
593
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngNotificationContainerComponent, never>;
|
|
594
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngNotificationContainerComponent, "tng-notification-container", never, {}, {}, never, never, true, never>;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare class TngToastComponent {
|
|
598
|
+
config: _angular_core.InputSignal<TngNotificationConfig>;
|
|
599
|
+
private service;
|
|
600
|
+
onMouseEnter(): void;
|
|
601
|
+
onMouseLeave(): void;
|
|
602
|
+
close(): void;
|
|
603
|
+
showCopiedTooltip: _angular_core.WritableSignal<boolean>;
|
|
604
|
+
copyToClipboard(): void;
|
|
605
|
+
get iconClass(): string;
|
|
606
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TngToastComponent, never>;
|
|
607
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TngToastComponent, "tng-toast", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export { TecnualDatepickerComponent, TecnualInputComponent, TecnualTableComponent, ThemeService, TngButton, TngCardComponent, TngExpansionPanelComponent, TngFormFieldComponent, TngInputDirective, TngLoaderComponent, TngMenuComponent, TngMenuGroupComponent, TngMenuItemComponent, TngNotificationContainerComponent, TngNotificationService, TngSelectComponent, TngSelectDirective, TngSelectPanelComponent, TngSidebarComponent, TngSliderComponent, TngTabComponent, TngTabsComponent, TngTextareaComponent, TngTextareaDirective, TngToastComponent, TngToolbarComponent, TngTooltipComponent, TngTooltipDirective };
|
|
611
|
+
export type { DateRange, SelectOption, TableColumn, Theme, ThemeName, TngButtonAppearance, TngCardVariant, TngLoaderColor, TngLoaderSize, TngLoaderType, TngNotificationConfig, TngNotificationOptions, TngNotificationPosition, TngNotificationType, TngToolbarColor, TngToolbarPosition, TngToolbarPositionType };
|