@smart-webcomponents-angular/toast 13.0.1 → 13.0.9
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/README.md +10 -2
- package/esm2020/toast/smart.element.mjs +8 -5
- package/fesm2015/smart-webcomponents-angular-toast.mjs +7 -4
- package/fesm2015/smart-webcomponents-angular-toast.mjs.map +1 -1
- package/fesm2020/smart-webcomponents-angular-toast.mjs +7 -4
- package/fesm2020/smart-webcomponents-angular-toast.mjs.map +1 -1
- package/index.d.ts +43 -24
- package/package.json +1 -1
- package/source/modules/smart.toast.js +1 -1
- package/source/smart.button.js +1 -1
- package/source/smart.element.js +1 -1
- package/source/smart.toast.js +1 -1
- package/toast/smart.element.d.ts +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Smart.Toast represents a feature-complete, responsive and touch friendly Angular Toast component.
|
|
3
3
|
> This is a commercial product and requires a paid license for use. You can purchase a license at https://www.jqwidgets.com/license/ or start a free 30-day trial.
|
|
4
4
|
>
|
|
5
|
+
## Angular 13 support
|
|
6
|
+
|
|
7
|
+
The Smart UI for Angular components are packaged using the latest Angular Package Format guidelines.
|
|
8
|
+
|
|
5
9
|
## Resources
|
|
6
10
|
* [Getting Started](https://www.htmlelements.com/docs/angular-cli/)
|
|
7
11
|
* [View Online Demos](https://www.htmlelements.com/angular/)
|
|
@@ -34,8 +38,12 @@ npm install @smart-webcomponents-angular/toast
|
|
|
34
38
|
The CSS files are available in ../node_modules/@smart-webcomponents-angular/toast/styles/ folder.
|
|
35
39
|
```javascript
|
|
36
40
|
"styles": [
|
|
37
|
-
"node_modules/@smart-webcomponents-angular/toast/styles/smart.
|
|
41
|
+
"node_modules/@smart-webcomponents-angular/toast/styles/smart.base.css",
|
|
42
|
+
"node_modules/@smart-webcomponents-angular/toast/styles/smart.toast.css",
|
|
43
|
+
"node_modules/@smart-webcomponents-angular/toast/styles/smart.common.css"
|
|
38
44
|
]
|
|
45
|
+
|
|
46
|
+
If you use more than one Smart UI component in your application, firstly add 'smart.base.css', then your components css files like 'smart.grid.css', 'smart.scheduler.css' and finally 'smart.common.css'.
|
|
39
47
|
```
|
|
40
48
|
* Add the Component Module in your application
|
|
41
49
|
|
|
@@ -62,5 +70,5 @@ export class AppModule { }
|
|
|
62
70
|
Check the license detail [here](https://jqwidgets.com/license/).
|
|
63
71
|
## Release Notes
|
|
64
72
|
Check the release notes [here](https://www.htmlelements.com/docs/release-notes/)
|
|
65
|
-
© Copyright
|
|
73
|
+
© Copyright 2022 jQWidgets, Ltd. All Rights Reserved.
|
|
66
74
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input, Output,
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class BaseElement {
|
|
4
4
|
constructor(ref) {
|
|
@@ -69,10 +69,13 @@ export class BaseElement {
|
|
|
69
69
|
this.nativeElement ? this.nativeElement.theme = value : undefined;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.
|
|
73
|
-
BaseElement.ɵ
|
|
72
|
+
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
+
BaseElement.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BaseElement, selector: "ng-component", inputs: { locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", rightToLeft: "rightToLeft", theme: "theme" }, outputs: { onCreate: "onCreate", onReady: "onReady", onAttach: "onAttach", onDetach: "onDetach" }, ngImport: i0, template: '', isInline: true });
|
|
74
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, decorators: [{
|
|
75
|
-
type:
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{
|
|
77
|
+
template: ''
|
|
78
|
+
}]
|
|
76
79
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onCreate: [{
|
|
77
80
|
type: Output
|
|
78
81
|
}], onReady: [{
|
|
@@ -93,4 +96,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
93
96
|
type: Input
|
|
94
97
|
}] } });
|
|
95
98
|
export const Smart = window.Smart;
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
99
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQuZWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3RvYXN0L3NyYy9zbWFydC5lbGVtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE9BQU8sRUFBRSxTQUFTLEVBQWMsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBTW5GLE1BQU0sT0FBTyxXQUFXO0lBQ3BCLFlBQVksR0FBZTtRQWFqQixhQUFRLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFDakQsWUFBTyxHQUFzQixJQUFJLFlBQVksRUFBRSxDQUFDO1FBQ2hELGFBQVEsR0FBc0IsSUFBSSxZQUFZLEVBQUUsQ0FBQztRQUNqRCxhQUFRLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFmdkQsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2xCLElBQUksQ0FBQyxhQUFhLEdBQUcsR0FBRyxDQUFDLGFBQW9CLENBQUM7UUFFOUMsSUFB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Ub0xlZnQgOiB1bmRlZmluZWQ7XG5cdH1cblx0c2V0IHJpZ2h0VG9MZWZ0KHZhbHVlOiBib29sZWFuKSB7XG5cdFx0dGhpcy5uYXRpdmVFbGVtZW50ID8gdGhpcy5uYXRpdmVFbGVtZW50LnJpZ2h0VG9MZWZ0ID0gdmFsdWUgOiB1bmRlZmluZWQ7XG5cdH1cblxuXHQvKiogQGRlc2NyaXB0aW9uIERldGVybWluZXMgdGhlIHRoZW1lLiBUaGVtZSBkZWZpbmVzIHRoZSBsb29rIG9mIHRoZSBlbGVtZW50ICovXG5cdEBJbnB1dCgpXG5cdGdldCB0aGVtZSgpOiBzdHJpbmcge1xuXHRcdHJldHVybiB0aGlzLm5hdGl2ZUVsZW1lbnQgPyB0aGlzLm5hdGl2ZUVsZW1lbnQudGhlbWUgOiB1bmRlZmluZWQ7XG5cdH1cblx0c2V0IHRoZW1lKHZhbHVlOiBzdHJpbmcpIHtcblx0XHR0aGlzLm5hdGl2ZUVsZW1lbnQgPyB0aGlzLm5hdGl2ZUVsZW1lbnQudGhlbWUgPSB2YWx1ZSA6IHVuZGVmaW5lZDtcblx0fVxufVxuXG5leHBvcnQgY29uc3QgU21hcnQ6IGFueSA9IHdpbmRvdy5TbWFydDtcblxuIl19
|
|
@@ -9,7 +9,7 @@ import './../source/modules/smart.toast';
|
|
|
9
9
|
|
|
10
10
|
import { __awaiter } from 'tslib';
|
|
11
11
|
import * as i0 from '@angular/core';
|
|
12
|
-
import { EventEmitter,
|
|
12
|
+
import { EventEmitter, Component, Output, Input, Directive, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
13
13
|
|
|
14
14
|
class BaseElement {
|
|
15
15
|
constructor(ref) {
|
|
@@ -80,10 +80,13 @@ class BaseElement {
|
|
|
80
80
|
this.nativeElement ? this.nativeElement.theme = value : undefined;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.
|
|
84
|
-
BaseElement.ɵ
|
|
83
|
+
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
84
|
+
BaseElement.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BaseElement, selector: "ng-component", inputs: { locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", rightToLeft: "rightToLeft", theme: "theme" }, outputs: { onCreate: "onCreate", onReady: "onReady", onAttach: "onAttach", onDetach: "onDetach" }, ngImport: i0, template: '', isInline: true });
|
|
85
85
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, decorators: [{
|
|
86
|
-
type:
|
|
86
|
+
type: Component,
|
|
87
|
+
args: [{
|
|
88
|
+
template: ''
|
|
89
|
+
}]
|
|
87
90
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onCreate: [{
|
|
88
91
|
type: Output
|
|
89
92
|
}], onReady: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-webcomponents-angular-toast.mjs","sources":["../../toast/src/smart.element.ts","../../toast/src/smart.toast.ts","../../toast/src/smart.toast.module.ts","../../toast/src/smart-webcomponents-angular-toast.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { ElementRef, Input, Output, Directive, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n@Directive()\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { Toast } from './../index';\nimport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { Toast } from './../index';\n\n\n@Directive({\n\tselector: 'smart-toast, [smart-toast]'\n})\n\nexport class ToastComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<Toast>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as Toast;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic nativeElement: Toast;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <Toast>document.createElement('smart-toast');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n\t/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\n\t@Input()\n\tget animation(): Animation {\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\n\t}\n\tset animation(value: Animation) {\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget appendTo(): string {\n\t\treturn this.nativeElement ? this.nativeElement.appendTo : undefined;\n\t}\n\tset appendTo(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.appendTo = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether the toast will automatically close after duration equal to the autoCloseDelay property. */\n\t@Input()\n\tget autoClose(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoClose : undefined;\n\t}\n\tset autoClose(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoClose = value : undefined;\n\t}\n\n\t/** @description Sets or gets the duration after which the toast automatically closes (works only if the autoClose property is set to true). */\n\t@Input()\n\tget autoCloseDelay(): number {\n\t\treturn this.nativeElement ? this.nativeElement.autoCloseDelay : undefined;\n\t}\n\tset autoCloseDelay(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.autoCloseDelay = value : undefined;\n\t}\n\n\t/** @description Sets whether the toast will open automatically immediately after widget's initialization. */\n\t@Input()\n\tget autoOpen(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoOpen : undefined;\n\t}\n\tset autoOpen(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoOpen = value : undefined;\n\t}\n\n\t/** @description The user will not be able to interact with toast items when disabled is set to true. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget iconClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.iconClass : undefined;\n\t}\n\tset iconClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.iconClass = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget itemClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemClass : undefined;\n\t}\n\tset itemClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemClass = value : undefined;\n\t}\n\n\t/** @description Sets custom item template. */\n\t@Input()\n\tget itemTemplate(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemTemplate : undefined;\n\t}\n\tset itemTemplate(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemTemplate = value : undefined;\n\t}\n\n\t/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback, related to localization module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget modal(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.modal : undefined;\n\t}\n\tset modal(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.modal = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget position(): ToastPosition {\n\t\treturn this.nativeElement ? this.nativeElement.position : undefined;\n\t}\n\tset position(value: ToastPosition) {\n\t\tthis.nativeElement ? this.nativeElement.position = value : undefined;\n\t}\n\n\t/** @description If the element is readonly, users cannot interact with it. */\n\t@Input()\n\tget readonly(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.readonly : undefined;\n\t}\n\tset readonly(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.readonly = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether to show the toast item's close button. */\n\t@Input()\n\tget showCloseButton(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showCloseButton : undefined;\n\t}\n\tset showCloseButton(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showCloseButton = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n\n\t/** @description Sets speciffic CSS settings and icon to the toast items. */\n\t@Input()\n\tget type(): ToastType | null {\n\t\treturn this.nativeElement ? this.nativeElement.type : undefined;\n\t}\n\tset type(value: ToastType | null) {\n\t\tthis.nativeElement ? this.nativeElement.type = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Sets a text value to an toast item. */\n\t@Input()\n\tget value(): any {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the toast item is clicked.\n\t* @param event. The custom event. \t*/\n\t@Output() onItemClick: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is closed.\n\t* @param event. The custom event. \t*/\n\t@Output() onClose: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is opened.\n\t* @param event. The custom event. \t*/\n\t@Output() onOpen: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipebottom over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipebottom: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipeleft over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipeleft: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swiperight over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwiperight: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipetop over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipetop: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Closes all opened toast items. \n\t*/\n public closeAll(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeAll();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeAll();\n });\n }\n }\n\n\t/** @description Closes particular toast item. \n\t* @param {HTMLElement | string} item. The toast item (or its id) to remove.\n\t*/\n public closeItem(item: HTMLElement | string): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeItem(item);\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeItem(item);\n });\n }\n }\n\n\t/** @description Closes the last opened toast item. \n\t*/\n public closeLast(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeLast();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeLast();\n });\n }\n }\n\n\t/** @description Opens a new toast item and returns the opened smart-toast-item instance. \n\t* @param {HTMLElement | string} value?. The value for the toast item. If not set, the value property will be used.\n\t* @param {string} iconType?. The icon name for the toast item. If not set, the type property determines the icon type that will be used.\n\t* @returns {HTMLElement}\n */\n\tpublic async open(value?, iconType?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.open(value, iconType);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['itemClickHandler'] = (event: CustomEvent) => { that.onItemClick.emit(event); }\n\t\tthat.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\n\t\tthat.eventHandlers['closeHandler'] = (event: CustomEvent) => { that.onClose.emit(event); }\n\t\tthat.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);\n\n\t\tthat.eventHandlers['openHandler'] = (event: CustomEvent) => { that.onOpen.emit(event); }\n\t\tthat.nativeElement.addEventListener('open', that.eventHandlers['openHandler']);\n\n\t\tthat.eventHandlers['swipebottomHandler'] = (event: CustomEvent) => { that.onSwipebottom.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\n\t\tthat.eventHandlers['swipeleftHandler'] = (event: CustomEvent) => { that.onSwipeleft.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\n\t\tthat.eventHandlers['swiperightHandler'] = (event: CustomEvent) => { that.onSwiperight.emit(event); }\n\t\tthat.nativeElement.addEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\n\t\tthat.eventHandlers['swipetopHandler'] = (event: CustomEvent) => { that.onSwipetop.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['itemClickHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['closeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['openHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('open', that.eventHandlers['openHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipebottomHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipeleftHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swiperightHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipetopHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { ToastComponent } from './smart.toast';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [ToastComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [ToastComponent]\n})\n\nexport class ToastModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAWa,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;QAChD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;KACJ;IASM,gBAAgB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QAClI,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACnE;IAEM,mBAAmB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QACxI,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KAChE;IAEM,aAAa,CAAC,KAAY;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,KAA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,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,cAAc,CAAC;iBACzB;;;ACTD;;;;;;"}
|
|
1
|
+
{"version":3,"file":"smart-webcomponents-angular-toast.mjs","sources":["../../toast/src/smart.element.ts","../../toast/src/smart.toast.ts","../../toast/src/smart.toast.module.ts","../../toast/src/smart-webcomponents-angular-toast.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { Component, ElementRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n\n@Component({\n template: ''\n})\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { Toast } from './../index';\nimport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { Toast } from './../index';\n\n\n@Directive({\n\tselector: 'smart-toast, [smart-toast]'\n})\n\nexport class ToastComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<Toast>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as Toast;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic nativeElement: Toast;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <Toast>document.createElement('smart-toast');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n\t/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\n\t@Input()\n\tget animation(): Animation {\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\n\t}\n\tset animation(value: Animation) {\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget appendTo(): string {\n\t\treturn this.nativeElement ? this.nativeElement.appendTo : undefined;\n\t}\n\tset appendTo(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.appendTo = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether the toast will automatically close after duration equal to the autoCloseDelay property. */\n\t@Input()\n\tget autoClose(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoClose : undefined;\n\t}\n\tset autoClose(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoClose = value : undefined;\n\t}\n\n\t/** @description Sets or gets the duration after which the toast automatically closes (works only if the autoClose property is set to true). */\n\t@Input()\n\tget autoCloseDelay(): number {\n\t\treturn this.nativeElement ? this.nativeElement.autoCloseDelay : undefined;\n\t}\n\tset autoCloseDelay(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.autoCloseDelay = value : undefined;\n\t}\n\n\t/** @description Sets whether the toast will open automatically immediately after widget's initialization. */\n\t@Input()\n\tget autoOpen(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoOpen : undefined;\n\t}\n\tset autoOpen(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoOpen = value : undefined;\n\t}\n\n\t/** @description The user will not be able to interact with toast items when disabled is set to true. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget iconClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.iconClass : undefined;\n\t}\n\tset iconClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.iconClass = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget itemClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemClass : undefined;\n\t}\n\tset itemClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemClass = value : undefined;\n\t}\n\n\t/** @description Sets custom item template. */\n\t@Input()\n\tget itemTemplate(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemTemplate : undefined;\n\t}\n\tset itemTemplate(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemTemplate = value : undefined;\n\t}\n\n\t/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback, related to localization module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget modal(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.modal : undefined;\n\t}\n\tset modal(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.modal = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget position(): ToastPosition {\n\t\treturn this.nativeElement ? this.nativeElement.position : undefined;\n\t}\n\tset position(value: ToastPosition) {\n\t\tthis.nativeElement ? this.nativeElement.position = value : undefined;\n\t}\n\n\t/** @description If the element is readonly, users cannot interact with it. */\n\t@Input()\n\tget readonly(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.readonly : undefined;\n\t}\n\tset readonly(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.readonly = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether to show the toast item's close button. */\n\t@Input()\n\tget showCloseButton(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showCloseButton : undefined;\n\t}\n\tset showCloseButton(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showCloseButton = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n\n\t/** @description Sets speciffic CSS settings and icon to the toast items. */\n\t@Input()\n\tget type(): ToastType | null {\n\t\treturn this.nativeElement ? this.nativeElement.type : undefined;\n\t}\n\tset type(value: ToastType | null) {\n\t\tthis.nativeElement ? this.nativeElement.type = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Sets a text value to an toast item. */\n\t@Input()\n\tget value(): any {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the toast item is clicked.\n\t* @param event. The custom event. \t*/\n\t@Output() onItemClick: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is closed.\n\t* @param event. The custom event. \t*/\n\t@Output() onClose: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is opened.\n\t* @param event. The custom event. \t*/\n\t@Output() onOpen: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipebottom over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipebottom: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipeleft over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipeleft: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swiperight over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwiperight: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipetop over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipetop: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Closes all opened toast items. \n\t*/\n public closeAll(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeAll();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeAll();\n });\n }\n }\n\n\t/** @description Closes particular toast item. \n\t* @param {HTMLElement | string} item. The toast item (or its id) to remove.\n\t*/\n public closeItem(item: HTMLElement | string): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeItem(item);\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeItem(item);\n });\n }\n }\n\n\t/** @description Closes the last opened toast item. \n\t*/\n public closeLast(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeLast();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeLast();\n });\n }\n }\n\n\t/** @description Opens a new toast item and returns the opened smart-toast-item instance. \n\t* @param {HTMLElement | string} value?. The value for the toast item. If not set, the value property will be used.\n\t* @param {string} iconType?. The icon name for the toast item. If not set, the type property determines the icon type that will be used.\n\t* @returns {HTMLElement}\n */\n\tpublic async open(value?, iconType?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.open(value, iconType);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['itemClickHandler'] = (event: CustomEvent) => { that.onItemClick.emit(event); }\n\t\tthat.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\n\t\tthat.eventHandlers['closeHandler'] = (event: CustomEvent) => { that.onClose.emit(event); }\n\t\tthat.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);\n\n\t\tthat.eventHandlers['openHandler'] = (event: CustomEvent) => { that.onOpen.emit(event); }\n\t\tthat.nativeElement.addEventListener('open', that.eventHandlers['openHandler']);\n\n\t\tthat.eventHandlers['swipebottomHandler'] = (event: CustomEvent) => { that.onSwipebottom.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\n\t\tthat.eventHandlers['swipeleftHandler'] = (event: CustomEvent) => { that.onSwipeleft.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\n\t\tthat.eventHandlers['swiperightHandler'] = (event: CustomEvent) => { that.onSwiperight.emit(event); }\n\t\tthat.nativeElement.addEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\n\t\tthat.eventHandlers['swipetopHandler'] = (event: CustomEvent) => { that.onSwipetop.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['itemClickHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['closeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['openHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('open', that.eventHandlers['openHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipebottomHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipeleftHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swiperightHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipetopHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { ToastComponent } from './smart.toast';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [ToastComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [ToastComponent]\n})\n\nexport class ToastModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAca,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;QAChD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAA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,KAAK;gBAUF,QAAQ;sBADX,KAAK;gBAUF,KAAK;sBADR,KAAK;gBAUF,QAAQ;sBADX,KAAK;gBAUF,QAAQ;sBADX,KAAK;gBAUF,WAAW;sBADd,KAAK;gBAUF,eAAe;sBADlB,KAAK;gBAUF,KAAK;sBADR,KAAK;gBAUF,IAAI;sBADP,KAAK;gBAUF,WAAW;sBADd,KAAK;gBAUF,KAAK;sBADR,KAAK;gBAUI,WAAW;sBAApB,MAAM;gBAIG,OAAO;sBAAhB,MAAM;gBAIG,MAAM;sBAAf,MAAM;gBAIG,aAAa;sBAAtB,MAAM;gBAIG,WAAW;sBAApB,MAAM;gBAIG,YAAY;sBAArB,MAAM;gBAIG,UAAU;sBAAnB,MAAM;;;MC5OK,WAAW;;wGAAX,WAAW;yGAAX,WAAW,iBALL,cAAc,aAEtB,cAAc;yGAGZ,WAAW;2FAAX,WAAW;kBANvB,QAAQ;mBAAC;oBACN,YAAY,EAAE,CAAC,cAAc,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,cAAc,CAAC;iBACzB;;;ACTD;;;;;;"}
|
|
@@ -8,7 +8,7 @@ else {
|
|
|
8
8
|
import './../source/modules/smart.toast';
|
|
9
9
|
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
|
-
import { EventEmitter,
|
|
11
|
+
import { EventEmitter, Component, Output, Input, Directive, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
12
12
|
|
|
13
13
|
class BaseElement {
|
|
14
14
|
constructor(ref) {
|
|
@@ -79,10 +79,13 @@ class BaseElement {
|
|
|
79
79
|
this.nativeElement ? this.nativeElement.theme = value : undefined;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.
|
|
83
|
-
BaseElement.ɵ
|
|
82
|
+
BaseElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
+
BaseElement.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BaseElement, selector: "ng-component", inputs: { locale: "locale", localizeFormatFunction: "localizeFormatFunction", messages: "messages", rightToLeft: "rightToLeft", theme: "theme" }, outputs: { onCreate: "onCreate", onReady: "onReady", onAttach: "onAttach", onDetach: "onDetach" }, ngImport: i0, template: '', isInline: true });
|
|
84
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BaseElement, decorators: [{
|
|
85
|
-
type:
|
|
85
|
+
type: Component,
|
|
86
|
+
args: [{
|
|
87
|
+
template: ''
|
|
88
|
+
}]
|
|
86
89
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onCreate: [{
|
|
87
90
|
type: Output
|
|
88
91
|
}], onReady: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-webcomponents-angular-toast.mjs","sources":["../../toast/src/smart.element.ts","../../toast/src/smart.toast.ts","../../toast/src/smart.toast.module.ts","../../toast/src/smart-webcomponents-angular-toast.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { ElementRef, Input, Output, Directive, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n@Directive()\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { Toast } from './../index';\nimport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { Toast } from './../index';\n\n\n@Directive({\n\tselector: 'smart-toast, [smart-toast]'\n})\n\nexport class ToastComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<Toast>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as Toast;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic nativeElement: Toast;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <Toast>document.createElement('smart-toast');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n\t/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\n\t@Input()\n\tget animation(): Animation {\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\n\t}\n\tset animation(value: Animation) {\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget appendTo(): string {\n\t\treturn this.nativeElement ? this.nativeElement.appendTo : undefined;\n\t}\n\tset appendTo(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.appendTo = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether the toast will automatically close after duration equal to the autoCloseDelay property. */\n\t@Input()\n\tget autoClose(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoClose : undefined;\n\t}\n\tset autoClose(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoClose = value : undefined;\n\t}\n\n\t/** @description Sets or gets the duration after which the toast automatically closes (works only if the autoClose property is set to true). */\n\t@Input()\n\tget autoCloseDelay(): number {\n\t\treturn this.nativeElement ? this.nativeElement.autoCloseDelay : undefined;\n\t}\n\tset autoCloseDelay(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.autoCloseDelay = value : undefined;\n\t}\n\n\t/** @description Sets whether the toast will open automatically immediately after widget's initialization. */\n\t@Input()\n\tget autoOpen(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoOpen : undefined;\n\t}\n\tset autoOpen(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoOpen = value : undefined;\n\t}\n\n\t/** @description The user will not be able to interact with toast items when disabled is set to true. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget iconClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.iconClass : undefined;\n\t}\n\tset iconClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.iconClass = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget itemClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemClass : undefined;\n\t}\n\tset itemClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemClass = value : undefined;\n\t}\n\n\t/** @description Sets custom item template. */\n\t@Input()\n\tget itemTemplate(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemTemplate : undefined;\n\t}\n\tset itemTemplate(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemTemplate = value : undefined;\n\t}\n\n\t/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback, related to localization module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget modal(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.modal : undefined;\n\t}\n\tset modal(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.modal = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget position(): ToastPosition {\n\t\treturn this.nativeElement ? this.nativeElement.position : undefined;\n\t}\n\tset position(value: ToastPosition) {\n\t\tthis.nativeElement ? this.nativeElement.position = value : undefined;\n\t}\n\n\t/** @description If the element is readonly, users cannot interact with it. */\n\t@Input()\n\tget readonly(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.readonly : undefined;\n\t}\n\tset readonly(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.readonly = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether to show the toast item's close button. */\n\t@Input()\n\tget showCloseButton(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showCloseButton : undefined;\n\t}\n\tset showCloseButton(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showCloseButton = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n\n\t/** @description Sets speciffic CSS settings and icon to the toast items. */\n\t@Input()\n\tget type(): ToastType | null {\n\t\treturn this.nativeElement ? this.nativeElement.type : undefined;\n\t}\n\tset type(value: ToastType | null) {\n\t\tthis.nativeElement ? this.nativeElement.type = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Sets a text value to an toast item. */\n\t@Input()\n\tget value(): any {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the toast item is clicked.\n\t* @param event. The custom event. \t*/\n\t@Output() onItemClick: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is closed.\n\t* @param event. The custom event. \t*/\n\t@Output() onClose: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is opened.\n\t* @param event. The custom event. \t*/\n\t@Output() onOpen: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipebottom over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipebottom: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipeleft over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipeleft: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swiperight over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwiperight: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipetop over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipetop: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Closes all opened toast items. \n\t*/\n public closeAll(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeAll();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeAll();\n });\n }\n }\n\n\t/** @description Closes particular toast item. \n\t* @param {HTMLElement | string} item. The toast item (or its id) to remove.\n\t*/\n public closeItem(item: HTMLElement | string): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeItem(item);\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeItem(item);\n });\n }\n }\n\n\t/** @description Closes the last opened toast item. \n\t*/\n public closeLast(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeLast();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeLast();\n });\n }\n }\n\n\t/** @description Opens a new toast item and returns the opened smart-toast-item instance. \n\t* @param {HTMLElement | string} value?. The value for the toast item. If not set, the value property will be used.\n\t* @param {string} iconType?. The icon name for the toast item. If not set, the type property determines the icon type that will be used.\n\t* @returns {HTMLElement}\n */\n\tpublic async open(value?, iconType?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.open(value, iconType);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['itemClickHandler'] = (event: CustomEvent) => { that.onItemClick.emit(event); }\n\t\tthat.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\n\t\tthat.eventHandlers['closeHandler'] = (event: CustomEvent) => { that.onClose.emit(event); }\n\t\tthat.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);\n\n\t\tthat.eventHandlers['openHandler'] = (event: CustomEvent) => { that.onOpen.emit(event); }\n\t\tthat.nativeElement.addEventListener('open', that.eventHandlers['openHandler']);\n\n\t\tthat.eventHandlers['swipebottomHandler'] = (event: CustomEvent) => { that.onSwipebottom.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\n\t\tthat.eventHandlers['swipeleftHandler'] = (event: CustomEvent) => { that.onSwipeleft.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\n\t\tthat.eventHandlers['swiperightHandler'] = (event: CustomEvent) => { that.onSwiperight.emit(event); }\n\t\tthat.nativeElement.addEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\n\t\tthat.eventHandlers['swipetopHandler'] = (event: CustomEvent) => { that.onSwipetop.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['itemClickHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['closeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['openHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('open', that.eventHandlers['openHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipebottomHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipeleftHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swiperightHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipetopHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { ToastComponent } from './smart.toast';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [ToastComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [ToastComponent]\n})\n\nexport class ToastModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAWa,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;QAChD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;KACJ;IASM,gBAAgB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QAClI,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACnE;IAEM,mBAAmB,CAAC,IAAY,EAAE,QAA4C,EAAE,UAA6C,KAAK;QACxI,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KAChE;IAEM,aAAa,CAAC,KAAY;QAChC,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC/C;IAEM,IAAI;QACV,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;KAC1B;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ACzB;;;ACTD;;;;;;"}
|
|
1
|
+
{"version":3,"file":"smart-webcomponents-angular-toast.mjs","sources":["../../toast/src/smart.element.ts","../../toast/src/smart.toast.ts","../../toast/src/smart.toast.module.ts","../../toast/src/smart-webcomponents-angular-toast.ts"],"sourcesContent":["\ndeclare global {\n interface Window {\n Smart: any;\n}\n}\n\n\nimport { Component, ElementRef, Input, Output, EventEmitter } from '@angular/core';\nimport { ElementRenderMode } from './../index';\n\n@Component({\n template: ''\n})\nexport class BaseElement {\n constructor(ref: ElementRef) {\n const that = this;\n this.nativeElement = ref.nativeElement as any;\n\n that.nativeElement.onAttached = () => {\n that.onAttach.emit(that.nativeElement);\n }\n\n that.nativeElement.onDetached = () => {\n that.onDetach.emit(that.nativeElement);\n }\n }\n\n @Output() onCreate: EventEmitter<any> = new EventEmitter();\n @Output() onReady: EventEmitter<any> = new EventEmitter();\n @Output() onAttach: EventEmitter<any> = new EventEmitter();\n @Output() onDetach: EventEmitter<any> = new EventEmitter();\n\n public nativeElement: any;\n\n public addEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n this.nativeElement.addEventListener(type, listener, options);\n\t}\n\n\tpublic removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions = false): void {\n\t\tthis.nativeElement.removeEventListener(type, listener, options);\n\t}\n\n\tpublic dispatchEvent(event: Event): boolean {\n\t\treturn this.nativeElement.dispatchEvent(event);\n\t}\n\n\tpublic blur(): void {\n\t\tthis.nativeElement.blur();\n\t}\n\n\tpublic click(): void {\n\t\tthis.nativeElement.click();\n\t}\n\n\tpublic focus(options?: FocusOptions): void {\n\t\tthis.nativeElement.focus(options);\n\t}\n\n/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n}\n\nexport const Smart: any = window.Smart;\n\n","import { Toast } from './../index';\nimport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nimport { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';\nimport { BaseElement, Smart } from './smart.element';\nexport { Animation, ToastPosition, ToastType, ElementRenderMode} from './../index';\nexport { Smart } from './smart.element';\nexport { Toast } from './../index';\n\n\n@Directive({\n\tselector: 'smart-toast, [smart-toast]'\n})\n\nexport class ToastComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n\tconstructor(ref: ElementRef<Toast>) {\n\t\tsuper(ref);\n\t\tthis.nativeElement = ref.nativeElement as Toast;\n\t}\n\n\tprivate eventHandlers: any[] = [];\n\n\tpublic nativeElement: Toast;\n\t/** @description Creates the component on demand.\n\t * @param properties An optional object of properties, which will be added to the template binded ones.\n\t */\n\tpublic createComponent(properties = {}): any {\n \tthis.nativeElement = <Toast>document.createElement('smart-toast');\n\t\tfor (let propertyName in properties) { \n \t\t\tthis.nativeElement[propertyName] = properties[propertyName];\n\t\t}\n\t\treturn this.nativeElement;\n\t}\n\t/** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */\n\t@Input()\n\tget animation(): Animation {\n\t\treturn this.nativeElement ? this.nativeElement.animation : undefined;\n\t}\n\tset animation(value: Animation) {\n\t\tthis.nativeElement ? this.nativeElement.animation = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget appendTo(): string {\n\t\treturn this.nativeElement ? this.nativeElement.appendTo : undefined;\n\t}\n\tset appendTo(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.appendTo = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether the toast will automatically close after duration equal to the autoCloseDelay property. */\n\t@Input()\n\tget autoClose(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoClose : undefined;\n\t}\n\tset autoClose(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoClose = value : undefined;\n\t}\n\n\t/** @description Sets or gets the duration after which the toast automatically closes (works only if the autoClose property is set to true). */\n\t@Input()\n\tget autoCloseDelay(): number {\n\t\treturn this.nativeElement ? this.nativeElement.autoCloseDelay : undefined;\n\t}\n\tset autoCloseDelay(value: number) {\n\t\tthis.nativeElement ? this.nativeElement.autoCloseDelay = value : undefined;\n\t}\n\n\t/** @description Sets whether the toast will open automatically immediately after widget's initialization. */\n\t@Input()\n\tget autoOpen(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.autoOpen : undefined;\n\t}\n\tset autoOpen(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.autoOpen = value : undefined;\n\t}\n\n\t/** @description The user will not be able to interact with toast items when disabled is set to true. */\n\t@Input()\n\tget disabled(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.disabled : undefined;\n\t}\n\tset disabled(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.disabled = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget iconClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.iconClass : undefined;\n\t}\n\tset iconClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.iconClass = value : undefined;\n\t}\n\n\t/** @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). */\n\t@Input()\n\tget itemClass(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemClass : undefined;\n\t}\n\tset itemClass(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemClass = value : undefined;\n\t}\n\n\t/** @description Sets custom item template. */\n\t@Input()\n\tget itemTemplate(): string {\n\t\treturn this.nativeElement ? this.nativeElement.itemTemplate : undefined;\n\t}\n\tset itemTemplate(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.itemTemplate = value : undefined;\n\t}\n\n\t/** @description Sets or gets the language. Used in conjunction with the property messages. */\n\t@Input()\n\tget locale(): string {\n\t\treturn this.nativeElement ? this.nativeElement.locale : undefined;\n\t}\n\tset locale(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.locale = value : undefined;\n\t}\n\n\t/** @description Callback, related to localization module. */\n\t@Input()\n\tget localizeFormatFunction(): any {\n\t\treturn this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;\n\t}\n\tset localizeFormatFunction(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;\n\t}\n\n\t/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */\n\t@Input()\n\tget messages(): any {\n\t\treturn this.nativeElement ? this.nativeElement.messages : undefined;\n\t}\n\tset messages(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.messages = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget modal(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.modal : undefined;\n\t}\n\tset modal(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.modal = value : undefined;\n\t}\n\n\t/** @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. */\n\t@Input()\n\tget position(): ToastPosition {\n\t\treturn this.nativeElement ? this.nativeElement.position : undefined;\n\t}\n\tset position(value: ToastPosition) {\n\t\tthis.nativeElement ? this.nativeElement.position = value : undefined;\n\t}\n\n\t/** @description If the element is readonly, users cannot interact with it. */\n\t@Input()\n\tget readonly(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.readonly : undefined;\n\t}\n\tset readonly(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.readonly = value : undefined;\n\t}\n\n\t/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */\n\t@Input()\n\tget rightToLeft(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.rightToLeft : undefined;\n\t}\n\tset rightToLeft(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.rightToLeft = value : undefined;\n\t}\n\n\t/** @description Sets or gets whether to show the toast item's close button. */\n\t@Input()\n\tget showCloseButton(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.showCloseButton : undefined;\n\t}\n\tset showCloseButton(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.showCloseButton = value : undefined;\n\t}\n\n\t/** @description Determines the theme. Theme defines the look of the element */\n\t@Input()\n\tget theme(): string {\n\t\treturn this.nativeElement ? this.nativeElement.theme : undefined;\n\t}\n\tset theme(value: string) {\n\t\tthis.nativeElement ? this.nativeElement.theme = value : undefined;\n\t}\n\n\t/** @description Sets speciffic CSS settings and icon to the toast items. */\n\t@Input()\n\tget type(): ToastType | null {\n\t\treturn this.nativeElement ? this.nativeElement.type : undefined;\n\t}\n\tset type(value: ToastType | null) {\n\t\tthis.nativeElement ? this.nativeElement.type = value : undefined;\n\t}\n\n\t/** @description If is set to true, the element cannot be focused. */\n\t@Input()\n\tget unfocusable(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.unfocusable : undefined;\n\t}\n\tset unfocusable(value: boolean) {\n\t\tthis.nativeElement ? this.nativeElement.unfocusable = value : undefined;\n\t}\n\n\t/** @description Sets a text value to an toast item. */\n\t@Input()\n\tget value(): any {\n\t\treturn this.nativeElement ? this.nativeElement.value : undefined;\n\t}\n\tset value(value: any) {\n\t\tthis.nativeElement ? this.nativeElement.value = value : undefined;\n\t}\n\n\t/** @description This event is triggered when the toast item is clicked.\n\t* @param event. The custom event. \t*/\n\t@Output() onItemClick: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is closed.\n\t* @param event. The custom event. \t*/\n\t@Output() onClose: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered when the toast item is opened.\n\t* @param event. The custom event. \t*/\n\t@Output() onOpen: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipebottom over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipebottom: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipeleft over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipeleft: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swiperight over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwiperight: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description This event is triggered on swipetop over an toast item.\n\t* @param event. The custom event. \t*/\n\t@Output() onSwipetop: EventEmitter<CustomEvent> = new EventEmitter();\n\n\t/** @description Closes all opened toast items. \n\t*/\n public closeAll(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeAll();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeAll();\n });\n }\n }\n\n\t/** @description Closes particular toast item. \n\t* @param {HTMLElement | string} item. The toast item (or its id) to remove.\n\t*/\n public closeItem(item: HTMLElement | string): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeItem(item);\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeItem(item);\n });\n }\n }\n\n\t/** @description Closes the last opened toast item. \n\t*/\n public closeLast(): void {\n if (this.nativeElement.isRendered) {\n this.nativeElement.closeLast();\n }\n else\n {\n this.nativeElement.whenRendered(() => {\n this.nativeElement.closeLast();\n });\n }\n }\n\n\t/** @description Opens a new toast item and returns the opened smart-toast-item instance. \n\t* @param {HTMLElement | string} value?. The value for the toast item. If not set, the value property will be used.\n\t* @param {string} iconType?. The icon name for the toast item. If not set, the type property determines the icon type that will be used.\n\t* @returns {HTMLElement}\n */\n\tpublic async open(value?, iconType?): Promise<any> {\n\t\tconst getResultOnRender = () => {\n return new Promise(resolve => {\n this.nativeElement.whenRendered(() => {\n const result = this.nativeElement.open(value, iconType);\n resolve(result)\n });\n });\n };\n const result = await getResultOnRender();\n\n return result;\n }\n\n\n\tget isRendered(): boolean {\n\t\treturn this.nativeElement ? this.nativeElement.isRendered : false;\n\t}\n\n\tngOnInit() {\n\t}\n\n ngAfterViewInit() {\n const that = this;\n\n that.onCreate.emit(that.nativeElement);\n\n\t\tSmart.Render();\n\n\t\tthis.nativeElement.classList.add('smart-angular');\n\n\t\tthis.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });\n\t\tthis.listen();\n\t}\n\n\tngOnDestroy() {\n\t\tthis.unlisten();\n\t}\n\n\tngOnChanges(changes: SimpleChanges) {\n\t\tif (this.nativeElement && this.nativeElement.isRendered) {\n\t\t\tfor (const propName in changes) {\n\t\t\t\tif (changes.hasOwnProperty(propName)) {\n\t\t\t\t\tthis.nativeElement[propName] = changes[propName].currentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/** @description Add event listeners. */\n\tprivate listen(): void {\n const that = this;\n\t\tthat.eventHandlers['itemClickHandler'] = (event: CustomEvent) => { that.onItemClick.emit(event); }\n\t\tthat.nativeElement.addEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\n\t\tthat.eventHandlers['closeHandler'] = (event: CustomEvent) => { that.onClose.emit(event); }\n\t\tthat.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);\n\n\t\tthat.eventHandlers['openHandler'] = (event: CustomEvent) => { that.onOpen.emit(event); }\n\t\tthat.nativeElement.addEventListener('open', that.eventHandlers['openHandler']);\n\n\t\tthat.eventHandlers['swipebottomHandler'] = (event: CustomEvent) => { that.onSwipebottom.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\n\t\tthat.eventHandlers['swipeleftHandler'] = (event: CustomEvent) => { that.onSwipeleft.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\n\t\tthat.eventHandlers['swiperightHandler'] = (event: CustomEvent) => { that.onSwiperight.emit(event); }\n\t\tthat.nativeElement.addEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\n\t\tthat.eventHandlers['swipetopHandler'] = (event: CustomEvent) => { that.onSwipetop.emit(event); }\n\t\tthat.nativeElement.addEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\n\t}\n\n\t/** @description Remove event listeners. */\n\tprivate unlisten(): void {\n const that = this;\n\t\tif (that.eventHandlers['itemClickHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('itemClick', that.eventHandlers['itemClickHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['closeHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['openHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('open', that.eventHandlers['openHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipebottomHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipebottom', that.eventHandlers['swipebottomHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipeleftHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipeleft', that.eventHandlers['swipeleftHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swiperightHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swiperight', that.eventHandlers['swiperightHandler']);\n\t\t}\n\n\t\tif (that.eventHandlers['swipetopHandler']) {\n\t\t\tthat.nativeElement.removeEventListener('swipetop', that.eventHandlers['swipetopHandler']);\n\t\t}\n\n\t}\n}\n","import { NgModule } from '@angular/core';\n\nimport { ToastComponent } from './smart.toast';\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n@NgModule({\n declarations: [ToastComponent],\n\tschemas: [CUSTOM_ELEMENTS_SCHEMA],\n\texports: [ToastComponent]\n})\n\nexport class ToastModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAca,WAAW;IACpB,YAAY,GAAe;QAajB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,YAAO,GAAsB,IAAI,YAAY,EAAE,CAAC;QAChD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QACjD,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAfvD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC,aAAoB,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC1C,CAAA;QAED,IAAI,CAAC,aAAa,CAAC,UAAU,GAAG;YAC5B,IAAI,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BAUF,QAAQ;sBADX,KAAK;gBAUF,WAAW;sBADd,KAAK;gBAUF,eAAe;sBADlB,KAAK;gBAUF,KAAK;sBADR,KAAK;gBAUF,IAAI;sBADP,KAAK;gBAUF,WAAW;sBADd,KAAK;gBAUF,KAAK;sBADR,KAAK;gBAUI,WAAW;sBAApB,MAAM;gBAIG,OAAO;sBAAhB,MAAM;gBAIG,MAAM;sBAAf,MAAM;gBAIG,aAAa;sBAAtB,MAAM;gBAIG,WAAW;sBAApB,MAAM;gBAIG,YAAY;sBAArB,MAAM;gBAIG,UAAU;sBAAnB,MAAM;;;MC5OK,WAAW;;wGAAX,WAAW;yGAAX,WAAW,iBALL,cAAc,aAEtB,cAAc;yGAGZ,WAAW;2FAAX,WAAW;kBANvB,QAAQ;mBAAC;oBACN,YAAY,EAAE,CAAC,cAAc,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,cAAc,CAAC;iBACzB;;;ACTD;;;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -14076,9 +14076,10 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14076
14076
|
onEndEdit?: ((this: any, ev: Event) => any) | ((this: any, ev: CustomEvent<any>) => any) | null;
|
|
14077
14077
|
/**
|
|
14078
14078
|
* This event is triggered, when a filter is added or removed.
|
|
14079
|
-
* @param event. The custom event. Custom data event was created with: ev.detail(columns, data)
|
|
14079
|
+
* @param event. The custom event. Custom data event was created with: ev.detail(columns, data, expressions)
|
|
14080
14080
|
* columns - Array of columns.
|
|
14081
|
-
* data - Array of {dataField: string, filter:
|
|
14081
|
+
* data - Array of {dataField: string, filter: object}. <em>dataField</em> is the column's data field. <em>filter</em> is a FilterGroup object.
|
|
14082
|
+
* expressions - Array of {dataField: string, filter: string}. <em>dataField</em> is the column's data field. <em>filter</em> is a filter expression like 'startsWith B'. In each array item, you will have an object with column's name and filter string. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '<= 3 and >= 8']], [['firstName', 'EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']], [['lastName','CONTAINS' 'burke' or 'CONTAINS' 'peterson']]. Filter conditions used in the filter expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
14082
14083
|
*/
|
|
14083
14084
|
onFilter?: ((this: any, ev: Event) => any) | ((this: any, ev: CustomEvent<any>) => any) | null;
|
|
14084
14085
|
/**
|
|
@@ -14152,19 +14153,19 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14152
14153
|
addUnboundRow(count: number, position?: string): boolean;
|
|
14153
14154
|
/**
|
|
14154
14155
|
* Adds a filter to a column. This method will apply a filter to the Grid data.
|
|
14155
|
-
* @param {string} dataField. column bound data field
|
|
14156
|
-
* @param {string} filter. Filter expression like: 'startsWith B'
|
|
14157
|
-
* @param {boolean} refreshFilters?.
|
|
14156
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14157
|
+
* @param {string} filter. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '<= 3 and >= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
14158
|
+
* @param {boolean} refreshFilters?. Set this to false, if you will use multiple 'addFilter' calls. By doing this, you will avoid unnecessary renders.
|
|
14158
14159
|
*/
|
|
14159
14160
|
addFilter(dataField: string, filter: string, refreshFilters?: boolean): void;
|
|
14160
14161
|
/**
|
|
14161
14162
|
* Groups the Grid by a data field. This method will add a group to the Grid when grouping is enabled.
|
|
14162
|
-
* @param {string} dataField. column bound data field
|
|
14163
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14163
14164
|
*/
|
|
14164
14165
|
addGroup(dataField: string): void;
|
|
14165
14166
|
/**
|
|
14166
14167
|
* Sorts the Grid by a data field. This method will add a sorting to the Grid when sorting is enabled.
|
|
14167
|
-
* @param {string} dataField. column bound data field
|
|
14168
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14168
14169
|
* @param {string} sortOrder. column's sort order. Use 'asc' or 'desc'.
|
|
14169
14170
|
*/
|
|
14170
14171
|
addSort(dataField: string, sortOrder: string): void;
|
|
@@ -14188,7 +14189,7 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14188
14189
|
/**
|
|
14189
14190
|
* Begins row, cell or column. This method allows you to programmatically start a cell, row or column editing. After calling it, an editor HTMLElement will be created and displayed in the Grid.
|
|
14190
14191
|
* @param {string | number} rowId. row bound id
|
|
14191
|
-
* @param {string} dataField?. column bound data field
|
|
14192
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14192
14193
|
*/
|
|
14193
14194
|
beginEdit(rowId: string | number, dataField?: string): void;
|
|
14194
14195
|
/**
|
|
@@ -14252,7 +14253,7 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14252
14253
|
/**
|
|
14253
14254
|
* Scrolls to a row or cell. This method scrolls to a row or cell, when scrolling is necessary. If pagination is enabled, it will automatically change the page.
|
|
14254
14255
|
* @param {string | number} rowId. row bound id
|
|
14255
|
-
* @param {string} dataField?. column bound data field
|
|
14256
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14256
14257
|
* @returns {boolean}
|
|
14257
14258
|
*/
|
|
14258
14259
|
ensureVisible(rowId: string | number, dataField?: string): boolean;
|
|
@@ -14378,13 +14379,13 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14378
14379
|
/**
|
|
14379
14380
|
* Gets a value of a cell.
|
|
14380
14381
|
* @param {string | number} rowId. row bound id
|
|
14381
|
-
* @param {string} dataField. column bound data field
|
|
14382
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14382
14383
|
* @returns {any}
|
|
14383
14384
|
*/
|
|
14384
14385
|
getCellValue(rowId: string | number, dataField: string): any;
|
|
14385
14386
|
/**
|
|
14386
14387
|
* Gets a value of a column.
|
|
14387
|
-
* @param {string} dataField. column bound data field
|
|
14388
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14388
14389
|
* @param {string} propertyName. The property name.
|
|
14389
14390
|
* @returns {any}
|
|
14390
14391
|
*/
|
|
@@ -14425,13 +14426,13 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14425
14426
|
hideDetail(rowId: string | number): void;
|
|
14426
14427
|
/**
|
|
14427
14428
|
* Highlights a column. Highlights a Grid column.
|
|
14428
|
-
* @param {string} dataField. column bound data field
|
|
14429
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14429
14430
|
*/
|
|
14430
14431
|
highlightColumn(dataField: string): void;
|
|
14431
14432
|
/**
|
|
14432
14433
|
* Highlights a cell. Calling the method a second time toggle the highlight state.
|
|
14433
14434
|
* @param {string | number} rowId. row bound id
|
|
14434
|
-
* @param {string} dataField. column bound data field
|
|
14435
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14435
14436
|
* @param {string} className?. CSS Class Name
|
|
14436
14437
|
*/
|
|
14437
14438
|
highlightCell(rowId: string | number, dataField: string, className?: string): void;
|
|
@@ -14443,7 +14444,7 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14443
14444
|
highlightRow(rowId: string | number, className?: string): void;
|
|
14444
14445
|
/**
|
|
14445
14446
|
* Opens a column drop-down menu.
|
|
14446
|
-
* @param {string} dataField. column bound data field
|
|
14447
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14447
14448
|
*/
|
|
14448
14449
|
openMenu(dataField: string): void;
|
|
14449
14450
|
/**
|
|
@@ -14464,18 +14465,18 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14464
14465
|
refreshView(): void;
|
|
14465
14466
|
/**
|
|
14466
14467
|
* Removes a column filter.
|
|
14467
|
-
* @param {string} dataField. column bound data field
|
|
14468
|
-
* @param {boolean} refreshFilters?.
|
|
14468
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14469
|
+
* @param {boolean} refreshFilters?. Set this to false, if you need to make multiple removeFilter calls.
|
|
14469
14470
|
*/
|
|
14470
14471
|
removeFilter(dataField: string, refreshFilters?: boolean): void;
|
|
14471
14472
|
/**
|
|
14472
14473
|
* Removes a group by data field. This method will remove a group to the Grid when grouping is enabled.
|
|
14473
|
-
* @param {string} dataField. column bound data field
|
|
14474
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14474
14475
|
*/
|
|
14475
14476
|
removeGroup(dataField: string): void;
|
|
14476
14477
|
/**
|
|
14477
14478
|
* Removes a sorting by data field. This method will remove a sorting from a Grid column.
|
|
14478
|
-
* @param {string} dataField. column bound data field
|
|
14479
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14479
14480
|
*/
|
|
14480
14481
|
removeSort(dataField: string): void;
|
|
14481
14482
|
/**
|
|
@@ -14495,7 +14496,7 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14495
14496
|
reorderColumns(dataField: string | number, referenceDataField: string | number, insertAfter?: boolean): void;
|
|
14496
14497
|
/**
|
|
14497
14498
|
* Sorts the Grid by a data field. This method will add or remove sorting, when sorting is enabled. To remove the sorting, use 'null' for the sortOrder parameter.
|
|
14498
|
-
* @param {string} dataField. column bound data field
|
|
14499
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14499
14500
|
* @param {string | null} sortOrder. column's sort order. Use 'asc', 'desc' or null.
|
|
14500
14501
|
*/
|
|
14501
14502
|
sortBy(dataField: string, sortOrder: string | null): void;
|
|
@@ -14546,13 +14547,13 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14546
14547
|
/**
|
|
14547
14548
|
* Sets a new value to a cell.
|
|
14548
14549
|
* @param {string | number} rowId. row bound id
|
|
14549
|
-
* @param {string} dataField. column bound data field
|
|
14550
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14550
14551
|
* @param {string | number | Date | boolean} value. New Cell value.
|
|
14551
14552
|
*/
|
|
14552
14553
|
setCellValue(rowId: string | number, dataField: string, value: string | number | Date | boolean): void;
|
|
14553
14554
|
/**
|
|
14554
14555
|
* Sets a property to a column.
|
|
14555
|
-
* @param {string} dataField. column bound data field
|
|
14556
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14556
14557
|
* @param {string} propertyName. The column property's name.
|
|
14557
14558
|
* @param {any} value. The new property value.
|
|
14558
14559
|
*/
|
|
@@ -14589,7 +14590,7 @@ export interface Grid extends BaseElement, GridProperties {
|
|
|
14589
14590
|
/**
|
|
14590
14591
|
* Unselects a row, cell or column.
|
|
14591
14592
|
* @param {string | number} rowId. row bound id
|
|
14592
|
-
* @param {string} dataField?. column bound data field
|
|
14593
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
14593
14594
|
*/
|
|
14594
14595
|
unselect(rowId: string | number, dataField?: string): void;
|
|
14595
14596
|
/**
|
|
@@ -15076,7 +15077,7 @@ export interface GridColumn {
|
|
|
15076
15077
|
*/
|
|
15077
15078
|
freeze?: Position;
|
|
15078
15079
|
/**
|
|
15079
|
-
* Sets or gets the filter of the column.
|
|
15080
|
+
* Sets or gets the filter of the column. Example: ['contains Andrew or contains Nancy']. Example with numeric filter ['quantity', '<= 3 and >= 8']. Additional example with filter which we want to apply to a column with filterMenuMode='excel' - ['EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']. Example with a string filter applied to a string column - ['CONTAINS' 'burke' or 'CONTAINS' 'peterson']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
15080
15081
|
* Default value: ""
|
|
15081
15082
|
*/
|
|
15082
15083
|
filter?: string;
|
|
@@ -15897,7 +15898,7 @@ export interface GridFiltering {
|
|
|
15897
15898
|
*/
|
|
15898
15899
|
enabled?: boolean;
|
|
15899
15900
|
/**
|
|
15900
|
-
* An array of filtering conditions to apply to the DataGrid. Each member of the filter array is an array with two members. The first one is the column dataField to apply the filter to. The second one is the filtering condition. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '<= 3 and >= 8']]
|
|
15901
|
+
* An array of filtering conditions to apply to the DataGrid. Each member of the filter array is an array with two members. The first one is the column dataField to apply the filter to. The second one is the filtering condition. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '<= 3 and >= 8']]. Additional example with filter which we want to apply to a column with filterMenuMode='excel' - [['firstName', 'EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']]. Example with a string filter applied to a string column - [['lastName','CONTAINS' 'burke' or 'CONTAINS' 'peterson']]. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
15901
15902
|
* Default value:
|
|
15902
15903
|
*/
|
|
15903
15904
|
filter?: any[];
|
|
@@ -24546,6 +24547,14 @@ export interface Scheduler extends BaseElement, SchedulerProperties {
|
|
|
24546
24547
|
* originalEvent - The original event object.
|
|
24547
24548
|
*/
|
|
24548
24549
|
onDragEnd: ((this: any, ev: Event) => any) | null;
|
|
24550
|
+
/**
|
|
24551
|
+
* This event is triggered when the user drops an item over a cell.
|
|
24552
|
+
* @param event. The custom event. Custom data event was created with: ev.detail(target, date, allDay)
|
|
24553
|
+
* target - The HTMLElement that corresponds to the event that is dragged.
|
|
24554
|
+
* date - The cell's date under the pointer.
|
|
24555
|
+
* allDay - Boolean value, which is true when the cell under the pointer is all day cell.
|
|
24556
|
+
*/
|
|
24557
|
+
onDropoverCell?: ((this: any, ev: Event) => any) | ((this: any, ev: CustomEvent<any>) => any) | null;
|
|
24549
24558
|
/**
|
|
24550
24559
|
* This event is triggered when resizing of a task starts. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
|
|
24551
24560
|
* @param event. The custom event. Custom data event was created with: ev.detail(target, item, itemDateRange, originalEvent)
|
|
@@ -26625,6 +26634,11 @@ export interface TableProperties {
|
|
|
26625
26634
|
* Default value: null
|
|
26626
26635
|
*/
|
|
26627
26636
|
conditionalFormatting?: TableConditionalFormatting[];
|
|
26637
|
+
/**
|
|
26638
|
+
* Sets or gets the column menu. When you set this property to true, each column will have a column menu. From the column menu, you will be able to sort, filter, show or hide columns.
|
|
26639
|
+
* Default value: false
|
|
26640
|
+
*/
|
|
26641
|
+
columnMenu?: boolean;
|
|
26628
26642
|
/**
|
|
26629
26643
|
* Sets or gets the column sizing behavior. In 'auto' mode Columns are automatically sized based on their content and the value of the columnMinWidth property, unless there is not enough space in the Table, in which case ellipses are shown. User-set static column width is still respected. In 'default' mode Columns are sized according to the rules of the standard HTML table element's table-layout: fixed. Custom width can also be applied to columns in this case by setting the column width property.
|
|
26630
26644
|
* Default value: default
|
|
@@ -26735,6 +26749,11 @@ export interface TableProperties {
|
|
|
26735
26749
|
* Default value: false
|
|
26736
26750
|
*/
|
|
26737
26751
|
keyboardNavigation?: boolean;
|
|
26752
|
+
/**
|
|
26753
|
+
* Sets or gets whether the checkboxes are displayed in the selection column.
|
|
26754
|
+
* Default value: false
|
|
26755
|
+
*/
|
|
26756
|
+
hideSelectionColumn?: boolean;
|
|
26738
26757
|
/**
|
|
26739
26758
|
* Sets or gets the behavior when loading column settings either via autoLoadState or loadState. Applicable only when stateSettings contains 'columns'.
|
|
26740
26759
|
* Default value: implementationOnly
|
package/package.json
CHANGED
package/source/smart.button.js
CHANGED
package/source/smart.element.js
CHANGED
package/source/smart.toast.js
CHANGED
package/toast/smart.element.d.ts
CHANGED
|
@@ -34,6 +34,6 @@ export declare class BaseElement {
|
|
|
34
34
|
get theme(): string;
|
|
35
35
|
set theme(value: string);
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseElement, never>;
|
|
37
|
-
static
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseElement, "ng-component", never, { "locale": "locale"; "localizeFormatFunction": "localizeFormatFunction"; "messages": "messages"; "rightToLeft": "rightToLeft"; "theme": "theme"; }, { "onCreate": "onCreate"; "onReady": "onReady"; "onAttach": "onAttach"; "onDetach": "onDetach"; }, never, never>;
|
|
38
38
|
}
|
|
39
39
|
export declare const Smart: any;
|