import{registerTemplate as t,freezeTemplate as i,registerDecorators as e,registerComponent as o,KingdeeElement as r}from"@kdcloudjs/kwc";import s from"./button.js";import a from"./datatable.js";import"./icon.js";import"../observable-tloG64m6.js";import"../empty_html-CjXB8rB4.js";import"../i18n-B98kiI7M.js";import"../colorValid-qIPgkqGp.js";import"../kddsCommon-CucK_w70.js";import"../kddsUtilsVisibility-BQdWrRzW.js";import"../kddsUtilsMargin-QLmlO60p.js";import"../kddsUtilsHyphenation-DjH4tlai.js";import"../kddsUtilsGrid-CoXx1Bwj.js";import"../kddsUtilsLineClamp-CHvuz7DS.js";import"../kddsUtilsTruncation-BkfKIyC_.js";import"../input-checkbox.kdds-CT6mcwHs.js";import"./primitiveDatatableIeditPanel.js";import"../kddsUtilsPadding-Dct-C7F7.js";import"./primitiveDatatableIeditTypeFactory.js";import"../ssr-C2pjZzfv.js";import"../utilsPrivate-CI3EeA5x.js";import"../client-Ddi3i8XR.js";import"./iso8601Utils.js";import"./shadowBaseClassPrivate.js";import"./input.js";import"../baseInput-DGC32o4n.js";import"./features.js";import"../normalize-BET3UPLZ.js";import"../index.esm-DycIHCS9.js";import"../utils-CB_20U-G.js";import"./primitiveDatatableIeditInputWrapper.js";import"../label-CY8Q8HAO.js";import"./overlayManager.js";import"../classSet-DY6Qvt6E.js";import"../labelUtils-DAuN2uUV.js";import"./primitiveHeaderFactory.js";import"../primitiveDatatableCell-Dnc4fXBk.js";import"./primitiveHeaderActions.js";import"./menuItem.js";import"./menuDivider.js";import"./buttonMenu.js";import"./positionLibrary.js";import"./tooltipLibrary.js";import"./primitiveBubble.js";import"./ariaObserver.js";import"./primitiveResizeHandler.js";import"./primitiveCellExpand.js";import"./primitiveCellCheckbox.js";import"../input-radio-group.kdds-BVVGUf0e.js";import"./primitiveCustomCell.js";import"./primitiveTreegridCellToggle.js";import"./primitiveCellFactory.js";import"../intlFormat-DNT_1eg4.js";import"./i18nCldrOptions.js";import"./i18nService.js";import"./configProvider.js";import"./primitiveCellActions.js";import"./primitiveCellButton.js";import"./formattedNumber.js";import"../NumberFormat-CVAfQTsE.js";import"./formattedDateTime.js";import"./formattedEmail.js";import"./formattedLocation.js";import"./formattedPhone.js";import"./formattedLookup.js";import"./routingService.js";import"./baseFormattedText.js";import"./formattedUrl.js";import"./primitiveCustomRow.js";import"./primitiveDatatableNoData.js";import"./primitiveDatatableStatusBar.js";import"../kddsUtilsPosition-DDHofMns.js";import"./primitiveDatatableTooltip.js";import"./primitiveDatatableTooltipBubble.js";import"./buttonIcon.js";import"./primitiveDatatableLoadingIndicator.js";import"./spin.js";import"../idGenerator-D2O_IHg9.js";import"./resizeObserver.js";import"../takeUntil-BqTBLaTv.js";const m={props:{label:"按钮"},key:0};function p(t,i,e,o){const{c:r}=t;return[r("kd-button",s,m),r("kd-datatable",a,{props:{keyField:"id",data:i.data,columns:i.columns},key:1})]}var l=t(p);p.stylesheets=[],p.stylesheetToken="kwc-3tnguecehod",p.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\playground-undefined_playground",i(p);const n=(d=12345,function(){let t=d+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296});var d;const j=[{label:"Label",fieldName:"name",editable:!0,hideDefaultActions:!0},{label:"Website",fieldName:"website",type:"url",hideDefaultActions:!0},{label:"Phone",fieldName:"phone",type:"phone",hideDefaultActions:!0},{label:"Balance",fieldName:"amount",type:"currency",hideDefaultActions:!0},{label:"CloseAt",fieldName:"closeAt",type:"date",hideDefaultActions:!0}];class c extends r{constructor(...t){super(...t),this.columns=j,this.data=[]}connectedCallback(){const t=function({amountOfRecords:t}){return[...Array(t)].map((t,i)=>({name:`Name (${i})`,website:"www.kingdee.com",amount:Math.floor(100*n()),phone:`${Math.floor(9e9*n())+1e9}`,closeAt:new Date(Date.now()+864e5*Math.ceil(20*n()))}))}({amountOfRecords:5});this.data=t}}e(c,{fields:["columns","data"]});const u=o(c,{tmpl:l,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\playground-",apiVersion:63});export{u as default};
