"use strict";var e=require("@kdcloudjs/kwc"),s=require("./icon.js");require("../observable-BXDJFaLN.js"),require("../i18n-CP31jeWH.js");var l=require("../utilsPrivate-DL4VBetH.js"),t=require("../primitiveDatatableCell-phgzbp5l.js");require("../empty_html-hFq4zm9t.js"),require("../client-Co_j5m_k.js"),require("../ssr-RXknEJpO.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 a={"kdds-table-cell-row-expand-icon":!0};function r(e,l,t,o){const{ncls:r,b:n,c:d,h:i}=e,{_m0:c}=o;return[i("div",{className:r(l.computedCellClass),key:0},[d("kd-icon",s,{classMap:a,props:{iconName:l.iconName},key:1,on:c||(o._m0={click:n(l.handleIconClick)})})])]}var n=e.registerTemplate(r);r.stylesheets=[],r.stylesheetToken="kwc-38j9l76cp2g",r.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\primitiveCellExpand-undefined_primitiveCellExpand",o&&r.stylesheets.push.apply(r.stylesheets,o),e.freezeTemplate(r);class d 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(d,{publicProps:{rowExpanded:{config:0},rowKeyValue:{config:0},colKeyValue:{config:0}}});const i=e.registerComponent(d,{tmpl:n,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\primitiveCellExpand-",apiVersion:63});module.exports=i;
