"use strict";var e=require("@kdcloudjs/kwc"),s=require("./icon.js");require("../observable-BXDJFaLN.js"),require("../i18n-CP31jeWH.js");var l=require("./utilsPrivate.js"),t=require("../primitiveDatatableCell-BSmedNYm.js");require("../empty_html-hFq4zm9t.js"),require("../client-Co_j5m_k.js"),require("../ssr-RXknEJpO.js"),require("../normalize-DKPi18vK.js"),require("./iso8601Utils.js"),require("../colorValid-BBnkvgd_.js"),require("./shadowBaseClassPrivate.js");var o=[function(e,s,l){var t=e?"["+e+"]":"",o=e?"["+e+"-host]":"";return(s?":host .kdds-table-cell-expand":o+" .kdds-table-cell-expand")+t+" {display: flex;align-items: center;justify-content: center;}"+(s?":host .kdds-table-cell-expand":o+" .kdds-table-cell-expand")+t+" .kdds-table-cell-row-expand-icon"+t+" {cursor: pointer;display: flex;color: var(--kdds-c-datatable-icon-color-default);}"+(s?":host .kdds-table-cell-expand":o+" .kdds-table-cell-expand")+t+" .kdds-table-cell-row-expand-icon:hover"+t+" {color: var(--kdds-c-datatable-icon-color-hover);transition: color 0.1s linear;}"}];const r={"kdds-table-cell-row-expand-icon":!0};function a(e,l,t,o){const{ncls:a,b:n,c:i,h:d}=e,{_m0:c}=o;return[d("div",{className:a(l.computedCellClass),key:0},[i("kd-icon",s,{classMap:r,props:{iconName:l.iconName},key:1,on:c||(o._m0={click:n(l.handleIconClick)})})])]}var n=e.registerTemplate(a);a.stylesheets=[],a.stylesheetToken="kwc-38j9l76cp2g",a.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\primitiveCellExpand-undefined_primitiveCellExpand",o&&a.stylesheets.push.apply(a.stylesheets,o),e.freezeTemplate(a);class i extends t.__kwc_component_class_internal{constructor(...e){super(...e),this.rowExpanded=void 0,this.rowKeyValue=void 0,this.colKeyValue=void 0}get computedCellClass(){return l.classSetToString({"kdds-table-cell-expand":!0,"kdds-table-cell-expand-expanded":this.rowExpanded})}get iconName(){return this.rowExpanded?"kdfont-shouqi":"kdfont-unfolded-s"}handleIconClick(){const e=new CustomEvent("privaterowexpand",{bubbles:!0,composed:!0,cancelable:!0,detail:{rowKeyValue:this.rowKeyValue,colKeyValue:this.colKeyValue,nextState:!this.rowExpanded}});this.dispatchEvent(e)}}e.registerDecorators(i,{publicProps:{rowExpanded:{config:0},rowKeyValue:{config:0},colKeyValue:{config:0}}});const d=e.registerComponent(i,{tmpl:n,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\primitiveCellExpand-",apiVersion:63});module.exports=d;
