@progress/kendo-angular-toolbar 5.0.2-dev.202203090949 → 5.0.3-dev.202203280906
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 +11 -9
- package/dist/cdn/js/kendo-angular-toolbar.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar.component.js +47 -21
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/toolbar.component.d.ts +10 -4
- package/dist/es2015/toolbar.component.js +36 -14
- package/dist/fesm2015/index.js +36 -14
- package/dist/fesm5/index.js +47 -21
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar.component.js +44 -18
- package/dist/systemjs/kendo-angular-toolbar.js +1 -1
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -12,21 +12,23 @@
|
|
|
12
12
|
>
|
|
13
13
|
> [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar) and speed up your development process!
|
|
14
14
|
|
|
15
|
-
Kendo UI for Angular
|
|
15
|
+
The Kendo UI for Angular Toolbar component provides a collection of various button types, such as a drop-down and a split button, in a single UI element. Beyond supporting various button types, the Angular Toolbar includes ways to organize these buttons into various groups.
|
|
16
|
+
|
|
17
|
+
This component is part of the Kendo UI for Angular component library. Kendo UI for Angular is a commercial UI library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
|
|
16
18
|
|
|
17
19
|
## Resources
|
|
18
20
|
|
|
19
|
-
* [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started)
|
|
20
|
-
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
|
|
21
|
-
* [Blogs](http://www.telerik.com/blogs/kendo-ui)
|
|
22
|
-
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
|
|
21
|
+
* [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
22
|
+
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
23
|
+
* [Blogs](http://www.telerik.com/blogs/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
24
|
+
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
23
25
|
|
|
24
26
|
## Questions and Feedback
|
|
25
27
|
|
|
26
|
-
* [Official Forums](https://www.telerik.com/forums/kendo-angular-ui)
|
|
27
|
-
* [GitHub Issues](https://github.com/telerik/kendo-angular/issues)
|
|
28
|
-
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
|
|
29
|
-
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
|
|
28
|
+
* [Official Forums](https://www.telerik.com/forums/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
29
|
+
* [GitHub Issues](https://github.com/telerik/kendo-angular/issues?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
30
|
+
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
31
|
+
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-toolbar)
|
|
30
32
|
|
|
31
33
|
*Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
32
34
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-buttons"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularToolbar=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-buttons"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("rxjs"),require("@angular/common")):e.KendoAngularToolbar=t(e.ng.core,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoAngularButtons,e.rxjs.operators,e.KendoAngularPopup,e.KendoLicensing,e.rxjs,e.ng.common)}(window,(function(e,t,o,n,r,i,a,s,l){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=20)}([function(e,t,o){"use strict";o.r(t),o.d(t,"__extends",(function(){return r})),o.d(t,"__assign",(function(){return i})),o.d(t,"__rest",(function(){return a})),o.d(t,"__decorate",(function(){return s})),o.d(t,"__param",(function(){return l})),o.d(t,"__metadata",(function(){return
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-buttons"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("rxjs"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularToolbar=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-buttons"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("rxjs"),require("@angular/common")):e.KendoAngularToolbar=t(e.ng.core,e.KendoAngularCommon,e.KendoAngularL10N,e.KendoAngularButtons,e.rxjs.operators,e.KendoAngularPopup,e.KendoLicensing,e.rxjs,e.ng.common)}(window,(function(e,t,o,n,r,i,a,s,l){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=20)}([function(e,t,o){"use strict";o.r(t),o.d(t,"__extends",(function(){return r})),o.d(t,"__assign",(function(){return i})),o.d(t,"__rest",(function(){return a})),o.d(t,"__decorate",(function(){return s})),o.d(t,"__param",(function(){return l})),o.d(t,"__metadata",(function(){return p})),o.d(t,"__awaiter",(function(){return u})),o.d(t,"__generator",(function(){return d})),o.d(t,"__createBinding",(function(){return c})),o.d(t,"__exportStar",(function(){return f})),o.d(t,"__values",(function(){return h})),o.d(t,"__read",(function(){return g})),o.d(t,"__spread",(function(){return m})),o.d(t,"__spreadArrays",(function(){return y})),o.d(t,"__await",(function(){return b})),o.d(t,"__asyncGenerator",(function(){return _})),o.d(t,"__asyncDelegator",(function(){return v})),o.d(t,"__asyncValues",(function(){return w})),o.d(t,"__makeTemplateObject",(function(){return C})),o.d(t,"__importStar",(function(){return T})),o.d(t,"__importDefault",(function(){return B})),o.d(t,"__classPrivateFieldGet",(function(){return x})),o.d(t,"__classPrivateFieldSet",(function(){return S}));
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
|
|
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
-
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function r(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var i=function(){return(i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}function s(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}function l(e,t){return function(o,n){t(o,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function d(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}function f(e,t){for(var o in e)"default"===o||t.hasOwnProperty(o)||(t[o]=e[o])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)n[r]=i[a];return n}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function b(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=o.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){r[e]&&(n[e]=function(t){return new Promise((function(o,n){i.push([e,t,o,n])>1||s(e,t)}))})}function s(e,t){try{(o=r[e](t)).value instanceof _?Promise.resolve(o.value.v).then(l,u):p(i[0][2],o)}catch(e){p(i[0][3],e)}var o}function l(e){s("next",e)}function u(e){s("throw",e)}function p(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function v(e){var t,o;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,r){t[n]=e[n]?function(t){return(o=!o)?{value:_(e[n](t)),done:"return"===n}:r?r(t):t}:r}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(t){return new Promise((function(n,r){(function(e,t,o,n){Promise.resolve(n).then((function(t){e({value:t,done:o})}),t)})(n,r,(t=e[o](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}function B(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,o){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,o),o}},function(t,o){t.exports=e},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(){function e(){this.tabIndex=-1,this.overflows=!0,this.responsive=!0}return Object.defineProperty(e.prototype,"toolbarDisplay",{get:function(){return this.overflows?"none":"inline-block"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowDisplay",{get:function(){return this.overflows?"block":"none"},enumerable:!0,configurable:!0}),e.prototype.canFocus=function(){return!1},e.prototype.focus=function(e){},e.prototype.handleKey=function(e){return!1},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"responsive",void 0),e=n.__decorate([r.Component({selector:"toolbar-tool",template:""})],e)}();t.ToolBarToolComponent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),r=/^(?:a|input|select|textarea|button|object)$/i;t.outerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t+=parseFloat(o.marginLeft)||0+parseFloat(o.marginRight)||0},t.innerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t-=parseFloat(o.paddingLeft)||0+parseFloat(o.borderLeftWidth)||0,t-=parseFloat(o.paddingRight)||0+parseFloat(o.borderRightWidth)||0},t.outerHeight=function(e){var t=e.offsetHeight,o=getComputedStyle(e);return t+=parseFloat(o.marginTop)||0+parseFloat(o.marginBottom)||0},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.isVisible=function(e){var t=e.getBoundingClientRect(),o=t.width>0&&t.height>0,n=0!==t.x&&0!==t.y;return(o||n)&&"hidden"!==window.getComputedStyle(e).visibility},t.findElement=function(e,o,n){if(void 0===n&&(n=!0),e){if(n&&o(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=t.findElement(e,o);if(r)return r}e=e.nextSibling}}},t.isFocusable=function(e,o){if(void 0===o&&(o=!0),e.tagName){var n=e.tagName.toLowerCase(),i=null!==e.getAttribute("tabIndex");return r.test(n)&&(i=!e.disabled),i&&(!o||t.isVisible(e))}return!1},t.findFocusable=function(e,o){return void 0===o&&(o=!0),t.findElement(e,(function(e){return t.isFocusable(e,o)}))},t.findFocusableChild=function(e,o){return void 0===o&&(o=!0),t.findElement(e,(function(e){return t.isFocusable(e,o)}),!1)},t.findFocusableSibling=function(e,o,n){void 0===o&&(o=!0);for(var r=n?e.prevSibling:e.nextSibling;r;){if(1===r.nodeType){var i=t.findElement(r,(function(e){return t.isFocusable(e,o)}));if(i)return i}r=n?r.prevSibling:r.nextSibling}},t.isPresent=function(e){return null!=e},t.makePeeker=function(e){return function(o){return t.isPresent(e[o])}},t.getIndexOfFocused=function(e,t,o){return function(n){switch(n.type){case"keydown":if(n.keyCode===e)return o.length-1;if(n.keyCode===t)return 0;break;case"click":return o.findIndex((function(e){return e===n.target||e.contains(n.target)}));case"focus":default:return 0}}},t.seekFocusedIndex=function(e,t,o){return function(n,r){switch(r.keyCode){case e:return o(n-1)?n-1:n;case t:return o(n+1)?n+1:n;default:return n}}},t.areEqual=function(e){return function(t){return e===t}},t.getNextKey=function(e){return void 0===e&&(e=!1),function(t){return void 0===t&&(t=!0),t?n.Keys.ArrowDown:e?n.Keys.ArrowLeft:n.Keys.ArrowRight}},t.getPrevKey=function(e){return void 0===e&&(e=!1),function(t){return void 0===t&&(t=!0),t?n.Keys.ArrowUp:e?n.Keys.ArrowRight:n.Keys.ArrowLeft}},t.getValueForLocation=function(e,t,o){switch(t){case"toolbar":return o?void 0:e;case"overflow":return o?e:void 0;default:return e}}},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(2),a=o(3),s=function(e){function t(){var t=e.call(this)||this;return t.showText="both",t.showIcon="both",t.toggleable=!1,t.selected=!1,t.fillMode="solid",t.themeColor="base",t.click=new r.EventEmitter,t.pointerdown=new r.EventEmitter,t.selectedChange=new r.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"text",{set:function(e){this.toolbarOptions.text=a.getValueForLocation(e,this.showText,!1),this.overflowOptions.text=a.getValueForLocation(e,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(e){e&&(this.fillMode="default"===e?"solid":e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"togglable",{get:function(){return this.toggleable},set:function(e){this.toggleable=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){this.toolbarOptions.icon=a.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.icon=a.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(e){this.toolbarOptions.iconClass=a.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.iconClass=a.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(e){this.toolbarOptions.imageUrl=a.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.imageUrl=a.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),t.prototype.onBlur=function(){this.getButton().tabIndex=-1},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(e){e&&"focus"!==e.type&&"keydown"!==e.type||this.getButton().focus(),this.getButton().tabIndex=0},t.prototype.handleKey=function(){return this.getButton().tabIndex=-1,!1},t.prototype.getButton=function(){return(this.overflows?this.overflowButtonElement:this.toolbarButtonElement).nativeElement},n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showText",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"text",null),n.__decorate([r.Input(),n.__metadata("design:type",Object)],t.prototype,"style",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],t.prototype,"className",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"title",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"toggleable",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],t.prototype,"togglable",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"selected",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"click",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"pointerdown",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"selectedChange",void 0),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("toolbarButton",{read:r.ElementRef,static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"toolbarButtonElement",void 0),n.__decorate([r.ViewChild("overflowButton",{read:r.ElementRef,static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"overflowButtonElement",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarButton",providers:[{provide:i.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-button",template:'\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]="tabIndex"\n type="button"\n kendoButton\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [selected]="selected"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n (click)="click.emit($event)"\n (pointerdown)="pointerdown.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n (blur)="onBlur()"\n >\n {{ toolbarOptions.text }}\n </button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowButton\n tabindex="-1"\n type="button"\n kendoButton\n class="k-overflow-button"\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [selected]="selected"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n (click)="click.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(i.ToolBarToolComponent);t.ToolBarButtonComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(){function e(){this.disabled=!1,this.fillMode="solid",this.themeColor="base",this.itemClick=new r.EventEmitter}return e.prototype.getText=function(e){if(e)return this.textField?e[this.textField]:e.text||e},e.prototype.onClick=function(e,t){var o=this.data[t];e.click&&e.click(o),this.itemClick.emit(o)},n.__decorate([r.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"themeColor",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"itemClick",void 0),n.__decorate([r.ViewChildren("button"),n.__metadata("design:type",r.QueryList)],e.prototype,"buttons",void 0),e=n.__decorate([r.Component({selector:"kendo-toolbar-buttonlist",template:'\n <button\n #button\n type="button"\n tabindex="-1"\n kendoButton\n style="padding-left: 16px"\n class="k-overflow-button"\n *ngFor="let item of data; let i = index"\n [disabled]="disabled || item.disabled"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (click)="onClick(item, i)"\n >\n {{ getText(item) }}\n </button>\n '})],e)}();t.ToolBarButtonListComponent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(11),a=o(4),s=o(5),l=o(21),u=o(22),p=o(12),d=o(23),c=o(2),f=o(3),h=o(4),g=o(24),m=o(25),y=o(7),_=o(7),b=o(4),v=o(26),w=function(e){return{animate:!0,anchorAlign:{horizontal:e?"left":"right",vertical:"bottom"},popupAlign:{horizontal:e?"left":"right",vertical:"top"}}},C=function(){function e(e,t,o,n,i,a,s,p){this.localization=e,this.popupService=t,this.refreshService=o,this.navigationService=n,this.element=i,this.cdr=a,this.zone=s,this.renderer=p,this.overflow=!1,this.tabindex=0,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.hostClasses=!0,this.cancelRenderedToolsSubscription$=new m.Subject,this.subscriptions=new m.Subscription,l.validatePackage(u.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"resizable",{get:function(){return this.overflow},set:function(e){this.overflow=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings||w(this.localization.rtl)},set:function(e){this._popupSettings=Object.assign({},w(this.localization.rtl),e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupOpen",{get:function(){return this._open},set:function(e){if(this.popupOpen!==e){var t=new g.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this.toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.onFocus=function(e){this.navigationService.resetNavigation(),this.navigationService.focusFirst(e),this.element.nativeElement.setAttribute("tabindex","-1")},e.prototype.onFocusOut=function(e){var t=this;f.closest(e.relatedTarget,(function(e){return e===t.element.nativeElement}))?this.element.nativeElement.setAttribute("tabindex","-1"):this.element.nativeElement.setAttribute("tabindex",this.tabindex.toString())},Object.defineProperty(e.prototype,"getRole",{get:function(){return"toolbar"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getDir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizableClass",{get:function(){return this.overflow},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.getAttribute("tabindex")||this.element.nativeElement.setAttribute("tabindex","0"),this.zone.runOutsideAngular((function(){e.toolbarKeydownListener=e.renderer.listen(e.element.nativeElement,"keydown",(function(t){switch(t.keyCode){case h.Keys.ArrowLeft:e.zone.run((function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusPrev(t):e.navigationService.focusNext(t),e.element.nativeElement.setAttribute("tabindex","-1")}));break;case h.Keys.ArrowRight:e.zone.run((function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusNext(t):e.navigationService.focusPrev(t),e.element.nativeElement.setAttribute("tabindex","-1")}));break;case h.Keys.Tab:e.zone.run((function(){return e.navigationService.resetNavigation()}));break;case h.Keys.Escape:e.zone.run((function(){return e.toggle(!1)}))}}))})),this.overflow&&(this.subscriptions.add(m.merge(this.resizeSensor.resize.pipe(_.filter((function(){return e.overflow}))),this.renderedTools.changes).subscribe((function(){return e.onResize()}))),this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.onResize()}))})),this.navigationService.overflowButton=this.overflowButton),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.subscriptions.add(this.renderedTools.changes.subscribe((function(t){return e.navigationService.setRenderedTools(t.toArray())})))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var o=t.rtl;return e.direction=o?"rtl":"ltr"}))),b.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.subscriptions.add(m.fromEvent(document,"click").pipe(_.filter((function(){return!!e.popupRef})),_.filter((function(t){return!e.popupRef.popup.instance.container.nativeElement.contains(t.target)})),_.filter((function(t){return!e.overflowButton.nativeElement.contains(t.target)}))).subscribe((function(){e.zone.run((function(){e.popupOpen=!1}))})))}))},e.prototype.ngOnChanges=function(e){e.tabindex&&this.element.nativeElement.setAttribute("tabindex",e.tabindex.currentValue.toString())},e.prototype.ngOnDestroy=function(){this.popupRef&&this.popupRef.close(),this.toolbarKeydownListener&&this.toolbarKeydownListener(),this.cancelRenderedToolsSubscription$.next(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"moreToolsTitle",{get:function(){return this.localization.get("moreToolsTitle")},enumerable:!0,configurable:!0}),e.prototype.onRendererClick=function(e){this.navigationService.click(e),this.element.nativeElement.setAttribute("tabindex","-1")},e.prototype.showPopup=function(){this.popupOpen=!this.popupOpen,this.navigationService.click({context:void 0,event:void 0})},e.prototype.toggle=function(e){this._open=void 0!==e?e:!this.popupOpen,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupOpen&&(this.popupRef=this.popupService.open({anchor:this.overflowButton,anchorAlign:this.popupSettings.anchorAlign,popupAlign:this.popupSettings.popupAlign,content:this.popupTemplate,appendTo:this.appendTo,animate:this.popupSettings.animate,popupClass:this.popupSettings.popupClass,positionMode:"absolute"}),this.setPopupContentDimensions(),this.popupRef.popupOpen.subscribe(this.onPopupOpen.bind(this)),this.popupRef.popupClose.subscribe(this.onPopupClose.bind(this)))},e.prototype.onResize=function(){if(b.isDocumentAvailable()){var e=f.innerWidth(this.element.nativeElement)-this.overflowAnchorWidth;this.shrink(e,this.childrenWidth),this.stretch(e,this.childrenWidth)}this.cdr.detectChanges(),this.resizeSensor.acceptSize()},e.prototype.onPopupOpen=function(){var e=this;this.zone.runOutsideAngular((function(){e.overflowKeydownListener=e.renderer.listen(e.popupRef.popupElement,"keydown",(function(t){switch(t.keyCode){case h.Keys.ArrowUp:e.zone.run((function(){t.preventDefault(),e.navigationService.focusPrev(t)}));break;case h.Keys.ArrowDown:e.zone.run((function(){t.preventDefault(),e.navigationService.focusNext(t)}));break;case h.Keys.Escape:e.zone.run((function(){return e.toggle(!1)}));break;case h.Keys.Tab:e.zone.run((function(){e.toggle(!1),e.navigationService.resetNavigation()}))}}))})),this.cancelRenderedToolsSubscription$.next(),this.navigationService.moveFocusToPopup(),this.navigationService.setRenderedTools(this.overflowRenderedTools.toArray()),this.overflowRenderedTools.changes.pipe(y.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe((function(t){return e.navigationService.setRenderedTools(t.toArray())}))},e.prototype.onPopupClose=function(){var e=this;this.cancelRenderedToolsSubscription$.next(),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.renderedTools.changes.pipe(y.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe((function(t){return e.navigationService.setRenderedTools(t.toArray())})),this.navigationService.moveFocusToToolBar(),this.overflowKeydownListener&&this.overflowKeydownListener()},Object.defineProperty(e.prototype,"displayAnchor",{get:function(){return this.allTools.filter((function(e){return e.overflows&&e.responsive})).length>0?"visible":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupWidth",{get:function(){return this.popupSettings&&this.popupSettings.width?isNaN(this.popupSettings.width)?this.popupSettings.width:this.popupSettings.width+"px":v.defaultPopupWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupHeight",{get:function(){if(this.popupSettings&&this.popupSettings.height)return isNaN(this.popupSettings.height)?this.popupSettings.height:this.popupSettings.height+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowAnchorWidth",{get:function(){return this.overflow?(this.cachedOverflowAnchorWidth||(this.cachedOverflowAnchorWidth=f.outerWidth(this.overflowButton.nativeElement)),this.cachedOverflowAnchorWidth):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childrenWidth",{get:function(){var e=this.renderedTools.reduce((function(e,t){return t.width+e}),0);return Math.ceil(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleTools",{get:function(){return this.allTools.filter((function(e){return!1===e.overflows}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowTools",{get:function(){return this.allTools.filter((function(e){return!0===e.overflows}))},enumerable:!0,configurable:!0}),e.prototype.shrink=function(e,t){if(e<t)for(var o=this.visibleTools.length-1;o>=0&&!(e>t);o--)t-=this.hideLastVisibleTool()},e.prototype.stretch=function(e,t){var o;if(e>t)for(var n=this.overflowTools.length-1;n>=0&&(o=this.showFirstHiddenTool(e,t));n--)t+=o},e.prototype.hideLastVisibleTool=function(){var e=this.visibleTools[this.visibleTools.length-1],t=this.renderedTools.find((function(t){return t.tool===e})).width;return e.overflows=!0,this.refreshService.refresh(e),t},e.prototype.showFirstHiddenTool=function(e,t){var o=this.overflowTools[0],n=this.renderedTools.find((function(e){return e.tool===o}));return o.overflows=!1,o.visibility="hidden",this.refreshService.refresh(o),e>t+n.width?(o.visibility="visible",this.refreshService.refresh(o)):(o.overflows=!0,this.refreshService.refresh(o)),n.width},e.prototype.setPopupContentDimensions=function(){var e=this.popupRef.popup.instance.contentContainer.nativeElement;e.style.width=this.popupWidth,e.style.height=this.popupHeight,e.style.overflow="auto"},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"overflow",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"resizable",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([r.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),n.__decorate([r.ContentChildren(c.ToolBarToolComponent),n.__metadata("design:type",r.QueryList)],e.prototype,"allTools",void 0),n.__decorate([r.ViewChild("overflowButton",{static:!1}),n.__metadata("design:type",r.ElementRef)],e.prototype,"overflowButton",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("resizeSensor",{static:!1}),n.__metadata("design:type",a.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),n.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),n.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([r.ViewChildren("toolbarRenderer"),n.__metadata("design:type",r.QueryList)],e.prototype,"renderedTools",void 0),n.__decorate([r.ViewChildren("overflowRenderer"),n.__metadata("design:type",r.QueryList)],e.prototype,"overflowRenderedTools",void 0),n.__decorate([r.HostBinding("class.k-widget"),r.HostBinding("class.k-toolbar"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([r.HostListener("focus",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onFocus",null),n.__decorate([r.HostListener("focusout",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onFocusOut",null),n.__decorate([r.HostBinding("attr.role"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"getRole",null),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"getDir",null),n.__decorate([r.HostBinding("class.k-toolbar-resizable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"resizableClass",null),e=n.__decorate([r.Component({exportAs:"kendoToolBar",providers:[p.RefreshService,d.NavigationService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.toolbar"}],selector:"kendo-toolbar",template:'\n <ng-container kendoToolbarLocalizedMessages\n i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"\n moreToolsTitle="More tools"\n >\n </ng-container>\n <ng-container *ngFor="let tool of allTools; let index = index">\n <kendo-toolbar-renderer\n #toolbarRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'toolbar\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </ng-container>\n <button\n #overflowButton\n type="button"\n tabindex="-1"\n [title]="moreToolsTitle"\n [attr.aria-label]="moreToolsTitle"\n *ngIf="overflow"\n [style.visibility]="displayAnchor"\n class="k-overflow-anchor k-button"\n (click)="showPopup()"\n >\n <span class="k-icon k-i-more-vertical"></span>\n </button>\n <ng-template #popupTemplate>\n <ul class="k-overflow-container k-list-container k-reset">\n <ng-container *ngFor="let tool of allTools; let index = index">\n <li class="k-item">\n <kendo-toolbar-renderer\n #overflowRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'overflow\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </li>\n </ng-container>\n </ul>\n </ng-template>\n <ng-container #container></ng-container>\n <kendo-resize-sensor *ngIf="overflow" [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>\n '}),n.__metadata("design:paramtypes",[s.LocalizationService,i.PopupService,p.RefreshService,d.NavigationService,r.ElementRef,r.ChangeDetectorRef,r.NgZone,r.Renderer2])],e)}();t.ToolBarComponent=C},function(e,t){e.exports=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(){function e(){this.onRefresh=new r.EventEmitter}return e.prototype.refresh=function(e){this.onRefresh.emit(e)},e=n.__decorate([r.Injectable()],e)}();t.RefreshService=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(5),a=o(2),s=o(8),l=o(6),u=o(3),p=function(e){function t(t){var o=e.call(this)||this;return o.localization=t,o.selection="multiple",o.focusedIndex=-1,o.getNextKey=u.getNextKey(o.localization.rtl),o.getPrevKey=u.getPrevKey(o.localization.rtl),o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"look",{set:function(e){e&&this.buttonComponents.forEach((function(t){return t.fillMode="default"===e?"solid":e}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonElements",{get:function(){return this.getButtonGroup().buttons.filter((function(e){return!e.isDisabled})).map((function(e){return e.element}))},enumerable:!0,configurable:!0}),t.prototype.onFocus=function(){this.focusedIndex=0},t.prototype.onNavigate=function(e){e.preventDefault()},t.prototype.selectedChangeHandler=function(e,t){t.selected=e,t.selectedChange.emit(e)},t.prototype.onButtonClick=function(e){this.focusedIndex=this.buttonElements.findIndex((function(t){return t===e.target||t.contains(e.target)})),this.focusButton(this.focusedIndex,e)},t.prototype.canFocus=function(){return!(this.disabled||0===this.buttonElements.length)},t.prototype.focus=function(e){void 0===e&&(e={});var t=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows);this.focusedIndex=u.getIndexOfFocused(o,t,this.buttonElements)(e),this.focusButton(this.focusedIndex,e)},t.prototype.handleKey=function(e){var t=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows),n=u.makePeeker(this.buttonElements),r=u.areEqual(this.focusedIndex);return this.focusedIndex=u.seekFocusedIndex(o,t,n)(this.focusedIndex,e),this.focusButton(this.focusedIndex,e),!r(this.focusedIndex)},t.prototype.getButtonGroup=function(){return this.overflows?this.overflowButtonGroup:this.toolbarButtonGroup},t.prototype.focusButton=function(e,t){t.type&&"focus"!==t.type&&"keydown"!==t.type||this.buttonElements[e].focus()},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"selection",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"width",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ContentChildren(r.forwardRef((function(){return s.ToolBarButtonComponent}))),n.__metadata("design:type",r.QueryList)],t.prototype,"buttonComponents",void 0),n.__decorate([r.ViewChild("toolbarButtonGroup",{static:!1}),n.__metadata("design:type",l.ButtonGroupComponent)],t.prototype,"toolbarButtonGroup",void 0),n.__decorate([r.ViewChild("overflowButtonGroup",{static:!1}),n.__metadata("design:type",l.ButtonGroupComponent)],t.prototype,"overflowButtonGroup",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarButtonGroup",providers:[i.LocalizationService,{provide:a.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-buttongroup",template:'\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [width]="width"\n (navigate)="onNavigate($event)"\n (focus)="onFocus()"\n >\n <span\n kendoButton\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [selected]="button.selected"\n [fillMode]="button.fillMode"\n [themeColor]="button.fillMode ? button.themeColor : null"\n [icon]="button.toolbarOptions.icon"\n [iconClass]="button.toolbarOptions.iconClass"\n [imageUrl]="button.toolbarOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (pointerdown)="button.pointerdown.emit($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.toolbarOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n <ng-template #popupTemplate>\n <kendo-buttongroup\n #overflowButtonGroup\n class="k-overflow-button"\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [width]="width"\n >\n <span\n kendoButton\n class="k-overflow-button"\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [selected]="button.selected"\n [fillMode]="button.fillMode"\n [themeColor]="button.fillMode ? button.themeColor : null"\n [icon]="button.overflowOptions.icon"\n [iconClass]="button.overflowOptions.iconClass"\n [imageUrl]="button.overflowOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.overflowOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[i.LocalizationService])],t)}(a.ToolBarToolComponent);t.ToolBarButtonGroupComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(2),a=o(6),s=o(9),l=o(3),u=function(e){function t(){var t=e.call(this)||this;return t.showText="both",t.showIcon="both",t.fillMode="solid",t.themeColor="base",t.itemClick=new r.EventEmitter,t.open=new r.EventEmitter,t.close=new r.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=l.getNextKey(),t.getPrevKey=l.getPrevKey(),t}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"text",{set:function(e){this.toolbarOptions.text=l.getValueForLocation(e,this.showText,!1),this.overflowOptions.text=l.getValueForLocation(e,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){this.toolbarOptions.icon=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.icon=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(e){this.toolbarOptions.iconClass=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.iconClass=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(e){this.toolbarOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0,popupClass:""},e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(e){e&&(this.fillMode="default"===e?"solid":e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"primary",{set:function(e){this.themeColor=e?"primary":"base"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowButtons",{get:function(){return this.overflowDropDownButtonButtonList.buttons.toArray().filter((function(e){return!e.nativeElement.disabled})).slice()},enumerable:!0,configurable:!0}),t.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowDropDownButtonButtonList.buttons.toArray().findIndex((function(t){return t.nativeElement.contains(e.target)}))},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(e){void 0===e&&(e={}),this.overflows?this.overflowButtons.length>0&&(this.focusedIndex=l.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map((function(e){return e.nativeElement})))(e),this.focusButton(this.focusedIndex,e)):"focus"!==e.type&&"keydown"!==e.type||this.toolbarDropDownButton.focus()},t.prototype.handleKey=function(e){if(!this.overflows&&(e.keyCode===this.getPrevKey(this.overflows)||e.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var t=l.makePeeker(this.overflowButtons),o=l.areEqual(this.focusedIndex);return this.focusedIndex=l.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),t)(this.focusedIndex,e),this.focusButton(this.focusedIndex,e),!o(this.focusedIndex)}},t.prototype.focusButton=function(e,t){t.type&&"focus"!==t.type&&"keydown"!==t.type||this.overflowButtons[e].nativeElement.focus()},n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showText",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"text",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],t.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],t.prototype,"primary",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"buttonClass",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"itemClick",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("dropdownButton",{read:r.ElementRef,static:!0}),n.__metadata("design:type",r.ElementRef)],t.prototype,"dropdownButton",void 0),n.__decorate([r.ViewChild(a.DropDownButtonComponent,{static:!1}),n.__metadata("design:type",a.DropDownButtonComponent)],t.prototype,"dropDownButtonComponent",void 0),n.__decorate([r.ViewChild("toolbarDropDownButton",{static:!1}),n.__metadata("design:type",a.DropDownButtonComponent)],t.prototype,"toolbarDropDownButton",void 0),n.__decorate([r.ViewChild("overflowDropDownButtonButtonList",{static:!1}),n.__metadata("design:type",s.ToolBarButtonListComponent)],t.prototype,"overflowDropDownButtonButtonList",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarDropDownButton",providers:[{provide:i.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-dropdownbutton\n #toolbarDropDownButton\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [disabled]="disabled"\n [tabIndex]="-1"\n [data]="data"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n {{ toolbarOptions.text }}\n </kendo-dropdownbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n type="button"\n tabindex="-1"\n kendoButton\n class="k-overflow-button"\n [disabled]="true"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [ngClass]="buttonClass"\n (click)="itemClick.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowDropDownButtonButtonList\n [data]="data"\n [disabled]="disabled"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(i.ToolBarToolComponent);t.ToolBarDropDownButtonComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(6),a=o(2),s=o(9),l=o(3),u=function(e){function t(){var t=e.call(this)||this;return t.showText="both",t.showIcon="both",t.fillMode="solid",t.themeColor="base",t.arrowButtonIcon="arrow-s",t.textField="text",t.buttonClick=new r.EventEmitter,t.itemClick=new r.EventEmitter,t.open=new r.EventEmitter,t.close=new r.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=l.getNextKey(),t.getPrevKey=l.getPrevKey(),t}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"text",{set:function(e){this.toolbarOptions.text=l.getValueForLocation(e,this.showText,!1),this.overflowOptions.text=l.getValueForLocation(e,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){this.toolbarOptions.icon=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.icon=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(e){this.toolbarOptions.iconClass=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.iconClass=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(e){this.toolbarOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this._popupSettings||(this._popupSettings={animate:!0,popupClass:""}),this._popupSettings},set:function(e){this._popupSettings=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(e){e&&(this.fillMode="default"===e?"solid":e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowButtons",{get:function(){return[this.overflowSplitButton].concat(this.overflowSplitButtonButtonList.buttons.toArray().filter((function(e){return!e.nativeElement.disabled})))},enumerable:!0,configurable:!0}),t.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowButtons.findIndex((function(t){return t.nativeElement.contains(e.target)}))},t.prototype.onMainButtonClick=function(e){this.buttonClick.emit(e),this.focusedIndex=0},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(e){void 0===e&&(e={}),this.overflows?this.overflowButtons.length>0&&(this.focusedIndex=l.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map((function(e){return e.nativeElement})))(e),this.focusButton(this.focusedIndex,e)):"focus"!==e.type&&"keydown"!==e.type||this.toolbarSplitButton.focus()},t.prototype.handleKey=function(e){if(!this.overflows&&(e.keyCode===this.getPrevKey(this.overflows)||e.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var t=l.makePeeker(this.overflowButtons),o=l.areEqual(this.focusedIndex);return this.focusedIndex=l.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),t)(this.focusedIndex,e),this.focusButton(this.focusedIndex,e),!o(this.focusedIndex)}},t.prototype.focusButton=function(e,t){t.type&&"focus"!==t.type&&"keydown"!==t.type&&"click"!==t.type||this.overflowButtons[e].nativeElement.focus()},n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showText",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"text",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],t.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"buttonClass",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],t.prototype,"arrowButtonClass",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"arrowButtonIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"buttonClick",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"itemClick",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("toolbarSplitButton",{static:!1}),n.__metadata("design:type",i.SplitButtonComponent)],t.prototype,"toolbarSplitButton",void 0),n.__decorate([r.ViewChild("overflowSplitButton",{read:r.ElementRef,static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"overflowSplitButton",void 0),n.__decorate([r.ViewChild("overflowSplitButtonButtonList",{static:!1}),n.__metadata("design:type",s.ToolBarButtonListComponent)],t.prototype,"overflowSplitButtonButtonList",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarSplitButton",providers:[{provide:a.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-splitbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-splitbutton\n #toolbarSplitButton\n [data]="data"\n [text]="toolbarOptions.text"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [arrowButtonClass]="arrowButtonClass"\n [arrowButtonIcon]="arrowButtonIcon"\n [disabled]="disabled"\n [tabIndex]="-1"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (buttonClick)="buttonClick.emit($event)"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n </kendo-splitbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowSplitButton\n type="button"\n tabindex="-1"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n kendoButton\n class="k-overflow-button"\n [disabled]="disabled"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [ngClass]="buttonClass"\n (click)="buttonClick.emit($event)"\n (click)="onMainButtonClick($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowSplitButtonButtonList\n [data]="data"\n [disabled]="disabled"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(a.ToolBarToolComponent);t.ToolBarSplitButtonComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(2),a=function(e){function t(){return e.call(this)||this}var o;return n.__extends(t,e),o=t,t.prototype.canFocus=function(){return!1},t.prototype.focus=function(){},t.prototype.handleKey=function(){return!1},t.prototype.ngAfterViewInit=function(){this.popupTemplate||(this.popupTemplate=this.toolbarTemplate)},n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("separator",{static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"separator",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarSeparator",providers:[{provide:i.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-separator",template:'\n <ng-template #toolbarTemplate>\n <div class="k-separator"></div>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(i.ToolBarToolComponent);t.ToolBarSeparatorComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(5),a=o(18),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,t=o=n.__decorate([r.Directive({providers:[{provide:a.ToolbarMessages,useExisting:r.forwardRef((function(){return o}))}],selector:"[kendoToolbarLocalizedMessages]"}),n.__metadata("design:paramtypes",[i.LocalizationService])],t)}(a.ToolbarMessages);t.LocalizedToolbarMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"moreToolsTitle",void 0),t}(o(5).ComponentMessages);t.ToolbarMessages=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(5),a=o(18),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=o=n.__decorate([r.Component({providers:[{provide:a.ToolbarMessages,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-messages",template:""}),n.__metadata("design:paramtypes",[i.LocalizationService])],t)}(a.ToolbarMessages);t.ToolbarCustomMessagesComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(10);t.ToolBarComponent=n.ToolBarComponent;var r=o(2);t.ToolBarToolComponent=r.ToolBarToolComponent;var i=o(8);t.ToolBarButtonComponent=i.ToolBarButtonComponent;var a=o(13);t.ToolBarButtonGroupComponent=a.ToolBarButtonGroupComponent;var s=o(14);t.ToolBarDropDownButtonComponent=s.ToolBarDropDownButtonComponent;var l=o(15);t.ToolBarSplitButtonComponent=l.ToolBarSplitButtonComponent;var u=o(16);t.ToolBarSeparatorComponent=u.ToolBarSeparatorComponent;var p=o(27);t.ToolBarModule=p.ToolBarModule;var d=o(17);t.LocalizedToolbarMessagesDirective=d.LocalizedToolbarMessagesDirective;var c=o(19);t.ToolbarCustomMessagesComponent=c.ToolbarCustomMessagesComponent},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-toolbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646819293,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(7),a=o(3),s=function(){function e(e){this.zone=e,this.focused={renderedTool:null,index:-1},this.renderedTools=[],this.isPopupFocused=!1,this.isOverflowButtonFocused=!1}return e.prototype.setRenderedTools=function(e){this.renderedTools=e.slice()},e.prototype.click=function(e){var t=e.context,o=e.event;this.focused.renderedTool!==t&&o&&this.focus(t,o)},e.prototype.moveFocusToToolBar=function(){this.isPopupFocused=!1,this.focusOverflowButton()},e.prototype.moveFocusToPopup=function(){this.isPopupFocused=!0,this.blurOverflowButton(),this.focus()},e.prototype.focusNext=function(e){if(!this.isOverflowButtonFocused&&this.focused.renderedTool&&!this.focused.renderedTool.tool.handleKey(e)){var t=this.getFocusableTools().slice(this.focused.index+1)[0];t?this.focus(t,e):this.isOverflowButtonVisible()&&!this.isPopupFocused&&this.focusOverflowButton()}},e.prototype.focusPrev=function(e){if(this.isOverflowButtonFocused){var t=this.getFocusableTools().reverse()[0];this.focus(t,e)}else if(this.focused.renderedTool&&!this.focused.renderedTool.tool.handleKey(e)){var o=this.getFocusableTools().slice(0,this.focused.index).reverse()[0];o&&this.focus(o,e)}},e.prototype.resetNavigation=function(){this.blurOverflowButton(),this.focused.renderedTool=null,this.focused.index=-1},e.prototype.focusFirst=function(e){var t=this.getFocusableTools()[0],o=this.overflowButton;t?(this.focused.renderedTool=t,this.focused.index=this.getFocusableTools().findIndex((function(e){return e===t})),this.focus(t,e)):o&&o.nativeElement.focus()},e.prototype.getFocusableTools=function(){var e=this;return this.renderedTools.filter((function(t){return t.tool.overflows===e.isPopupFocused&&t.tool.canFocus()}))},e.prototype.focus=function(e,t){var o=this;this.zone.onStable.pipe(i.take(1)).subscribe((function(){if(e)e.tool.canFocus&&e.tool.canFocus()&&(o.focused.renderedTool=e,o.focused.index=o.getFocusableTools().findIndex((function(t){return t===e})),e.tool.focus(t),o.blurOverflowButton());else{var n=o.getFocusableTools(),r=n.find((function(e){return e===o.focused.renderedTool}))||n[0];r&&(o.focused.renderedTool=r,o.focused.index=o.getFocusableTools().findIndex((function(e){return e===r})),r.tool.focus(t))}}))},e.prototype.blurOverflowButton=function(){this.overflowButton&&(this.isOverflowButtonFocused=!1,this.overflowButton.nativeElement.tabIndex=-1)},e.prototype.focusOverflowButton=function(){this.isOverflowButtonFocused=!0,this.overflowButton.nativeElement.tabIndex=0,this.overflowButton.nativeElement.focus()},e.prototype.isOverflowButtonVisible=function(){return a.isPresent(this.overflowButton)&&"visible"===window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue("visibility")},e=n.__decorate([r.Injectable(),n.__metadata("design:paramtypes",[r.NgZone])],e)}();t.NavigationService=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPopupWidth="150px"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(28),a=o(6),s=o(11),l=o(4),u=o(10),p=o(2),d=o(8),c=o(13),f=o(14),h=o(15),g=o(16),m=o(29),y=o(9),_=o(17),b=o(19),v=[p.ToolBarToolComponent,d.ToolBarButtonComponent,c.ToolBarButtonGroupComponent,f.ToolBarDropDownButtonComponent,h.ToolBarSplitButtonComponent,g.ToolBarSeparatorComponent],w=[m.ToolBarRendererComponent,y.ToolBarButtonListComponent,b.ToolbarCustomMessagesComponent,_.LocalizedToolbarMessagesDirective],C=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[u.ToolBarComponent,v,w],exports:[u.ToolBarComponent,v,b.ToolbarCustomMessagesComponent,_.LocalizedToolbarMessagesDirective],imports:[i.CommonModule,a.ButtonsModule,s.PopupModule,l.ResizeSensorModule]})],e)}();t.ToolBarModule=C},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(3),a=o(2),s=o(12),l=o(30),u=function(){function e(e,t,o,n){var i=this;this.element=e,this.renderer=t,this.rendererService=o,this.refreshService=n,this.rendererClick=new r.EventEmitter,this.rendererService.element=e,this.rendererService.renderer=this,this.refreshSubscription=this.refreshService.onRefresh.subscribe((function(e){i.tool===e&&i.refresh()}))}return e.prototype.onClick=function(e){this.rendererClick.emit({context:this,event:e})},e.prototype.ngOnInit=function(){this.resizable?"toolbar"===this.location?(this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.template=this.tool.popupTemplate,this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.tool.overflows=!1,this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","display"),this.renderer.setStyle(this.element.nativeElement,"display","inline-block"))},e.prototype.ngOnDestroy=function(){this.refreshSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.resizable&&this.refresh()},Object.defineProperty(e.prototype,"width",{get:function(){return this.tool.overflows?0:i.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isDisplayed=function(){return"none"!==this.element.nativeElement.style.display},e.prototype.refresh=function(){this.resizable&&("toolbar"===this.location?(this.renderer.setStyle(this.element.nativeElement,"visibility",this.tool.visibility),this.renderer.setStyle(this.element.nativeElement,"display",this.tool.toolbarDisplay)):this.renderer.setStyle(this.element.nativeElement,"display",this.tool.overflowDisplay))},e.prototype.setAttribute=function(e,t,o){this.renderer.setAttribute(e,t,o)},n.__decorate([r.Input(),n.__metadata("design:type",a.ToolBarToolComponent)],e.prototype,"tool",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"location",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"resizable",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"rendererClick",void 0),n.__decorate([r.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=n.__decorate([r.Component({exportAs:"kendoToolBarRenderer",providers:[l.RendererService],selector:"kendo-toolbar-renderer",template:'\n <ng-container *ngIf="location === \'toolbar\'">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n <ng-container *ngIf="location === \'overflow\' && tool.responsive">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n '}),n.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,l.RendererService,s.RefreshService])],e)}();t.ToolBarRendererComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(3),a=function(){function e(){}return e.prototype.getElement=function(){return this.element.nativeElement},e.prototype.querySelector=function(e){return this.element.nativeElement.querySelector(e)},e.prototype.querySelectorAll=function(e){return this.element.nativeElement.querySelectorAll(e)},e.prototype.findFocusable=function(){return i.findFocusable(this.element.nativeElement,!1)},e.prototype.findFocusableChild=function(e){return e||(e=this.findFocusable()),i.findFocusableChild(e,!1)},e.prototype.findNextFocusableSibling=function(e){return e||(e=this.findFocusable()),i.findFocusableSibling(e,!1)},e.prototype.findPrevFocusableSibling=function(e){return e||(e=this.findFocusable()),i.findFocusableSibling(e,!1,!0)},e.prototype.setAttribute=function(e,t,o){this.renderer.setAttribute(e,t,o)},e=n.__decorate([r.Injectable()],e)}();t.RendererService=a}])}));
|
|
20
|
+
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function r(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var i=function(){return(i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}function s(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}function l(e,t){return function(o,n){t(o,n,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function d(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}function f(e,t){for(var o in e)"default"===o||t.hasOwnProperty(o)||(t[o]=e[o])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)n[r]=i[a];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function _(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=o.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){r[e]&&(n[e]=function(t){return new Promise((function(o,n){i.push([e,t,o,n])>1||s(e,t)}))})}function s(e,t){try{(o=r[e](t)).value instanceof b?Promise.resolve(o.value.v).then(l,p):u(i[0][2],o)}catch(e){u(i[0][3],e)}var o}function l(e){s("next",e)}function p(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function v(e){var t,o;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,r){t[n]=e[n]?function(t){return(o=!o)?{value:b(e[n](t)),done:"return"===n}:r?r(t):t}:r}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(t){return new Promise((function(n,r){(function(e,t,o,n){Promise.resolve(n).then((function(t){e({value:t,done:o})}),t)})(n,r,(t=e[o](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}function B(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,o){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,o),o}},function(t,o){t.exports=e},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(){function e(){this.tabIndex=-1,this.overflows=!0,this.responsive=!0}return Object.defineProperty(e.prototype,"toolbarDisplay",{get:function(){return this.overflows?"none":"inline-block"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowDisplay",{get:function(){return this.overflows?"block":"none"},enumerable:!0,configurable:!0}),e.prototype.canFocus=function(){return!1},e.prototype.focus=function(e){},e.prototype.handleKey=function(e){return!1},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"responsive",void 0),e=n.__decorate([r.Component({selector:"toolbar-tool",template:""})],e)}();t.ToolBarToolComponent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),r=/^(?:a|input|select|textarea|button|object)$/i;t.outerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t+=parseFloat(o.marginLeft)||0+parseFloat(o.marginRight)||0},t.innerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t-=parseFloat(o.paddingLeft)||0+parseFloat(o.borderLeftWidth)||0,t-=parseFloat(o.paddingRight)||0+parseFloat(o.borderRightWidth)||0},t.outerHeight=function(e){var t=e.offsetHeight,o=getComputedStyle(e);return t+=parseFloat(o.marginTop)||0+parseFloat(o.marginBottom)||0},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.isVisible=function(e){var t=e.getBoundingClientRect(),o=t.width>0&&t.height>0,n=0!==t.x&&0!==t.y;return(o||n)&&"hidden"!==window.getComputedStyle(e).visibility},t.findElement=function(e,o,n){if(void 0===n&&(n=!0),e){if(n&&o(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=t.findElement(e,o);if(r)return r}e=e.nextSibling}}},t.isFocusable=function(e,o){if(void 0===o&&(o=!0),e.tagName){var n=e.tagName.toLowerCase(),i=null!==e.getAttribute("tabIndex");return r.test(n)&&(i=!e.disabled),i&&(!o||t.isVisible(e))}return!1},t.findFocusable=function(e,o){return void 0===o&&(o=!0),t.findElement(e,(function(e){return t.isFocusable(e,o)}))},t.findFocusableChild=function(e,o){return void 0===o&&(o=!0),t.findElement(e,(function(e){return t.isFocusable(e,o)}),!1)},t.findFocusableSibling=function(e,o,n){void 0===o&&(o=!0);for(var r=n?e.prevSibling:e.nextSibling;r;){if(1===r.nodeType){var i=t.findElement(r,(function(e){return t.isFocusable(e,o)}));if(i)return i}r=n?r.prevSibling:r.nextSibling}},t.isPresent=function(e){return null!=e},t.makePeeker=function(e){return function(o){return t.isPresent(e[o])}},t.getIndexOfFocused=function(e,t,o){return function(n){switch(n.type){case"keydown":if(n.keyCode===e)return o.length-1;if(n.keyCode===t)return 0;break;case"click":return o.findIndex((function(e){return e===n.target||e.contains(n.target)}));case"focus":default:return 0}}},t.seekFocusedIndex=function(e,t,o){return function(n,r){switch(r.keyCode){case e:return o(n-1)?n-1:n;case t:return o(n+1)?n+1:n;default:return n}}},t.areEqual=function(e){return function(t){return e===t}},t.getNextKey=function(e){return void 0===e&&(e=!1),function(t){return void 0===t&&(t=!0),t?n.Keys.ArrowDown:e?n.Keys.ArrowLeft:n.Keys.ArrowRight}},t.getPrevKey=function(e){return void 0===e&&(e=!1),function(t){return void 0===t&&(t=!0),t?n.Keys.ArrowUp:e?n.Keys.ArrowRight:n.Keys.ArrowLeft}},t.getValueForLocation=function(e,t,o){switch(t){case"toolbar":return o?void 0:e;case"overflow":return o?e:void 0;default:return e}}},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(2),a=o(3),s=function(e){function t(){var t=e.call(this)||this;return t.showText="both",t.showIcon="both",t.toggleable=!1,t.selected=!1,t.fillMode="solid",t.themeColor="base",t.click=new r.EventEmitter,t.pointerdown=new r.EventEmitter,t.selectedChange=new r.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"text",{set:function(e){this.toolbarOptions.text=a.getValueForLocation(e,this.showText,!1),this.overflowOptions.text=a.getValueForLocation(e,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(e){e&&(this.fillMode="default"===e?"solid":e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"togglable",{get:function(){return this.toggleable},set:function(e){this.toggleable=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){this.toolbarOptions.icon=a.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.icon=a.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(e){this.toolbarOptions.iconClass=a.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.iconClass=a.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(e){this.toolbarOptions.imageUrl=a.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.imageUrl=a.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),t.prototype.onBlur=function(){this.getButton().tabIndex=-1},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(e){e&&"focus"!==e.type&&"keydown"!==e.type||this.getButton().focus(),this.getButton().tabIndex=0},t.prototype.handleKey=function(){return this.getButton().tabIndex=-1,!1},t.prototype.getButton=function(){return(this.overflows?this.overflowButtonElement:this.toolbarButtonElement).nativeElement},n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showText",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"text",null),n.__decorate([r.Input(),n.__metadata("design:type",Object)],t.prototype,"style",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],t.prototype,"className",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"title",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"toggleable",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],t.prototype,"togglable",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"selected",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"click",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"pointerdown",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"selectedChange",void 0),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("toolbarButton",{read:r.ElementRef,static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"toolbarButtonElement",void 0),n.__decorate([r.ViewChild("overflowButton",{read:r.ElementRef,static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"overflowButtonElement",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarButton",providers:[{provide:i.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-button",template:'\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]="tabIndex"\n type="button"\n kendoButton\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [selected]="selected"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n (click)="click.emit($event)"\n (pointerdown)="pointerdown.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n (blur)="onBlur()"\n >\n {{ toolbarOptions.text }}\n </button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowButton\n tabindex="-1"\n type="button"\n kendoButton\n class="k-overflow-button"\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [selected]="selected"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n (click)="click.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(i.ToolBarToolComponent);t.ToolBarButtonComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(){function e(){this.disabled=!1,this.fillMode="solid",this.themeColor="base",this.itemClick=new r.EventEmitter}return e.prototype.getText=function(e){if(e)return this.textField?e[this.textField]:e.text||e},e.prototype.onClick=function(e,t){var o=this.data[t];e.click&&e.click(o),this.itemClick.emit(o)},n.__decorate([r.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"themeColor",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"itemClick",void 0),n.__decorate([r.ViewChildren("button"),n.__metadata("design:type",r.QueryList)],e.prototype,"buttons",void 0),e=n.__decorate([r.Component({selector:"kendo-toolbar-buttonlist",template:'\n <button\n #button\n type="button"\n tabindex="-1"\n kendoButton\n style="padding-left: 16px"\n class="k-overflow-button"\n *ngFor="let item of data; let i = index"\n [disabled]="disabled || item.disabled"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (click)="onClick(item, i)"\n >\n {{ getText(item) }}\n </button>\n '})],e)}();t.ToolBarButtonListComponent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(11),a=o(4),s=o(5),l=o(21),p=o(22),u=o(12),d=o(23),c=o(2),f=o(3),h=o(4),g=o(24),m=o(25),y=o(7),b=o(7),_=o(4),v=o(26),w=function(e){return{animate:!0,anchorAlign:{horizontal:e?"left":"right",vertical:"bottom"},popupAlign:{horizontal:e?"left":"right",vertical:"top"}}},C=function(){function e(e,t,o,n,i,a,s,u){this.localization=e,this.popupService=t,this.refreshService=o,this.navigationService=n,this.element=i,this.zone=a,this.renderer=s,this._cdr=u,this.overflow=!1,this.tabindex=0,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.hostClasses=!0,this.cancelRenderedToolsSubscription$=new m.Subject,this.subscriptions=new m.Subscription,l.validatePackage(p.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"resizable",{get:function(){return this.overflow},set:function(e){this.overflow=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings||w(this.localization.rtl)},set:function(e){this._popupSettings=Object.assign({},w(this.localization.rtl),e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupOpen",{get:function(){return this._open},set:function(e){if(this.popupOpen!==e){var t=new g.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this.toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.onFocus=function(e){this.navigationService.resetNavigation(),this.navigationService.focusFirst(e),this.element.nativeElement.setAttribute("tabindex","-1")},e.prototype.onFocusOut=function(e){var t=this;f.closest(e.relatedTarget,(function(e){return e===t.element.nativeElement}))?this.element.nativeElement.setAttribute("tabindex","-1"):this.element.nativeElement.setAttribute("tabindex",this.tabindex.toString())},Object.defineProperty(e.prototype,"getRole",{get:function(){return"toolbar"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getDir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizableClass",{get:function(){return this.overflow},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.getAttribute("tabindex")||this.element.nativeElement.setAttribute("tabindex","0"),this.zone.runOutsideAngular((function(){e.toolbarKeydownListener=e.renderer.listen(e.element.nativeElement,"keydown",(function(t){switch(t.keyCode){case h.Keys.ArrowLeft:e.zone.run((function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusPrev(t):e.navigationService.focusNext(t),e.element.nativeElement.setAttribute("tabindex","-1")}));break;case h.Keys.ArrowRight:e.zone.run((function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusNext(t):e.navigationService.focusPrev(t),e.element.nativeElement.setAttribute("tabindex","-1")}));break;case h.Keys.Tab:e.zone.run((function(){return e.navigationService.resetNavigation()}));break;case h.Keys.Escape:e.zone.run((function(){return e.toggle(!1)}))}}))})),this.overflow&&(this.subscriptions.add(m.merge(this.resizeSensor.resize.pipe(y.bufferTime(200),b.filter((function(e){return e.length>0}))),this.renderedTools.changes).subscribe((function(){e.onResize()}))),this.zone.runOutsideAngular((function(){return setTimeout((function(){e.onResize(),e.onResize()}))})),this.navigationService.overflowButton=this.overflowButton),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.subscriptions.add(this.renderedTools.changes.subscribe((function(t){return e.navigationService.setRenderedTools(t.toArray())})))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var o=t.rtl;return e.direction=o?"rtl":"ltr"}))),_.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.subscriptions.add(m.fromEvent(document,"click").pipe(b.filter((function(){return!!e.popupRef})),b.filter((function(t){return!e.popupRef.popup.instance.container.nativeElement.contains(t.target)})),b.filter((function(t){return!e.overflowButton.nativeElement.contains(t.target)}))).subscribe((function(){e.zone.run((function(){e.popupOpen=!1}))})))}))},e.prototype.ngOnChanges=function(e){e.tabindex&&this.element.nativeElement.setAttribute("tabindex",e.tabindex.currentValue.toString())},e.prototype.ngOnDestroy=function(){this.popupRef&&this.popupRef.close(),this.toolbarKeydownListener&&this.toolbarKeydownListener(),this.cancelRenderedToolsSubscription$.next(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"moreToolsTitle",{get:function(){return this.localization.get("moreToolsTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cdr",{get:function(){return this._cdr},enumerable:!0,configurable:!0}),e.prototype.onRendererClick=function(e){this.navigationService.click(e),this.element.nativeElement.setAttribute("tabindex","-1")},e.prototype.showPopup=function(){this.popupOpen=!this.popupOpen,this.navigationService.click({context:void 0,event:void 0})},e.prototype.toggle=function(e){this._open=void 0!==e?e:!this.popupOpen,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupOpen&&(this.popupRef=this.popupService.open({anchor:this.overflowButton,anchorAlign:this.popupSettings.anchorAlign,popupAlign:this.popupSettings.popupAlign,content:this.popupTemplate,appendTo:this.appendTo,animate:this.popupSettings.animate,popupClass:this.popupSettings.popupClass,positionMode:"absolute"}),this.setPopupContentDimensions(),this.popupRef.popupOpen.subscribe(this.onPopupOpen.bind(this)),this.popupRef.popupClose.subscribe(this.onPopupClose.bind(this)))},e.prototype.onResize=function(){var e=this;if(_.isDocumentAvailable()){var t=f.innerWidth(this.element.nativeElement)-this.overflowAnchorWidth;this.shrink(t,this.childrenWidth),this.stretch(t,this.childrenWidth),this.zone.onStable.pipe(y.take(1)).subscribe((function(){e.displayAnchor()}))}this.resizeSensor.acceptSize()},e.prototype.onPopupOpen=function(){var e=this;this.zone.runOutsideAngular((function(){e.overflowKeydownListener=e.renderer.listen(e.popupRef.popupElement,"keydown",(function(t){switch(t.keyCode){case h.Keys.ArrowUp:e.zone.run((function(){t.preventDefault(),e.navigationService.focusPrev(t)}));break;case h.Keys.ArrowDown:e.zone.run((function(){t.preventDefault(),e.navigationService.focusNext(t)}));break;case h.Keys.Escape:e.zone.run((function(){return e.toggle(!1)}));break;case h.Keys.Tab:e.zone.run((function(){e.toggle(!1),e.navigationService.resetNavigation()}))}}))})),this.cancelRenderedToolsSubscription$.next(),this.navigationService.moveFocusToPopup(),this.navigationService.setRenderedTools(this.overflowRenderedTools.toArray()),this.overflowRenderedTools.changes.pipe(y.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe((function(t){return e.navigationService.setRenderedTools(t.toArray())}))},e.prototype.onPopupClose=function(){var e=this;this.cancelRenderedToolsSubscription$.next(),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.renderedTools.changes.pipe(y.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe((function(t){return e.navigationService.setRenderedTools(t.toArray())})),this.navigationService.moveFocusToToolBar(),this.overflowKeydownListener&&this.overflowKeydownListener()},e.prototype.displayAnchor=function(){var e=this.allTools.filter((function(e){return e.overflows&&e.responsive})).length>0?"visible":"hidden";this.renderer.setStyle(this.overflowButton.nativeElement,"visibility",e)},Object.defineProperty(e.prototype,"popupWidth",{get:function(){return this.popupSettings&&this.popupSettings.width?isNaN(this.popupSettings.width)?this.popupSettings.width:this.popupSettings.width+"px":v.defaultPopupWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupHeight",{get:function(){if(this.popupSettings&&this.popupSettings.height)return isNaN(this.popupSettings.height)?this.popupSettings.height:this.popupSettings.height+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowAnchorWidth",{get:function(){return this.overflow?(this.cachedOverflowAnchorWidth||(this.cachedOverflowAnchorWidth=f.outerWidth(this.overflowButton.nativeElement)),this.cachedOverflowAnchorWidth):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gap",{get:function(){if(f.isPresent(this.cachedGap))return this.cachedGap;var e=getComputedStyle(this.element.nativeElement).gap;return this.cachedGap=f.isPresent(e)?parseInt(e,10):0,this.cachedGap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childrenWidth",{get:function(){var e=this,t=this.renderedTools.reduce((function(t,o){return o.width+t+(o.isDisplayed()?e.gap:0)}),0);return Math.ceil(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleTools",{get:function(){return this.allTools.filter((function(e){return!1===e.overflows}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowTools",{get:function(){return this.allTools.filter((function(e){return!0===e.overflows}))},enumerable:!0,configurable:!0}),e.prototype.shrink=function(e,t){if(e<t)for(var o=this.visibleTools.length-1;o>=0&&!(e>t);o--)t-=this.hideLastVisibleTool()},e.prototype.stretch=function(e,t){var o;if(e>t)for(var n=this.overflowTools.length-1;n>=0&&(o=this.showFirstHiddenTool(e,t));n--)t+=o},e.prototype.hideLastVisibleTool=function(){var e=this.visibleTools[this.visibleTools.length-1],t=this.renderedTools.find((function(t){return t.tool===e})).width;return e.overflows=!0,this.refreshService.refresh(e),t},e.prototype.showFirstHiddenTool=function(e,t){var o=this.overflowTools[0],n=this.renderedTools.find((function(e){return e.tool===o}));return o.overflows=!1,o.visibility="hidden",this.refreshService.refresh(o),e>t+n.width?(o.visibility="visible",this.refreshService.refresh(o)):(o.overflows=!0,this.refreshService.refresh(o)),n.width},e.prototype.setPopupContentDimensions=function(){var e=this.popupRef.popup.instance.contentContainer.nativeElement;e.style.width=this.popupWidth,e.style.height=this.popupHeight,e.style.overflow="auto"},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"overflow",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"resizable",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([r.Input("tabIndex"),n.__metadata("design:type",Number),n.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),n.__decorate([r.ContentChildren(c.ToolBarToolComponent),n.__metadata("design:type",r.QueryList)],e.prototype,"allTools",void 0),n.__decorate([r.ViewChild("overflowButton",{static:!1}),n.__metadata("design:type",r.ElementRef)],e.prototype,"overflowButton",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("resizeSensor",{static:!1}),n.__metadata("design:type",a.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),n.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),n.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([r.ViewChildren("toolbarRenderer"),n.__metadata("design:type",r.QueryList)],e.prototype,"renderedTools",void 0),n.__decorate([r.ViewChildren("overflowRenderer"),n.__metadata("design:type",r.QueryList)],e.prototype,"overflowRenderedTools",void 0),n.__decorate([r.HostBinding("class.k-widget"),r.HostBinding("class.k-toolbar"),n.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),n.__decorate([r.HostListener("focus",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onFocus",null),n.__decorate([r.HostListener("focusout",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onFocusOut",null),n.__decorate([r.HostBinding("attr.role"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"getRole",null),n.__decorate([r.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"getDir",null),n.__decorate([r.HostBinding("class.k-toolbar-resizable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"resizableClass",null),e=n.__decorate([r.Component({exportAs:"kendoToolBar",providers:[u.RefreshService,d.NavigationService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.toolbar"}],selector:"kendo-toolbar",template:'\n <ng-container kendoToolbarLocalizedMessages\n i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"\n moreToolsTitle="More tools"\n >\n </ng-container>\n <ng-container *ngFor="let tool of allTools; let index = index">\n <kendo-toolbar-renderer\n #toolbarRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'toolbar\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </ng-container>\n <button\n #overflowButton\n type="button"\n tabindex="-1"\n [title]="moreToolsTitle"\n [attr.aria-label]="moreToolsTitle"\n *ngIf="overflow"\n [style.visibility]="\'hidden\'"\n class="k-overflow-anchor k-button"\n (click)="showPopup()"\n >\n <span class="k-icon k-i-more-vertical"></span>\n </button>\n <ng-template #popupTemplate>\n <ul class="k-overflow-container k-list-container k-reset">\n <ng-container *ngFor="let tool of allTools; let index = index">\n <li class="k-item">\n <kendo-toolbar-renderer\n #overflowRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'overflow\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </li>\n </ng-container>\n </ul>\n </ng-template>\n <ng-container #container></ng-container>\n <kendo-resize-sensor *ngIf="overflow" [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>\n '}),n.__metadata("design:paramtypes",[s.LocalizationService,i.PopupService,u.RefreshService,d.NavigationService,r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef])],e)}();t.ToolBarComponent=C},function(e,t){e.exports=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(){function e(){this.onRefresh=new r.EventEmitter}return e.prototype.refresh=function(e){this.onRefresh.emit(e)},e=n.__decorate([r.Injectable()],e)}();t.RefreshService=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(5),a=o(2),s=o(8),l=o(6),p=o(3),u=function(e){function t(t){var o=e.call(this)||this;return o.localization=t,o.selection="multiple",o.focusedIndex=-1,o.getNextKey=p.getNextKey(o.localization.rtl),o.getPrevKey=p.getPrevKey(o.localization.rtl),o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"look",{set:function(e){e&&this.buttonComponents.forEach((function(t){return t.fillMode="default"===e?"solid":e}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonElements",{get:function(){return this.getButtonGroup().buttons.filter((function(e){return!e.isDisabled})).map((function(e){return e.element}))},enumerable:!0,configurable:!0}),t.prototype.onFocus=function(){this.focusedIndex=0},t.prototype.onNavigate=function(e){e.preventDefault()},t.prototype.selectedChangeHandler=function(e,t){t.selected=e,t.selectedChange.emit(e)},t.prototype.onButtonClick=function(e){this.focusedIndex=this.buttonElements.findIndex((function(t){return t===e.target||t.contains(e.target)})),this.focusButton(this.focusedIndex,e)},t.prototype.canFocus=function(){return!(this.disabled||0===this.buttonElements.length)},t.prototype.focus=function(e){void 0===e&&(e={});var t=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows);this.focusedIndex=p.getIndexOfFocused(o,t,this.buttonElements)(e),this.focusButton(this.focusedIndex,e)},t.prototype.handleKey=function(e){var t=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows),n=p.makePeeker(this.buttonElements),r=p.areEqual(this.focusedIndex);return this.focusedIndex=p.seekFocusedIndex(o,t,n)(this.focusedIndex,e),this.focusButton(this.focusedIndex,e),!r(this.focusedIndex)},t.prototype.getButtonGroup=function(){return this.overflows?this.overflowButtonGroup:this.toolbarButtonGroup},t.prototype.focusButton=function(e,t){t.type&&"focus"!==t.type&&"keydown"!==t.type||this.buttonElements[e].focus()},n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"selection",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"width",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ContentChildren(r.forwardRef((function(){return s.ToolBarButtonComponent}))),n.__metadata("design:type",r.QueryList)],t.prototype,"buttonComponents",void 0),n.__decorate([r.ViewChild("toolbarButtonGroup",{static:!1}),n.__metadata("design:type",l.ButtonGroupComponent)],t.prototype,"toolbarButtonGroup",void 0),n.__decorate([r.ViewChild("overflowButtonGroup",{static:!1}),n.__metadata("design:type",l.ButtonGroupComponent)],t.prototype,"overflowButtonGroup",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarButtonGroup",providers:[i.LocalizationService,{provide:a.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-buttongroup",template:'\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [width]="width"\n (navigate)="onNavigate($event)"\n (focus)="onFocus()"\n >\n <span\n kendoButton\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [selected]="button.selected"\n [fillMode]="button.fillMode"\n [themeColor]="button.fillMode ? button.themeColor : null"\n [icon]="button.toolbarOptions.icon"\n [iconClass]="button.toolbarOptions.iconClass"\n [imageUrl]="button.toolbarOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (pointerdown)="button.pointerdown.emit($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.toolbarOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n <ng-template #popupTemplate>\n <kendo-buttongroup\n #overflowButtonGroup\n class="k-overflow-button"\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [width]="width"\n >\n <span\n kendoButton\n class="k-overflow-button"\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [selected]="button.selected"\n [fillMode]="button.fillMode"\n [themeColor]="button.fillMode ? button.themeColor : null"\n [icon]="button.overflowOptions.icon"\n [iconClass]="button.overflowOptions.iconClass"\n [imageUrl]="button.overflowOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.overflowOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[i.LocalizationService])],t)}(a.ToolBarToolComponent);t.ToolBarButtonGroupComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(2),a=o(6),s=o(9),l=o(3),p=function(e){function t(){var t=e.call(this)||this;return t.showText="both",t.showIcon="both",t.fillMode="solid",t.themeColor="base",t.itemClick=new r.EventEmitter,t.open=new r.EventEmitter,t.close=new r.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=l.getNextKey(),t.getPrevKey=l.getPrevKey(),t}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"text",{set:function(e){this.toolbarOptions.text=l.getValueForLocation(e,this.showText,!1),this.overflowOptions.text=l.getValueForLocation(e,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){this.toolbarOptions.icon=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.icon=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(e){this.toolbarOptions.iconClass=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.iconClass=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(e){this.toolbarOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0,popupClass:""},e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(e){e&&(this.fillMode="default"===e?"solid":e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"primary",{set:function(e){this.themeColor=e?"primary":"base"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowButtons",{get:function(){return this.overflowDropDownButtonButtonList.buttons.toArray().filter((function(e){return!e.nativeElement.disabled})).slice()},enumerable:!0,configurable:!0}),t.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowDropDownButtonButtonList.buttons.toArray().findIndex((function(t){return t.nativeElement.contains(e.target)}))},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(e){void 0===e&&(e={}),this.overflows?this.overflowButtons.length>0&&(this.focusedIndex=l.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map((function(e){return e.nativeElement})))(e),this.focusButton(this.focusedIndex,e)):"focus"!==e.type&&"keydown"!==e.type||this.toolbarDropDownButton.focus()},t.prototype.handleKey=function(e){if(!this.overflows&&(e.keyCode===this.getPrevKey(this.overflows)||e.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var t=l.makePeeker(this.overflowButtons),o=l.areEqual(this.focusedIndex);return this.focusedIndex=l.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),t)(this.focusedIndex,e),this.focusButton(this.focusedIndex,e),!o(this.focusedIndex)}},t.prototype.focusButton=function(e,t){t.type&&"focus"!==t.type&&"keydown"!==t.type||this.overflowButtons[e].nativeElement.focus()},n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showText",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"text",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],t.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],t.prototype,"primary",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"buttonClass",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"itemClick",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("dropdownButton",{read:r.ElementRef,static:!0}),n.__metadata("design:type",r.ElementRef)],t.prototype,"dropdownButton",void 0),n.__decorate([r.ViewChild(a.DropDownButtonComponent,{static:!1}),n.__metadata("design:type",a.DropDownButtonComponent)],t.prototype,"dropDownButtonComponent",void 0),n.__decorate([r.ViewChild("toolbarDropDownButton",{static:!1}),n.__metadata("design:type",a.DropDownButtonComponent)],t.prototype,"toolbarDropDownButton",void 0),n.__decorate([r.ViewChild("overflowDropDownButtonButtonList",{static:!1}),n.__metadata("design:type",s.ToolBarButtonListComponent)],t.prototype,"overflowDropDownButtonButtonList",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarDropDownButton",providers:[{provide:i.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-dropdownbutton\n #toolbarDropDownButton\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [disabled]="disabled"\n [tabIndex]="-1"\n [data]="data"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n {{ toolbarOptions.text }}\n </kendo-dropdownbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n type="button"\n tabindex="-1"\n kendoButton\n class="k-overflow-button"\n [disabled]="true"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [ngClass]="buttonClass"\n (click)="itemClick.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowDropDownButtonButtonList\n [data]="data"\n [disabled]="disabled"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(i.ToolBarToolComponent);t.ToolBarDropDownButtonComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(6),a=o(2),s=o(9),l=o(3),p=function(e){function t(){var t=e.call(this)||this;return t.showText="both",t.showIcon="both",t.fillMode="solid",t.themeColor="base",t.arrowButtonIcon="arrow-s",t.textField="text",t.buttonClick=new r.EventEmitter,t.itemClick=new r.EventEmitter,t.open=new r.EventEmitter,t.close=new r.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=l.getNextKey(),t.getPrevKey=l.getPrevKey(),t}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"text",{set:function(e){this.toolbarOptions.text=l.getValueForLocation(e,this.showText,!1),this.overflowOptions.text=l.getValueForLocation(e,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){this.toolbarOptions.icon=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.icon=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{set:function(e){this.toolbarOptions.iconClass=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.iconClass=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageUrl",{set:function(e){this.toolbarOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!1),this.overflowOptions.imageUrl=l.getValueForLocation(e,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupSettings",{get:function(){return this._popupSettings||(this._popupSettings={animate:!0,popupClass:""}),this._popupSettings},set:function(e){this._popupSettings=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"look",{set:function(e){e&&(this.fillMode="default"===e?"solid":e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overflowButtons",{get:function(){return[this.overflowSplitButton].concat(this.overflowSplitButtonButtonList.buttons.toArray().filter((function(e){return!e.nativeElement.disabled})))},enumerable:!0,configurable:!0}),t.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowButtons.findIndex((function(t){return t.nativeElement.contains(e.target)}))},t.prototype.onMainButtonClick=function(e){this.buttonClick.emit(e),this.focusedIndex=0},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(e){void 0===e&&(e={}),this.overflows?this.overflowButtons.length>0&&(this.focusedIndex=l.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map((function(e){return e.nativeElement})))(e),this.focusButton(this.focusedIndex,e)):"focus"!==e.type&&"keydown"!==e.type||this.toolbarSplitButton.focus()},t.prototype.handleKey=function(e){if(!this.overflows&&(e.keyCode===this.getPrevKey(this.overflows)||e.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var t=l.makePeeker(this.overflowButtons),o=l.areEqual(this.focusedIndex);return this.focusedIndex=l.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),t)(this.focusedIndex,e),this.focusButton(this.focusedIndex,e),!o(this.focusedIndex)}},t.prototype.focusButton=function(e,t){t.type&&"focus"!==t.type&&"keydown"!==t.type&&"click"!==t.type||this.overflowButtons[e].nativeElement.focus()},n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showText",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"showIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"text",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"icon",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"iconClass",null),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"imageUrl",null),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],t.prototype,"popupSettings",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"fillMode",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"look",null),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"buttonClass",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Object)],t.prototype,"arrowButtonClass",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"arrowButtonIcon",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"textField",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"buttonClick",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"itemClick",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"open",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("toolbarSplitButton",{static:!1}),n.__metadata("design:type",i.SplitButtonComponent)],t.prototype,"toolbarSplitButton",void 0),n.__decorate([r.ViewChild("overflowSplitButton",{read:r.ElementRef,static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"overflowSplitButton",void 0),n.__decorate([r.ViewChild("overflowSplitButtonButtonList",{static:!1}),n.__metadata("design:type",s.ToolBarButtonListComponent)],t.prototype,"overflowSplitButtonButtonList",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarSplitButton",providers:[{provide:a.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-splitbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-splitbutton\n #toolbarSplitButton\n [data]="data"\n [text]="toolbarOptions.text"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [arrowButtonClass]="arrowButtonClass"\n [arrowButtonIcon]="arrowButtonIcon"\n [disabled]="disabled"\n [tabIndex]="-1"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n (buttonClick)="buttonClick.emit($event)"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n </kendo-splitbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowSplitButton\n type="button"\n tabindex="-1"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n kendoButton\n class="k-overflow-button"\n [disabled]="disabled"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [ngClass]="buttonClass"\n (click)="buttonClick.emit($event)"\n (click)="onMainButtonClick($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowSplitButtonButtonList\n [data]="data"\n [disabled]="disabled"\n [fillMode]="fillMode"\n [themeColor]="fillMode ? themeColor : null"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(a.ToolBarToolComponent);t.ToolBarSplitButtonComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(2),a=function(e){function t(){return e.call(this)||this}var o;return n.__extends(t,e),o=t,t.prototype.canFocus=function(){return!1},t.prototype.focus=function(){},t.prototype.handleKey=function(){return!1},t.prototype.ngAfterViewInit=function(){this.popupTemplate||(this.popupTemplate=this.toolbarTemplate)},n.__decorate([r.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([r.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",r.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([r.ViewChild("separator",{static:!1}),n.__metadata("design:type",r.ElementRef)],t.prototype,"separator",void 0),t=o=n.__decorate([r.Component({exportAs:"kendoToolBarSeparator",providers:[{provide:i.ToolBarToolComponent,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-separator",template:'\n <ng-template #toolbarTemplate>\n <div class="k-separator"></div>\n </ng-template>\n '}),n.__metadata("design:paramtypes",[])],t)}(i.ToolBarToolComponent);t.ToolBarSeparatorComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(5),a=o(18),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,t=o=n.__decorate([r.Directive({providers:[{provide:a.ToolbarMessages,useExisting:r.forwardRef((function(){return o}))}],selector:"[kendoToolbarLocalizedMessages]"}),n.__metadata("design:paramtypes",[i.LocalizationService])],t)}(a.ToolbarMessages);t.LocalizedToolbarMessagesDirective=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([r.Input(),n.__metadata("design:type",String)],t.prototype,"moreToolsTitle",void 0),t}(o(5).ComponentMessages);t.ToolbarMessages=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(5),a=o(18),s=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=o=n.__decorate([r.Component({providers:[{provide:a.ToolbarMessages,useExisting:r.forwardRef((function(){return o}))}],selector:"kendo-toolbar-messages",template:""}),n.__metadata("design:paramtypes",[i.LocalizationService])],t)}(a.ToolbarMessages);t.ToolbarCustomMessagesComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(10);t.ToolBarComponent=n.ToolBarComponent;var r=o(2);t.ToolBarToolComponent=r.ToolBarToolComponent;var i=o(8);t.ToolBarButtonComponent=i.ToolBarButtonComponent;var a=o(13);t.ToolBarButtonGroupComponent=a.ToolBarButtonGroupComponent;var s=o(14);t.ToolBarDropDownButtonComponent=s.ToolBarDropDownButtonComponent;var l=o(15);t.ToolBarSplitButtonComponent=l.ToolBarSplitButtonComponent;var p=o(16);t.ToolBarSeparatorComponent=p.ToolBarSeparatorComponent;var u=o(27);t.ToolBarModule=u.ToolBarModule;var d=o(17);t.LocalizedToolbarMessagesDirective=d.LocalizedToolbarMessagesDirective;var c=o(19);t.ToolbarCustomMessagesComponent=c.ToolbarCustomMessagesComponent},function(e,t){e.exports=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-toolbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648458287,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(7),a=o(3),s=function(){function e(e){this.zone=e,this.focused={renderedTool:null,index:-1},this.renderedTools=[],this.isPopupFocused=!1,this.isOverflowButtonFocused=!1}return e.prototype.setRenderedTools=function(e){this.renderedTools=e.slice()},e.prototype.click=function(e){var t=e.context,o=e.event;this.focused.renderedTool!==t&&o&&this.focus(t,o)},e.prototype.moveFocusToToolBar=function(){this.isPopupFocused=!1,this.focusOverflowButton()},e.prototype.moveFocusToPopup=function(){this.isPopupFocused=!0,this.blurOverflowButton(),this.focus()},e.prototype.focusNext=function(e){if(!this.isOverflowButtonFocused&&this.focused.renderedTool&&!this.focused.renderedTool.tool.handleKey(e)){var t=this.getFocusableTools().slice(this.focused.index+1)[0];t?this.focus(t,e):this.isOverflowButtonVisible()&&!this.isPopupFocused&&this.focusOverflowButton()}},e.prototype.focusPrev=function(e){if(this.isOverflowButtonFocused){var t=this.getFocusableTools().reverse()[0];this.focus(t,e)}else if(this.focused.renderedTool&&!this.focused.renderedTool.tool.handleKey(e)){var o=this.getFocusableTools().slice(0,this.focused.index).reverse()[0];o&&this.focus(o,e)}},e.prototype.resetNavigation=function(){this.blurOverflowButton(),this.focused.renderedTool=null,this.focused.index=-1},e.prototype.focusFirst=function(e){var t=this.getFocusableTools()[0],o=this.overflowButton;t?(this.focused.renderedTool=t,this.focused.index=this.getFocusableTools().findIndex((function(e){return e===t})),this.focus(t,e)):o&&o.nativeElement.focus()},e.prototype.getFocusableTools=function(){var e=this;return this.renderedTools.filter((function(t){return t.tool.overflows===e.isPopupFocused&&t.tool.canFocus()}))},e.prototype.focus=function(e,t){var o=this;this.zone.onStable.pipe(i.take(1)).subscribe((function(){if(e)e.tool.canFocus&&e.tool.canFocus()&&(o.focused.renderedTool=e,o.focused.index=o.getFocusableTools().findIndex((function(t){return t===e})),e.tool.focus(t),o.blurOverflowButton());else{var n=o.getFocusableTools(),r=n.find((function(e){return e===o.focused.renderedTool}))||n[0];r&&(o.focused.renderedTool=r,o.focused.index=o.getFocusableTools().findIndex((function(e){return e===r})),r.tool.focus(t))}}))},e.prototype.blurOverflowButton=function(){this.overflowButton&&(this.isOverflowButtonFocused=!1,this.overflowButton.nativeElement.tabIndex=-1)},e.prototype.focusOverflowButton=function(){this.isOverflowButtonFocused=!0,this.overflowButton.nativeElement.tabIndex=0,this.overflowButton.nativeElement.focus()},e.prototype.isOverflowButtonVisible=function(){return a.isPresent(this.overflowButton)&&"visible"===window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue("visibility")},e=n.__decorate([r.Injectable(),n.__metadata("design:paramtypes",[r.NgZone])],e)}();t.NavigationService=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t){e.exports=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPopupWidth="150px"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(28),a=o(6),s=o(11),l=o(4),p=o(10),u=o(2),d=o(8),c=o(13),f=o(14),h=o(15),g=o(16),m=o(29),y=o(9),b=o(17),_=o(19),v=[u.ToolBarToolComponent,d.ToolBarButtonComponent,c.ToolBarButtonGroupComponent,f.ToolBarDropDownButtonComponent,h.ToolBarSplitButtonComponent,g.ToolBarSeparatorComponent],w=[m.ToolBarRendererComponent,y.ToolBarButtonListComponent,_.ToolbarCustomMessagesComponent,b.LocalizedToolbarMessagesDirective],C=function(){function e(){}return e=n.__decorate([r.NgModule({declarations:[p.ToolBarComponent,v,w],exports:[p.ToolBarComponent,v,_.ToolbarCustomMessagesComponent,b.LocalizedToolbarMessagesDirective],imports:[i.CommonModule,a.ButtonsModule,s.PopupModule,l.ResizeSensorModule]})],e)}();t.ToolBarModule=C},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(3),a=o(2),s=o(12),l=o(30),p=function(){function e(e,t,o,n){var i=this;this.element=e,this.renderer=t,this.rendererService=o,this.refreshService=n,this.rendererClick=new r.EventEmitter,this.rendererService.element=e,this.rendererService.renderer=this,this.refreshSubscription=this.refreshService.onRefresh.subscribe((function(e){i.tool===e&&i.refresh()}))}return e.prototype.onClick=function(e){this.rendererClick.emit({context:this,event:e})},e.prototype.ngOnInit=function(){this.resizable?"toolbar"===this.location?(this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.template=this.tool.popupTemplate,this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.tool.overflows=!1,this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","display"),this.renderer.setStyle(this.element.nativeElement,"display","inline-block"))},e.prototype.ngOnDestroy=function(){this.refreshSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.resizable&&this.refresh()},Object.defineProperty(e.prototype,"width",{get:function(){return this.tool.overflows?0:i.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isDisplayed=function(){return"none"!==this.element.nativeElement.style.display},e.prototype.refresh=function(){this.resizable&&("toolbar"===this.location?(this.renderer.setStyle(this.element.nativeElement,"visibility",this.tool.visibility),this.renderer.setStyle(this.element.nativeElement,"display",this.tool.toolbarDisplay)):this.renderer.setStyle(this.element.nativeElement,"display",this.tool.overflowDisplay))},e.prototype.setAttribute=function(e,t,o){this.renderer.setAttribute(e,t,o)},n.__decorate([r.Input(),n.__metadata("design:type",a.ToolBarToolComponent)],e.prototype,"tool",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],e.prototype,"location",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],e.prototype,"resizable",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],e.prototype,"rendererClick",void 0),n.__decorate([r.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=n.__decorate([r.Component({exportAs:"kendoToolBarRenderer",providers:[l.RendererService],selector:"kendo-toolbar-renderer",template:'\n <ng-container *ngIf="location === \'toolbar\'">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n <ng-container *ngIf="location === \'overflow\' && tool.responsive">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n '}),n.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,l.RendererService,s.RefreshService])],e)}();t.ToolBarRendererComponent=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(1),i=o(3),a=function(){function e(){}return e.prototype.getElement=function(){return this.element.nativeElement},e.prototype.querySelector=function(e){return this.element.nativeElement.querySelector(e)},e.prototype.querySelectorAll=function(e){return this.element.nativeElement.querySelectorAll(e)},e.prototype.findFocusable=function(){return i.findFocusable(this.element.nativeElement,!1)},e.prototype.findFocusableChild=function(e){return e||(e=this.findFocusable()),i.findFocusableChild(e,!1)},e.prototype.findNextFocusableSibling=function(e){return e||(e=this.findFocusable()),i.findFocusableSibling(e,!1)},e.prototype.findPrevFocusableSibling=function(e){return e||(e=this.findFocusable()),i.findFocusableSibling(e,!1,!0)},e.prototype.setAttribute=function(e,t,o){this.renderer.setAttribute(e,t,o)},e=n.__decorate([r.Injectable()],e)}();t.RendererService=a}])}));
|