"use strict";var e=require("@kdcloudjs/kwc"),r=require("./button.js"),i=require("./datatable.js");require("./icon.js"),require("../observable-BXDJFaLN.js"),require("../empty_html-hFq4zm9t.js"),require("../i18n-CP31jeWH.js"),require("../colorValid-BBnkvgd_.js"),require("../kddsCommon-CICoPypw.js"),require("../kddsUtilsVisibility-udynsnvN.js"),require("../kddsUtilsMargin-Dx8EVq7G.js"),require("../kddsUtilsHyphenation-dfwOmIHd.js"),require("../kddsUtilsGrid-Di6bwMd2.js"),require("../kddsUtilsLineClamp-aHZjbaci.js"),require("../kddsUtilsTruncation-BZ8KpmAj.js"),require("../input-checkbox.kdds-CD4aNarZ.js"),require("./primitiveDatatableIeditPanel.js"),require("../kddsUtilsPadding-CDPIu4gA.js"),require("./primitiveDatatableIeditTypeFactory.js"),require("../ssr-RXknEJpO.js"),require("./utilsPrivate.js"),require("../client-Co_j5m_k.js"),require("../normalize-DKPi18vK.js"),require("./iso8601Utils.js"),require("./shadowBaseClassPrivate.js"),require("./input.js"),require("../baseInput-BMsvcc48.js"),require("./features.js"),require("../normalize-knoDHLvk.js"),require("../index.esm-skOXaaoq.js"),require("../utils-HAAanx64.js"),require("./primitiveDatatableIeditInputWrapper.js"),require("../label-DdXuOVTE.js"),require("./overlayManager.js"),require("../classSet-B5xuJbNb.js"),require("../labelUtils-C2UzbgdZ.js"),require("./primitiveHeaderFactory.js"),require("../primitiveDatatableCell-BSmedNYm.js"),require("./primitiveHeaderActions.js"),require("./menuItem.js"),require("./menuDivider.js"),require("./buttonMenu.js"),require("./positionLibrary.js"),require("./tooltipLibrary.js"),require("./primitiveBubble.js"),require("./ariaObserver.js"),require("./primitiveResizeHandler.js"),require("./primitiveCellExpand.js"),require("./primitiveCellCheckbox.js"),require("../input-radio-group.kdds-CMXswYN0.js"),require("./primitiveCustomCell.js"),require("./primitiveTreegridCellToggle.js"),require("./primitiveCellFactory.js"),require("../intlFormat-Bs-dlvDH.js"),require("./i18nCldrOptions.js"),require("./i18nService.js"),require("./configProvider.js"),require("./primitiveCellActions.js"),require("./primitiveCellButton.js"),require("./formattedNumber.js"),require("../NumberFormat-BOQwROTf.js"),require("./formattedDateTime.js"),require("./formattedEmail.js"),require("./formattedLocation.js"),require("./formattedPhone.js"),require("./formattedLookup.js"),require("./routingService.js"),require("./baseFormattedText.js"),require("./formattedUrl.js"),require("./primitiveCustomRow.js"),require("./primitiveDatatableNoData.js"),require("./primitiveDatatableStatusBar.js"),require("../kddsUtilsPosition-BI0KMR6S.js"),require("./primitiveDatatableTooltip.js"),require("./primitiveDatatableTooltipBubble.js"),require("./buttonIcon.js"),require("./primitiveDatatableLoadingIndicator.js"),require("./spin.js"),require("../idGenerator-DjOtNo-h.js"),require("./resizeObserver.js"),require("../takeUntil-H3M4Zr2X.js");const t={props:{label:"按钮"},key:0};function s(e,s,a,u){const{c:o}=e;return[o("kd-button",r,t),o("kd-datatable",i,{props:{keyField:"id",data:s.data,columns:s.columns},key:1})]}var a=e.registerTemplate(s);s.stylesheets=[],s.stylesheetToken="kwc-3tnguecehod",s.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\playground-undefined_playground",e.freezeTemplate(s);const u=(o=12345,function(){let e=o+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var o;const l=[{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 n extends e.KingdeeElement{constructor(...e){super(...e),this.columns=l,this.data=[]}connectedCallback(){const e=function({amountOfRecords:e}){return[...Array(e)].map((e,r)=>({name:`Name (${r})`,website:"www.kingdee.com",amount:Math.floor(100*u()),phone:`${Math.floor(9e9*u())+1e9}`,closeAt:new Date(Date.now()+864e5*Math.ceil(20*u()))}))}({amountOfRecords:5});this.data=e}}e.registerDecorators(n,{fields:["columns","data"]});const d=e.registerComponent(n,{tmpl:a,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\playground-",apiVersion:63});module.exports=d;
