@progress/kendo-angular-label 3.1.2-dev.202201190917 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-label.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +1 -1
- package/dist/fesm5/index.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-label.js +1 -1
- package/package.json +1 -1
|
@@ -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 r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function m(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return a})),n.d(t,"ComponentMessages",(function(){return u})),n.d(t,"L10N_PREFIX",(function(){return l})),n.d(t,"LocalizationService",(function(){return d})),n.d(t,"RTL",(function(){return c}));var r=n(1),i=n(0),o=n(2),s=n(3),a=function(){function e(){this.changes=new o.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(r.__decorate)([Object(i.Injectable)()],e)}(),u=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(s.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),c=new i.InjectionToken("Kendo UI Right-to-Left token"),l=new i.InjectionToken("Localization key prefix"),d=function(){function e(e,t,n){var r=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new o.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(s.map)((function(e){var t=e.rtl;return void 0!==t?t:r._rtl})),Object(s.tap)((function(e){return r._rtl=e}))).subscribe((function(e){r.dictionary={},r.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var r=this.key(e),i=t;if(!n){if(this.dictionary.hasOwnProperty(r))return;i=this.defaultValue(r,t)}this.dictionary[r]=i},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__param)(0,Object(i.Inject)(l)),Object(r.__param)(1,Object(i.Optional)()),Object(r.__param)(2,Object(i.Optional)()),Object(r.__param)(2,Object(i.Inject)(c)),Object(r.__metadata)("design:paramtypes",[String,a,Boolean])],e)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(8),o=n(0),s=n(7),a=function(){function e(e,t,n){var r=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=r.getFocusableComponent();e&&(i.isUploadComponent(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var e=this.getFocusableComponent()||{};return i.isInputElement(e)&&!i.inputElementHasAttr(e,"id")&&this.renderer.setAttribute(e,"id","k-"+s.guid()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=i.getRootElement(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(t,"aria-labelledby",r)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},r.__decorate([o.Input(),r.__metadata("design:type",Object)],e.prototype,"for",void 0),r.__decorate([o.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"labelFor",null),r.__decorate([o.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],e.prototype,"labelClass",void 0),e=r.__decorate([o.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.NgZone])],e)}();t.LabelDirective=a},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return q})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return C})),n.d(t,"DraggableModule",(function(){return j})),n.d(t,"closestInScope",(function(){return w})),n.d(t,"closest",(function(){return E})),n.d(t,"contains",(function(){return S})),n.d(t,"findElement",(function(){return D})),n.d(t,"findFocusableChild",(function(){return M})),n.d(t,"findFocusable",(function(){return A})),n.d(t,"hasClasses",(function(){return P})),n.d(t,"isFocusableWithTabKey",(function(){return I})),n.d(t,"isFocusable",(function(){return k})),n.d(t,"isVisible",(function(){return z})),n.d(t,"matchesClasses",(function(){return B})),n.d(t,"matchesNodeName",(function(){return R})),n.d(t,"rtlScrollPosition",(function(){return N})),n.d(t,"EventsOutsideAngularDirective",(function(){return H})),n.d(t,"EventsModule",(function(){return U})),n.d(t,"ResizeSensorComponent",(function(){return W})),n.d(t,"ResizeBatchService",(function(){return J})),n.d(t,"ResizeCompatService",(function(){return Y})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return $})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return y})),n.d(t,"isChanged",(function(){return m})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return x})),n.d(t,"Keys",(function(){return T}));var r=n(1),i=n(0),o=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},u=function(){},c=function(e){return e.preventDefault()},l=/touch/;function d(e){return e.type.match(l)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var p=function(e){var t=this,n=e.press;void 0===n&&(n=u);var r=e.drag;void 0===r&&(r=u);var i=e.release;void 0===i&&(i=u);var l=e.mouseOnly;void 0===l&&(l=!1),this._pressHandler=o(d,n),this._dragHandler=o(d,r),this._releaseHandler=o(d,i),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",c),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",c),t._releaseHandler(e))}},f={document:{configurable:!0}};p.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},f.document.get=function(){return this._element?this._element.ownerDocument:document},p.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},p.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},p.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",c),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},p.prototype._usePointers=function(){return!this._mouseOnly&&p.supportPointerEvent()},p.prototype.update=function(e){var t=e.press;void 0===t&&(t=u);var n=e.drag;void 0===n&&(n=u);var r=e.release;void 0===r&&(r=u);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=o(d,t),this._dragHandler=o(d,n),this._releaseHandler=o(d,r),this._mouseOnly=i},p.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(p.prototype,f),p.default=p;var h=p,g=n(5),b=n(3),v=n(2),y=function(){return"undefined"!=typeof document},m=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},_=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return m(e,t,n)}))},O=function(e){return e&&e.observers.length>0},x=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},C=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){m("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;y()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new h({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),j=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[C],exports:[C],imports:[g.CommonModule]})],e)}(),w=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},E=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},S=function(e,t,n){if(void 0===n&&(n=!1),!E(t,(function(t){return t===e})))return!1;var r=E(t,(function(e){return e===t}));return r&&(n||r!==e)},D=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=D(e,t);if(r)return r}e=e.nextSibling}}},L=/^(?:a|input|select|option|textarea|button|object)$/i,k=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&L.test(t)||n},z=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},I=function(e,t){if(void 0===t&&(t=!0),!k(e))return!1;var n=e.getAttribute("tabIndex");return(!t||z(e))&&"-1"!==n},M=function(e,t){return void 0===t&&(t=!0),D(e,(function(e){return I(e,t)}),!1)},A=function(e,t){return void 0===t&&(t=!0),D(e,(function(e){return I(e,t)}))},K=function(e){return String(e).trim().split(" ")},P=function(e,t){var n=K(t);return Boolean(K(e.className).find((function(e){return n.indexOf(e)>=0})))},B=function(e){return function(t){return P(t,e)}},F={},R=function(e){return F[e]||(F[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),F[e]};function N(e,t,n){var r=e;return n<0?r=-e:n>0&&(r=t.scrollWidth-t.offsetWidth-e),r}var T,H=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(r.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(r.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),U=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[H],exports:[H]})],e)}(),q=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){y()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),V=function(e){var t=document.createElement("div");return t.style.cssText=e,t},Z="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Y=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=Z,e.setAttribute("dir","ltr"),this.expand=V(Z),this.expandChild=V("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=V(Z);var t=V("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(v.merge)(Object(v.fromEvent)(e.shrink,"scroll"),Object(v.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(q),G="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.supported=function(){return G},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(q),J=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(v.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__metadata)("design:paramtypes",[i.NgZone])],e)}(),W=function(){function e(e,t,n){var r=this;this.rateLimit=10,this.resize=new i.EventEmitter;var o=X.supported()?X:Y;this.resizeService=new o(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(b.auditTime)(s)).subscribe((function(){r.resizeService.acceptedSize||r.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(r.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(r.__metadata)("design:paramtypes",[J,i.ElementRef,i.NgZone])],e)}(),Q=[W],$=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[Q],exports:[Q],providers:[J]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(T||(T={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUploadComponent=function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)},t.isInputElement=function(e){return e instanceof HTMLElement},t.inputElementHasAttr=function(e,t){return e.hasAttribute(t)},t.getWrappedNativeInput=function(e){return e.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},t.getRootElement=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(19),s=n(11),a=[o.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[a],exports:[a]})],e)}();t.SharedDirectivesModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"optional",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),s=n(10),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=r.__decorate([i.Component({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.CustomMessagesComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(5),s=n(9),a=[n(13).FloatingLabelComponent],u=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[o.CommonModule,s.SharedDirectivesModule]})],e)}();t.FloatingLabelModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),s=n(20),a=n(7),u=n(14),c=n(15),l=n(21),d=function(e){return"[object Function]"===Object.prototype.toString.call(e)},p=function(){function e(e,t,n,r){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new i.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+a.guid(),this.autoFillStarted=!1,u.validatePackage(c.packageMetadata),this.direction=r.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof i.EventEmitter){var r=e[t].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;d(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=d(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+a.guid();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&a.hasObservers(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var r=function(){return t.updateState()};r(),this.subscribe(e,"onValueChange",r)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(i.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([i.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),r.__decorate([i.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"invalidClass",null),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String)],e.prototype,"direction",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"labelCssStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"labelCssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"id",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"text",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),r.__decorate([i.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),r.__decorate([i.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],e.prototype,"formControl",void 0),e=r.__decorate([i.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.ChangeDetectorRef,o.LocalizationService])],e)}();t.FloatingLabelComponent=p},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return l}));var r,i,o=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];r=o,i=131,function(e){for(;--e;)r.push(r.shift())}(++i);var s=function(e,t){var n=o[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),i="",o=0,s=0;n=r.charAt(s++);~n&&(t=o%4?64*t+n:n,o++%4)?i+=String.fromCharCode(255&t>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],r=0,i=t.length;r<i;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var r=s.rqrXoU[e];return void 0===r?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=r,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},u=new Map;function c(e){}function l(e){if(u[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return u[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",r=e[s("0x4")]+n,i=JSON[s("0x9")](a[s("0x34")]),o=!i[s("0x26")]&&!i[s("0x38")],c=i[s("0x26")]&&typeof KendoLicensing===s("0x2b"),l=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var r=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return r[s("0x14")](e[s("0x39")])}))}(i,e[s("0x2")]);if(o||c)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:r,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(l){if(s("0x12")!=s("0x12")){}else if(l[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:r,publishDate:d(e[s("0x1c")]),expiryDate:d(l[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:r,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var p=s("0x1b")+e[s("0xe")],f=typeof console[s("0x7")]===s("0x33");if(f)if(s("0xc")!=s("0xc")){}else console[s("0x7")](p);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](p);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),f)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var h=!t;return u[s("0x0")](e[s("0x4")],h),h}function d(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583775,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(2),s=n(4),a=n(7),u=n(14),c=n(15),l=n(6),d=n(8),p=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new o.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=d.getWrappedNativeInput(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+a.guid()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String)],e.prototype,"direction",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"text",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"for",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),r.__decorate([i.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],e.prototype,"labelDirective",void 0),r.__decorate([i.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),e=r.__decorate([i.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,s.LocalizationService])],e)}();t.LabelComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.LabelDirective=r.LabelDirective;var i=n(18);t.LabelModule=i.LabelModule;var o=n(12);t.FloatingLabelModule=o.FloatingLabelModule;var s=n(13);t.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(16);t.LabelComponent=a.LabelComponent;var u=n(11);t.CustomMessagesComponent=u.CustomMessagesComponent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(9),o=n(5),s=n(0),a=n(12),u=n(6),c=n(16),l=[u.LabelDirective,c.LabelComponent],d=function(){function e(){}return e=r.__decorate([s.NgModule({imports:[o.CommonModule,i.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,i.SharedDirectivesModule])})],e)}();t.LabelModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),s=n(10),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,t=n=r.__decorate([i.Directive({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.LocalizedMessagesDirective=a},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(0),o=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof r.Observable||e instanceof i.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}();t.FloatingLabelInputAdapter=o}])}));
|
|
20
|
+
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function m(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return a})),n.d(t,"ComponentMessages",(function(){return u})),n.d(t,"L10N_PREFIX",(function(){return l})),n.d(t,"LocalizationService",(function(){return d})),n.d(t,"RTL",(function(){return c}));var r=n(1),i=n(0),o=n(2),s=n(3),a=function(){function e(){this.changes=new o.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(r.__decorate)([Object(i.Injectable)()],e)}(),u=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(s.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),c=new i.InjectionToken("Kendo UI Right-to-Left token"),l=new i.InjectionToken("Localization key prefix"),d=function(){function e(e,t,n){var r=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new o.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(s.map)((function(e){var t=e.rtl;return void 0!==t?t:r._rtl})),Object(s.tap)((function(e){return r._rtl=e}))).subscribe((function(e){r.dictionary={},r.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var r=this.key(e),i=t;if(!n){if(this.dictionary.hasOwnProperty(r))return;i=this.defaultValue(r,t)}this.dictionary[r]=i},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__param)(0,Object(i.Inject)(l)),Object(r.__param)(1,Object(i.Optional)()),Object(r.__param)(2,Object(i.Optional)()),Object(r.__param)(2,Object(i.Inject)(c)),Object(r.__metadata)("design:paramtypes",[String,a,Boolean])],e)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(8),o=n(0),s=n(7),a=function(){function e(e,t,n){var r=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=r.getFocusableComponent();e&&(i.isUploadComponent(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var e=this.getFocusableComponent()||{};return i.isInputElement(e)&&!i.inputElementHasAttr(e,"id")&&this.renderer.setAttribute(e,"id","k-"+s.guid()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=i.getRootElement(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(t,"aria-labelledby",r)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},r.__decorate([o.Input(),r.__metadata("design:type",Object)],e.prototype,"for",void 0),r.__decorate([o.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"labelFor",null),r.__decorate([o.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],e.prototype,"labelClass",void 0),e=r.__decorate([o.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.NgZone])],e)}();t.LabelDirective=a},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return q})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return C})),n.d(t,"DraggableModule",(function(){return j})),n.d(t,"closestInScope",(function(){return w})),n.d(t,"closest",(function(){return E})),n.d(t,"contains",(function(){return S})),n.d(t,"findElement",(function(){return D})),n.d(t,"findFocusableChild",(function(){return M})),n.d(t,"findFocusable",(function(){return A})),n.d(t,"hasClasses",(function(){return P})),n.d(t,"isFocusableWithTabKey",(function(){return I})),n.d(t,"isFocusable",(function(){return k})),n.d(t,"isVisible",(function(){return z})),n.d(t,"matchesClasses",(function(){return B})),n.d(t,"matchesNodeName",(function(){return R})),n.d(t,"rtlScrollPosition",(function(){return N})),n.d(t,"EventsOutsideAngularDirective",(function(){return H})),n.d(t,"EventsModule",(function(){return U})),n.d(t,"ResizeSensorComponent",(function(){return W})),n.d(t,"ResizeBatchService",(function(){return J})),n.d(t,"ResizeCompatService",(function(){return Y})),n.d(t,"ResizeObserverService",(function(){return X})),n.d(t,"ResizeSensorModule",(function(){return $})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return y})),n.d(t,"isChanged",(function(){return m})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return x})),n.d(t,"Keys",(function(){return T}));var r=n(1),i=n(0),o=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},u=function(){},c=function(e){return e.preventDefault()},l=/touch/;function d(e){return e.type.match(l)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var p=function(e){var t=this,n=e.press;void 0===n&&(n=u);var r=e.drag;void 0===r&&(r=u);var i=e.release;void 0===i&&(i=u);var l=e.mouseOnly;void 0===l&&(l=!1),this._pressHandler=o(d,n),this._dragHandler=o(d,r),this._releaseHandler=o(d,i),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",c),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",c),t._releaseHandler(e))}},f={document:{configurable:!0}};p.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},f.document.get=function(){return this._element?this._element.ownerDocument:document},p.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},p.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},p.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",c),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},p.prototype._usePointers=function(){return!this._mouseOnly&&p.supportPointerEvent()},p.prototype.update=function(e){var t=e.press;void 0===t&&(t=u);var n=e.drag;void 0===n&&(n=u);var r=e.release;void 0===r&&(r=u);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=o(d,t),this._dragHandler=o(d,n),this._releaseHandler=o(d,r),this._mouseOnly=i},p.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(p.prototype,f),p.default=p;var h=p,g=n(5),b=n(3),v=n(2),y=function(){return"undefined"!=typeof document},m=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},_=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return m(e,t,n)}))},O=function(e){return e&&e.observers.length>0},x=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},C=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){m("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;y()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new h({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),j=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[C],exports:[C],imports:[g.CommonModule]})],e)}(),w=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},E=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},S=function(e,t,n){if(void 0===n&&(n=!1),!E(t,(function(t){return t===e})))return!1;var r=E(t,(function(e){return e===t}));return r&&(n||r!==e)},D=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=D(e,t);if(r)return r}e=e.nextSibling}}},L=/^(?:a|input|select|option|textarea|button|object)$/i,k=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&L.test(t)||n},z=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},I=function(e,t){if(void 0===t&&(t=!0),!k(e))return!1;var n=e.getAttribute("tabIndex");return(!t||z(e))&&"-1"!==n},M=function(e,t){return void 0===t&&(t=!0),D(e,(function(e){return I(e,t)}),!1)},A=function(e,t){return void 0===t&&(t=!0),D(e,(function(e){return I(e,t)}))},K=function(e){return String(e).trim().split(" ")},P=function(e,t){var n=K(t);return Boolean(K(e.className).find((function(e){return n.indexOf(e)>=0})))},B=function(e){return function(t){return P(t,e)}},F={},R=function(e){return F[e]||(F[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),F[e]};function N(e,t,n){var r=e;return n<0?r=-e:n>0&&(r=t.scrollWidth-t.offsetWidth-e),r}var T,H=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(r.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(r.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),U=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[H],exports:[H]})],e)}(),q=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){y()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),V=function(e){var t=document.createElement("div");return t.style.cssText=e,t},Z="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Y=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=Z,e.setAttribute("dir","ltr"),this.expand=V(Z),this.expandChild=V("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=V(Z);var t=V("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(v.merge)(Object(v.fromEvent)(e.shrink,"scroll"),Object(v.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(q),G="undefined"!=typeof ResizeObserver,X=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.supported=function(){return G},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(q),J=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(v.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__metadata)("design:paramtypes",[i.NgZone])],e)}(),W=function(){function e(e,t,n){var r=this;this.rateLimit=10,this.resize=new i.EventEmitter;var o=X.supported()?X:Y;this.resizeService=new o(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(b.auditTime)(s)).subscribe((function(){r.resizeService.acceptedSize||r.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(r.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(r.__metadata)("design:paramtypes",[J,i.ElementRef,i.NgZone])],e)}(),Q=[W],$=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[Q],exports:[Q],providers:[J]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(T||(T={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUploadComponent=function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)},t.isInputElement=function(e){return e instanceof HTMLElement},t.inputElementHasAttr=function(e,t){return e.hasAttribute(t)},t.getWrappedNativeInput=function(e){return e.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},t.getRootElement=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(19),s=n(11),a=[o.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[a],exports:[a]})],e)}();t.SharedDirectivesModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"optional",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),s=n(10),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=r.__decorate([i.Component({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.CustomMessagesComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(5),s=n(9),a=[n(13).FloatingLabelComponent],u=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[o.CommonModule,s.SharedDirectivesModule]})],e)}();t.FloatingLabelModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),s=n(20),a=n(7),u=n(14),c=n(15),l=n(21),d=function(e){return"[object Function]"===Object.prototype.toString.call(e)},p=function(){function e(e,t,n,r){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new i.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+a.guid(),this.autoFillStarted=!1,u.validatePackage(c.packageMetadata),this.direction=r.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof i.EventEmitter){var r=e[t].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;d(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=d(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+a.guid();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&a.hasObservers(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var r=function(){return t.updateState()};r(),this.subscribe(e,"onValueChange",r)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(i.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([i.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),r.__decorate([i.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"invalidClass",null),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String)],e.prototype,"direction",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"labelCssStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"labelCssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"id",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"text",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),r.__decorate([i.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),r.__decorate([i.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],e.prototype,"formControl",void 0),e=r.__decorate([i.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.ChangeDetectorRef,o.LocalizationService])],e)}();t.FloatingLabelComponent=p},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return l}));var r,i,o=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];r=o,i=131,function(e){for(;--e;)r.push(r.shift())}(++i);var s=function(e,t){var n=o[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),i="",o=0,s=0;n=r.charAt(s++);~n&&(t=o%4?64*t+n:n,o++%4)?i+=String.fromCharCode(255&t>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],r=0,i=t.length;r<i;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var r=s.rqrXoU[e];return void 0===r?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=r,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},u=new Map;function c(e){}function l(e){if(u[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return u[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",r=e[s("0x4")]+n,i=JSON[s("0x9")](a[s("0x34")]),o=!i[s("0x26")]&&!i[s("0x38")],c=i[s("0x26")]&&typeof KendoLicensing===s("0x2b"),l=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var r=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return r[s("0x14")](e[s("0x39")])}))}(i,e[s("0x2")]);if(o||c)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:r,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(l){if(s("0x12")!=s("0x12")){}else if(l[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:r,publishDate:d(e[s("0x1c")]),expiryDate:d(l[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:r,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var p=s("0x1b")+e[s("0xe")],f=typeof console[s("0x7")]===s("0x33");if(f)if(s("0xc")!=s("0xc")){}else console[s("0x7")](p);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](p);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),f)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var h=!t;return u[s("0x0")](e[s("0x4")],h),h}function d(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642584099,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(2),s=n(4),a=n(7),u=n(14),c=n(15),l=n(6),d=n(8),p=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new o.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=d.getWrappedNativeInput(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+a.guid()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String)],e.prototype,"direction",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"text",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"for",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),r.__decorate([i.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],e.prototype,"labelDirective",void 0),r.__decorate([i.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),e=r.__decorate([i.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,s.LocalizationService])],e)}();t.LabelComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.LabelDirective=r.LabelDirective;var i=n(18);t.LabelModule=i.LabelModule;var o=n(12);t.FloatingLabelModule=o.FloatingLabelModule;var s=n(13);t.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(16);t.LabelComponent=a.LabelComponent;var u=n(11);t.CustomMessagesComponent=u.CustomMessagesComponent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(9),o=n(5),s=n(0),a=n(12),u=n(6),c=n(16),l=[u.LabelDirective,c.LabelComponent],d=function(){function e(){}return e=r.__decorate([s.NgModule({imports:[o.CommonModule,i.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,i.SharedDirectivesModule])})],e)}();t.LabelModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),s=n(10),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,t=n=r.__decorate([i.Directive({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.LocalizedMessagesDirective=a},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(0),o=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof r.Observable||e instanceof i.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}();t.FloatingLabelInputAdapter=o}])}));
|
package/dist/cdn/main.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
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("tslib"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):"function"==typeof define&&define.amd?define(["@angular/core","tslib","rxjs","rxjs/operators","@progress/kendo-angular-common","@angular/common","@progress/kendo-licensing","@angular/forms"],t):"object"==typeof exports?exports.KendoAngularLabel=t(require("@angular/core"),require("tslib"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):e.KendoAngularLabel=t(e["@angular/core"],e.tslib,e.rxjs,e["rxjs/operators"],e["@progress/kendo-angular-common"],e["@angular/common"],e["@progress/kendo-licensing"],e["@angular/forms"])}(window,(function(e,t,n,o,i,r,a,s){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return s})),n.d(t,"ComponentMessages",(function(){return l})),n.d(t,"L10N_PREFIX",(function(){return c})),n.d(t,"LocalizationService",(function(){return d})),n.d(t,"RTL",(function(){return u}));var o=n(1),i=n(0),r=n(3),a=n(4),s=function(){function e(){this.changes=new r.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(o.__decorate)([Object(i.Injectable)()],e)}(),l=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(a.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),u=new i.InjectionToken("Kendo UI Right-to-Left token"),c=new i.InjectionToken("Localization key prefix"),d=function(){function e(e,t,n){var o=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new r.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(a.map)((function(e){var t=e.rtl;return void 0!==t?t:o._rtl})),Object(a.tap)((function(e){return o._rtl=e}))).subscribe((function(e){o.dictionary={},o.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var o=this.key(e),i=t;if(!n){if(this.dictionary.hasOwnProperty(o))return;i=this.defaultValue(o,t)}this.dictionary[o]=i},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(0,Object(i.Inject)(c)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__param)(2,Object(i.Optional)()),Object(o.__param)(2,Object(i.Inject)(u)),Object(o.__metadata)("design:paramtypes",[String,s,Boolean])],e)}()},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(7),r=n(0),a=n(6),s=function(){function e(e,t,n){var o=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=o.getFocusableComponent();e&&(i.isUploadComponent(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!a.isDocumentAvailable())return null;var e=this.getFocusableComponent()||{};return i.isInputElement(e)&&!i.inputElementHasAttr(e,"id")&&this.renderer.setAttribute(e,"id","k-"+a.guid()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(a.isDocumentAvailable()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=i.getRootElement(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,o=n.id||"k-"+a.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",o),this.renderer.setAttribute(t,"aria-labelledby",o)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"for",void 0),o.__decorate([r.HostBinding("attr.for"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"labelFor",null),o.__decorate([r.HostBinding("class.k-label"),o.__metadata("design:type",Boolean)],e.prototype,"labelClass",void 0),e=o.__decorate([r.Directive({selector:"label[for]"}),o.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.NgZone])],e)}();t.LabelDirective=s},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUploadComponent=function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)},t.isInputElement=function(e){return e instanceof HTMLElement},t.inputElementHasAttr=function(e,t){return e.hasAttribute(t)},t.getWrappedNativeInput=function(e){return e.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},t.getRootElement=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(19),a=n(10),s=[r.LocalizedMessagesDirective,a.CustomMessagesComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[s],exports:[s]})],e)}();t.SharedDirectivesModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"optional",void 0),t}(n(2).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),a=n(9),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=o.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=s},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(11),a=n(8),s=[n(13).FloatingLabelComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:s.slice(),exports:s.concat([a.SharedDirectivesModule]),imports:[r.CommonModule,a.SharedDirectivesModule]})],e)}();t.FloatingLabelModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),a=n(20),s=n(6),l=n(14),u=n(15),c=n(21),d=function(e){return"[object Function]"===Object.prototype.toString.call(e)},p=function(){function e(e,t,n,o){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=o,this.hostClasses=!0,this.positionChange=new i.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+s.guid(),this.autoFillStarted=!1,l.validatePackage(u.packageMetadata),this.direction=o.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new c.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof i.EventEmitter){var o=e[t].subscribe(n);this.subscription?this.subscription.add(o):this.subscription=o}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;d(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=d(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+s.guid();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&s.hasObservers(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var o=function(){return t.updateState()};o(),this.subscribe(e,"onValueChange",o)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(i.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},o.__decorate([i.HostBinding("class.k-floating-label-container"),o.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),o.__decorate([i.HostBinding("class.k-state-focused"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),o.__decorate([i.HostBinding("class.k-state-invalid"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"invalidClass",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"labelCssStyle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"labelCssClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"id",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"text",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!1}),o.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),o.__decorate([i.ContentChild(a.NgControl,{static:!1}),o.__metadata("design:type",a.NgControl)],e.prototype,"formControl",void 0),e=o.__decorate([i.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.ChangeDetectorRef,r.LocalizationService])],e)}();t.FloatingLabelComponent=p},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583775,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),a=n(2),s=n(6),l=n(14),u=n(15),c=n(5),d=n(7),p=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new r.Subscription,l.validatePackage(u.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=d.getWrappedNativeInput(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+s.guid()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"text",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"for",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),o.__decorate([i.ViewChild(c.LabelDirective,{static:!0}),o.__metadata("design:type",c.LabelDirective)],e.prototype,"labelDirective",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),e=o.__decorate([i.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,a.LocalizationService])],e)}();t.LabelComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.LabelDirective=o.LabelDirective;var i=n(18);t.LabelModule=i.LabelModule;var r=n(12);t.FloatingLabelModule=r.FloatingLabelModule;var a=n(13);t.FloatingLabelComponent=a.FloatingLabelComponent;var s=n(16);t.LabelComponent=s.LabelComponent;var l=n(10);t.CustomMessagesComponent=l.CustomMessagesComponent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(8),r=n(11),a=n(0),s=n(12),l=n(5),u=n(16),c=[l.LabelDirective,u.LabelComponent],d=function(){function e(){}return e=o.__decorate([a.NgModule({imports:[r.CommonModule,i.SharedDirectivesModule],declarations:c.slice(),exports:c.concat([s.FloatingLabelModule,i.SharedDirectivesModule])})],e)}();t.LabelModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),a=n(9),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,t=n=o.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=s},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),r=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof o.Observable||e instanceof i.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}();t.FloatingLabelInputAdapter=r}])}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("tslib"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):"function"==typeof define&&define.amd?define(["@angular/core","tslib","rxjs","rxjs/operators","@progress/kendo-angular-common","@angular/common","@progress/kendo-licensing","@angular/forms"],t):"object"==typeof exports?exports.KendoAngularLabel=t(require("@angular/core"),require("tslib"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):e.KendoAngularLabel=t(e["@angular/core"],e.tslib,e.rxjs,e["rxjs/operators"],e["@progress/kendo-angular-common"],e["@angular/common"],e["@progress/kendo-licensing"],e["@angular/forms"])}(window,(function(e,t,n,o,i,r,a,s){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return s})),n.d(t,"ComponentMessages",(function(){return l})),n.d(t,"L10N_PREFIX",(function(){return c})),n.d(t,"LocalizationService",(function(){return d})),n.d(t,"RTL",(function(){return u}));var o=n(1),i=n(0),r=n(3),a=n(4),s=function(){function e(){this.changes=new r.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(o.__decorate)([Object(i.Injectable)()],e)}(),l=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(a.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),u=new i.InjectionToken("Kendo UI Right-to-Left token"),c=new i.InjectionToken("Localization key prefix"),d=function(){function e(e,t,n){var o=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new r.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(a.map)((function(e){var t=e.rtl;return void 0!==t?t:o._rtl})),Object(a.tap)((function(e){return o._rtl=e}))).subscribe((function(e){o.dictionary={},o.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var o=this.key(e),i=t;if(!n){if(this.dictionary.hasOwnProperty(o))return;i=this.defaultValue(o,t)}this.dictionary[o]=i},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(0,Object(i.Inject)(c)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__param)(2,Object(i.Optional)()),Object(o.__param)(2,Object(i.Inject)(u)),Object(o.__metadata)("design:paramtypes",[String,s,Boolean])],e)}()},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(7),r=n(0),a=n(6),s=function(){function e(e,t,n){var o=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=o.getFocusableComponent();e&&(i.isUploadComponent(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!a.isDocumentAvailable())return null;var e=this.getFocusableComponent()||{};return i.isInputElement(e)&&!i.inputElementHasAttr(e,"id")&&this.renderer.setAttribute(e,"id","k-"+a.guid()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(a.isDocumentAvailable()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=i.getRootElement(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,o=n.id||"k-"+a.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",o),this.renderer.setAttribute(t,"aria-labelledby",o)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},o.__decorate([r.Input(),o.__metadata("design:type",Object)],e.prototype,"for",void 0),o.__decorate([r.HostBinding("attr.for"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"labelFor",null),o.__decorate([r.HostBinding("class.k-label"),o.__metadata("design:type",Boolean)],e.prototype,"labelClass",void 0),e=o.__decorate([r.Directive({selector:"label[for]"}),o.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.NgZone])],e)}();t.LabelDirective=s},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUploadComponent=function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)},t.isInputElement=function(e){return e instanceof HTMLElement},t.inputElementHasAttr=function(e,t){return e.hasAttribute(t)},t.getWrappedNativeInput=function(e){return e.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},t.getRootElement=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(19),a=n(10),s=[r.LocalizedMessagesDirective,a.CustomMessagesComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[s],exports:[s]})],e)}();t.SharedDirectivesModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"optional",void 0),t}(n(2).ComponentMessages);t.Messages=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),a=n(9),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=o.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=s},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(11),a=n(8),s=[n(13).FloatingLabelComponent],l=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:s.slice(),exports:s.concat([a.SharedDirectivesModule]),imports:[r.CommonModule,a.SharedDirectivesModule]})],e)}();t.FloatingLabelModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),a=n(20),s=n(6),l=n(14),u=n(15),c=n(21),d=function(e){return"[object Function]"===Object.prototype.toString.call(e)},p=function(){function e(e,t,n,o){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=o,this.hostClasses=!0,this.positionChange=new i.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+s.guid(),this.autoFillStarted=!1,l.validatePackage(u.packageMetadata),this.direction=o.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new c.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof i.EventEmitter){var o=e[t].subscribe(n);this.subscription?this.subscription.add(o):this.subscription=o}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;d(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=d(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+s.guid();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&s.hasObservers(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var o=function(){return t.updateState()};o(),this.subscribe(e,"onValueChange",o)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(i.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},o.__decorate([i.HostBinding("class.k-floating-label-container"),o.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),o.__decorate([i.HostBinding("class.k-state-focused"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),o.__decorate([i.HostBinding("class.k-state-invalid"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"invalidClass",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"labelCssStyle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"labelCssClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"id",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"text",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!1}),o.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),o.__decorate([i.ContentChild(a.NgControl,{static:!1}),o.__metadata("design:type",a.NgControl)],e.prototype,"formControl",void 0),e=o.__decorate([i.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.ChangeDetectorRef,r.LocalizationService])],e)}();t.FloatingLabelComponent=p},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642584099,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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),a=n(2),s=n(6),l=n(14),u=n(15),c=n(5),d=n(7),p=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new r.Subscription,l.validatePackage(u.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=d.getWrappedNativeInput(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+s.guid()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"text",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"for",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"optional",void 0),o.__decorate([i.ViewChild(c.LabelDirective,{static:!0}),o.__metadata("design:type",c.LabelDirective)],e.prototype,"labelDirective",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),e=o.__decorate([i.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,a.LocalizationService])],e)}();t.LabelComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.LabelDirective=o.LabelDirective;var i=n(18);t.LabelModule=i.LabelModule;var r=n(12);t.FloatingLabelModule=r.FloatingLabelModule;var a=n(13);t.FloatingLabelComponent=a.FloatingLabelComponent;var s=n(16);t.LabelComponent=s.LabelComponent;var l=n(10);t.CustomMessagesComponent=l.CustomMessagesComponent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(8),r=n(11),a=n(0),s=n(12),l=n(5),u=n(16),c=[l.LabelDirective,u.LabelComponent],d=function(){function e(){}return e=o.__decorate([a.NgModule({imports:[r.CommonModule,i.SharedDirectivesModule],declarations:c.slice(),exports:c.concat([s.FloatingLabelModule,i.SharedDirectivesModule])})],e)}();t.LabelModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),a=n(9),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,t=n=o.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=s},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),r=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof o.Observable||e instanceof i.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}();t.FloatingLabelInputAdapter=r}])}));
|
|
@@ -9,7 +9,7 @@ export var packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-label',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1642584099,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-label',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1642584099,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -253,7 +253,7 @@ const packageMetadata = {
|
|
|
253
253
|
name: '@progress/kendo-angular-label',
|
|
254
254
|
productName: 'Kendo UI for Angular',
|
|
255
255
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
256
|
-
publishDate:
|
|
256
|
+
publishDate: 1642584099,
|
|
257
257
|
version: '',
|
|
258
258
|
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'
|
|
259
259
|
};
|
package/dist/fesm5/index.js
CHANGED
|
@@ -277,7 +277,7 @@ var packageMetadata = {
|
|
|
277
277
|
name: '@progress/kendo-angular-label',
|
|
278
278
|
productName: 'Kendo UI for Angular',
|
|
279
279
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
280
|
-
publishDate:
|
|
280
|
+
publishDate: 1642584099,
|
|
281
281
|
version: '',
|
|
282
282
|
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'
|
|
283
283
|
};
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-label',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1642584099,
|
|
15
15
|
version: '',
|
|
16
16
|
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'
|
|
17
17
|
};
|
|
@@ -2,4 +2,4 @@
|
|
|
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
|
-
System.register("@progress/kendo-angular-label",["tslib","@angular/core","@progress/kendo-angular-common","@angular/common","rxjs","@progress/kendo-licensing","@angular/forms","rxjs/operators"],function(r){var a,s,l,c,u,d,p,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){d=t(e)},function(e){p=t(e)},function(e){f=t(e)}],execute:function(){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,i;i={},o.m=n=[function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",function(){return a}),n.d(t,"ComponentMessages",function(){return s}),n.d(t,"L10N_PREFIX",function(){return c}),n.d(t,"LocalizationService",function(){return u}),n.d(t,"RTL",function(){return l});var o=n(1),t=n(0),i=n(3),r=n(6),a=(f.prototype.notify=function(e){this.changes.next({rtl:e})},f.prototype.get=function(e){},Object(o.__decorate)([Object(t.Injectable)()],f)),s=(Object.defineProperty(p.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),p.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},p.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(r.skip)(1)).subscribe(function(){return e.register(e)})},p.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},p),l=new t.InjectionToken("Kendo UI Right-to-Left token"),c=new t.InjectionToken("Localization key prefix"),u=(Object.defineProperty(d.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),d.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},d.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},d.prototype.register=function(e,t,n){void 0===n&&(n=!1);var o=this.key(e),e=t;if(!n){if(this.dictionary.hasOwnProperty(o))return;e=this.defaultValue(o,t)}this.dictionary[o]=e},d.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},d.prototype.key=function(e){return this.prefix+"."+e},d.prototype.defaultValue=function(e,t){if(!this.messageService)return t;e=this.messageService.get(e);return void 0===e?t:e},Object(o.__decorate)([Object(t.Injectable)(),Object(o.__param)(0,Object(t.Inject)(c)),Object(o.__param)(1,Object(t.Optional)()),Object(o.__param)(2,Object(t.Optional)()),Object(o.__param)(2,Object(t.Inject)(l)),Object(o.__metadata)("design:paramtypes",[String,a,Boolean])],d));function d(e,t,n){var o=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(r.map)(function(e){e=e.rtl;return void 0!==e?e:o._rtl}),Object(r.tap)(function(e){return o._rtl=e})).subscribe(function(e){o.dictionary={},o.changes.next({rtl:e})}))}function p(){}function f(){this.changes=new i.BehaviorSubject({rtl:void 0})}},function(e,t){e.exports=u},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(16),r=n(0),a=n(4),r=(Object.defineProperty(s.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!a.isDocumentAvailable())return null;var e=this.getFocusableComponent()||{};return i.isInputElement(e)&&!i.inputElementHasAttr(e,"id")&&this.renderer.setAttribute(e,"id","k-"+a.guid()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),s.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular(function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)})},s.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},s.prototype.setAriaLabelledby=function(){var e,t,n;!a.isDocumentAvailable()||(n=this.getFocusableComponent())&&n.focusableId&&((e=i.getRootElement(this.label.nativeElement).querySelector("#"+n.focusableId))&&(n=(t=this.label.nativeElement).id||"k-"+a.guid(),t.getAttribute("id")||this.renderer.setAttribute(t,"id",n),this.renderer.setAttribute(e,"aria-labelledby",n)))},s.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},o.__decorate([r.Input(),o.__metadata("design:type",Object)],s.prototype,"for",void 0),o.__decorate([r.HostBinding("attr.for"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],s.prototype,"labelFor",null),o.__decorate([r.HostBinding("class.k-label"),o.__metadata("design:type",Boolean)],s.prototype,"labelClass",void 0),o.__decorate([r.Directive({selector:"label[for]"}),o.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.NgZone])],s));function s(e,t,n){var o=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=o.getFocusableComponent();e&&(i.isUploadComponent(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}t.LabelDirective=r},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),a=n(2),s=n(4),l=n(9),c=n(8),u=n(5),d=n(16),a=(p.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=d.getWrappedNativeInput(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+s.guid()),void(this.control=e);this.control=this.kendoInput}},p.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},p.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},p.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},p.prototype.textFor=function(e){return this.localization.get(e)},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"text",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],p.prototype,"for",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],p.prototype,"optional",void 0),o.__decorate([i.ViewChild(u.LabelDirective,{static:!0}),o.__metadata("design:type",u.LabelDirective)],p.prototype,"labelDirective",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),o.__decorate([i.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,a.LocalizationService])],p));function p(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new r.Subscription,l.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}t.LabelComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583775,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){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return"[object Function]"===Object.prototype.toString.call(e)}var i=n(1),r=n(0),a=n(2),s=n(18),l=n(4),c=n(9),u=n(8),d=n(17),a=(Object.defineProperty(p.prototype,"labelPosition",{get:function(){return!this.empty||this.focused?"Out":"In"},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),p.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new d.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},p.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},p.prototype.textFor=function(e){return this.localization.get(e)},p.prototype.subscribe=function(e,t,n){e[t]instanceof r.EventEmitter&&(n=e[t].subscribe(n),this.subscription?this.subscription.add(n):this.subscription=n)},p.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,o(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=o(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value),this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},p.prototype.setAriaLabelledby=function(e){var e=e.focusableId||e.id;e&&(e=this.elementRef.nativeElement.querySelector("#"+e),this.renderer.setAttribute(e,"aria-labelledby",this.labelId))},p.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;this.id&&t?this.id=t:this.id?e.focusableId=this.id:t?this.id=t:(t="k-"+l.guid(),e.focusableId=t,this.id=t)},p.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")}),this.subscribe(e,"autoFillEnd",function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))})},p.prototype.addHandlers=function(e){function t(e){return function(){n.focused=e,n.updateState(),n.empty&&l.hasObservers(n.positionChange)&&n.positionChange.emit(e?"Out":"In")}}var n=this;this.subscribe(e,"onFocus",t(!0)),this.subscribe(e,"onBlur",t(!1)),this.handleAutofill(e);function o(){return n.updateState()}o(),this.subscribe(e,"onValueChange",o)},p.prototype.validateSetup=function(){if(!this.formControl&&!this.kendoInput&&r.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},i.__decorate([r.HostBinding("class.k-floating-label-container"),i.__metadata("design:type",Boolean)],p.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-state-focused"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"focusedClass",null),i.__decorate([r.HostBinding("class.k-state-invalid"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"invalidClass",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],p.prototype,"labelCssStyle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],p.prototype,"labelCssClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],p.prototype,"optional",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],p.prototype,"positionChange",void 0),i.__decorate([r.ContentChild(l.KendoInput,{static:!1}),i.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),i.__decorate([r.ContentChild(s.NgControl,{static:!1}),i.__metadata("design:type",s.NgControl)],p.prototype,"formControl",void 0),i.__decorate([r.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.ChangeDetectorRef,a.LocalizationService])],p));function p(e,t,n,o){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=o,this.hostClasses=!0,this.positionChange=new r.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+l.guid(),this.autoFillStarted=!1,c.validatePackage(u.packageMetadata),this.direction=o.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}t.FloatingLabelComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(12),a=n(15),n=[n(10).FloatingLabelComponent],a=o.__decorate([i.NgModule({declarations:n.slice(),exports:n.concat([a.SharedDirectivesModule]),imports:[r.CommonModule,a.SharedDirectivesModule]})],s);function s(){}t.FloatingLabelModule=a},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r=n(1),a=n(0),s=n(2),n=n(14),s=(o=n.Messages,r.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),r=n(0),i=(o=n(2).ComponentMessages,i.__extends(a,o),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"optional",void 0),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.Messages=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(19),n=n(13),n=[r.LocalizedMessagesDirective,n.CustomMessagesComponent],n=o.__decorate([i.NgModule({declarations:[n],exports:[n]})],a);function a(){}t.SharedDirectivesModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUploadComponent=function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)},t.isInputElement=function(e){return e instanceof HTMLElement},t.inputElementHasAttr=function(e,t){return e.hasAttribute(t)},t.getWrappedNativeInput=function(e){return e.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},t.getRootElement=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),n=(Object.defineProperty(r.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),r);function r(e,t){function n(e){return e instanceof o.Observable||e instanceof i.EventEmitter}n((this.component=e).onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}t.FloatingLabelInputAdapter=n},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r=n(1),a=n(0),s=n(2),n=n(14),s=(o=n.Messages,r.__extends(l,o),i=l,i=r.__decorate([a.Directive({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(15),r=n(12),a=n(0),s=n(11),l=n(5),n=n(7),n=[l.LabelDirective,n.LabelComponent],i=o.__decorate([a.NgModule({imports:[r.CommonModule,i.SharedDirectivesModule],declarations:n.slice(),exports:n.concat([s.FloatingLabelModule,i.SharedDirectivesModule])})],c);function c(){}t.LabelModule=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.LabelDirective=o.LabelDirective;o=n(20);t.LabelModule=o.LabelModule;o=n(11);t.FloatingLabelModule=o.FloatingLabelModule;o=n(10);t.FloatingLabelComponent=o.FloatingLabelComponent;o=n(7);t.LabelComponent=o.LabelComponent;n=n(13);t.CustomMessagesComponent=n.CustomMessagesComponent,function(e){for(var t in e)r(t,e[t])}(t)}],o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=21)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-label",["tslib","@angular/core","@progress/kendo-angular-common","@angular/common","@progress/kendo-licensing","rxjs","@angular/forms","rxjs/operators"],function(r){var a,s,l,c,u,d,p,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){d=t(e)},function(e){p=t(e)},function(e){f=t(e)}],execute:function(){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,i;i={},o.m=n=[function(e,t){e.exports=s},function(e,t){e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",function(){return a}),n.d(t,"ComponentMessages",function(){return s}),n.d(t,"L10N_PREFIX",function(){return c}),n.d(t,"LocalizationService",function(){return u}),n.d(t,"RTL",function(){return l});var o=n(1),t=n(0),i=n(3),r=n(6),a=(f.prototype.notify=function(e){this.changes.next({rtl:e})},f.prototype.get=function(e){},Object(o.__decorate)([Object(t.Injectable)()],f)),s=(Object.defineProperty(p.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),p.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},p.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(r.skip)(1)).subscribe(function(){return e.register(e)})},p.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},p),l=new t.InjectionToken("Kendo UI Right-to-Left token"),c=new t.InjectionToken("Localization key prefix"),u=(Object.defineProperty(d.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),d.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},d.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},d.prototype.register=function(e,t,n){void 0===n&&(n=!1);var o=this.key(e),e=t;if(!n){if(this.dictionary.hasOwnProperty(o))return;e=this.defaultValue(o,t)}this.dictionary[o]=e},d.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},d.prototype.key=function(e){return this.prefix+"."+e},d.prototype.defaultValue=function(e,t){if(!this.messageService)return t;e=this.messageService.get(e);return void 0===e?t:e},Object(o.__decorate)([Object(t.Injectable)(),Object(o.__param)(0,Object(t.Inject)(c)),Object(o.__param)(1,Object(t.Optional)()),Object(o.__param)(2,Object(t.Optional)()),Object(o.__param)(2,Object(t.Inject)(l)),Object(o.__metadata)("design:paramtypes",[String,a,Boolean])],d));function d(e,t,n){var o=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(r.map)(function(e){e=e.rtl;return void 0!==e?e:o._rtl}),Object(r.tap)(function(e){return o._rtl=e})).subscribe(function(e){o.dictionary={},o.changes.next({rtl:e})}))}function p(){}function f(){this.changes=new i.BehaviorSubject({rtl:void 0})}},function(e,t){e.exports=d},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(16),r=n(0),a=n(4),r=(Object.defineProperty(s.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!a.isDocumentAvailable())return null;var e=this.getFocusableComponent()||{};return i.isInputElement(e)&&!i.inputElementHasAttr(e,"id")&&this.renderer.setAttribute(e,"id","k-"+a.guid()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),s.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular(function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)})},s.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},s.prototype.setAriaLabelledby=function(){var e,t,n;!a.isDocumentAvailable()||(n=this.getFocusableComponent())&&n.focusableId&&((e=i.getRootElement(this.label.nativeElement).querySelector("#"+n.focusableId))&&(n=(t=this.label.nativeElement).id||"k-"+a.guid(),t.getAttribute("id")||this.renderer.setAttribute(t,"id",n),this.renderer.setAttribute(e,"aria-labelledby",n)))},s.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},o.__decorate([r.Input(),o.__metadata("design:type",Object)],s.prototype,"for",void 0),o.__decorate([r.HostBinding("attr.for"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],s.prototype,"labelFor",null),o.__decorate([r.HostBinding("class.k-label"),o.__metadata("design:type",Boolean)],s.prototype,"labelClass",void 0),o.__decorate([r.Directive({selector:"label[for]"}),o.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.NgZone])],s));function s(e,t,n){var o=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=o.getFocusableComponent();e&&(i.isUploadComponent(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}t.LabelDirective=r},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),a=n(2),s=n(4),l=n(9),c=n(8),u=n(5),d=n(16),a=(p.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=d.getWrappedNativeInput(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+s.guid()),void(this.control=e);this.control=this.kendoInput}},p.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},p.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},p.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},p.prototype.textFor=function(e){return this.localization.get(e)},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],p.prototype,"text",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],p.prototype,"for",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],p.prototype,"optional",void 0),o.__decorate([i.ViewChild(u.LabelDirective,{static:!0}),o.__metadata("design:type",u.LabelDirective)],p.prototype,"labelDirective",void 0),o.__decorate([i.ContentChild(s.KendoInput,{static:!0}),o.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),o.__decorate([i.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),o.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,a.LocalizationService])],p));function p(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new r.Subscription,l.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}t.LabelComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642584099,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){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return"[object Function]"===Object.prototype.toString.call(e)}var i=n(1),r=n(0),a=n(2),s=n(18),l=n(4),c=n(9),u=n(8),d=n(17),a=(Object.defineProperty(p.prototype,"labelPosition",{get:function(){return!this.empty||this.focused?"Out":"In"},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),p.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new d.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},p.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},p.prototype.textFor=function(e){return this.localization.get(e)},p.prototype.subscribe=function(e,t,n){e[t]instanceof r.EventEmitter&&(n=e[t].subscribe(n),this.subscription?this.subscription.add(n):this.subscription=n)},p.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,o(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=o(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value),this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},p.prototype.setAriaLabelledby=function(e){var e=e.focusableId||e.id;e&&(e=this.elementRef.nativeElement.querySelector("#"+e),this.renderer.setAttribute(e,"aria-labelledby",this.labelId))},p.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;this.id&&t?this.id=t:this.id?e.focusableId=this.id:t?this.id=t:(t="k-"+l.guid(),e.focusableId=t,this.id=t)},p.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")}),this.subscribe(e,"autoFillEnd",function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))})},p.prototype.addHandlers=function(e){function t(e){return function(){n.focused=e,n.updateState(),n.empty&&l.hasObservers(n.positionChange)&&n.positionChange.emit(e?"Out":"In")}}var n=this;this.subscribe(e,"onFocus",t(!0)),this.subscribe(e,"onBlur",t(!1)),this.handleAutofill(e);function o(){return n.updateState()}o(),this.subscribe(e,"onValueChange",o)},p.prototype.validateSetup=function(){if(!this.formControl&&!this.kendoInput&&r.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},i.__decorate([r.HostBinding("class.k-floating-label-container"),i.__metadata("design:type",Boolean)],p.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-state-focused"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"focusedClass",null),i.__decorate([r.HostBinding("class.k-state-invalid"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],p.prototype,"invalidClass",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],p.prototype,"direction",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],p.prototype,"labelCssStyle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],p.prototype,"labelCssClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],p.prototype,"text",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],p.prototype,"optional",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],p.prototype,"positionChange",void 0),i.__decorate([r.ContentChild(l.KendoInput,{static:!1}),i.__metadata("design:type",Object)],p.prototype,"kendoInput",void 0),i.__decorate([r.ContentChild(s.NgControl,{static:!1}),i.__metadata("design:type",s.NgControl)],p.prototype,"formControl",void 0),i.__decorate([r.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.ChangeDetectorRef,a.LocalizationService])],p));function p(e,t,n,o){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=o,this.hostClasses=!0,this.positionChange=new r.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+l.guid(),this.autoFillStarted=!1,c.validatePackage(u.packageMetadata),this.direction=o.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}t.FloatingLabelComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(12),a=n(15),n=[n(10).FloatingLabelComponent],a=o.__decorate([i.NgModule({declarations:n.slice(),exports:n.concat([a.SharedDirectivesModule]),imports:[r.CommonModule,a.SharedDirectivesModule]})],s);function s(){}t.FloatingLabelModule=a},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r=n(1),a=n(0),s=n(2),n=n(14),s=(o=n.Messages,r.__extends(l,o),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),r=n(0),i=(o=n(2).ComponentMessages,i.__extends(a,o),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"optional",void 0),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.Messages=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(19),n=n(13),n=[r.LocalizedMessagesDirective,n.CustomMessagesComponent],n=o.__decorate([i.NgModule({declarations:[n],exports:[n]})],a);function a(){}t.SharedDirectivesModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUploadComponent=function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)},t.isInputElement=function(e){return e instanceof HTMLElement},t.inputElementHasAttr=function(e,t){return e.hasAttribute(t)},t.getWrappedNativeInput=function(e){return e.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},t.getRootElement=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),n=(Object.defineProperty(r.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),r);function r(e,t){function n(e){return e instanceof o.Observable||e instanceof i.EventEmitter}n((this.component=e).onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}t.FloatingLabelInputAdapter=n},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r=n(1),a=n(0),s=n(2),n=n(14),s=(o=n.Messages,r.__extends(l,o),i=l,i=r.__decorate([a.Directive({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(15),r=n(12),a=n(0),s=n(11),l=n(5),n=n(7),n=[l.LabelDirective,n.LabelComponent],i=o.__decorate([a.NgModule({imports:[r.CommonModule,i.SharedDirectivesModule],declarations:n.slice(),exports:n.concat([s.FloatingLabelModule,i.SharedDirectivesModule])})],c);function c(){}t.LabelModule=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.LabelDirective=o.LabelDirective;o=n(20);t.LabelModule=o.LabelModule;o=n(11);t.FloatingLabelModule=o.FloatingLabelModule;o=n(10);t.FloatingLabelComponent=o.FloatingLabelComponent;o=n(7);t.LabelComponent=o.LabelComponent;n=n(13);t.CustomMessagesComponent=n.CustomMessagesComponent,function(e){for(var t in e)r(t,e[t])}(t)}],o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=21)}}});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Kendo UI Label for Angular",
|
|
4
4
|
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"version": "3.1.2
|
|
6
|
+
"version": "3.1.2",
|
|
7
7
|
"main": "dist/npm/index.js",
|
|
8
8
|
"module": "dist/fesm5/index.js",
|
|
9
9
|
"es2015": "dist/fesm2015/index.js",
|