@nexxtmove/ui 0.1.36 → 0.1.38
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.
package/dist/index.d.ts
CHANGED
|
@@ -393,7 +393,6 @@ declare interface NexxtInputFieldProps {
|
|
|
393
393
|
label?: string;
|
|
394
394
|
error?: boolean;
|
|
395
395
|
errorMessage?: string;
|
|
396
|
-
focused?: boolean;
|
|
397
396
|
leftIcon?: InstanceType<typeof NexxtIcon>['name'];
|
|
398
397
|
rightIcon?: InstanceType<typeof NexxtIcon>['name'];
|
|
399
398
|
}
|
|
@@ -484,34 +483,34 @@ declare interface NexxtStepperHeaderProps {
|
|
|
484
483
|
backButtonAction: InstanceType<typeof NexxtHeader>['backButtonAction'];
|
|
485
484
|
}
|
|
486
485
|
|
|
487
|
-
export declare const NexxtTable: <TKey extends string
|
|
486
|
+
export declare const NexxtTable: <TKey extends string, TRow extends Record<TKey, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
488
487
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
489
|
-
readonly "onUpdate:modelValue"?: ((value:
|
|
488
|
+
readonly "onUpdate:modelValue"?: ((value: TRow[]) => any) | undefined;
|
|
490
489
|
readonly "onUpdate:sortKey"?: ((value: TKey) => any) | undefined;
|
|
491
490
|
readonly "onUpdate:sortDirection"?: ((value: "desc" | "asc") => any) | undefined;
|
|
492
|
-
readonly "onRow-click"?: ((row:
|
|
491
|
+
readonly "onRow-click"?: ((row: TRow) => any) | undefined;
|
|
493
492
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:sortKey" | "onUpdate:sortDirection" | "onRow-click"> & ({
|
|
494
|
-
modelValue?:
|
|
493
|
+
modelValue?: TRow[];
|
|
495
494
|
sortKey?: TKey;
|
|
496
495
|
sortDirection?: "asc" | "desc";
|
|
497
|
-
} & NexxtTableProps<TKey>) & Partial<{}>> & PublicProps;
|
|
496
|
+
} & NexxtTableProps<TKey, TRow>) & Partial<{}>> & PublicProps;
|
|
498
497
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
499
498
|
attrs: any;
|
|
500
499
|
slots: Partial<Record<`cell-${TKey}`, (_: {
|
|
501
|
-
row:
|
|
500
|
+
row: TRow;
|
|
502
501
|
value: Record<TKey, unknown>[TKey];
|
|
503
502
|
}) => any>> & {
|
|
504
503
|
toolbar?(_: {}): any;
|
|
505
504
|
empty?(_: {}): any;
|
|
506
505
|
};
|
|
507
|
-
emit: ((evt: "row-click", row:
|
|
506
|
+
emit: ((evt: "row-click", row: TRow) => void) & (((evt: "update:modelValue", value: TRow[]) => void) & ((evt: "update:sortKey", value: TKey) => void) & ((evt: "update:sortDirection", value: "desc" | "asc") => void));
|
|
508
507
|
}>) => VNode & {
|
|
509
508
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
510
509
|
};
|
|
511
510
|
|
|
512
|
-
declare interface NexxtTableProps<TKey extends string = string> {
|
|
511
|
+
declare interface NexxtTableProps<TKey extends string = string, TRow extends Record<TKey, unknown> = Record<TKey, unknown>> {
|
|
513
512
|
columns: TableColumn<TKey>[];
|
|
514
|
-
rows:
|
|
513
|
+
rows: TRow[];
|
|
515
514
|
selectable?: boolean;
|
|
516
515
|
}
|
|
517
516
|
|