@progress/kendo-angular-label 3.1.3-dev.202202251425 → 3.1.3

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.
@@ -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(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function a(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function f(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"MessageService",(function(){return j})),n.d(e,"ComponentMessages",(function(){return C})),n.d(e,"L10N_PREFIX",(function(){return I})),n.d(e,"LocalizationService",(function(){return L})),n.d(e,"RTL",(function(){return k}));var r=n(0),o=n(1),i=n(3);function s(t){return"function"==typeof t}var a=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout((function(){throw t}))}var l={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},p=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var f=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a,u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(s(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?b(n.errors):[n]}if(p(i))for(u=-1,c=i.length;++u<c;){var l=i[u];if(null!==(a=l)&&"object"==typeof a)try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(b(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),_=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return r.__extends(e,t),e.prototype[y]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),g=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==l&&(s((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(_);var v=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.total))},t}(),m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(_);var O=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.project,this.thisArg))},t}(),S=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(_);function w(){}var x=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new E(t,this.nextOrObserver,this.error,this.complete))},t}(),E=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=w,i._tapError=w,i._tapComplete=w,i._tapError=r||w,i._tapComplete=o||w,s(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||w,i._tapError=n.error||w,i._tapComplete=n.complete||w),i}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(_),j=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=Object(r.__decorate)([Object(o.Injectable)()],t)}(),C=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t,e=this;this.subscription=this.service.changes.pipe((t=1,function(e){return e.lift(new v(t))})).subscribe((function(){return e.register(e)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}(),k=new o.InjectionToken("Kendo UI Right-to-Left token"),I=new o.InjectionToken("Localization key prefix"),L=function(){function t(t,e,n){var r,o,s,a,u,c=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe((a=function(t){var e=t.rtl;return void 0!==e?e:c._rtl},function(t){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new O(a,u))}),(r=function(t){return c._rtl=t},function(t){return t.lift(new x(r,o,s))})).subscribe((function(t){c.dictionary={},c.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=Object(r.__decorate)([Object(o.Injectable)(),Object(r.__param)(0,Object(o.Inject)(I)),Object(r.__param)(1,Object(o.Optional)()),Object(r.__param)(2,Object(o.Optional)()),Object(r.__param)(2,Object(o.Inject)(k)),Object(r.__metadata)("design:paramtypes",[String,j,Boolean])],t)}()},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(1),s=n(5),a=function(){function t(t,e,n){var r=this;this.label=t,this.renderer=e,this.zone=n,this.labelClass=!0,this.handleClick=function(){var t=r.getFocusableComponent();t&&(o.isUploadComponent(t)&&t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}return Object.defineProperty(t.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var t=this.getFocusableComponent()||{};return o.isInputElement(t)&&!o.inputElementHasAttr(t,"id")&&this.renderer.setAttribute(t,"id","k-"+s.guid()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return t.clickListener=t.renderer.listen(t.label.nativeElement,"click",t.handleClick)}))},t.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},t.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var t=this.getFocusableComponent();if(t&&t.focusableId){var e=o.getRootElement(this.label.nativeElement).querySelector("#"+t.focusableId);if(!e)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(e,"aria-labelledby",r)}}},t.prototype.getFocusableComponent=function(){var t=this.for;return t&&void 0!==t.focus?t:null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([i.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"labelFor",null),r.__decorate([i.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],t.prototype,"labelClass",void 0),t=r.__decorate([i.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.NgZone])],t)}();e.LabelDirective=a},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUploadComponent=function(t){return t.wrapper&&("KENDO-UPLOAD"===t.wrapper.tagName||"KENDO-FILESELECT"===t.wrapper.tagName)},e.isInputElement=function(t){return t instanceof HTMLElement},e.inputElementHasAttr=function(t,e){return t.hasAttribute(e)},e.getWrappedNativeInput=function(t){return t.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},e.getRootElement=function(t){if(!t)return null;for(var e=t;e.parentElement;)e=e.parentElement;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(18),s=n(9),a=[i.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:[a],exports:[a]})],t)}();e.SharedDirectivesModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"optional",void 0),e}(n(2).ComponentMessages);e.Messages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=r.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(10),s=n(7),a=[n(12).FloatingLabelComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[i.CommonModule,s.SharedDirectivesModule]})],t)}();e.FloatingLabelModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(19),a=n(5),u=n(13),c=n(14),l=n(20),p=function(t){return"[object Function]"===Object.prototype.toString.call(t)},d=function(){function t(t,e,n,r){this.elementRef=t,this.renderer=e,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new o.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(t.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validateSetup();var t=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(t),this.setLabelFor(t)},t.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},t.prototype.subscribe=function(t,e,n){if(t[e]instanceof o.EventEmitter){var r=t[e].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},t.prototype.updateState=function(){var t=function(t){return 0!==t&&!1!==t&&(!(!Array.isArray(t)||t.length)||!t)},e=this.formControl;if(e){var n=e.valueAccessor;p(n.isEmpty)?this.empty=n.isEmpty():this.empty=t(e.value),this.invalid=e.invalid&&(e.touched||e.dirty)}else this.empty=p(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():t(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()},t.prototype.setAriaLabelledby=function(t){var e=t.focusableId||t.id;if(e){var n=this.elementRef.nativeElement.querySelector("#"+e);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},t.prototype.setLabelFor=function(t){var e=t.focusableId||t.id;if(this.id&&e)this.id=e;else if(this.id)t.focusableId=this.id;else if(e)this.id=e;else{var n="k-"+a.guid();t.focusableId=n,this.id=n}},t.prototype.handleAutofill=function(t){var e=this;this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}))},t.prototype.addHandlers=function(t){var e=this,n=function(t){return function(){e.focused=t,e.updateState(),e.empty&&a.hasObservers(e.positionChange)&&e.positionChange.emit(t?"Out":"In")}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.handleAutofill(t);var r=function(){return e.updateState()};r(),this.subscribe(t,"onValueChange",r)},t.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(o.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([o.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),r.__decorate([o.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),r.__decorate([o.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"invalidClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"id",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"positionChange",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),r.__decorate([o.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],t.prototype,"formControl",void 0),t=r.__decorate([o.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[i.LocalizationService,{provide:i.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",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,i.LocalizationService])],t)}();e.FloatingLabelComponent=d},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645799045,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),s=n(2),a=n(5),u=n(13),c=n(14),l=n(4),p=n(6),d=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.localization=n,this.subscriptions=new i.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return t.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var t=p.getWrappedNativeInput(this.elementRef.nativeElement);if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id","k-"+a.guid()),void(this.control=t);this.control=this.kendoInput}},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],t.prototype,"labelDirective",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),t=r.__decorate([o.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",[o.ElementRef,o.Renderer2,s.LocalizationService])],t)}();e.LabelComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.LabelDirective=r.LabelDirective;var o=n(17);e.LabelModule=o.LabelModule;var i=n(11);e.FloatingLabelModule=i.FloatingLabelModule;var s=n(12);e.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(15);e.LabelComponent=a.LabelComponent;var u=n(9);e.CustomMessagesComponent=u.CustomMessagesComponent},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(10),s=n(1),a=n(11),u=n(4),c=n(15),l=[u.LabelDirective,c.LabelComponent],p=function(){function t(){}return t=r.__decorate([s.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],t)}();e.LabelModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,e=n=r.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(1),i=function(){function t(t,e){this.component=t;var n=function(t){return t instanceof r.Observable||t instanceof o.EventEmitter};n(t.onFocus)&&(this.onFocus=t.onFocus),n(t.autoFillStart)&&(this.autoFillStart=t.autoFillStart),n(t.autoFillEnd)&&(this.autoFillEnd=t.autoFillEnd),n(t.onBlur)&&(this.onBlur=t.onBlur),e?this.onValueChange=e.valueChanges:t.onValueChange&&(this.onValueChange=t.onValueChange)}return Object.defineProperty(t.prototype,"focusableId",{get:function(){var t=this.component;return"focusableId"in t?t.focusableId:"id"in t?t.id:""},set:function(t){var e=this.component;"focusableId"in e?e.focusableId=t:"id"in e&&(e.id=t)},enumerable:!0,configurable:!0}),t}();e.FloatingLabelInputAdapter=i}])}));
20
+ var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function a(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function f(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"MessageService",(function(){return j})),n.d(e,"ComponentMessages",(function(){return C})),n.d(e,"L10N_PREFIX",(function(){return I})),n.d(e,"LocalizationService",(function(){return L})),n.d(e,"RTL",(function(){return k}));var r=n(0),o=n(1),i=n(3);function s(t){return"function"==typeof t}var a=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout((function(){throw t}))}var l={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},p=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var f=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a,u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(s(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?b(n.errors):[n]}if(p(i))for(u=-1,c=i.length;++u<c;){var l=i[u];if(null!==(a=l)&&"object"==typeof a)try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(b(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),_=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return r.__extends(e,t),e.prototype[y]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),g=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==l&&(s((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(_);var v=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.total))},t}(),m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(_);var O=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.project,this.thisArg))},t}(),S=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(_);function w(){}var x=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new E(t,this.nextOrObserver,this.error,this.complete))},t}(),E=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=w,i._tapError=w,i._tapComplete=w,i._tapError=r||w,i._tapComplete=o||w,s(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||w,i._tapError=n.error||w,i._tapComplete=n.complete||w),i}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(_),j=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=Object(r.__decorate)([Object(o.Injectable)()],t)}(),C=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t,e=this;this.subscription=this.service.changes.pipe((t=1,function(e){return e.lift(new v(t))})).subscribe((function(){return e.register(e)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}(),k=new o.InjectionToken("Kendo UI Right-to-Left token"),I=new o.InjectionToken("Localization key prefix"),L=function(){function t(t,e,n){var r,o,s,a,u,c=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe((a=function(t){var e=t.rtl;return void 0!==e?e:c._rtl},function(t){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new O(a,u))}),(r=function(t){return c._rtl=t},function(t){return t.lift(new x(r,o,s))})).subscribe((function(t){c.dictionary={},c.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=Object(r.__decorate)([Object(o.Injectable)(),Object(r.__param)(0,Object(o.Inject)(I)),Object(r.__param)(1,Object(o.Optional)()),Object(r.__param)(2,Object(o.Optional)()),Object(r.__param)(2,Object(o.Inject)(k)),Object(r.__metadata)("design:paramtypes",[String,j,Boolean])],t)}()},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(1),s=n(5),a=function(){function t(t,e,n){var r=this;this.label=t,this.renderer=e,this.zone=n,this.labelClass=!0,this.handleClick=function(){var t=r.getFocusableComponent();t&&(o.isUploadComponent(t)&&t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}return Object.defineProperty(t.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var t=this.getFocusableComponent()||{};return o.isInputElement(t)&&!o.inputElementHasAttr(t,"id")&&this.renderer.setAttribute(t,"id","k-"+s.guid()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return t.clickListener=t.renderer.listen(t.label.nativeElement,"click",t.handleClick)}))},t.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},t.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var t=this.getFocusableComponent();if(t&&t.focusableId){var e=o.getRootElement(this.label.nativeElement).querySelector("#"+t.focusableId);if(!e)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(e,"aria-labelledby",r)}}},t.prototype.getFocusableComponent=function(){var t=this.for;return t&&void 0!==t.focus?t:null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([i.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"labelFor",null),r.__decorate([i.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],t.prototype,"labelClass",void 0),t=r.__decorate([i.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.NgZone])],t)}();e.LabelDirective=a},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUploadComponent=function(t){return t.wrapper&&("KENDO-UPLOAD"===t.wrapper.tagName||"KENDO-FILESELECT"===t.wrapper.tagName)},e.isInputElement=function(t){return t instanceof HTMLElement},e.inputElementHasAttr=function(t,e){return t.hasAttribute(e)},e.getWrappedNativeInput=function(t){return t.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},e.getRootElement=function(t){if(!t)return null;for(var e=t;e.parentElement;)e=e.parentElement;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(18),s=n(9),a=[i.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:[a],exports:[a]})],t)}();e.SharedDirectivesModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"optional",void 0),e}(n(2).ComponentMessages);e.Messages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=r.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(10),s=n(7),a=[n(12).FloatingLabelComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[i.CommonModule,s.SharedDirectivesModule]})],t)}();e.FloatingLabelModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(19),a=n(5),u=n(13),c=n(14),l=n(20),p=function(t){return"[object Function]"===Object.prototype.toString.call(t)},d=function(){function t(t,e,n,r){this.elementRef=t,this.renderer=e,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new o.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(t.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validateSetup();var t=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(t),this.setLabelFor(t)},t.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},t.prototype.subscribe=function(t,e,n){if(t[e]instanceof o.EventEmitter){var r=t[e].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},t.prototype.updateState=function(){var t=function(t){return 0!==t&&!1!==t&&(!(!Array.isArray(t)||t.length)||!t)},e=this.formControl;if(e){var n=e.valueAccessor;p(n.isEmpty)?this.empty=n.isEmpty():this.empty=t(e.value),this.invalid=e.invalid&&(e.touched||e.dirty)}else this.empty=p(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():t(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()},t.prototype.setAriaLabelledby=function(t){var e=t.focusableId||t.id;if(e){var n=this.elementRef.nativeElement.querySelector("#"+e);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},t.prototype.setLabelFor=function(t){var e=t.focusableId||t.id;if(this.id&&e)this.id=e;else if(this.id)t.focusableId=this.id;else if(e)this.id=e;else{var n="k-"+a.guid();t.focusableId=n,this.id=n}},t.prototype.handleAutofill=function(t){var e=this;this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}))},t.prototype.addHandlers=function(t){var e=this,n=function(t){return function(){e.focused=t,e.updateState(),e.empty&&a.hasObservers(e.positionChange)&&e.positionChange.emit(t?"Out":"In")}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.handleAutofill(t);var r=function(){return e.updateState()};r(),this.subscribe(t,"onValueChange",r)},t.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(o.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([o.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),r.__decorate([o.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),r.__decorate([o.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"invalidClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"id",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"positionChange",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),r.__decorate([o.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],t.prototype,"formControl",void 0),t=r.__decorate([o.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[i.LocalizationService,{provide:i.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",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,i.LocalizationService])],t)}();e.FloatingLabelComponent=d},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219058,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),s=n(2),a=n(5),u=n(13),c=n(14),l=n(4),p=n(6),d=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.localization=n,this.subscriptions=new i.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return t.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var t=p.getWrappedNativeInput(this.elementRef.nativeElement);if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id","k-"+a.guid()),void(this.control=t);this.control=this.kendoInput}},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],t.prototype,"labelDirective",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),t=r.__decorate([o.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",[o.ElementRef,o.Renderer2,s.LocalizationService])],t)}();e.LabelComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.LabelDirective=r.LabelDirective;var o=n(17);e.LabelModule=o.LabelModule;var i=n(11);e.FloatingLabelModule=i.FloatingLabelModule;var s=n(12);e.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(15);e.LabelComponent=a.LabelComponent;var u=n(9);e.CustomMessagesComponent=u.CustomMessagesComponent},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(10),s=n(1),a=n(11),u=n(4),c=n(15),l=[u.LabelDirective,c.LabelComponent],p=function(){function t(){}return t=r.__decorate([s.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],t)}();e.LabelModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,e=n=r.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(1),i=function(){function t(t,e){this.component=t;var n=function(t){return t instanceof r.Observable||t instanceof o.EventEmitter};n(t.onFocus)&&(this.onFocus=t.onFocus),n(t.autoFillStart)&&(this.autoFillStart=t.autoFillStart),n(t.autoFillEnd)&&(this.autoFillEnd=t.autoFillEnd),n(t.onBlur)&&(this.onBlur=t.onBlur),e?this.onValueChange=e.valueChanges:t.onValueChange&&(this.onValueChange=t.onValueChange)}return Object.defineProperty(t.prototype,"focusableId",{get:function(){var t=this.component;return"focusableId"in t?t.focusableId:"id"in t?t.id:""},set:function(t){var e=this.component;"focusableId"in e?e.focusableId=t:"id"in e&&(e.id=t)},enumerable:!0,configurable:!0}),t}();e.FloatingLabelInputAdapter=i}])}));
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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularLabel=e(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):t.KendoAngularLabel=e(t.self,t.ng.core,t.rxjs,t.KendoAngularCommon,t.ng.common,t.KendoLicensing,t.ng.forms)}(window,(function(t,e,n,r,o,i,s){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"MessageService",(function(){return k})),n.d(e,"ComponentMessages",(function(){return j})),n.d(e,"L10N_PREFIX",(function(){return L})),n.d(e,"LocalizationService",(function(){return w})),n.d(e,"RTL",(function(){return I}));var r=n(0),o=n(1),i=n(3);function s(t){return"function"==typeof t}var a=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout((function(){throw t}))}var l={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},p=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var f=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a,u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(s(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?b(n.errors):[n]}if(p(i))for(u=-1,c=i.length;++u<c;){var l=i[u];if(null!==(a=l)&&"object"==typeof a)try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(b(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var _="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return r.__extends(e,t),e.prototype[_]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),g=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==l&&(s((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y);var m=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.total))},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(y);var E=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new O(t,this.project,this.thisArg))},t}(),O=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y);function x(){}var C=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.nextOrObserver,this.error,this.complete))},t}(),S=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=x,i._tapError=x,i._tapComplete=x,i._tapError=r||x,i._tapComplete=o||x,s(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||x,i._tapError=n.error||x,i._tapComplete=n.complete||x),i}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(y),k=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=Object(r.__decorate)([Object(o.Injectable)()],t)}(),j=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t,e=this;this.subscription=this.service.changes.pipe((t=1,function(e){return e.lift(new m(t))})).subscribe((function(){return e.register(e)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}(),I=new o.InjectionToken("Kendo UI Right-to-Left token"),L=new o.InjectionToken("Localization key prefix"),w=function(){function t(t,e,n){var r,o,s,a,u,c=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe((a=function(t){var e=t.rtl;return void 0!==e?e:c._rtl},function(t){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new E(a,u))}),(r=function(t){return c._rtl=t},function(t){return t.lift(new C(r,o,s))})).subscribe((function(t){c.dictionary={},c.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=Object(r.__decorate)([Object(o.Injectable)(),Object(r.__param)(0,Object(o.Inject)(L)),Object(r.__param)(1,Object(o.Optional)()),Object(r.__param)(2,Object(o.Optional)()),Object(r.__param)(2,Object(o.Inject)(I)),Object(r.__metadata)("design:paramtypes",[String,k,Boolean])],t)}()},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(1),s=n(5),a=function(){function t(t,e,n){var r=this;this.label=t,this.renderer=e,this.zone=n,this.labelClass=!0,this.handleClick=function(){var t=r.getFocusableComponent();t&&(o.isUploadComponent(t)&&t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}return Object.defineProperty(t.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var t=this.getFocusableComponent()||{};return o.isInputElement(t)&&!o.inputElementHasAttr(t,"id")&&this.renderer.setAttribute(t,"id","k-"+s.guid()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return t.clickListener=t.renderer.listen(t.label.nativeElement,"click",t.handleClick)}))},t.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},t.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var t=this.getFocusableComponent();if(t&&t.focusableId){var e=o.getRootElement(this.label.nativeElement).querySelector("#"+t.focusableId);if(!e)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(e,"aria-labelledby",r)}}},t.prototype.getFocusableComponent=function(){var t=this.for;return t&&void 0!==t.focus?t:null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([i.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"labelFor",null),r.__decorate([i.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],t.prototype,"labelClass",void 0),t=r.__decorate([i.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.NgZone])],t)}();e.LabelDirective=a},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUploadComponent=function(t){return t.wrapper&&("KENDO-UPLOAD"===t.wrapper.tagName||"KENDO-FILESELECT"===t.wrapper.tagName)},e.isInputElement=function(t){return t instanceof HTMLElement},e.inputElementHasAttr=function(t,e){return t.hasAttribute(e)},e.getWrappedNativeInput=function(t){return t.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},e.getRootElement=function(t){if(!t)return null;for(var e=t;e.parentElement;)e=e.parentElement;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(18),s=n(9),a=[i.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:[a],exports:[a]})],t)}();e.SharedDirectivesModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"optional",void 0),e}(n(2).ComponentMessages);e.Messages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=r.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(10),s=n(7),a=[n(12).FloatingLabelComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[i.CommonModule,s.SharedDirectivesModule]})],t)}();e.FloatingLabelModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(19),a=n(5),u=n(13),c=n(14),l=n(20),p=function(t){return"[object Function]"===Object.prototype.toString.call(t)},d=function(){function t(t,e,n,r){this.elementRef=t,this.renderer=e,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new o.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(t.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validateSetup();var t=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(t),this.setLabelFor(t)},t.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},t.prototype.subscribe=function(t,e,n){if(t[e]instanceof o.EventEmitter){var r=t[e].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},t.prototype.updateState=function(){var t=function(t){return 0!==t&&!1!==t&&(!(!Array.isArray(t)||t.length)||!t)},e=this.formControl;if(e){var n=e.valueAccessor;p(n.isEmpty)?this.empty=n.isEmpty():this.empty=t(e.value),this.invalid=e.invalid&&(e.touched||e.dirty)}else this.empty=p(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():t(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()},t.prototype.setAriaLabelledby=function(t){var e=t.focusableId||t.id;if(e){var n=this.elementRef.nativeElement.querySelector("#"+e);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},t.prototype.setLabelFor=function(t){var e=t.focusableId||t.id;if(this.id&&e)this.id=e;else if(this.id)t.focusableId=this.id;else if(e)this.id=e;else{var n="k-"+a.guid();t.focusableId=n,this.id=n}},t.prototype.handleAutofill=function(t){var e=this;this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}))},t.prototype.addHandlers=function(t){var e=this,n=function(t){return function(){e.focused=t,e.updateState(),e.empty&&a.hasObservers(e.positionChange)&&e.positionChange.emit(t?"Out":"In")}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.handleAutofill(t);var r=function(){return e.updateState()};r(),this.subscribe(t,"onValueChange",r)},t.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(o.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([o.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),r.__decorate([o.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),r.__decorate([o.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"invalidClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"id",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"positionChange",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),r.__decorate([o.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],t.prototype,"formControl",void 0),t=r.__decorate([o.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[i.LocalizationService,{provide:i.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",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,i.LocalizationService])],t)}();e.FloatingLabelComponent=d},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645799045,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),s=n(2),a=n(5),u=n(13),c=n(14),l=n(4),p=n(6),d=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.localization=n,this.subscriptions=new i.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return t.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var t=p.getWrappedNativeInput(this.elementRef.nativeElement);if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id","k-"+a.guid()),void(this.control=t);this.control=this.kendoInput}},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],t.prototype,"labelDirective",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),t=r.__decorate([o.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",[o.ElementRef,o.Renderer2,s.LocalizationService])],t)}();e.LabelComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.LabelDirective=r.LabelDirective;var o=n(17);e.LabelModule=o.LabelModule;var i=n(11);e.FloatingLabelModule=i.FloatingLabelModule;var s=n(12);e.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(15);e.LabelComponent=a.LabelComponent;var u=n(9);e.CustomMessagesComponent=u.CustomMessagesComponent},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(10),s=n(1),a=n(11),u=n(4),c=n(15),l=[u.LabelDirective,c.LabelComponent],p=function(){function t(){}return t=r.__decorate([s.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],t)}();e.LabelModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,e=n=r.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(1),i=function(){function t(t,e){this.component=t;var n=function(t){return t instanceof r.Observable||t instanceof o.EventEmitter};n(t.onFocus)&&(this.onFocus=t.onFocus),n(t.autoFillStart)&&(this.autoFillStart=t.autoFillStart),n(t.autoFillEnd)&&(this.autoFillEnd=t.autoFillEnd),n(t.onBlur)&&(this.onBlur=t.onBlur),e?this.onValueChange=e.valueChanges:t.onValueChange&&(this.onValueChange=t.onValueChange)}return Object.defineProperty(t.prototype,"focusableId",{get:function(){var t=this.component;return"focusableId"in t?t.focusableId:"id"in t?t.id:""},set:function(t){var e=this.component;"focusableId"in e?e.focusableId=t:"id"in e&&(e.id=t)},enumerable:!0,configurable:!0}),t}();e.FloatingLabelInputAdapter=i}])}));
5
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularLabel=e(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):t.KendoAngularLabel=e(t.self,t.ng.core,t.rxjs,t.KendoAngularCommon,t.ng.common,t.KendoLicensing,t.ng.forms)}(window,(function(t,e,n,r,o,i,s){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"MessageService",(function(){return k})),n.d(e,"ComponentMessages",(function(){return j})),n.d(e,"L10N_PREFIX",(function(){return L})),n.d(e,"LocalizationService",(function(){return w})),n.d(e,"RTL",(function(){return I}));var r=n(0),o=n(1),i=n(3);function s(t){return"function"==typeof t}var a=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout((function(){throw t}))}var l={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},p=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var f=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a,u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(s(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?b(n.errors):[n]}if(p(i))for(u=-1,c=i.length;++u<c;){var l=i[u];if(null!==(a=l)&&"object"==typeof a)try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(b(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var _="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return r.__extends(e,t),e.prototype[_]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),g=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==l&&(s((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y);var m=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.total))},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(y);var E=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new O(t,this.project,this.thisArg))},t}(),O=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y);function x(){}var C=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.nextOrObserver,this.error,this.complete))},t}(),S=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=x,i._tapError=x,i._tapComplete=x,i._tapError=r||x,i._tapComplete=o||x,s(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||x,i._tapError=n.error||x,i._tapComplete=n.complete||x),i}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(y),k=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=Object(r.__decorate)([Object(o.Injectable)()],t)}(),j=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t,e=this;this.subscription=this.service.changes.pipe((t=1,function(e){return e.lift(new m(t))})).subscribe((function(){return e.register(e)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}(),I=new o.InjectionToken("Kendo UI Right-to-Left token"),L=new o.InjectionToken("Localization key prefix"),w=function(){function t(t,e,n){var r,o,s,a,u,c=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe((a=function(t){var e=t.rtl;return void 0!==e?e:c._rtl},function(t){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new E(a,u))}),(r=function(t){return c._rtl=t},function(t){return t.lift(new C(r,o,s))})).subscribe((function(t){c.dictionary={},c.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=Object(r.__decorate)([Object(o.Injectable)(),Object(r.__param)(0,Object(o.Inject)(L)),Object(r.__param)(1,Object(o.Optional)()),Object(r.__param)(2,Object(o.Optional)()),Object(r.__param)(2,Object(o.Inject)(I)),Object(r.__metadata)("design:paramtypes",[String,k,Boolean])],t)}()},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(1),s=n(5),a=function(){function t(t,e,n){var r=this;this.label=t,this.renderer=e,this.zone=n,this.labelClass=!0,this.handleClick=function(){var t=r.getFocusableComponent();t&&(o.isUploadComponent(t)&&t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}return Object.defineProperty(t.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var t=this.getFocusableComponent()||{};return o.isInputElement(t)&&!o.inputElementHasAttr(t,"id")&&this.renderer.setAttribute(t,"id","k-"+s.guid()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return t.clickListener=t.renderer.listen(t.label.nativeElement,"click",t.handleClick)}))},t.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},t.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var t=this.getFocusableComponent();if(t&&t.focusableId){var e=o.getRootElement(this.label.nativeElement).querySelector("#"+t.focusableId);if(!e)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(e,"aria-labelledby",r)}}},t.prototype.getFocusableComponent=function(){var t=this.for;return t&&void 0!==t.focus?t:null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([i.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"labelFor",null),r.__decorate([i.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],t.prototype,"labelClass",void 0),t=r.__decorate([i.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.NgZone])],t)}();e.LabelDirective=a},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUploadComponent=function(t){return t.wrapper&&("KENDO-UPLOAD"===t.wrapper.tagName||"KENDO-FILESELECT"===t.wrapper.tagName)},e.isInputElement=function(t){return t instanceof HTMLElement},e.inputElementHasAttr=function(t,e){return t.hasAttribute(e)},e.getWrappedNativeInput=function(t){return t.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},e.getRootElement=function(t){if(!t)return null;for(var e=t;e.parentElement;)e=e.parentElement;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(18),s=n(9),a=[i.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:[a],exports:[a]})],t)}();e.SharedDirectivesModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"optional",void 0),e}(n(2).ComponentMessages);e.Messages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=r.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(10),s=n(7),a=[n(12).FloatingLabelComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[i.CommonModule,s.SharedDirectivesModule]})],t)}();e.FloatingLabelModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(19),a=n(5),u=n(13),c=n(14),l=n(20),p=function(t){return"[object Function]"===Object.prototype.toString.call(t)},d=function(){function t(t,e,n,r){this.elementRef=t,this.renderer=e,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new o.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(t.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validateSetup();var t=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(t),this.setLabelFor(t)},t.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},t.prototype.subscribe=function(t,e,n){if(t[e]instanceof o.EventEmitter){var r=t[e].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},t.prototype.updateState=function(){var t=function(t){return 0!==t&&!1!==t&&(!(!Array.isArray(t)||t.length)||!t)},e=this.formControl;if(e){var n=e.valueAccessor;p(n.isEmpty)?this.empty=n.isEmpty():this.empty=t(e.value),this.invalid=e.invalid&&(e.touched||e.dirty)}else this.empty=p(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():t(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()},t.prototype.setAriaLabelledby=function(t){var e=t.focusableId||t.id;if(e){var n=this.elementRef.nativeElement.querySelector("#"+e);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},t.prototype.setLabelFor=function(t){var e=t.focusableId||t.id;if(this.id&&e)this.id=e;else if(this.id)t.focusableId=this.id;else if(e)this.id=e;else{var n="k-"+a.guid();t.focusableId=n,this.id=n}},t.prototype.handleAutofill=function(t){var e=this;this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}))},t.prototype.addHandlers=function(t){var e=this,n=function(t){return function(){e.focused=t,e.updateState(),e.empty&&a.hasObservers(e.positionChange)&&e.positionChange.emit(t?"Out":"In")}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.handleAutofill(t);var r=function(){return e.updateState()};r(),this.subscribe(t,"onValueChange",r)},t.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(o.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([o.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),r.__decorate([o.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),r.__decorate([o.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"invalidClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"id",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"positionChange",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),r.__decorate([o.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],t.prototype,"formControl",void 0),t=r.__decorate([o.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[i.LocalizationService,{provide:i.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",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,i.LocalizationService])],t)}();e.FloatingLabelComponent=d},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219058,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),s=n(2),a=n(5),u=n(13),c=n(14),l=n(4),p=n(6),d=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.localization=n,this.subscriptions=new i.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return t.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var t=p.getWrappedNativeInput(this.elementRef.nativeElement);if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id","k-"+a.guid()),void(this.control=t);this.control=this.kendoInput}},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],t.prototype,"labelDirective",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),t=r.__decorate([o.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",[o.ElementRef,o.Renderer2,s.LocalizationService])],t)}();e.LabelComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.LabelDirective=r.LabelDirective;var o=n(17);e.LabelModule=o.LabelModule;var i=n(11);e.FloatingLabelModule=i.FloatingLabelModule;var s=n(12);e.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(15);e.LabelComponent=a.LabelComponent;var u=n(9);e.CustomMessagesComponent=u.CustomMessagesComponent},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(10),s=n(1),a=n(11),u=n(4),c=n(15),l=[u.LabelDirective,c.LabelComponent],p=function(){function t(){}return t=r.__decorate([s.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],t)}();e.LabelModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,e=n=r.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(1),i=function(){function t(t,e){this.component=t;var n=function(t){return t instanceof r.Observable||t instanceof o.EventEmitter};n(t.onFocus)&&(this.onFocus=t.onFocus),n(t.autoFillStart)&&(this.autoFillStart=t.autoFillStart),n(t.autoFillEnd)&&(this.autoFillEnd=t.autoFillEnd),n(t.onBlur)&&(this.onBlur=t.onBlur),e?this.onValueChange=e.valueChanges:t.onValueChange&&(this.onValueChange=t.onValueChange)}return Object.defineProperty(t.prototype,"focusableId",{get:function(){var t=this.component;return"focusableId"in t?t.focusableId:"id"in t?t.id:""},set:function(t){var e=this.component;"focusableId"in e?e.focusableId=t:"id"in e&&(e.id=t)},enumerable:!0,configurable:!0}),t}();e.FloatingLabelInputAdapter=i}])}));
@@ -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: 1645799045,
12
+ publishDate: 1646219058,
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: 1645799045,
12
+ publishDate: 1646219058,
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
  };
@@ -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: 1645799045,
256
+ publishDate: 1646219058,
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
  };
@@ -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: 1645799045,
280
+ publishDate: 1646219058,
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: 1645799045,
14
+ publishDate: 1646219058,
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/common","@angular/core","@progress/kendo-angular-common","rxjs","@progress/kendo-licensing","@angular/forms","rxjs/operators"],function(a){var r,s,l,c,u,d,p,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=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;n=[function(e,t){e.exports=l},function(e,t){e.exports=r},function(u,e,t){"use strict";t.r(e),t.d(e,"MessageService",function(){return o}),t.d(e,"ComponentMessages",function(){return d}),t.d(e,"L10N_PREFIX",function(){return p}),t.d(e,"LocalizationService",function(){return f}),t.d(e,"RTL",function(){return a});var e=t(1),n=t(0),i=t(3),r=t(6),o=(c.prototype.notify=function(e){this.changes.next({rtl:e})},c.prototype.get=function(e){},Object(e.__decorate)([Object(n.Injectable)()],c)),d=(Object.defineProperty(l.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),l.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},l.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(r.skip)(1)).subscribe(function(){return e.register(e)})},l.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},l.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},l),a=new n.InjectionToken("Kendo UI Right-to-Left token"),p=new n.InjectionToken("Localization key prefix"),f=(Object.defineProperty(s.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),s.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},s.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},s.prototype.register=function(e,t,n){void 0===n&&(n=!1);var e=this.key(e),o=t;if(!n){if(this.dictionary.hasOwnProperty(e))return;o=this.defaultValue(e,t)}this.dictionary[e]=o},s.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},s.prototype.key=function(e){return this.prefix+"."+e},s.prototype.defaultValue=function(e,t){if(!this.messageService)return t;e=this.messageService.get(e);return void 0===e?t:e},Object(e.__decorate)([Object(n.Injectable)(),Object(e.__param)(0,Object(n.Inject)(p)),Object(e.__param)(1,Object(n.Optional)()),Object(e.__param)(2,Object(n.Optional)()),Object(e.__param)(2,Object(n.Inject)(a)),Object(e.__metadata)("design:paramtypes",[String,o,Boolean])],s));function s(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 l(){}function c(){this.changes=new i.BehaviorSubject({rtl:void 0})}},function(e,t){e.exports=u},function(e,t){e.exports=c},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),n=(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()||(e=this.getFocusableComponent())&&e.focusableId&&((e=i.getRootElement(this.label.nativeElement).querySelector("#"+e.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=n},function(e,t){e.exports=f},function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(1),o=t(0),i=t(3),r=t(2),a=t(4),s=t(9),d=t(8),l=t(5),p=t(16),t=(c.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=p.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}},c.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},c.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},c.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},c.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",String)],c.prototype,"direction",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],c.prototype,"text",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],c.prototype,"for",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],c.prototype,"optional",void 0),n.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),n.__metadata("design:type",l.LabelDirective)],c.prototype,"labelDirective",void 0),n.__decorate([o.ContentChild(a.KendoInput,{static:!0}),n.__metadata("design:type",Object)],c.prototype,"kendoInput",void 0),n.__decorate([o.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[r.LocalizationService,{provide:r.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 '}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,r.LocalizationService])],c));function c(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new i.Subscription,s.validatePackage(d.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}e.LabelComponent=t},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:1645799045,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(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function o(e){return"[object Function]"===Object.prototype.toString.call(e)}var n=t(1),i=t(0),r=t(2),a=t(18),s=t(4),l=t(9),d=t(8),p=t(17),t=(Object.defineProperty(c.prototype,"labelPosition",{get:function(){return!this.empty||this.focused?"Out":"In"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),c.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new p.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},c.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},c.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},c.prototype.textFor=function(e){return this.localization.get(e)},c.prototype.subscribe=function(e,t,n){e[t]instanceof i.EventEmitter&&(e=e[t].subscribe(n),this.subscription?this.subscription.add(e):this.subscription=e)},c.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()},c.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))},c.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-"+s.guid(),e.focusableId=t,this.id=t)},c.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"))})},c.prototype.addHandlers=function(e){function t(e){return function(){o.focused=e,o.updateState(),o.empty&&s.hasObservers(o.positionChange)&&o.positionChange.emit(e?"Out":"In")}}function n(){return o.updateState()}var o=this;this.subscribe(e,"onFocus",t(!0)),this.subscribe(e,"onBlur",t(!1)),this.handleAutofill(e);n(),this.subscribe(e,"onValueChange",n)},c.prototype.validateSetup=function(){if(!this.formControl&&!this.kendoInput&&i.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},n.__decorate([i.HostBinding("class.k-floating-label-container"),n.__metadata("design:type",Boolean)],c.prototype,"hostClasses",void 0),n.__decorate([i.HostBinding("class.k-state-focused"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],c.prototype,"focusedClass",null),n.__decorate([i.HostBinding("class.k-state-invalid"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],c.prototype,"invalidClass",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String)],c.prototype,"direction",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],c.prototype,"labelCssStyle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],c.prototype,"labelCssClass",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],c.prototype,"id",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],c.prototype,"text",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],c.prototype,"optional",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],c.prototype,"positionChange",void 0),n.__decorate([i.ContentChild(s.KendoInput,{static:!1}),n.__metadata("design:type",Object)],c.prototype,"kendoInput",void 0),n.__decorate([i.ContentChild(a.NgControl,{static:!1}),n.__metadata("design:type",a.NgControl)],c.prototype,"formControl",void 0),n.__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 '}),n.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.ChangeDetectorRef,r.LocalizationService])],c));function c(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(d.packageMetadata),this.direction=o.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}e.FloatingLabelComponent=t},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],o=o.__decorate([i.NgModule({declarations:n.slice(),exports:n.concat([a.SharedDirectivesModule]),imports:[r.CommonModule,a.SharedDirectivesModule]})],s);function s(){}t.FloatingLabelModule=o},function(e,t){e.exports=s},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),n=(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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),r=n(0),n=(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=n},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),r=[r.LocalizedMessagesDirective,n.CustomMessagesComponent],n=o.__decorate([i.NgModule({declarations:[r],exports:[r]})],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);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)}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}),t.FloatingLabelInputAdapter=r},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),n=(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=n},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(1),o=t(15),i=t(12),r=t(0),a=t(11),s=t(5),t=t(7),s=[s.LabelDirective,t.LabelComponent],t=n.__decorate([r.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:s.slice(),exports:s.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],l);function l(){}e.LabelModule=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(5),i=(t.LabelDirective=i.LabelDirective,n(20)),i=(t.LabelModule=i.LabelModule,n(11)),i=(t.FloatingLabelModule=i.FloatingLabelModule,n(10)),i=(t.FloatingLabelComponent=i.FloatingLabelComponent,n(7)),i=(t.LabelComponent=i.LabelComponent,n(13)),r=(t.CustomMessagesComponent=i.CustomMessagesComponent,t);for(o in r)a(o,r[o])}],i={},o.m=n,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","rxjs","@progress/kendo-licensing","@angular/forms","rxjs/operators"],function(a){var r,s,l,c,u,d,p,f;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=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;n=[function(e,t){e.exports=s},function(e,t){e.exports=r},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 t=n(1),o=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(t.__decorate)([Object(o.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 o.InjectionToken("Kendo UI Right-to-Left token"),c=new o.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 e=this.key(e),o=t;if(!n){if(this.dictionary.hasOwnProperty(e))return;o=this.defaultValue(e,t)}this.dictionary[e]=o},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(t.__decorate)([Object(o.Injectable)(),Object(t.__param)(0,Object(o.Inject)(c)),Object(t.__param)(1,Object(o.Optional)()),Object(t.__param)(2,Object(o.Optional)()),Object(t.__param)(2,Object(o.Inject)(l)),Object(t.__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),n=(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()&&(e=this.getFocusableComponent())&&e.focusableId&&((e=i.getRootElement(this.label.nativeElement).querySelector("#"+e.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=n},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),n=(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=n},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:1646219058,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),n=(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&&(e=e[t].subscribe(n),this.subscription?this.subscription.add(e):this.subscription=e)},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(){o.focused=e,o.updateState(),o.empty&&l.hasObservers(o.positionChange)&&o.positionChange.emit(e?"Out":"In")}}function n(){return o.updateState()}var o=this;this.subscribe(e,"onFocus",t(!0)),this.subscribe(e,"onBlur",t(!1)),this.handleAutofill(e);n(),this.subscribe(e,"onValueChange",n)},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=n},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],o=o.__decorate([i.NgModule({declarations:n.slice(),exports:n.concat([a.SharedDirectivesModule]),imports:[r.CommonModule,a.SharedDirectivesModule]})],s);function s(){}t.FloatingLabelModule=o},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),n=(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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(1),r=n(0),n=(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=n},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),r=[r.LocalizedMessagesDirective,n.CustomMessagesComponent],n=o.__decorate([i.NgModule({declarations:[r],exports:[r]})],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);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)}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}),t.FloatingLabelInputAdapter=r},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),n=(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=n},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),l=[l.LabelDirective,n.LabelComponent],n=o.__decorate([a.NgModule({imports:[r.CommonModule,i.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([s.FloatingLabelModule,i.SharedDirectivesModule])})],c);function c(){}t.LabelModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(5),i=(t.LabelDirective=i.LabelDirective,n(20)),i=(t.LabelModule=i.LabelModule,n(11)),i=(t.FloatingLabelModule=i.FloatingLabelModule,n(10)),i=(t.FloatingLabelComponent=i.FloatingLabelComponent,n(7)),i=(t.LabelComponent=i.LabelComponent,n(13)),r=(t.CustomMessagesComponent=i.CustomMessagesComponent,t);for(o in r)a(o,r[o])}],i={},o.m=n,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.3-dev.202202251425",
6
+ "version": "3.1.3",
7
7
  "main": "dist/npm/index.js",
8
8
  "module": "dist/fesm5/index.js",
9
9
  "es2015": "dist/fesm2015/index.js",
@@ -68,7 +68,7 @@
68
68
  "@progress/kendo-angular-jest-preset": "^2.0.0",
69
69
  "@progress/kendo-angular-l10n": "^3.0.0",
70
70
  "@progress/kendo-angular-popup": "^4.0.0",
71
- "@progress/kendo-angular-tasks": "cdn-bundle",
71
+ "@progress/kendo-angular-tasks": "^19.3.1",
72
72
  "@progress/kendo-angular-treeview": "^5.0.0",
73
73
  "@progress/kendo-angular-upload": "^7.0.0",
74
74
  "@progress/kendo-drawing": "^1.6.0",