@progress/kendo-vue-notification 11.0.0 → 11.1.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Notification.d.ts +47 -21
- package/NotificationGroup.d.ts +17 -4
- package/dist/cdn/js/kendo-vue-notification.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +4 -4
package/Notification.d.ts
CHANGED
|
@@ -7,70 +7,96 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PropType } from 'vue';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Represents the object of the `close` Notification event.
|
|
11
11
|
*/
|
|
12
12
|
export interface NotificationEvent {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The native DOM event.
|
|
15
15
|
*/
|
|
16
16
|
event: Event;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* The Notification instance that fires the event.
|
|
19
19
|
*/
|
|
20
20
|
target: Notification;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Represents the props of the [Kendo UI for Vue Notification component](
|
|
23
|
+
* Represents the props of the [Kendo UI for Vue Notification component](slug:overview_notification).
|
|
24
24
|
*/
|
|
25
25
|
export interface NotificationProps {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
27
|
+
* Sets if the user has to close the Notification.
|
|
28
|
+
* When you set it to `true`, the Notification renders a **Close** button.
|
|
29
|
+
* When you set it to an object, the Notification renders a **Close** button
|
|
30
|
+
* and adds the object to the default props of the button.
|
|
31
31
|
*
|
|
32
|
-
* The
|
|
32
|
+
* The available options are:
|
|
33
33
|
* * (Default) `false`
|
|
34
34
|
* * `true`
|
|
35
35
|
* * `{ title: 'Hide', ... }`
|
|
36
|
+
*
|
|
37
|
+
* @default `false`
|
|
36
38
|
*/
|
|
37
39
|
closable?: boolean | any;
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
41
|
+
* Sets the `dir` HTML attribute of the Notification. Use it to switch between LTR and RTL.
|
|
40
42
|
*/
|
|
41
43
|
dir?: string;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
44
|
-
* ([see example](
|
|
45
|
+
* Sets the type of the Notification
|
|
46
|
+
* ([see example](slug:types_notification)).
|
|
45
47
|
*
|
|
46
|
-
* The
|
|
48
|
+
* The available options are:
|
|
47
49
|
* * `style: 'none'|'base'|'primary'|'secondary'|'tertiary'|'success'|'error'|'warning'|'info'|'inverse'`. Defaults to `none`.
|
|
48
50
|
* * `icon?: 'true'|'false'`. Defaults to `true`.
|
|
51
|
+
*
|
|
52
|
+
* @default `{ style: 'none', icon: true }`
|
|
49
53
|
*/
|
|
50
54
|
type?: {
|
|
51
55
|
style?: 'none' | 'base' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'error' | 'warning' | 'info' | 'inverse';
|
|
52
56
|
icon?: boolean;
|
|
53
57
|
};
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* Sets the theme color of the Notification. The Notification uses it only when `type.style` is `none`.
|
|
60
|
+
*
|
|
61
|
+
* The available options are:
|
|
62
|
+
* - `base`
|
|
63
|
+
* - `primary`
|
|
64
|
+
* - `secondary`
|
|
65
|
+
* - `tertiary`
|
|
66
|
+
* - `error`
|
|
67
|
+
* - `info`
|
|
68
|
+
* - `success`
|
|
69
|
+
* - `warning`
|
|
70
|
+
* - `inverse`
|
|
56
71
|
*/
|
|
57
72
|
themeColor?: string;
|
|
58
73
|
/**
|
|
59
|
-
*
|
|
74
|
+
* Fires when the user clicks the **Close** button.
|
|
60
75
|
*/
|
|
61
76
|
onClose?: (event: NotificationEvent) => void;
|
|
62
77
|
/**
|
|
63
|
-
*
|
|
78
|
+
* Sets the `aria-label` attribute of the Notification.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* This property is related to accessibility.
|
|
64
82
|
*/
|
|
65
83
|
ariaLabel?: string;
|
|
66
84
|
}
|
|
67
85
|
/**
|
|
68
|
-
* Represents the [Kendo UI for Vue Notification component](
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* ### props <span class='code'>Readonly<[NotificationProps]({% slug api_notification_notificationprops %})</span>
|
|
72
|
-
* The props of the Notification component.
|
|
86
|
+
* Represents the [Kendo UI for Vue Notification component](slug:overview_notification).
|
|
87
|
+
* Accepts properties of type [NotificationProps](slug:api_notification_notificationprops).
|
|
73
88
|
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```vue
|
|
91
|
+
* <Notification
|
|
92
|
+
* :type="{ style: 'success', icon: true }"
|
|
93
|
+
* :closable="true"
|
|
94
|
+
* :aria-label="'Payment status'"
|
|
95
|
+
* @close="onClose"
|
|
96
|
+
* >
|
|
97
|
+
* <span>Payment of $1,250.00 was received.</span>
|
|
98
|
+
* </Notification>
|
|
99
|
+
* ```
|
|
74
100
|
*/
|
|
75
101
|
declare const Notification: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
76
102
|
closable: {
|
package/NotificationGroup.d.ts
CHANGED
|
@@ -7,20 +7,33 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PropType } from 'vue';
|
|
9
9
|
/**
|
|
10
|
-
* Represents the props of the [Kendo UI for Vue NotificationGroup component](
|
|
10
|
+
* Represents the props of the [Kendo UI for Vue NotificationGroup component](slug:api_notification_notificationgroup).
|
|
11
11
|
*/
|
|
12
12
|
export interface NotificationGroupProps {
|
|
13
13
|
/**
|
|
14
|
-
* Sets
|
|
14
|
+
* Sets a CSS class on the NotificationGroup element.
|
|
15
15
|
*/
|
|
16
16
|
className?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the styles of the NotificationGroup element. Use it to position the group on the page.
|
|
19
19
|
*/
|
|
20
20
|
style?: object;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Represents the [Kendo UI for Vue NotificationGroup component](
|
|
23
|
+
* Represents the [Kendo UI for Vue NotificationGroup component](slug:positioning_notification). Use it to set the position of one or more Notification components.
|
|
24
|
+
* Accepts properties of type [NotificationGroupProps](slug:api_notification_notificationgroupprops).
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```vue
|
|
28
|
+
* <NotificationGroup :style="{ right: 0, bottom: 0, alignItems: 'flex-start' }">
|
|
29
|
+
* <Notification :type="{ style: 'info', icon: true }">
|
|
30
|
+
* <span>Shipment #SH-4471 left the warehouse.</span>
|
|
31
|
+
* </Notification>
|
|
32
|
+
* </NotificationGroup>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Supported children components are: {@link Notification}.
|
|
24
37
|
*/
|
|
25
38
|
declare const NotificationGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
26
39
|
style: PropType<object>;
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-svg-icons"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-svg-icons","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueNotification={},e.Vue,e.KendoSVGIcons,e.KendoVueCommon)}(this,function(e,t,o,n){"use strict";const i={name:"@progress/kendo-vue-notification",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"11.0.
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-svg-icons"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-svg-icons","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueNotification={},e.Vue,e.KendoSVGIcons,e.KendoVueCommon)}(this,function(e,t,o,n){"use strict";const i={name:"@progress/kendo-vue-notification",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"11.1.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},s=t.defineComponent({name:"KendoNotification",props:{closable:{type:[Object,Boolean],default:function(){return!1}},dir:String,type:{type:Object,default:function(){return{style:"none",icon:!0}},validator:function(e){return["none","base","primary","secondary","tertiary","success","error","warning","info","inverse"].includes(e.style)}},themeColor:{type:String,validator:function(e){return["base","primary","secondary","tertiary","error","info","success","warning","inverse"].includes(e)}},ariaLabel:{type:String,default:void 0}},created(){n.validatePackage(i),this.notificationContentId=n.guid()},computed:{computedTheme(){const{type:e,themeColor:t}=this.$props;return"none"!==e.style?e.style:t},computedSvg(){switch(this.computedTheme){case"success":return{name:"check",icon:o.checkIcon};case"error":return{name:"x",icon:o.xIcon};case"info":return{name:"info-circle",icon:o.infoCircleIcon};case"warning":return{name:"exclamation-circle",icon:o.exclamationCircleIcon};default:return{}}},wrapperClass(){const{closable:e}=this.$props;return{"k-notification":!0,[`k-notification-${this.computedTheme}`]:this.computedTheme,"k-notification-closable":e}}},render(){const e=n.getDefaultSlots(this),{closable:i,type:s}=this.$props;return t.createVNode("div",{role:"status",class:this.wrapperClass,style:this.$props.style,"aria-live":"polite","aria-label":this.$props.ariaLabel,"aria-describedby":this.notificationContentId},[s.icon&&this.computedSvg.name&&t.createVNode(n.Icon,{name:this.computedSvg.name,icon:this.computedSvg.icon,class:"k-notification-status"},null),t.createVNode("div",{class:"k-notification-content",id:this.notificationContentId},[e]),i&&t.createVNode("span",{class:"k-notification-actions"},[t.createVNode("span",{class:"k-notification-action k-notification-close-action"},[t.createVNode(n.Icon,{name:"x",icon:o.xIcon,title:"Close",onClick:this.handleClick},null)])])])},methods:{handleClick(e){this.$emit("close",{component:this,event:e})}}}),c=t.defineComponent({name:"KendoNotificationGroup",props:{style:Object,className:String},render(){const e=n.getDefaultSlots(this);return t.createVNode("div",{class:"k-notification-group",style:{alignItems:"center",flexWrap:"wrap",...this.$props.style}},[e])}});e.Notification=s,e.NotificationGroup=c});
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-notification",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-notification",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1795100499,version:"11.1.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "11.0.
|
|
13
|
+
publishDate: 1795100499,
|
|
14
|
+
version: "11.1.0-develop.1",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-notification",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.1.0-develop.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@progress/kendo-licensing": "^1.13.
|
|
28
|
-
"@progress/kendo-vue-common": "11.0.
|
|
27
|
+
"@progress/kendo-licensing": "^1.13.1",
|
|
28
|
+
"@progress/kendo-vue-common": "11.1.0-develop.1",
|
|
29
29
|
"vue": "^3.0.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"package": {
|
|
62
62
|
"productName": "Kendo UI for Vue",
|
|
63
63
|
"productCode": "KENDOUIVUE",
|
|
64
|
-
"publishDate":
|
|
64
|
+
"publishDate": 1795100499,
|
|
65
65
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
66
66
|
}
|
|
67
67
|
},
|