@smart-webcomponents-angular/toast 19.0.8 → 25.5.5

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.
@@ -14,106 +14,110 @@ export declare class ToastComponent extends BaseElement implements OnInit, After
14
14
  * @param properties An optional object of properties, which will be added to the template binded ones.
15
15
  */
16
16
  createComponent(properties?: {}): any;
17
- /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
17
+ /** @description Sets or retrieves the animation mode for the component. When this property is set to 'none', all animations are disabled. Otherwise, specifying a valid animation mode enables corresponding transition effects. */
18
18
  get animation(): Animation | string;
19
19
  set animation(value: Animation | string);
20
- /** @description Specifies the container where new openned toast items will be displayed. The value can be an HTMLElement or element's id. This property is in relation with modal(lower priority than modal) and position(higher priority than position) properties. */
20
+ /** @description Defines the container element in which new toast notifications will appear. The value can be either an HTMLElement directly, or a string representing the id of a DOM element. This property determines where toast items are rendered in the DOM.Note: When used together with the modal and position properties, container takes precedence over position but has lower priority than modal. This means that if modal is enabled, it overrides container; if not, the specified container is used instead of the position property. */
21
21
  get appendTo(): string;
22
22
  set appendTo(value: string);
23
- /** @description Sets or gets whether the toast will automatically close after duration equal to the autoCloseDelay property. */
23
+ /** @description Determines whether the toast notification will automatically close after the duration specified by the autoCloseDelay property. If enabled, the toast will dismiss itself once the set time has elapsed; otherwise, it will remain visible until manually closed by the user. */
24
24
  get autoClose(): boolean;
25
25
  set autoClose(value: boolean);
26
- /** @description Sets or gets the duration after which the toast automatically closes (works only if the autoClose property is set to true). */
26
+ /** @description Specifies or retrieves the time interval (in milliseconds) after which the toast notification will automatically dismiss itself. This property is effective only when the autoClose property is set to true; otherwise, the toast will remain visible until manually closed. */
27
27
  get autoCloseDelay(): number;
28
28
  set autoCloseDelay(value: number);
29
- /** @description Sets whether the toast will open automatically immediately after widget's initialization. */
29
+ /** @description Determines whether the toast notification should automatically appear as soon as the widget is initialized, without requiring any user interaction or additional trigger. */
30
30
  get autoOpen(): boolean;
31
31
  set autoOpen(value: boolean);
32
- /** @description The user will not be able to interact with toast items when disabled is set to true. */
32
+ /** @description When the disabled property is set to true, all user interactions with toast items—such as clicking, hovering, or dismissing—will be prevented. The toast items will appear inactive and will not respond to any user actions until disabled is set to false. */
33
33
  get disabled(): boolean;
34
34
  set disabled(value: boolean);
35
- /** @description Sets custom icon className which overrides the default one. Multiple class names can be applied by separating them with a space. Useful when loading from a third-party icon library (such as Bootstrap). */
35
+ /** @description Specifies a custom CSS class name or multiple class names to override the default icon styling. To apply multiple classes, separate each class name with a space (e.g., "fa fa-user"). This property is particularly useful when integrating icons from third-party icon libraries like Bootstrap Icons, Font Awesome, or Material Icons, allowing you to fully control the icon's appearance by leveraging external style definitions. */
36
36
  get iconClass(): string;
37
37
  set iconClass(value: string);
38
- /** @description Adds a custom class to Toast items. Multiple class names can be applied by separating them with a space. Useful when styling by using predefined class names from a third-party CSS library (such as Bootstrap). */
38
+ /** @description Allows you to add one or more custom CSS classes to Toast items by specifying class names separated with spaces. This enables you to style individual Toasts using predefined classes from third-party CSS frameworks (such as Bootstrap), or your own custom styles, for greater flexibility and consistency in appearance. */
39
39
  get itemClass(): string;
40
40
  set itemClass(value: string);
41
- /** @description Sets custom item template. */
41
+ /** @description Defines a custom template for rendering each item, allowing you to control the appearance and structure of items displayed in the list or component. This enables the use of personalized HTML, styling, and dynamic content for each item, rather than relying on the default rendering format. */
42
42
  get itemTemplate(): string;
43
43
  set itemTemplate(value: string);
44
- /** @description Sets or gets the language. Used in conjunction with the property messages. */
44
+ /** @description Defines or retrieves the unlockKey, a unique value required to activate or gain access to the product’s features or content. */
45
+ get unlockKey(): string;
46
+ set unlockKey(value: string);
47
+ /** @description Specifies or retrieves the current language setting for localization purposes. This property determines which set of translations from the messages object is used, ensuring that the appropriate language-specific content is displayed or accessed. */
45
48
  get locale(): string;
46
49
  set locale(value: string);
47
- /** @description Callback, related to localization module. */
50
+ /** @description Callback function used by the localization module to handle language-specific operations, such as loading translation files, switching languages, or updating localized content dynamically within the application. */
48
51
  get localizeFormatFunction(): any;
49
52
  set localizeFormatFunction(value: any);
