@progress/kendo-vue-notification 5.3.0-dev.202410141143 → 5.3.0-develop.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/Notification.js +8 -0
  2. package/Notification.mjs +136 -0
  3. package/NotificationGroup.js +8 -0
  4. package/NotificationGroup.mjs +25 -0
  5. package/README.md +24 -27
  6. package/dist/cdn/js/kendo-vue-notification.js +8 -1
  7. package/index.d.mts +168 -0
  8. package/index.d.ts +168 -0
  9. package/index.js +8 -0
  10. package/index.mjs +13 -0
  11. package/package-metadata.js +8 -0
  12. package/package-metadata.mjs +18 -0
  13. package/package.json +23 -40
  14. package/dist/es/Notification.d.ts +0 -106
  15. package/dist/es/Notification.js +0 -174
  16. package/dist/es/NotificationGroup.d.ts +0 -48
  17. package/dist/es/NotificationGroup.js +0 -36
  18. package/dist/es/additionalTypes.ts +0 -21
  19. package/dist/es/main.d.ts +0 -3
  20. package/dist/es/main.js +0 -3
  21. package/dist/es/package-metadata.d.ts +0 -5
  22. package/dist/es/package-metadata.js +0 -11
  23. package/dist/esm/Notification.d.ts +0 -106
  24. package/dist/esm/Notification.js +0 -174
  25. package/dist/esm/NotificationGroup.d.ts +0 -48
  26. package/dist/esm/NotificationGroup.js +0 -36
  27. package/dist/esm/additionalTypes.ts +0 -21
  28. package/dist/esm/main.d.ts +0 -3
  29. package/dist/esm/main.js +0 -3
  30. package/dist/esm/package-metadata.d.ts +0 -5
  31. package/dist/esm/package-metadata.js +0 -11
  32. package/dist/esm/package.json +0 -3
  33. package/dist/npm/Notification.d.ts +0 -106
  34. package/dist/npm/Notification.js +0 -181
  35. package/dist/npm/NotificationGroup.d.ts +0 -48
  36. package/dist/npm/NotificationGroup.js +0 -43
  37. package/dist/npm/additionalTypes.ts +0 -21
  38. package/dist/npm/main.d.ts +0 -3
  39. package/dist/npm/main.js +0 -7
  40. package/dist/npm/package-metadata.d.ts +0 -5
  41. package/dist/npm/package-metadata.js +0 -14
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("./package-metadata.js"),n=require("@progress/kendo-svg-icons"),o=require("@progress/kendo-vue-common"),s="Close",r=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","success","error","warning","info"].includes(e.style)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","error","info","success","warning"].includes(e)}},ariaLabel:{type:String,default:void 0}},created(){o.validatePackage(a.packageMetadata),this.notificationContentId=o.guid()},computed:{computedTheme(){const{type:e,themeColor:i}=this.$props;return e.style!=="none"?e.style:i},computedSvg(){switch(this.computedTheme){case"success":return{name:"check-outline",icon:n.checkOutlineIcon};case"error":return{name:"x-outline",icon:n.xOutlineIcon};case"info":return{name:"info-circle",icon:n.infoCircleIcon};case"warning":return{name:"exclamation-circle",icon:n.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=o.getDefaultSlots(this),{closable:i,type:c}=this.$props;return t.createVNode("div",{role:"alert",class:this.wrapperClass,style:this.$props.style,"aria-live":"polite","aria-label":this.$props.ariaLabel,"aria-describedby":this.notificationContentId},[c.icon&&this.computedSvg.name&&t.createVNode(o.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","aria-hidden":!0},[t.createVNode(o.Icon,{name:"x",icon:n.xIcon,title:s,onClick:this.handleClick},null)])])])},methods:{handleClick(e){this.$emit("close",{component:this,event:e})}}});exports.Notification=r;
@@ -0,0 +1,136 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { defineComponent as c, createVNode as e } from "vue";
9
+ import { packageMetadata as a } from "./package-metadata.mjs";
10
+ import { exclamationCircleIcon as s, infoCircleIcon as r, xOutlineIcon as l, checkOutlineIcon as u, xIcon as d } from "@progress/kendo-svg-icons";
11
+ import { validatePackage as p, guid as m, getDefaultSlots as f, Icon as i } from "@progress/kendo-vue-common";
12
+ const h = "Close", C = /* @__PURE__ */ c({
13
+ name: "KendoNotification",
14
+ props: {
15
+ closable: {
16
+ type: [Object, Boolean],
17
+ default: function() {
18
+ return !1;
19
+ }
20
+ },
21
+ dir: String,
22
+ type: {
23
+ type: Object,
24
+ default: function() {
25
+ return {
26
+ style: "none",
27
+ icon: !0
28
+ };
29
+ },
30
+ validator: function(t) {
31
+ return ["none", "success", "error", "warning", "info"].includes(t.style);
32
+ }
33
+ },
34
+ themeColor: {
35
+ type: String,
36
+ default: "base",
37
+ validator: function(t) {
38
+ return [null, "base", "error", "info", "success", "warning"].includes(t);
39
+ }
40
+ },
41
+ ariaLabel: {
42
+ type: String,
43
+ default: void 0
44
+ }
45
+ },
46
+ created() {
47
+ p(a), this.notificationContentId = m();
48
+ },
49
+ computed: {
50
+ computedTheme() {
51
+ const {
52
+ type: t,
53
+ themeColor: n
54
+ } = this.$props;
55
+ return t.style !== "none" ? t.style : n;
56
+ },
57
+ computedSvg() {
58
+ switch (this.computedTheme) {
59
+ case "success":
60
+ return {
61
+ name: "check-outline",
62
+ icon: u
63
+ };
64
+ case "error":
65
+ return {
66
+ name: "x-outline",
67
+ icon: l
68
+ };
69
+ case "info":
70
+ return {
71
+ name: "info-circle",
72
+ icon: r
73
+ };
74
+ case "warning":
75
+ return {
76
+ name: "exclamation-circle",
77
+ icon: s
78
+ };
79
+ default:
80
+ return {};
81
+ }
82
+ },
83
+ wrapperClass() {
84
+ const {
85
+ closable: t
86
+ } = this.$props;
87
+ return {
88
+ "k-notification": !0,
89
+ [`k-notification-${this.computedTheme}`]: this.computedTheme,
90
+ "k-notification-closable": t
91
+ };
92
+ }
93
+ },
94
+ render() {
95
+ const t = f(this), {
96
+ closable: n,
97
+ type: o
98
+ } = this.$props;
99
+ return e("div", {
100
+ role: "alert",
101
+ class: this.wrapperClass,
102
+ style: this.$props.style,
103
+ "aria-live": "polite",
104
+ "aria-label": this.$props.ariaLabel,
105
+ "aria-describedby": this.notificationContentId
106
+ }, [o.icon && this.computedSvg.name && e(i, {
107
+ name: this.computedSvg.name,
108
+ icon: this.computedSvg.icon,
109
+ class: "k-notification-status"
110
+ }, null), e("div", {
111
+ class: "k-notification-content",
112
+ id: this.notificationContentId
113
+ }, [t]), n && e("span", {
114
+ class: "k-notification-actions"
115
+ }, [e("span", {
116
+ class: "k-notification-action k-notification-close-action",
117
+ "aria-hidden": !0
118
+ }, [e(i, {
119
+ name: "x",
120
+ icon: d,
121
+ title: h,
122
+ onClick: this.handleClick
123
+ }, null)])])]);
124
+ },
125
+ methods: {
126
+ handleClick(t) {
127
+ this.$emit("close", {
128
+ component: this,
129
+ event: t
130
+ });
131
+ }
132
+ }
133
+ });
134
+ export {
135
+ C as Notification
136
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("@progress/kendo-vue-common"),n=e.defineComponent({name:"KendoNotificationGroup",render(){const t=o.getDefaultSlots(this);return e.createVNode("div",{class:"k-notification-group",style:{alignItems:"center",flexWrap:"wrap"}},[t])}});exports.NotificationGroup=n;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { defineComponent as o, createVNode as e } from "vue";
9
+ import { getDefaultSlots as r } from "@progress/kendo-vue-common";
10
+ const a = /* @__PURE__ */ o({
11
+ name: "KendoNotificationGroup",
12
+ render() {
13
+ const t = r(this);
14
+ return e("div", {
15
+ class: "k-notification-group",
16
+ style: {
17
+ alignItems: "center",
18
+ flexWrap: "wrap"
19
+ }
20
+ }, [t]);
21
+ }
22
+ });
23
+ export {
24
+ a as NotificationGroup
25
+ };
package/README.md CHANGED
@@ -1,49 +1,46 @@
1
- <a href="https://www.telerik.com/kendo-vue-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification&utm_content=banner" target="_blank">
1
+ <a href="https://www.telerik.com/kendo-vue-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-utils&utm_content=banner" target="_blank">
2
2
  <img src="https://www.telerik.com/kendo-vue-ui/npm-banner.svg" alt="Kendo UI for Vue NPM Banner">
3
3
  </a>
4
4
 
5
- # Kendo UI for Vue Notification Component for Vue
5
+ ## Kendo UI for Vue Notification Package for Vue
6
6
 
7
7
  > **Important**
8
- > * This package is а part of [Kendo UI for Vue](https://www.telerik.com/kendo-vue-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)&mdash;a commercial UI library.
9
- > * You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Vue My License page](https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification).
10
- > * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification) or register for a [free trial](https://www.telerik.com/try/kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification). Doing so indicates that you [accept the Kendo UI for Vue License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendovue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification).
11
- > * The 30-day free trial gives you access to all the Kendo UI for Vue components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Vue dev team!
12
8
  >
13
- > [Start using Kendo UI for Vue](https://www.telerik.com/try/kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification) and speed up your development process!
14
-
15
- The Kendo UI for Vue Notification renders a brief message to the user with information about the status of an application process and enables you to animate its rendering and control its position.
9
+ > - This package is а part of [Kendo UI for Vue](https://www.telerik.com/kendo-vue-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)&mdash;a commercial UI library.
10
+ > - You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Vue My License page](https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification).
11
+ > - To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification). Doing so indicates that you [accept the Kendo UI for Vue License Agreement](https://www.telerik.com/kendo-vue-ui-develop/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification).
12
+ > - The 30-day free trial gives you access to all the Kendo UI for Vue components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Vue dev team!
13
+ >
14
+ > [Start using Kendo UI for Vue](https://www.telerik.com/download-login-v2-kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification) and speed up your development process!
16
15
 
17
16
  ## Vue Notification
18
17
 
19
18
  > Historically, all Kendo UI for Vue Native components support both **Vue 2** and **Vue 3**, however, Vue 2 is currently in its end-of-support phase till Nov 2024. After our last major release for 2024, Vue 2 will no longer be supported in the new versions of the Kendo UI for Vue components. Please check our [Vue 2 End of Support article](https://www.telerik.com/kendo-vue-ui/components/vue2-deprecation/) for more details.
20
19
 
21
- Among the features which the Kendo UI for Vue Notification component delivers are:
20
+ Among the many features which the Kendo UI for Vue Notification deliver are:
22
21
 
23
- * [Notification types](https://www.telerik.com/kendo-vue-ui/components/notification/types/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)&mdash;Depending on the outcome of application operations and processes, the Notification enables you to display different types of notifications, like `info`, `error`, `warning`, and more.
24
- * [Animations](https://www.telerik.com/kendo-vue-ui/components/notification/animations/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)&mdash;The Notification allows you to add opening and closing animations to it by using the Kendo UI for Vue Animation components from the [@progress/kendo-vue-animation package](https://www.npmjs.com/package/@progress/kendo-vue-animation).
25
- * [Positioning](https://www.telerik.com/kendo-vue-ui/components/notification/positioning/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)&mdash;You can configure the position of the Notification through a property.
26
- * [Theme support](https://www.telerik.com/kendo-vue-ui/components/styling/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)&mdash;The Kendo UI for Vue Notification, as well as all 100+ components in the Kendo UI for Vue suite, are styled in four polished themes (Bootstrap, Material, Default and Fluent) and can be further customized to match your specific design guidelines.
22
+ - TODO 1
23
+ - TODO 2
24
+ - TODO 3
27
25
 
28
26
  ## Support Options
29
27
 
30
28
  For any issues you might encounter while working with the Kendo UI for Vue Notification, use any of the available support channels:
31
29
 
32
- * Industry-leading technical support&mdash;Kendo UI for Vue paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated Kendo UI for Vue support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification).
33
- * Product forums&mdash;The [Kendo UI for Vue forums](https://www.telerik.com/forums/kendo-ui-vue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification) are part of the free support you can get from the community and from the Kendo UI for Vue team.
34
- * Feedback portal&mdash;The [Kendo UI for Vue feedback portal](https://feedback.telerik.com/kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification) is where you can request and vote for new features to be added.
30
+ - Industry-leading technical support&mdash;Kendo UI for Vue paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated Kendo UI for Vue support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification).
31
+ - Product forums&mdash;The [Kendo UI for Vue forums](https://www.telerik.com/forums/kendo-ui-vue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification) are part of the free support you can get from the community and from the Kendo UI for Vue team.
32
+ - Feedback portal&mdash;The [Kendo UI for Vue feedback portal](https://feedback.telerik.com/kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification) is where you can request and vote for new features to be added.
35
33
 
36
34
  ## Resources
37
35
 
38
- * [Getting Started with Kendo UI for Vue](https://www.telerik.com/kendo-vue-ui/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
39
- * [Get Started with the Kendo UI for Vue Notification](https://www.telerik.com/kendo-vue-ui/components/notification/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
40
- * [API Reference of the Kendo UI for Vue Notification](https://www.telerik.com/kendo-vue-ui/components/notification/api/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
41
- * [Kendo UI for Vue Roadmap](https://www.telerik.com/support/whats-new/kendo-vue-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
42
- * [Blogs](https://www.telerik.com/blogs/tag/vue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
43
- * [Demos, documentation, and component reference](https://www.telerik.com/kendo-vue-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
44
- * [Kendo UI for Vue pricing and licensing](https://www.telerik.com/purchase/kendo-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
45
- * [Changelog](https://www.telerik.com/kendo-vue-ui/components/changelogs/ui-for-vue/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
36
+ - [Getting Started with Kendo UI for Vue](https://www.telerik.com/kendo-vue-ui/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
37
+ - [Getting Started with the Kendo UI for Vue Notification](https://www.telerik.com/kendo-vue-ui/components/notification/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
38
+ - [API Reference of the Kendo UI for Vue Notification](https://www.telerik.com/kendo-vue-ui/components/notification/api/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
39
+ - [Kendo UI for Vue Roadmap](https://www.telerik.com/kendo-vue-ui/roadmap/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
40
+ - [Blogs](https://www.telerik.com/blogs/tag/vue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
41
+ - [Demos, documentation, and component reference](https://www.telerik.com/kendo-vue-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
42
+ - [Kendo UI for Vue pricing and licensing](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npmnotification)
46
43
 
47
- *Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
44
+ _Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved._
48
45
 
49
- *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
46
+ _Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries._