@progress/kendo-vue-notification 3.5.0 → 3.5.1-dev.202208100944

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 CHANGED
@@ -7,7 +7,7 @@
7
7
  > **Important**
8
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)—a commercial UI library.
9
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/kendo-vue-ui/pricing/?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).
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
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
12
  >
13
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!
@@ -39,7 +39,7 @@ For any issues you might encounter while working with the Kendo UI for Vue Notif
39
39
  * [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)
40
40
  * [Blogs](https://www.telerik.com/blogs/tag/vue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
41
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-npm-notification)
42
- * [Kendo UI for Vue pricing and licensing](https://www.telerik.com/kendo-vue-ui/pricing/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-notification)
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-npm-notification)
43
43
  * [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)
44
44
 
45
45
  *Copyright © 2022 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueNotification=t(require("vue"),require("@progress/kendo-licensing")):e.KendoVueNotification=t(e.Vue,e.KendoLicensing)}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"getRef",(function(){return c})),n.d(t,"setRef",(function(){return a})),n.d(t,"classNames",(function(){return o})),n.d(t,"guid",(function(){return i})),n.d(t,"Keys",(function(){return u})),n.d(t,"noop",(function(){return A})),n.d(t,"isObject",(function(){return r})),n.d(t,"getListeners",(function(){return G})),n.d(t,"hasListener",(function(){return q})),n.d(t,"canUseDOM",(function(){return s})),n.d(t,"firstFocusableChild",(function(){return l})),n.d(t,"focusFirstFocusableChild",(function(){return p})),n.d(t,"lastFocusableChild",(function(){return d})),n.d(t,"focusLastFocusableChild",(function(){return h})),n.d(t,"focusContainer",(function(){return v})),n.d(t,"clone",(function(){return K})),n.d(t,"Draggable",(function(){return $})),n.d(t,"cloneArray",(function(){return H})),n.d(t,"cloneValue",(function(){return E})),n.d(t,"cloneObject",(function(){return L})),n.d(t,"cloneDate",(function(){return x})),n.d(t,"getTemplate",(function(){return J})),n.d(t,"templateRendering",(function(){return z})),n.d(t,"templateDefinition",(function(){return W})),n.d(t,"getTabIndex",(function(){return Z})),n.d(t,"getDefaultSlots",(function(){return N})),n.d(t,"isRtl",(function(){return ee})),n.d(t,"getDir",(function(){return te})),n.d(t,"getter",(function(){return X})),n.d(t,"setter",(function(){return U})),n.d(t,"validatePackage",(function(){return re})),n.d(t,"kendoThemeMaps",(function(){return oe}));var r=function(e){return"object"==typeof e},o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o.apply(void 0,e):r(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},i=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},u={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function c(e,t,n){return e.v3?e[t+"Ref"]:e.$refs[""+(n||t)]}function a(e,t,n){return e.v3?function(n){e[t+"Ref"]=n}:n||t}var f='input, [tabindex]:not([tabindex="-1"])',l=function(e){if(e){var t=e.querySelectorAll(f);if(t.length&&t[0].focus)return t[0]}},d=function(e){if(e){var t=e.querySelectorAll(f);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},p=function(e){if(e){var t=e.querySelectorAll(f);t.length&&t[0].focus&&t[0].focus()}},h=function(e){if(e){var t=e.querySelectorAll(f);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},v=function(e,t){var n=!0;if(e.keyCode!==u.enter&&e.target===t)return!1;if(e.keyCode===u.enter&&e.target===t)n=!0,setTimeout((function(){p(t)}),1);else if(e.keyCode===u.esc)n=!1,t.focus();else if(e.keyCode===u.tab){var r=l(t),o=d(t);o&&!e.shiftKey&&e.target===o&&(e.preventDefault(),r.focus()),r&&e.shiftKey&&e.target===r&&(e.preventDefault(),o.focus())}return n},m=n(0),g=function(e,t){return function(n){return t(e(n))}},y=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},_=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},b=function(){},O=function(e){return e.preventDefault()},w=/touch/;function k(e){return e.type.match(w)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var j=function(e){var t=this,n=e.press;void 0===n&&(n=b);var r=e.drag;void 0===r&&(r=b);var o=e.release;void 0===o&&(o=b);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=g(k,n),this._dragHandler=g(k,r),this._releaseHandler=g(k,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){_(t.document,"mousemove",t._mousemove),_(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",O),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(_(t.document,"pointermove",t._pointermove),_(t.document,"pointerup",t._pointerup),_(t.document,"pointercancel",t._pointerup),_(t.document,"contextmenu",O),t._releaseHandler(e))}},P={document:{configurable:!0}};j.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},P.document.get=function(){return this._element?this._element.ownerDocument:document},j.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},j.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?y(e,"pointerdown",this._pointerdown):(y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend)))},j.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return _(e,"pointerdown",this._pointerdown),_(this.document,"pointermove",this._pointermove),_(this.document,"pointerup",this._pointerup),_(this.document,"contextmenu",O),void _(this.document,"pointercancel",this._pointerup);_(e,"mousedown",this._mousedown),this._mouseOnly||(_(e,"touchstart",this._touchstart),_(e,"touchmove",this._touchmove),_(e,"touchend",this._touchend))},j.prototype._usePointers=function(){return!this._mouseOnly&&j.supportPointerEvent()},j.prototype.update=function(e){var t=e.press;void 0===t&&(t=b);var n=e.drag;void 0===n&&(n=b);var r=e.release;void 0===r&&(r=b);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=g(k,t),this._dragHandler=g(k,n),this._releaseHandler=g(k,r),this._mouseOnly=o},j.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(j.prototype,P),j.default=j;var C,M=j;function N(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=m,T=(D.h,D.version&&"3"===D.version[0]),$=(S(C={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new M({press:this.press,drag:this.drag,release:this.release})},setup:T?function(){return{v3:!!T}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:T?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",T?function(){return{v3:!!T}}:void 0),S(C,"render",(function(e){return N(this)})),C),x=function(e){return e?new Date(e.getTime()):null};function K(e){var t={};return L(e,t),t}function L(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=E(r,t[n])}}function E(e,t){if(Array.isArray(e))return H(e);if(e instanceof Date)return x(e);if(e&&r(e)){var n=t||{};return L(e,n),n}return e}function H(e){return e.map((function(e){return E(e,void 0)}))}var A=function(){},F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,V={};function X(e){if(V[e])return V[e];var t=[];return e.replace(F,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),V[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},V[e]}V.undefined=function(){};var Y={};function U(e){if(Y[e])return Y[e];var t=[];return e.replace(F,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),Y[e]=function(e,n){for(var r=e,o=t.length-1,i=0;i<o&&r;i++)r=r[t[i]]=r[t[i]]||{};r[t[o]]=n},Y[e]}function q(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function G(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}Y.undefined=function(e){return e};var R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},I=m,B=I.version&&"3"===I.version[0],W={type:[String,Function,Object,Boolean],default:function(){}};function z(e,t){if(e||!1===e){var n=B?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||r(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}}function J(e){var t,n,r,o=e.h,i=e.template,u=e.defaultRendering,s=e.defaultSlots,c=e.additionalProps,a=e.additionalListeners,f=e.swapDefaultSlots;if(!i||i&&!0===i.render)return u;if(B){var l=u?u.props:{};t=R(R({},Q(a)),i.listeners),n=R(R(R({},l),c),t),r=R(R({},n),t)}else{var d=u&&u.componentOptions,p=d?u.componentOptions.listeners:{},h=d?u.componentOptions.propsData:{};t=R(R(R(R({},p),a),Q(a)),i.listeners),r={props:n=R(R(R({},h),c),t),on:t}}if("slot"===i.type){var v=i.render({props:n,listeners:t,methods:t,defaultSlots:s});return v?v[0]:void 0}return"renderFunction"===i.type?f?i.render?i.render(o,u,s,n,t):void 0:i.render?i.render(o,u,n,t,s):void 0:o(i.render,r,B?function(){return[s]}:[s])}function Q(e){if(!e)return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];t["on"+o.charAt(0).toUpperCase()+o.slice(1)]=e[o]}return t}var Z=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0};function ee(e){return Boolean(s&&e&&"rtl"===getComputedStyle(e).direction)}function te(e,t){if(!t&&s&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var ne=n(1);function re(e){if(void 0!==ne)ne.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var oe={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationGroup=t.Notification=void 0;var r=n(4);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return r.Notification}});var o=n(6);Object.defineProperty(t,"NotificationGroup",{enumerable:!0,get:function(){return o.NotificationGroup}})},function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationVue2=t.Notification=void 0;var u=i(n(0)),s=u.h,c=u.version&&"3"===u.version[0],a=n(5),f=n(2),l={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)}}},created:function(){f.validatePackage(a.packageMetadata)},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=s||e,n=f.getDefaultSlots(this),r=this.$props,o=r.closable,i=r.type;return t("div",{class:"k-notification-container"},[t("div",{class:"k-widget k-notification"+("none"===i.style?"":" k-notification-"+i.style)+(o?" k-notification-closable":""),style:this.$props.style},[t("div",{class:"k-notification-wrap"},[i.icon&&t("span",{class:"k-icon k-i-"+i.style}),t("div",{class:"k-notification-content"},[n]),o&&t("a",{class:"k-icon k-i-close",title:"Close",attrs:this.v3?void 0:{title:"Close"},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick}})])])])},methods:{handleClick:function(e){this.$emit("close",{component:this,event:e})}}};t.NotificationVue2=l;var d=l;t.Notification=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-notification",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659429199,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationGroupVue2=t.NotificationGroup=void 0;var u=i(n(0)),s=u.h,c=u.version&&"3"===u.version[0],a=n(2),f={name:"KendoNotificationGroup",setup:c?function(){return{v3:!!c}}:void 0,render:function(e){return(s||e)("div",{class:"k-notification-group",style:{alignItems:"center",flexWrap:"wrap"}},[a.getDefaultSlots(this)])}};t.NotificationGroupVue2=f;var l=f;t.NotificationGroup=l}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueNotification=t(require("vue"),require("@progress/kendo-licensing")):e.KendoVueNotification=t(e.Vue,e.KendoLicensing)}(self,(function(e,t){return(()=>{"use strict";var n={884:(e,t,n)=>{var o=Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationVue2=t.Notification=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(895)),u=i.h,s=i.version&&"3"===i.version[0],a=n(169),c=n(984),l="Close",f={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)}}},created:function(){(0,c.validatePackage)(a.packageMetadata)},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=u||e,n=(0,c.getDefaultSlots)(this),o=this.$props,r=o.closable,i=o.type;return t("div",{class:"k-notification-container"},[t("div",{class:"k-widget k-notification"+("none"===i.style?"":" k-notification-".concat(i.style))+(r?" k-notification-closable":""),style:this.$props.style},[t("div",{class:"k-notification-wrap"},[i.icon&&t("span",{class:"k-icon k-i-".concat(i.style)}),t("div",{class:"k-notification-content"},[n]),r&&t("a",{class:"k-icon k-i-close",title:l,attrs:this.v3?void 0:{title:l},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick}})])])])},methods:{handleClick:function(e){this.$emit("close",{component:this,event:e})}}};t.NotificationVue2=f;var d=f;t.Notification=d},749:(e,t,n)=>{var o=Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationGroupVue2=t.NotificationGroup=void 0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(895)),u=i.h,s=i.version&&"3"===i.version[0],a=n(984),c={name:"KendoNotificationGroup",setup:s?function(){return{v3:!!s}}:void 0,render:function(e){return(u||e)("div",{class:"k-notification-group",style:{alignItems:"center",flexWrap:"wrap"}},[(0,a.getDefaultSlots)(this)])}};t.NotificationGroupVue2=c;var l=c;t.NotificationGroup=l},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-notification",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660124307,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},984:(e,t,n)=>{n.r(t),n.d(t,{Draggable:()=>$,Keys:()=>u,canUseDOM:()=>s,classNames:()=>r,clone:()=>K,cloneArray:()=>H,cloneDate:()=>x,cloneObject:()=>L,cloneValue:()=>E,firstFocusableChild:()=>f,focusContainer:()=>v,focusFirstFocusableChild:()=>p,focusLastFocusableChild:()=>h,getDefaultSlots:()=>M,getDir:()=>te,getListeners:()=>G,getRef:()=>a,getTabIndex:()=>Z,getTemplate:()=>J,getter:()=>X,guid:()=>i,hasListener:()=>q,isObject:()=>o,isRtl:()=>ee,kendoThemeMaps:()=>re,lastFocusableChild:()=>d,noop:()=>A,setRef:()=>c,setter:()=>U,templateDefinition:()=>W,templateRendering:()=>z,validatePackage:()=>oe});var o=function(e){return"object"==typeof e},r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):o(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},i=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},u={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function a(e,t,n){return e.v3?e["".concat(t,"Ref")]:e.$refs["".concat(n||t)]}function c(e,t,n){return e.v3?function(n){e["".concat(t,"Ref")]=n}:n||t}var l='input, [tabindex]:not([tabindex="-1"])',f=function(e){if(e){var t=e.querySelectorAll(l);if(t.length&&t[0].focus)return t[0]}},d=function(e){if(e){var t=e.querySelectorAll(l);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},p=function(e){if(e){var t=e.querySelectorAll(l);t.length&&t[0].focus&&t[0].focus()}},h=function(e){if(e){var t=e.querySelectorAll(l);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},v=function(e,t){var n=!0;if(e.keyCode!==u.enter&&e.target===t)return!1;if(e.keyCode===u.enter&&e.target===t)n=!0,setTimeout((function(){p(t)}),1);else if(e.keyCode===u.esc)n=!1,t.focus();else if(e.keyCode===u.tab){var o=f(t),r=d(t);r&&!e.shiftKey&&e.target===r&&(e.preventDefault(),o.focus()),o&&e.shiftKey&&e.target===o&&(e.preventDefault(),r.focus())}return n},m=n(895),g=function(e,t){return function(n){return t(e(n))}},y=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},_=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},b=function(){},O=function(e){return e.preventDefault()},w=/touch/;function k(e){return e.type.match(w)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var j=function(e){var t=this,n=e.press;void 0===n&&(n=b);var o=e.drag;void 0===o&&(o=b);var r=e.release;void 0===r&&(r=b);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=g(k,n),this._dragHandler=g(k,o),this._releaseHandler=g(k,r),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){_(t.document,"mousemove",t._mousemove),_(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",O),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(_(t.document,"pointermove",t._pointermove),_(t.document,"pointerup",t._pointerup),_(t.document,"pointercancel",t._pointerup),_(t.document,"contextmenu",O),t._releaseHandler(e))}},P={document:{configurable:!0}};j.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},P.document.get=function(){return this._element?this._element.ownerDocument:document},j.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},j.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?y(e,"pointerdown",this._pointerdown):(y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend)))},j.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return _(e,"pointerdown",this._pointerdown),_(this.document,"pointermove",this._pointermove),_(this.document,"pointerup",this._pointerup),_(this.document,"contextmenu",O),void _(this.document,"pointercancel",this._pointerup);_(e,"mousedown",this._mousedown),this._mouseOnly||(_(e,"touchstart",this._touchstart),_(e,"touchmove",this._touchmove),_(e,"touchend",this._touchend))},j.prototype._usePointers=function(){return!this._mouseOnly&&j.supportPointerEvent()},j.prototype.update=function(e){var t=e.press;void 0===t&&(t=b);var n=e.drag;void 0===n&&(n=b);var o=e.release;void 0===o&&(o=b);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=g(k,t),this._dragHandler=g(k,n),this._releaseHandler=g(k,o),this._mouseOnly=r},j.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(j.prototype,P),j.default=j;const C=j;function M(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}var D;function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=m,T=(S.h,S.version&&"3"===S.version[0]),$=(N(D={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new C({press:this.press,drag:this.drag,release:this.release})},setup:T?function(){return{v3:!!T}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:T?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",T?function(){return{v3:!!T}}:void 0),N(D,"render",(function(e){return M(this)})),D),x=function(e){return e?new Date(e.getTime()):null};function K(e){var t={};return L(e,t),t}function L(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=E(o,t[n])}}function E(e,t){if(Array.isArray(e))return H(e);if(e instanceof Date)return x(e);if(e&&o(e)){var n=t||{};return L(e,n),n}return e}function H(e){return e.map((function(e){return E(e,void 0)}))}var A=function(){},F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,V={};function X(e){if(V[e])return V[e];var t=[];return e.replace(F,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),V[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},V[e]}V.undefined=function(){};var Y={};function U(e){if(Y[e])return Y[e];var t=[];return e.replace(F,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),Y[e]=function(e,n){for(var o=e,r=t.length-1,i=0;i<r&&o;i++)o=o[t[i]]=o[t[i]]||{};o[t[r]]=n},Y[e]}function q(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function G(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}Y.undefined=function(e){return e};var R=function(){return R=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},R.apply(this,arguments)},I=m,B=I.version&&"3"===I.version[0],W={type:[String,Function,Object,Boolean],default:function(){}};function z(e,t){if(e||!1===e){var n=B?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||o(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}}function J(e){var t,n,o,r=e.h,i=e.template,u=e.defaultRendering,s=e.defaultSlots,a=e.additionalProps,c=e.additionalListeners,l=e.swapDefaultSlots;if(!i||i&&!0===i.render)return u;if(B){var f=u?u.props:{};t=R(R({},Q(c)),i.listeners),n=R(R(R({},f),a),t),o=R(R({},n),t)}else{var d=u&&u.componentOptions,p=d?u.componentOptions.listeners:{},h=d?u.componentOptions.propsData:{};t=R(R(R(R({},p),c),Q(c)),i.listeners),o={props:n=R(R(R({},h),a),t),on:t}}if("slot"===i.type){var v=i.render({props:n,listeners:t,methods:t,defaultSlots:s});return v?v[0]:void 0}return"renderFunction"===i.type?l?i.render?i.render(r,u,s,n,t):void 0:i.render?i.render(r,u,n,t,s):void 0:r(i.render,o,B?function(){return[s]}:[s])}function Q(e){if(!e)return e;for(var t={},n=Object.keys(e),o=0;o<n.length;o++){var r=n[o];t["on"+r.charAt(0).toUpperCase()+r.slice(1)]=e[r]}return t}var Z=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0};function ee(e){return Boolean(s&&e&&"rtl"===getComputedStyle(e).direction)}function te(e,t){if(!t&&s&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var ne=n(302);function oe(e){if(void 0!==ne)ne.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}var re={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},302:e=>{e.exports=t},895:t=>{t.exports=e}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationGroup=e.Notification=void 0;var t=r(884);Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return t.Notification}});var n=r(749);Object.defineProperty(e,"NotificationGroup",{enumerable:!0,get:function(){return n.NotificationGroup}})})(),i})()}));
