@shwfed/nuxt 0.11.50 → 0.11.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -590,6 +590,27 @@ defineTableRenderer(
590
590
  }
591
591
  }
592
592
  );
593
+ defineTableRenderer(
594
+ "table.renderer.radio",
595
+ {},
596
+ {
597
+ cell: ({ ctx }) => /* @__PURE__ */ jsx("div", { class: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ jsx(
598
+ "input",
599
+ {
600
+ type: "radio",
601
+ disabled: !ctx.row.getCanSelect(),
602
+ checked: ctx.row.getIsSelected(),
603
+ onChange: () => ctx.table.setRowSelection({ [ctx.row.id]: true }),
604
+ class: "w-4 h-4 cursor-pointer"
605
+ }
606
+ ) }),
607
+ header: () => null,
608
+ config: NoOptionsConfig,
609
+ columnDefOverrides: {
610
+ enableResizing: false
611
+ }
612
+ }
613
+ );
593
614
  defineTableRenderer(
594
615
  "table.renderer.expand",
595
616
  {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/nuxt",
3
- "version": "0.11.50",
3
+ "version": "0.11.52",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,17 +0,0 @@
1
- import type { FieldsRenderContext, FieldsRenderableBody } from './render-context.js';
2
- import type { FieldsSlotProps } from './slot-props.js';
3
- type __VLS_Props = {
4
- body: FieldsRenderableBody;
5
- renderer: FieldsRenderContext;
6
- applyStyle?: boolean;
7
- };
8
- type __VLS_Slots = Record<string, (_props?: FieldsSlotProps) => unknown>;
9
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };