kendo-ui-core
Version:
Kendo UI is everything you need to build sites and apps with HTML5 & JavaScript. Kendo UI Core is the free and open-source version of Kendo UI that provides access to the web's best UI widgets and key framework features, essential for developing great exp
17 lines • 2.97 kB
JavaScript
/*!
* Copyright 2026 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import"./core-COCvCZRc.js";import"./kendo.html.base.js";const e={id:`html.input`,name:`Html.Input`,category:`web`,description:`HTML rendering utility for Kendo UI for jQuery.`,depends:[`html.base`],features:[]};(function(e,t){var n=window.kendo,r=n.html.HTMLBase,i=function(n,r){return(arguments[0]===t||e.isPlainObject(arguments[0]))&&(r=n,n=e(`<input />`)),new s(n,r).html()},a=function(n,r){return(arguments[0]===t||e.isPlainObject(arguments[0]))&&(r=n,n=e(`<input />`)),new c(n,r).html()},o=r.extend({init:function(e,t){var n=this;r.fn.init.call(n,e,t),n._wrapper(),n._addClasses()},options:{label:null,labelPosition:`after`,labelId:null,encoded:!0},_wrapper:function(){var t=this,r=t.element[0],i=t.options,a=r.id;t.wrapper=t.element.addClass(i.inputClass).prop(`type`,i.type),!a&&i.label&&(r.id=a=n.guid()),i.label&&(t.labelEl=e(`<label for='`+a+`' class='`+i.labelClass+`'>`),i.encoded?t.labelEl.text(i.label):t.labelEl.html(i.label),i.labelId&&t.labelEl.attr(`id`,i.labelId),i.optional&&t.labelEl.append(`<span class='`+i.optionalClass+`'>`+i.optionalText+`</span>`),t.element[i.labelPosition](t.labelEl))},html:function(){var e=this,t=e.options.labelPosition===`after`,n=r.fn.html.call(e);return e.labelEl?t?n+e.labelEl[0].outerHTML:e.labelEl[0].outerHTML+n:n}}),s=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e,t),n._addClasses()},options:{name:`HTMLCheckBox`,inputClass:`k-checkbox`,labelClass:`k-checkbox-label`,optionalClass:`k-label-optional`,optionalText:`(Optional)`,type:`checkbox`,rounded:t,size:t,stylingOptions:[`size`,`rounded`]}}),c=o.extend({init:function(e,t){var n=this;o.fn.init.call(n,e,t),n._addClasses()},options:{name:`HTMLRadioButton`,inputClass:`k-radio`,labelClass:`k-radio-label`,optionalClass:`k-label-optional`,optionalText:`(Optional)`,type:`radio`,size:t,stylingOptions:[`size`]}});e.extend(n.html,{renderCheckBox:i,renderRadioButton:a,HTMLInput:o,HTMLCheckBox:s,HTMLRadioButton:c}),n.cssProperties.registerPrefix(`HTMLCheckBox`,`k-checkbox-`),n.cssProperties.registerValues(`HTMLCheckBox`,[{prop:`rounded`,values:n.cssProperties.roundedValues.concat([[`full`,`full`]])}]),n.cssProperties.registerPrefix(`HTMLRadioButton`,`k-radio-`)})(window.kendo.jQuery);var t=kendo;export{e as __meta__,t as default};
//# sourceMappingURL=kendo.html.input.js.map