{"version":3,"sources":["kendo.form.js"],"names":["f","define","$","undefined","kendo","window","ui","NS","Widget","extend","proxy","VALIDATE","VALIDATEFIELD","VALIDATEINPUT","CHANGE","CLICK","SUBMIT","CLEAR","MAX_WIDTH","SET","EQUAL_SET","GROUP","ARIA_DESCRIBEDBY","DATA_STOP","DATA_ROLE","EDITABLE","FORM","DOT","formStyles","form","horizontal","vertical","field","fieldsContainer","fieldWrap","fieldError","fieldHint","fieldset","layout","legend","label","optional","buttonsContainer","buttonsEnd","submit","clear","invalid","hidden","formOrientation","Form","init","element","options","that","this","fn","call","_wrapper","_setFields","_setModel","_renderContainers","_renderButtons","_editable","_renderFieldsHints","_setEvents","events","name","orientation","validatable","validateOnBlur","validationSummary","errorTemplate","buttonsTemplate","messages","grid","formData","items","formatLabel","focusFirst","_fieldTemplate","_groupTemplate","_buttonsTemplate","_errorTemplate","_hintTemplate","styles","width","height","wrapper","addClass","css","layoutWrapper","_setupLayoutContainer","_flattenFields","fields","concat","item","shift","result","push","apply","_defaultLabel","fieldName","customFormat","length","isFunction","split","join","trim","_formatLabel","text","isPlainObject","_defaultFields","i","formDataFields","Object","keys","itemFields","defaultFormDataFields","id","fieldInfo","fieldValue","type","editor","attributes","defaultFields","_fields","parseDate","Editable","editors","aria-labelledby","MyModel","data","Model","_model","validatorOptions","_addEditableMvvmAttributes","editable","kendoEditable","model","clearContainer","skipFocus","target","getKendoEditable","validator","_removeEditableMvvmAttributes","attr","_getItemTemplate","template","_renderField","renderedField","colSpan","_toggleFieldErrorState","state","closest","toggleClass","fieldWidgetInstance","fieldElement","hint","find","message","_associateHintContainer","widgetInstance","_errorsByName","removeAttribute","insertAfter","input","hintId","nextFocusable","getWidgetFocusableElement","toggleAttribute","_toggleHint","_renderGroup","child","renderedGroup","append","container","columnsLayout","targetContainer","isHorizontal","appendTarget","layoutContainer","layoutClassNames","appendTo","cols","gutter","bind","_validateField","_validate","on","_submit","_clear","_change","ev","toJSON","valid","error","trigger","preventDefault","errors","value","jsonModel","validate","reset","unbind","val","set","removeClass","_validateProxy","setOptions","newOptions","destroy","removeAttr","empty","off","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,cAAe,kBAAmBD,IAC3C,WA6cE,MAzZC,UAAUE,EAAGC,GAAb,GACOC,GAAQC,OAAOD,MAAOE,EAAKF,EAAME,GAAIC,EAAK,aAAcC,EAASF,EAAGE,OAAQC,EAASP,EAAEO,OAAQC,EAAQR,EAAEQ,MAAOC,EAAW,WAAYC,EAAgB,gBAAiBC,EAAgB,gBAAiBC,EAAS,SAAUC,EAAQ,QAAUR,EAAIS,EAAS,SAAUC,EAAQ,QAASC,EAAY,YAAaC,EAAM,MAAOC,EAAY,WAAYC,EAAQ,QAASC,EAAmB,mBAAoBC,EAAY,YAAaC,EAAY,YAAaC,EAAW,WAAYC,EAAO,OAAQC,EAAM,IAC1eC,GACAC,KAAM,kBACNC,WAAY,oBACZC,SAAU,GACVC,MAAO,eACPC,gBAAiB,0BACjBC,UAAW,oBACXC,WAAY,qBACZC,UAAW,cACXC,SAAU,kBACVC,OAAQ,gBACRC,OAAQ,gBACRC,MAAO,uBACPC,SAAU,mBACVC,iBAAkB,iBAClBC,WAAY,gBACZC,OAAQ,gBACRC,MAAO,eACPC,QAAS,YACTC,OAAQ,YAERC,GACAlB,WAAY,aACZC,SAAU,YAEVkB,EAAOzC,EAAOC,QACdyC,KAAM,SAAUC,EAASC,GACrB,GAAIC,GAAOC,IACX9C,GAAO+C,GAAGL,KAAKM,KAAKH,EAAMF,EAASC,GACnCC,EAAKD,QAAU3C,KAAW4C,EAAKD,QAASA,GACxCC,EAAKI,WACLJ,EAAKK,aACLL,EAAKM,YACLN,EAAKO,oBACLP,EAAKQ,iBACLR,EAAKS,YACLT,EAAKU,qBACLV,EAAKW,cAETC,QACIrD,EACAD,EACAG,EACAE,EACAC,GAEJmC,SACIc,KAAM,OACNC,YAAanB,EAAgB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AEzBlJ,EAAKqH,YAAYvH,GAAS,GACE,iBAAjBuF,GAAM1G,IACbmB,EAAQyJ,IAAI,SACZlE,EAAMmE,IAAI7K,GAAO,IAEjB0G,EAAMmE,IAAI7K,EAAO,KAGzBqB,GAAKkC,QAAQuE,KAAKnI,EAAMC,EAAWO,YAAY2K,YAAYlL,EAAWO,YAClEkC,GACAqE,EAAM+C,KAAKtK,EAAKqH,EAASuE,gBAAgBtB,KAAKrK,EAAWoH,EAASuE,iBAG1EC,WAAY,SAAUC,GAClB,GAAI5J,GAAOC,IACXD,GAAK6J,UACL7J,EAAKkC,QAAQuH,YAAYlL,EAAWE,YAAYqL,WAAW5L,GAAW6L,QACtE/J,EAAKH,KAAKG,EAAKF,QAAS8J,IAE5BC,QAAS,WACL,GAAI7J,GAAOC,IACXD,GAAKkC,QAAQ8H,IAAI9M,GACjBC,EAAO+C,GAAG2J,QAAQ1J,KAAKH,EAAKmF,UAC5BhI,EAAO+C,GAAG2J,QAAQ1J,KAAKH,GACnBA,EAAKmF,WACLnF,EAAKmF,SAAS0E,UACd7J,EAAKmF,SAAW,QAI5BlI,GAAGgN,OAAOrK,GACVxC,GAAO,EAAMwC,GAAQmC,OAAQxD,KAC/BvB,OAAOD,MAAMmN,QACRlN,OAAOD,OACE,kBAAVH,SAAwBA,OAAOuN,IAAMvN,OAAS,SAAUwN,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.form.min.js","sourcesContent":["/*!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('kendo.form', ['kendo.editable'], f);\n}(function () {\n var __meta__ = {\n id: 'form',\n name: 'Form',\n category: 'web',\n description: 'The Form widget.',\n depends: ['editable'],\n features: [\n {\n id: 'form-dropdowns',\n name: 'DropDowns',\n description: 'Support for DropDown editors',\n depends: [\n 'autocomplete',\n 'combobox',\n 'multiselect',\n 'dropdowntree',\n 'multicolumncombobox'\n ]\n },\n {\n id: 'form-datepickers',\n name: 'DatePickers',\n description: 'Support for DatePicker editors',\n depends: [\n 'dateinput',\n 'datepicker',\n 'datetimepicker',\n 'timepicker'\n ]\n },\n {\n id: 'form-inputs',\n name: 'Inputs',\n description: 'Support for Input editors',\n depends: [\n 'numerictextbox',\n 'maskedtextbox',\n 'switch',\n 'rating',\n 'slider',\n 'colorpicker'\n ]\n },\n {\n id: 'form-editor',\n name: 'Editor',\n description: 'Support for Editor editor',\n depends: ['editor']\n }\n ]\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, NS = '.kendoForm', Widget = ui.Widget, extend = $.extend, proxy = $.proxy, VALIDATE = 'validate', VALIDATEFIELD = 'validateField', VALIDATEINPUT = 'validateInput', CHANGE = 'change', CLICK = 'click' + NS, SUBMIT = 'submit', CLEAR = 'clear', MAX_WIDTH = 'max-width', SET = 'set', EQUAL_SET = 'equalSet', GROUP = 'group', ARIA_DESCRIBEDBY = 'aria-describedby', DATA_STOP = 'data-stop', DATA_ROLE = 'data-role', EDITABLE = 'editable', FORM = 'form', DOT = '.';\n var formStyles = {\n form: 'k-widget k-form',\n horizontal: 'k-form-horizontal',\n vertical: '',\n field: 'k-form-field',\n fieldsContainer: 'k-form-fields-container',\n fieldWrap: 'k-form-field-wrap',\n fieldError: 'k-form-field-error',\n fieldHint: 'k-form-hint',\n fieldset: 'k-form-fieldset',\n layout: 'k-form-layout',\n legend: 'k-form-legend',\n label: 'k-label k-form-label',\n optional: 'k-label-optional',\n buttonsContainer: 'k-form-buttons',\n buttonsEnd: 'k-buttons-end',\n submit: 'k-form-submit',\n clear: 'k-form-clear',\n invalid: 'k-invalid',\n hidden: 'k-hidden'\n };\n var formOrientation = {\n horizontal: 'horizontal',\n vertical: 'vertical'\n };\n var Form = Widget.extend({\n init: function (element, options) {\n var that = this;\n Widget.fn.init.call(that, element, options);\n that.options = extend({}, that.options, options);\n that._wrapper();\n that._setFields();\n that._setModel();\n that._renderContainers();\n that._renderButtons();\n that._editable();\n that._renderFieldsHints();\n that._setEvents();\n },\n events: [\n VALIDATEFIELD,\n VALIDATE,\n CHANGE,\n SUBMIT,\n CLEAR\n ],\n options: {\n name: 'Form',\n orientation: formOrientation.vertical,\n validatable: {\n validateOnBlur: true,\n validationSummary: false,\n errorTemplate: null\n },\n buttonsTemplate: null,\n messages: {\n submit: 'Submit',\n clear: 'Clear',\n optional: '(Optional)'\n },\n layout: '',\n grid: {},\n formData: {},\n items: [],\n formatLabel: null,\n focusFirst: false\n },\n _fieldTemplate: '