@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
66 lines (65 loc) • 2.42 kB
TypeScript
import { default as Repository } from '@shopware-ag/meteor-admin-sdk/es/data/repository';
import { ColumnChanges, ColumnDefinition } from '../../table-and-list/mt-data-table/mt-data-table';
import { MtPopoverItemType } from '../../overlay/mt-popover-item/mt-popover-item';
import { AvailableFilter } from './mt-entity-data-table.interfaces';
type __VLS_Props = {
entity: keyof EntitySchema.Entities;
repository?: typeof Repository;
forceRealModal?: boolean;
columns: ColumnDefinition[];
columnChanges?: Record<string, ColumnChanges>;
title?: string;
subtitle?: string;
layout?: "default" | "full";
allowBulkDelete?: boolean;
allowBulkEdit?: boolean;
allowRowSelection?: boolean;
bulkEditMoreActions?: {
id: string;
label: string;
onClick: () => void;
icon?: "default" | "critical" | "active" | string;
type?: MtPopoverItemType;
metaCopy?: string;
contextualDetail?: string;
}[];
disableDelete?: boolean;
disableEdit?: boolean;
disableSearch?: boolean;
disableSettingsTable?: boolean;
additionalContextButtons?: {
type?: "default" | "active" | "critical";
label: string;
key: string;
}[];
caption?: string;
paginationOptions?: number[];
availableFilters?: AvailableFilter[];
};
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: any;
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"open-details": (row: {
id: string;
}) => any;
"bulk-edit": (rowIds: string[]) => any;
"bulk-delete": (rowIds: string[]) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
"onOpen-details"?: ((row: {
id: string;
}) => any) | undefined;
"onBulk-edit"?: ((rowIds: string[]) => any) | undefined;
"onBulk-delete"?: ((rowIds: string[]) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};