//-Created by lihui12 on 16/6/22.
block ui-widget-input
    -if(!document||(document&&!(document.querySelector("style[UID='ui-widget-input']"))))
    style(UID='ui-widget-input').
        .ui-widget-input {
            display: inline-block;
            padding: 0px 5px;
            text-align: left;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }



    - var classHashId='';
    mixin genearalType(custom,placeHolder,value,width,height,groupID,borderColor,focusColor,errorColor)
        - var _classHashId_=(groupID&&classHashId==groupID)?'.'+groupID:'.'+classHashId;
        if(!document||(document&&!(document.querySelector("style[UID='ui-widget-input-inner-"+classHashId+"']"))))
            style(UID='ui-widget-input-inner-'+classHashId).
                .ui-widget-input#{_classHashId_} {
                   /*width:#{width};*/
                   /*height:#{height};*/
                   border:1px solid #{borderColor};
                   background-color: #f5f5f5;
                }
                .ui-widget-input#{_classHashId_}:focus {
                   border:1px solid #{focusColor};
                }
                .ui-widget-input#{_classHashId_}.error {
                    border:1px solid #{errorColor};
                }
        input.ui-widget-input(custom=custom class="#{classHashId}" type="input" name="#{groupID}" value="#{value}" placeholder="#{placeHolder}"
        style=style="width:" + width + ";height:"+ height +";line-height:" + height)

    //-通用按钮元素,默认类型,以组的方式存在,组内样式通用
    //-示例:ui-widget-button-default()(placeholder='文本内容',value='input的value值',width='宽px',height='高px',out='鼠标移开文字颜色',hover='鼠标触发文字颜色',outBg='鼠标移开背景颜色',hoverBg='鼠标触发背景颜色',active='激活颜色,8位颜色值',groupID='分组id')
    mixin ui-widget-input-default(custom)
        - var placeHolder = attributes.placeHolder||'',
        - value = attributes.value||'',
        - width = attributes.width||'100px',
        - height = attributes.height||'50px',
        - name = attributes.groupId||'',
        - borderColor = attributes.borderColor||'#c3c3c3',
        - focusColor = attributes.focusColor||'#ff6600',
        - errorColor = attributes.errorColor||'red',
        - groupID = attributes.groupID || 'default';
        - classHashId = __classHashId__;
        +genearalType(custom,placeHolder,value,width,height,groupID,borderColor,focusColor,errorColor)



    //-特殊按钮元素,以单个样式存在,通过hash值不同,命名不同
    //-示例:ui-widget-button-single()(content='文本内容',value='input的value值',width='宽px',height='高px',out='鼠标移开文字颜色',hover='鼠标触发文字颜色',outBg='鼠标移开背景颜色',hoverBg='鼠标触发背景颜色',active='激活颜色,8位颜色值',groupID='分组id')
    mixin ui-widget-input-single(custom)
        - var placeHolder = attributes.placeHolder||'',
        - value = attributes.value||'',
        - width = attributes.width||'100px',
        - height = attributes.height||'50px',
        - name = attributes.groupId||'',
        - borderColor = attributes.borderColor||'#c3c3c3',
        - focusColor = attributes.focusColor||'#ff6600',
        - errorColor = attributes.errorColor||'red',
        - groupID = attributes.groupID || 'default';

        +createHashId()
        - classHashId=__classHashId__;

        +genearalType(placeHolder,value,width,height,groupID,borderColor,focusColor,errorColor,custom)