50
- /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
53
+ /** @description Defines or retrieves an object containing customizable text strings used throughout the widget’s user interface, enabling localization and internationalization of displayed messages, labels, and prompts. Typically used alongside the locale property to support multiple languages and regional formats. This property allows developers to override default strings with translations or custom wording suitable for different locales. */
51
54
  get messages(): any;
52
55
  set messages(value: any);
53
- /** @description In modal mode the toast item is positioned in the center of the screen. This property is with higher priority than position and appendTo. If modal is set to true these properties are disregarded. */
56
+ /** @description When modal mode is enabled, the toast notification is displayed at the center of the screen, overlaying all other page content. The modal property takes precedence over both the position and appendTo properties. If modal is set to true, any values specified for position and appendTo will be ignored, and the toast will always appear centered in a modal overlay. */
54
57
  get modal(): boolean;
55
58
  set modal(value: boolean);
56
- /** @description Sets the part of the browser window where the toast will be positioned. The position property is disregarded if appendTo or modal are set. */
59
+ /** @description Specifies the area of the browser window where the toast notification will be displayed (for example, "top-right" or "bottom-center"). Note: This position setting is ignored if the appendTo property is defined or if modal mode is enabled, as these options control the toast’s placement instead. */
57
60
  get position(): ToastPosition | string;
58
61
  set position(value: ToastPosition | string);
59
- /** @description If the element is readonly, users cannot interact with it. */
62
+ /** @description If the element has the "readonly" attribute, users cannot modify its value; the content is visible but cannot be changed or edited through user input. However, users may still be able to interact with the element in limited ways, such as copying its text, but any form of altering the value is disabled. */
60
63
  get readonly(): boolean;
61
64
  set readonly(value: boolean);
62
- /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
65
+ /** @description Defines or retrieves a value that specifies whether the element's alignment is adjusted to support right-to-left (RTL) languages, such as Arabic or Hebrew. When enabled, the element's layout and text direction are modified to accommodate locales that use RTL scripts. */
63
66
  get rightToLeft(): boolean;
64
67
  set rightToLeft(value: boolean);
65
- /** @description Sets or gets whether to show the toast item's close button. */
68
+ /** @description Determines whether the close button is displayed on the toast notification. When set to true, the close button appears, allowing users to manually dismiss the toast. When set to false, the close button is hidden, and the toast can only be dismissed programmatically or by other means. This property can be used to retrieve the current visibility state or update it as needed. */
66
69
  get showCloseButton(): boolean;
67
70
  set showCloseButton(value: boolean);
68
- /** @description Determines the theme. Theme defines the look of the element */
71
+ /** @description Specifies the theme to be applied to the element. The selected theme controls the visual appearance of the element, including colors, fonts, and overall styling, ensuring a consistent look and feel throughout the user interface. */
69
72
  get theme(): string;
70
73
  set theme(value: string);
71
- /** @description Sets speciffic CSS settings and icon to the toast items. */
74
+ /** @description Applies custom CSS styles and assigns a designated icon to each toast notification item for improved appearance and user experience. */
72
75
  get type(): ToastType | null | string;
73
76
  set type(value: ToastType | null | string);
74
- /** @description If is set to true, the element cannot be focused. */
77
+ /** @description When set to true, this property prevents the element from receiving keyboard focus, making it inaccessible through keyboard navigation or programmatic focus methods (such as calling element.focus()). */
75
78
  get unfocusable(): boolean;
76
79
  set unfocusable(value: boolean);
77
- /** @description Sets a text value to an toast item. */
80
+ /** @description Assigns a specific text value to the toast notification, determining the message displayed to users within the toast item. */
78
81
  get value(): any;
79
82
  set value(value: any);
80
- /** @description This event is triggered when the toast item is clicked.
83
+ /** @description This event is triggered when a user clicks on a toast notification. It allows you to execute custom logic in response to the user's interaction with the toast item, such as redirecting to a specific page, dismissing the notification, or performing other actions.
81
84
  * @param event. The custom event. */
82
85
  onItemClick: EventEmitter<CustomEvent>;
83
- /** @description This event is triggered when the toast item is closed.
86
+ /** @description This event is triggered whenever a toast notification is closed, either by user interaction (such as clicking the close button) or programmatically through code. It allows developers to execute custom logic or cleanup actions after the toast has been dismissed from the user interface.
84
87
  * @param event. The custom event. */
85
88
  onClose: EventEmitter<CustomEvent>;
86
- /** @description This event is triggered when the toast item is opened.
89
+ /** @description This event is triggered each time a toast notification becomes visible to the user, indicating that the toast item has been fully opened and is now displayed on the screen.
87
90
  * @param event. The custom event. */
88
91
  onOpen: EventEmitter<CustomEvent>;
89
- /** @description This event is triggered on swipebottom over an toast item.
92
+ /** @description This event is triggered when a user performs a swipe-down gesture (swipe bottom) on a toast notification item. It can be used to detect and handle user interactions that involve dismissing or interacting with toast messages via a downward swipe.
90
93
  * @param event. The custom event. */
