"use strict";var t=require("@kdcloudjs/kwc"),e=require("./icon.js"),s=require("../label-DdXuOVTE.js");const n=t.parseFragment`<span class="kdds-assistive-text${0}"${2}>${"t1"}</span>`,i={"kdds-button":!0,"kdds-button_icon":!0,"kdds-cell-edit__button":!0,"kdds-m-left_x-small":!0},o={classMap:{"kdds-button__icon":!0,"kdds-button__icon_hint":!0,"kdds-button__icon_lock":!0,"kdds-button__icon_small":!0,"kdds-button__icon_edit":!0},props:{iconName:"kdfont-bianji",size:"xx-small"},key:1};function l(t,s,l,r){const{ti:d,c:a,d:c,sp:u,st:h,h:b}=t;return[b("button",{classMap:i,attrs:{tabindex:d(s.tabIndex)},ref:"button",key:0},[a("kd-icon",e,o),h(n,3,[u(1,null,c(s.assistiveText))])])]}var r=t.registerTemplate(l);l.hasRefs=!0,l.stylesheets=[],l.stylesheetToken="kwc-cr2fbr9dqd",l.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\primitiveCellEditableButton-undefined_primitiveCellEditableButton",t.freezeTemplate(l);const d=s.KingdeeDatatable.edit,a=s.KingdeeDatatable.editHasError;class c extends t.KingdeeElement{constructor(...t){super(...t),this.columnLabel=void 0,this.hasError=void 0,this._htmlButton=null}focus(){this.htmlButton&&this.htmlButton.focus()}click(){this.htmlButton&&this.htmlButton.click()}get tabIndex(){return this.getAttribute("tabindex")}set tabIndex(t){this.setAttribute("tabindex",t)}get htmlButton(){return this._htmlButton||(this._htmlButton=this.refs.button),this._htmlButton}disconnectedCallback(){this._htmlButton=null}get assistiveText(){const t=this.hasError?` ${a}`:"";return`${d} ${this.columnLabel}${t}`}}t.registerDecorators(c,{publicProps:{columnLabel:{config:0},hasError:{config:0},tabIndex:{config:3}},publicMethods:["focus","click"],fields:["_htmlButton"]});const u=t.registerComponent(c,{tmpl:r,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\primitiveCellEditableButton-",apiVersion:63});module.exports=u;