@@ -53,12 +53,12 @@ var NotificationVue2 = {
53
53
  return h("div", {
54
54
  "class": "k-notification-container"
55
55
  }, [h("div", {
56
- "class": 'k-widget k-notification' + (type.style === 'none' ? '' : " k-notification-" + type.style) + (closable ? ' k-notification-closable' : ''),
56
+ "class": 'k-widget k-notification' + (type.style === 'none' ? '' : " k-notification-".concat(type.style)) + (closable ? ' k-notification-closable' : ''),
57
57
  style: this.$props.style
58
58
  }, [h("div", {
59
59
  "class": "k-notification-wrap"
60
60
  }, [type.icon && h("span", {
61
- "class": "k-icon k-i-" + type.style
61
+ "class": "k-icon k-i-".concat(type.style)
62
62
  }), h("div", {
63
63
  "class": "k-notification-content"
64
64
  }, [defaultSlot]), closable && h("a", {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-notification',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1659429199,
8
+ publishDate: 1660124307,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -0,0 +1,98 @@
1
+ import { DefineComponent } from './additionalTypes';
2
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
3
+ declare type DefaultData<V> = object | ((this: V) => {});
4
+ declare type DefaultMethods<V> = {
5
+ [key: string]: (this: V, ...args: any[]) => any;
6
+ };
7
+ /**
8
+ * The `close` event object of the Notification.
9
+ */
10
+ export interface NotificationEvent {
11
+ /**
12
+ * A native DOM event.
13
+ */
14
+ event: Event;
15
+ /**
16
+ * An event target.
17
+ */
18
+ target: Notification;
19
+ }
20
+ /**
21
+ * Represents the props of the [Kendo UI for Vue Notification component]({% slug overview_notification %}).
22
+ */
23
+ export interface NotificationProps {
24
+ /**
25
+ * Specifies if the Notification will require a user action to hide.
26
+ * If the property is set to `true`, the Notification renders a **Close** button.
27
+ * If the property is set to `object`, the Notification renders a **Close** button
28
+ * by extending the default props with the provided object.
29
+ *
30
+ * The possible values are:
31
+ * * (Default) `false`
32
+ * * `true`
33
+ * * `{ title: 'Hide', ... }`
34
+ */
35
+ closable?: boolean | any;
36
+ /**
37
+ * The `dir` HTML attribute.
38
+ */
39
+ dir?: string;
40
+ /**
41
+ * The Notification type
42
+ * ([see example]({% slug types_notification %})).
43
+ *
44
+ * The possible values are:
45
+ * * `style: 'none'|'success'|'error'|'warning'|'info'`. Defaults to `none`.
46
+ * * `icon?: 'true'|'false'`. Defaults to `true`.
47
+ */
48
+ type?: {
49
+ style?: 'none' | 'success' | 'error' | 'warning' | 'info';
50
+ icon?: boolean;
51
+ };
52
+ /**
53
+ * The `close` event which will be triggered when the **Close** button is clicked.
54
+ */
55
+ onClose?: (event: NotificationEvent) => void;
56
+ }
57
+ /**
58
+ * @hidden
59
+ */
60
+ export interface NotificationState {
61
+ }
62
+ /**
63
+ * @hidden
64
+ */
65
+ export interface NotificationComputed {
66
+ [key: string]: any;
67
+ skeletonClasses: object;
68
+ }
69
+ /**
70
+ * @hidden
71
+ */
72
+ export interface NotificationMethods {
73
+ [key: string]: any;
74
+ }
75
+ /**
76
+ * @hidden
77
+ */
78
+ export interface NotificationData {
79
+ }
80
+ /**
81
+ * @hidden
82
+ */
83
+ export interface NotificationAll extends Vue, NotificationMethods, NotificationData, NotificationComputed, NotificationState {
84
+ }
85
+ /**
86
+ * @hidden
87
+ */
88
+ declare let NotificationVue2: ComponentOptions<NotificationAll, DefaultData<NotificationData>, DefaultMethods<NotificationAll>, NotificationComputed, RecordPropsDefinition<NotificationProps>>;
89
+ /**
90
+ * Represents the [Kendo UI for Vue Native Notification component]({% slug overview_notification %}).
91
+ *
92
+ *
93
+ * ### props <span class='code'>Readonly&lt;[NotificationProps]({% slug api_notification_notificationprops %})</span>
94
+ * The props of the Notification component.
95
+ *
96
+ */
97
+ declare const Notification: DefineComponent<NotificationProps, any, NotificationData, NotificationComputed, NotificationMethods, {}, {}, {}, string, NotificationProps, NotificationProps, {}>;
98
+ export { Notification, NotificationVue2 };
@@ -0,0 +1,95 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { packageMetadata } from './package-metadata.js';
7
+ import { validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
8
+ var buttonTitle = 'Close';
9
+ /**
10
+ * @hidden
11
+ */
12
+
13
+ var NotificationVue2 = {
14
+ name: 'KendoNotification',
15
+ props: {
16
+ closable: {
17
+ type: [Object, Boolean],
18
+ default: function _default() {
19
+ return false;
20
+ }
21
+ },
22
+ dir: String,
23
+ type: {
24
+ type: Object,
25
+ default: function _default() {
26
+ return {
27
+ style: 'none',
28
+ icon: true
29
+ };
30
+ },
31
+ validator: function validator(value) {
32
+ return ['none', 'success', 'error', 'warning', 'info'].includes(value.style);
33
+ }
34
+ }
35
+ },
36
+ created: function created() {
37
+ validatePackage(packageMetadata);
38
+ },
39
+ // @ts-ignore
40
+ setup: !isV3 ? undefined : function () {
41
+ var v3 = !!isV3;
42
+ return {
43
+ v3: v3
44
+ };
45
+ },
46
+ // @ts-ignore
47
+ render: function render(createElement) {
48
+ var h = gh || createElement;
49
+ var defaultSlot = getDefaultSlots(this);
50
+ var _a = this.$props,
51
+ closable = _a.closable,
52
+ type = _a.type;
53
+ return h("div", {
54
+ "class": "k-notification-container"
55
+ }, [h("div", {
56
+ "class": 'k-widget k-notification' + (type.style === 'none' ? '' : " k-notification-".concat(type.style)) + (closable ? ' k-notification-closable' : ''),
57
+ style: this.$props.style
58
+ }, [h("div", {
59
+ "class": "k-notification-wrap"
60
+ }, [type.icon && h("span", {
61
+ "class": "k-icon k-i-".concat(type.style)
62
+ }), h("div", {
63
+ "class": "k-notification-content"
64
+ }, [defaultSlot]), closable && h("a", {
65
+ "class": "k-icon k-i-close",
66
+ title: buttonTitle,
67
+ attrs: this.v3 ? undefined : {
68
+ title: buttonTitle
69
+ },
70
+ onClick: this.handleClick,
71
+ on: this.v3 ? undefined : {
72
+ "click": this.handleClick
73
+ }
74
+ })])])]);
75
+ },
76
+ methods: {
77
+ handleClick: function handleClick(event) {
78
+ this.$emit('close', {
79
+ component: this,
80
+ event: event
81
+ });
82
+ }
83
+ }
84
+ };
85
+ /**
86
+ * Represents the [Kendo UI for Vue Native Notification component]({% slug overview_notification %}).
87
+ *
88
+ *
89
+ * ### props <span class='code'>Readonly&lt;[NotificationProps]({% slug api_notification_notificationprops %})</span>
90
+ * The props of the Notification component.
91
+ *
92
+ */
93
+
94
+ var Notification = NotificationVue2;
95
+ export { Notification, NotificationVue2 };
@@ -0,0 +1,48 @@
1
+ import { DefineComponent } from './additionalTypes';
2
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
3
+ declare type DefaultData<V> = object | ((this: V) => {});
4
+ declare type DefaultMethods<V> = {
5
+ [key: string]: (this: V, ...args: any[]) => any;
6
+ };
7
+ /**
8
+ * Represents the props of the [Kendo UI for Vue NotificationGroup component]({% slug api_notification_notificationgroupprops %}).
9
+ */
10
+ export interface NotificationGroupProps {
11
+ }
12
+ /**
13
+ * @hidden
14
+ */
15
+ export interface NotificationGroupState {
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ export interface NotificationGroupComputed {
21
+ [key: string]: any;
22
+ skeletonClasses: object;
23
+ }
24
+ /**
25
+ * @hidden
26
+ */
27
+ export interface NotificationGroupMethods {
28
+ [key: string]: any;
29
+ }
30
+ /**
31
+ * @hidden
32
+ */
33
+ export interface NotificationGroupData {
34
+ }
35
+ /**
36
+ * @hidden
37
+ */
38
+ export interface NotificationGroupAll extends Vue, NotificationGroupMethods, NotificationGroupData, NotificationGroupComputed, NotificationGroupState {
39
+ }
40
+ /**
41
+ * @hidden
42
+ */
43
+ declare let NotificationGroupVue2: ComponentOptions<NotificationGroupAll, DefaultData<NotificationGroupData>, DefaultMethods<NotificationGroupAll>, NotificationGroupComputed, RecordPropsDefinition<NotificationGroupProps>>;
44
+ /**
45
+ * @hidden
46
+ */
47
+ declare const NotificationGroup: DefineComponent<NotificationGroupProps, any, NotificationGroupData, NotificationGroupComputed, NotificationGroupMethods, {}, {}, {}, string, NotificationGroupProps, NotificationGroupProps, {}>;
48
+ export { NotificationGroup, NotificationGroupVue2 };
@@ -0,0 +1,38 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { getDefaultSlots } from '@progress/kendo-vue-common';
7
+ /**
8
+ * @hidden
9
+ */
10
+
11
+ var NotificationGroupVue2 = {
12
+ name: 'KendoNotificationGroup',
13
+ // @ts-ignore
14
+ setup: !isV3 ? undefined : function () {
15
+ var v3 = !!isV3;
16
+ return {
17
+ v3: v3
18
+ };
19
+ },
20
+ // @ts-ignore
21
+ render: function render(createElement) {
22
+ var h = gh || createElement;
23
+ var defaultSlot = getDefaultSlots(this);
24
+ return h("div", {
25
+ "class": 'k-notification-group',
26
+ style: {
27
+ alignItems: 'center',
28
+ flexWrap: 'wrap'
29
+ }
30
+ }, [defaultSlot]);
31
+ }
32
+ };
33
+ /**
34
+ * @hidden
35
+ */
36
+
37
+ var NotificationGroup = NotificationGroupVue2;
38
+ export { NotificationGroup, NotificationGroupVue2 };
@@ -0,0 +1,21 @@
1
+ // @ts-ignore
2
+ import { DefineComponent } from 'vue';
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+
6
+ /**
7
+ * @hidden
8
+ */
9
+ // @ts-ignore
10
+ type Vue2type = Vue.default;
11
+
12
+ /**
13
+ * @hidden
14
+ */
15
+ // @ts-ignore
16
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
+ /**
18
+ * @hidden
19
+ */
20
+ // @ts-ignore
21
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -0,0 +1,3 @@
1
+ import { Notification, NotificationProps, NotificationEvent } from './Notification';
2
+ import { NotificationGroup, NotificationGroupProps } from './NotificationGroup';
3
+ export { Notification, NotificationProps, NotificationEvent, NotificationGroup, NotificationGroupProps };
@@ -0,0 +1,3 @@
1
+ import { Notification } from './Notification.js';
2
+ import { NotificationGroup } from './NotificationGroup.js';
3
+ export { Notification, NotificationGroup };
@@ -0,0 +1,5 @@
1
+ import { PackageMetadata } from '@progress/kendo-licensing';
2
+ /**
3
+ * @hidden
4
+ */
5
+ export declare const packageMetadata: PackageMetadata;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var packageMetadata = {
5
+ name: '@progress/kendo-vue-notification',
6
+ productName: 'Kendo UI for Vue',
7
+ productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
+ publishDate: 1660124307,
9
+ version: '',
10
+ licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -44,7 +44,7 @@ var NotificationVue2 = {
44
44
  }
45
45
  },
46
46
  created: function created() {
47
- kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
47
+ (0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
48
48
  },
49
49
  // @ts-ignore
50
50
  setup: !isV3 ? undefined : function () {
@@ -56,19 +56,19 @@ var NotificationVue2 = {
56
56
  // @ts-ignore
57
57
  render: function render(createElement) {
58
58
  var h = gh || createElement;
59
- var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
59
+ var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
60
60
  var _a = this.$props,
61
61
  closable = _a.closable,
62
62
  type = _a.type;
63
63
  return h("div", {
64
64
  "class": "k-notification-container"
65
65
  }, [h("div", {
66
- "class": 'k-widget k-notification' + (type.style === 'none' ? '' : " k-notification-" + type.style) + (closable ? ' k-notification-closable' : ''),
66
+ "class": 'k-widget k-notification' + (type.style === 'none' ? '' : " k-notification-".concat(type.style)) + (closable ? ' k-notification-closable' : ''),
67
67
  style: this.$props.style
68
68
  }, [h("div", {
69
69
  "class": "k-notification-wrap"
70
70
  }, [type.icon && h("span", {
71
- "class": "k-icon k-i-" + type.style
71
+ "class": "k-icon k-i-".concat(type.style)
72
72
  }), h("div", {
73
73
  "class": "k-notification-content"
74
74
  }, [defaultSlot]), closable && h("a", {
@@ -29,7 +29,7 @@ var NotificationGroupVue2 = {
29
29
  // @ts-ignore
30
30
  render: function render(createElement) {
31
31
  var h = gh || createElement;
32
- var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
32
+ var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
33
33
  return h("div", {
34
34
  "class": 'k-notification-group',
35
35
  style: {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-notification',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1659429199,
11
+ publishDate: 1660124307,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-notification",
3
3
  "description": "Kendo UI for Vue Notification package",
4
- "version": "3.5.0",
4
+ "version": "3.5.1-dev.202208100944",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -33,11 +33,11 @@
33
33
  "vue": "^2.6.12 || ^3.0.2"
34
34
  },
35
35
  "dependencies": {
36
- "@progress/kendo-vue-common": "3.5.0"
36
+ "@progress/kendo-vue-common": "3.5.1-dev.202208100944"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@progress/kendo-licensing": "^1.0.1",
40
- "@progress/kendo-vue-animation": "3.5.0"
40
+ "@progress/kendo-vue-animation": "3.5.1-dev.202208100944"
41
41
  },
42
42
  "@progress": {
43
43
  "friendlyName": "Notification",