91
94
  onSwipebottom: EventEmitter<CustomEvent>;
92
- /** @description This event is triggered on swipeleft over an toast item.
95
+ /** @description This event is triggered when a user performs a swipe left gesture on a toast notification item. It allows you to execute custom actions in response to the swipe left interaction with the toast component.
93
96
  * @param event. The custom event. */
94
97
  onSwipeleft: EventEmitter<CustomEvent>;
95
- /** @description This event is triggered on swiperight over an toast item.
98
+ /** @description This event is triggered when a user performs a swipe-right gesture on a toast notification item. It allows you to handle interactions that occur specifically when the user swipes right on a toast component.
96
99
  * @param event. The custom event. */
97
100
  onSwiperight: EventEmitter<CustomEvent>;
98
- /** @description This event is triggered on swipetop over an toast item.
101
+ /** @description This event is triggered when a user performs an upward swipe gesture (swipe top) on a toast notification item.
99
102
  * @param event. The custom event. */
100
103
  onSwipetop: EventEmitter<CustomEvent>;
101
- /** @description Closes all opened toast items.
104
+ /** @description Closes all currently displayed toast notifications, ensuring that any active toast messages are dismissed from the user interface.
102
105
  */
103
106
  closeAll(): void;
104
- /** @description Closes particular toast item.
107
+ /** @description Closes a specific toast notification. This action targets and dismisses the designated toast message from the user interface, ensuring that only the selected toast item is removed without affecting others.
105
108
  * @param {HTMLElement | string} item. The toast item (or its id) to remove.
106
109
  */
107
110
  closeItem(item: HTMLElement | string): void;
108
- /** @description Closes the last opened toast item.
111
+ /** @description Closes the most recently displayed toast notification, removing it from the user's view.
109
112
  */
110
113
  closeLast(): void;
111
- /** @description Opens a new toast item and returns the opened smart-toast-item instance.
114
+ /** @description Displays a new toast notification and returns the corresponding smart-toast-item instance representing the newly created toast. This allows further manipulation or customization of the toast after it appears.
112
115
  * @param {HTMLElement | string} value?. The value for the toast item. If not set, the value property will be used.
113
116
  * @param {string} iconType?. The icon name for the toast item. If not set, the type property determines the icon type that will be used.
114
117
  * @returns {HTMLElement}
115
118
  */
116
119
  open(value?: any, iconType?: any): Promise<any>;
120
+ openSync(value?: any, iconType?: any): HTMLElement;
117
121
  get isRendered(): boolean;
118
122
  ngOnInit(): void;
119
123
  ngAfterViewInit(): void;
@@ -124,5 +128,5 @@ export declare class ToastComponent extends BaseElement implements OnInit, After
124
128
  /** @description Remove event listeners. */
125
129
  private unlisten;
126
130
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
127
- static ɵdir: i0.ɵɵDirectiveDeclaration<ToastComponent, "smart-toast, [smart-toast]", ["smart-toast"], { "animation": "animation"; "appendTo": "appendTo"; "autoClose": "autoClose"; "autoCloseDelay": "autoCloseDelay"; "autoOpen": "autoOpen"; "disabled": "disabled"; "iconClass": "iconClass"; "itemClass": "itemClass"; "itemTemplate": "itemTemplate"; "locale": "locale"; "localizeFormatFunction": "localizeFormatFunction"; "messages": "messages"; "modal": "modal"; "position": "position"; "readonly": "readonly"; "rightToLeft": "rightToLeft"; "showCloseButton": "showCloseButton"; "theme": "theme"; "type": "type"; "unfocusable": "unfocusable"; "value": "value"; }, { "onItemClick": "onItemClick"; "onClose": "onClose"; "onOpen": "onOpen"; "onSwipebottom": "onSwipebottom"; "onSwipeleft": "onSwipeleft"; "onSwiperight": "onSwiperight"; "onSwipetop": "onSwipetop"; }, never>;
131
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ToastComponent, "smart-toast, [smart-toast]", ["smart-toast"], { "animation": "animation"; "appendTo": "appendTo"; "autoClose": "autoClose"; "autoCloseDelay": "autoCloseDelay"; "autoOpen": "autoOpen"; "disabled": "disabled"; "iconClass": "iconClass"; "itemClass": "itemClass"; "itemTemplate": "itemTemplate"; "unlockKey": "unlockKey"; "locale": "locale"; "localizeFormatFunction": "localizeFormatFunction"; "messages": "messages"; "modal": "modal"; "position": "position"; "readonly": "readonly"; "rightToLeft": "rightToLeft"; "showCloseButton": "showCloseButton"; "theme": "theme"; "type": "type"; "unfocusable": "unfocusable"; "value": "value"; }, { "onItemClick": "onItemClick"; "onClose": "onClose"; "onOpen": "onOpen"; "onSwipebottom": "onSwipebottom"; "onSwipeleft": "onSwipeleft"; "onSwiperight": "onSwiperight"; "onSwipetop": "onSwipetop"; }, never>;
128
132
  }