{"version":3,"file":"UTable.mjs","names":["makeComponentProps","makeTagProps","genericComponent","propsFactory","makeUTableProps","_objectSpread","UTable","name","props","emits","setup","_ref","emit","slots","_slots$header","_slots$tableHeader","_slots$tableContent","_slots$footer","_createVNode","footer","header","call","tableHeader","tableContent"],"sources":["../../../src/components/UTable/UTable.tsx"],"sourcesContent":["import { makeComponentProps } from '@/composables/component'\nimport { makeTagProps } from '@/composables/tag'\nimport { genericComponent, propsFactory } from '@/utils'\nimport { ExtractPropTypes, onMounted } from 'vue'\n\nimport '@/components/UTable/table.scss'\n\nexport const makeUTableProps = propsFactory(\n  {\n    ...makeComponentProps(),\n    ...makeTagProps(),\n  },\n  'UTable'\n)\n\nexport type UTableProps = ExtractPropTypes<typeof makeUTableProps>\n\nexport type UTableSlots = {\n  header: never\n  tableHeader: never\n  tableContent: never\n  footer: never\n}\n\nexport const UTable = genericComponent<UTableSlots>()({\n  name: 'UTable',\n\n  props: makeUTableProps(),\n\n  emits: {\n    //\n  },\n\n  setup(props, { emit, slots }) {\n    return () => (\n      <div\n        class={[\n          'overflow-hidden border rounded-lg border-gray-300',\n          slots.footer ? '' : 'table-without-footer',\n        ]}\n      >\n        {slots.header?.()}\n        <div class=\"table table-fixed\" style=\"width: 100%\">\n          <div class=\"table-header-group\">{slots.tableHeader?.()}</div>\n          <div class=\"table-row-group\">{slots.tableContent?.()}</div>\n        </div>\n        {slots.footer?.()}\n      </div>\n    )\n  },\n})\n\nexport type UTable = InstanceType<typeof UTable>\n"],"mappings":";;;;;;;SAASA,kBAAkB;AAAA,SAClBC,YAAY;AAAA,SACZC,gBAAgB,EAAEC,YAAY;AAAA;AAKvC,OAAO,IAAMC,eAAe,GAAGD,YAAY,CAAAE,aAAA,CAAAA,aAAA,KAEpCL,kBAAkB,CAAC,CAAC,GACpBC,YAAY,CAAC,CAAC,GAEnB,QACF,CAAC;AAWD,OAAO,IAAMK,MAAM,GAAGJ,gBAAgB,CAAc,CAAC,CAAC;EACpDK,IAAI,EAAE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