UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

8 lines (7 loc) 13.3 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/globalization/globalize'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxtooltip'); require('../../jqwidgets/jqxdatetimeinput'); require('../../jqwidgets/jqxcalendar'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxcalendar",["exports","@angular/core","@angular/forms"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxcalendar={}),t.ng.core,t.ng.forms)}(this,function(t,e,n){"use strict";function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var a,r,o=n.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(a=o.next()).done;)i.push(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return i}var a=function(){},r={provide:n.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return i}),multi:!0},i=function(){function t(t){this.autoCreate=!0,this.properties=["backText","columnHeaderHeight","clearString","culture","dayNameFormat","disabled","enableWeekend","enableViews","enableOtherMonthDays","enableFastNavigation","enableHover","enableAutoNavigation","enableTooltips","forwardText","firstDayOfWeek","height","min","max","navigationDelay","rowHeaderWidth","readOnly","restrictedDates","rtl","stepMonths","showWeekNumbers","showDayNames","showOtherMonthDays","showFooter","selectionMode","specialDates","theme","titleHeight","titleFormat","todayString","value","width"],this.onTouchedCallback=a,this.onChangeCallback=a,this.onBackButtonClick=new e.EventEmitter,this.onChange=new e.EventEmitter,this.onNextButtonClick=new e.EventEmitter,this.onViewChange=new e.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){this.autoCreate&&this.createComponent()},t.prototype.ngOnChanges=function(t){if(this.host)for(var e=0;e<this.properties.length;e++){var n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),a=!1;if(this[n]!==undefined){if("object"==typeof this[n]){if(this[n]instanceof Array&&(a=this.arraysEqual(this[n],this.host.jqxCalendar(this.properties[e]))),a)return!1;this.host.jqxCalendar(this.properties[e],this[n]);continue}this[n]!==this.host.jqxCalendar(this.properties[e])&&this.host.jqxCalendar(this.properties[e],this[n])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[n]!==undefined&&(t[this.properties[e]]=this[n])}return t},t.prototype.moveClasses=function(t,e){var n,a=t.classList;0<a.length&&(n=e.classList).add.apply(n,function r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}(a)),t.className=""},t.prototype.moveStyles=function(t,e){var n=t.style.cssText;e.style.cssText=n,t.style.cssText=""},t.prototype.createComponent=function(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),this.__wireEvents__(),this.widgetObject=jqwidgets.createInstance(this.host,"jqxCalendar",t))},t.prototype.createWidget=function(t){this.createComponent(t)},t.prototype.__updateRect__=function(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})},t.prototype.writeValue=function(t){this.widgetObject&&this.onChangeCallback(this.host.val())},t.prototype.registerOnChange=function(t){this.onChangeCallback=t},t.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},t.prototype.setOptions=function(t){this.host.jqxCalendar("setOptions",t)},t.prototype.backText=function(t){if(t===undefined)return this.host.jqxCalendar("backText");this.host.jqxCalendar("backText",t)},t.prototype.columnHeaderHeight=function(t){if(t===undefined)return this.host.jqxCalendar("columnHeaderHeight");this.host.jqxCalendar("columnHeaderHeight",t)},t.prototype.clearString=function(t){if(t===undefined)return this.host.jqxCalendar("clearString");this.host.jqxCalendar("clearString",t)},t.prototype.culture=function(t){if(t===undefined)return this.host.jqxCalendar("culture");this.host.jqxCalendar("culture",t)},t.prototype.dayNameFormat=function(t){if(t===undefined)return this.host.jqxCalendar("dayNameFormat");this.host.jqxCalendar("dayNameFormat",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxCalendar("disabled");this.host.jqxCalendar("disabled",t)},t.prototype.enableWeekend=function(t){if(t===undefined)return this.host.jqxCalendar("enableWeekend");this.host.jqxCalendar("enableWeekend",t)},t.prototype.enableViews=function(t){if(t===undefined)return this.host.jqxCalendar("enableViews");this.host.jqxCalendar("enableViews",t)},t.prototype.enableOtherMonthDays=function(t){if(t===undefined)return this.host.jqxCalendar("enableOtherMonthDays");this.host.jqxCalendar("enableOtherMonthDays",t)},t.prototype.enableFastNavigation=function(t){if(t===undefined)return this.host.jqxCalendar("enableFastNavigation");this.host.jqxCalendar("enableFastNavigation",t)},t.prototype.enableHover=function(t){if(t===undefined)return this.host.jqxCalendar("enableHover");this.host.jqxCalendar("enableHover",t)},t.prototype.enableAutoNavigation=function(t){if(t===undefined)return this.host.jqxCalendar("enableAutoNavigation");this.host.jqxCalendar("enableAutoNavigation",t)},t.prototype.enableTooltips=function(t){if(t===undefined)return this.host.jqxCalendar("enableTooltips");this.host.jqxCalendar("enableTooltips",t)},t.prototype.forwardText=function(t){if(t===undefined)return this.host.jqxCalendar("forwardText");this.host.jqxCalendar("forwardText",t)},t.prototype.firstDayOfWeek=function(t){if(t===undefined)return this.host.jqxCalendar("firstDayOfWeek");this.host.jqxCalendar("firstDayOfWeek",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxCalendar("height");this.host.jqxCalendar("height",t)},t.prototype.min=function(t){if(t===undefined)return this.host.jqxCalendar("min");this.host.jqxCalendar("min",t)},t.prototype.max=function(t){if(t===undefined)return this.host.jqxCalendar("max");this.host.jqxCalendar("max",t)},t.prototype.navigationDelay=function(t){if(t===undefined)return this.host.jqxCalendar("navigationDelay");this.host.jqxCalendar("navigationDelay",t)},t.prototype.rowHeaderWidth=function(t){if(t===undefined)return this.host.jqxCalendar("rowHeaderWidth");this.host.jqxCalendar("rowHeaderWidth",t)},t.prototype.readOnly=function(t){if(t===undefined)return this.host.jqxCalendar("readOnly");this.host.jqxCalendar("readOnly",t)},t.prototype.restrictedDates=function(t){if(t===undefined)return this.host.jqxCalendar("restrictedDates");this.host.jqxCalendar("restrictedDates",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxCalendar("rtl");this.host.jqxCalendar("rtl",t)},t.prototype.stepMonths=function(t){if(t===undefined)return this.host.jqxCalendar("stepMonths");this.host.jqxCalendar("stepMonths",t)},t.prototype.showWeekNumbers=function(t){if(t===undefined)return this.host.jqxCalendar("showWeekNumbers");this.host.jqxCalendar("showWeekNumbers",t)},t.prototype.showDayNames=function(t){if(t===undefined)return this.host.jqxCalendar("showDayNames");this.host.jqxCalendar("showDayNames",t)},t.prototype.showOtherMonthDays=function(t){if(t===undefined)return this.host.jqxCalendar("showOtherMonthDays");this.host.jqxCalendar("showOtherMonthDays",t)},t.prototype.showFooter=function(t){if(t===undefined)return this.host.jqxCalendar("showFooter");this.host.jqxCalendar("showFooter",t)},t.prototype.selectionMode=function(t){if(t===undefined)return this.host.jqxCalendar("selectionMode");this.host.jqxCalendar("selectionMode",t)},t.prototype.specialDates=function(t){if(t===undefined)return this.host.jqxCalendar("specialDates");this.host.jqxCalendar("specialDates",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxCalendar("theme");this.host.jqxCalendar("theme",t)},t.prototype.titleHeight=function(t){if(t===undefined)return this.host.jqxCalendar("titleHeight");this.host.jqxCalendar("titleHeight",t)},t.prototype.titleFormat=function(t){if(t===undefined)return this.host.jqxCalendar("titleFormat");this.host.jqxCalendar("titleFormat",t)},t.prototype.todayString=function(t){if(t===undefined)return this.host.jqxCalendar("todayString");this.host.jqxCalendar("todayString",t)},t.prototype.value=function(t){if(t===undefined)return this.host.jqxCalendar("value");this.host.jqxCalendar("value",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxCalendar("width");this.host.jqxCalendar("width",t)},t.prototype.clear=function(){this.host.jqxCalendar("clear")},t.prototype.destroy=function(){this.host.jqxCalendar("destroy")},t.prototype.focus=function(){this.host.jqxCalendar("focus")},t.prototype.addSpecialDate=function(t,e,n){this.host.jqxCalendar("addSpecialDate",t,e,n)},t.prototype.getMinDate=function(){return this.host.jqxCalendar("getMinDate")},t.prototype.getMaxDate=function(){return this.host.jqxCalendar("getMaxDate")},t.prototype.getDate=function(){return this.host.jqxCalendar("getDate")},t.prototype.getRange=function(){return this.host.jqxCalendar("getRange")},t.prototype.navigateForward=function(t){this.host.jqxCalendar("navigateForward",t)},t.prototype.navigateBackward=function(t){this.host.jqxCalendar("navigateBackward",t)},t.prototype.render=function(){this.host.jqxCalendar("render")},t.prototype.refresh=function(){this.host.jqxCalendar("refresh")},t.prototype.setMinDate=function(t){this.host.jqxCalendar("setMinDate",t)},t.prototype.setMaxDate=function(t){this.host.jqxCalendar("setMaxDate",t)},t.prototype.setDate=function(t){this.host.jqxCalendar("setDate",t)},t.prototype.setRange=function(t,e){this.host.jqxCalendar("setRange",t,e)},t.prototype.today=function(){this.host.jqxCalendar("today")},t.prototype.val=function(t,e){return t!==undefined?this.host.jqxCalendar("val",t,e):this.host.jqxCalendar("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("backButtonClick",function(t){e.onBackButtonClick.emit(t)}),this.host.on("change",function(t){e.onChange.emit(t),e.onChangeCallback(e.host.val())}),this.host.on("nextButtonClick",function(t){e.onNextButtonClick.emit(t)}),this.host.on("viewChange",function(t){e.onViewChange.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxCalendar",template:"<div><ng-content></ng-content></div>",providers:[r],changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrBackText:[{type:e.Input,args:["backText"]}],attrColumnHeaderHeight:[{type:e.Input,args:["columnHeaderHeight"]}],attrClearString:[{type:e.Input,args:["clearString"]}],attrCulture:[{type:e.Input,args:["culture"]}],attrDayNameFormat:[{type:e.Input,args:["dayNameFormat"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEnableWeekend:[{type:e.Input,args:["enableWeekend"]}],attrEnableViews:[{type:e.Input,args:["enableViews"]}],attrEnableOtherMonthDays:[{type:e.Input,args:["enableOtherMonthDays"]}],attrEnableFastNavigation:[{type:e.Input,args:["enableFastNavigation"]}],attrEnableHover:[{type:e.Input,args:["enableHover"]}],attrEnableAutoNavigation:[{type:e.Input,args:["enableAutoNavigation"]}],attrEnableTooltips:[{type:e.Input,args:["enableTooltips"]}],attrForwardText:[{type:e.Input,args:["forwardText"]}],attrFirstDayOfWeek:[{type:e.Input,args:["firstDayOfWeek"]}],attrMin:[{type:e.Input,args:["min"]}],attrMax:[{type:e.Input,args:["max"]}],attrNavigationDelay:[{type:e.Input,args:["navigationDelay"]}],attrRowHeaderWidth:[{type:e.Input,args:["rowHeaderWidth"]}],attrReadOnly:[{type:e.Input,args:["readOnly"]}],attrRestrictedDates:[{type:e.Input,args:["restrictedDates"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrStepMonths:[{type:e.Input,args:["stepMonths"]}],attrShowWeekNumbers:[{type:e.Input,args:["showWeekNumbers"]}],attrShowDayNames:[{type:e.Input,args:["showDayNames"]}],attrShowOtherMonthDays:[{type:e.Input,args:["showOtherMonthDays"]}],attrShowFooter:[{type:e.Input,args:["showFooter"]}],attrSelectionMode:[{type:e.Input,args:["selectionMode"]}],attrSpecialDates:[{type:e.Input,args:["specialDates"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrTitleHeight:[{type:e.Input,args:["titleHeight"]}],attrTitleFormat:[{type:e.Input,args:["titleFormat"]}],attrTodayString:[{type:e.Input,args:["todayString"]}],attrValue:[{type:e.Input,args:["value"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onBackButtonClick:[{type:e.Output}],onChange:[{type:e.Output}],onNextButtonClick:[{type:e.Output}],onViewChange:[{type:e.Output}]},t}(),s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[n.FormsModule],declarations:[i],exports:[i]}]}],t}();t.jqxCalendarComponent=i,t.jqxCalendarModule=s,Object.defineProperty(t,"__esModule",{value:!0})});