prlg-ui 1.8.182 → 1.8.183

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
@@ -1,5 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
+ import { ColumnDef } from '@tanstack/vue-table';
3
4
  import { Component } from 'vue';
4
5
  import { ComponentCustomProperties } from 'vue';
5
6
  import { ComponentCustomProps } from 'vue';
@@ -8,6 +9,7 @@ import { ComponentOptionsBase } from 'vue';
8
9
  import { ComponentOptionsMixin } from 'vue';
9
10
  import { ComponentProvideOptions } from 'vue';
10
11
  import { ComponentPublicInstance } from 'vue';
12
+ import { createColumnHelper } from '@tanstack/vue-table';
11
13
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
12
14
  import { CSSProperties } from 'vue';
13
15
  import { DebuggerEvent } from 'vue';
@@ -25,8 +27,10 @@ import { PropType } from 'vue';
25
27
  import { PublicProps } from 'vue';
26
28
  import { Ref } from 'vue';
27
29
  import { RouteLocationRaw } from 'vue-router';
30
+ import { RowSelectionState } from '@tanstack/vue-table';
28
31
  import { ShallowUnwrapRef } from 'vue';
29
32
  import { Slot } from 'vue';
33
+ import { SortingState } from '@tanstack/vue-table';
30
34
  import { VNode } from 'vue';
31
35
  import { VNodeProps } from 'vue';
32
36
  import { WatchOptions } from 'vue';
@@ -255,12 +259,12 @@ visible: boolean;
255
259
  declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
256
260
  "update:modelValue": (value: any) => any;
257
261
  } & {
258
- change: (value: string | number | boolean | any[] | null) => any;
262
+ change: (value: string | number | boolean | any[] | null, event: Event) => any;
259
263
  "update:modelValue": (value: string | number | boolean | any[] | null) => any;
260
264
  "update:checked": (value: boolean) => any;
261
265
  "update:indeterminate": (value: boolean) => any;
262
266
  }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
263
- onChange?: ((value: string | number | boolean | any[] | null) => any) | undefined;
267
+ onChange?: ((value: string | number | boolean | any[] | null, event: Event) => any) | undefined;
264
268
  "onUpdate:modelValue"?: ((value: string | number | boolean | any[] | null) => any) | undefined;
265
269
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
266
270
  "onUpdate:indeterminate"?: ((value: boolean) => any) | undefined;
@@ -1350,6 +1354,8 @@ export declare const ConfirmService: {
1350
1354
  install(app: App): void;
1351
1355
  };
1352
1356
 
1357
+ export { createColumnHelper }
1358
+
1353
1359
  declare type DataItem = Record<string, any>;
1354
1360
 
1355
1361
  export declare const DataTable: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
@@ -1503,6 +1509,12 @@ declare type ICalendarType = 'month' | 'year' | 'day' | 'date' | 'datetime' | 't
1503
1509
 
1504
1510
  export declare const IconField: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1505
1511
 
1512
+ export declare interface IData<T> {
1513
+ isLoading?: boolean;
1514
+ isViewCheckbox?: boolean;
1515
+ data: T;
1516
+ }
1517
+
1506
1518
  declare interface IDatePickerProps extends ICalendarProps {
1507
1519
  /**
1508
1520
  * Текст для незаполненного input
@@ -1644,6 +1656,29 @@ declare type InputTextProps = {
1644
1656
  showMaxLength?: boolean;
1645
1657
  };
1646
1658
 
1659
+ declare interface ITableEmits {
1660
+ (e: "update:sort", value: SortingState): void;
1661
+ (e: "update:selected", value: RowSelectionState): void;
1662
+ }
1663
+
1664
+ declare interface ITablePaginator {
1665
+ enabled: boolean;
1666
+ perPageOptions?: number[];
1667
+ totals?: number;
1668
+ viewPerPage?: boolean;
1669
+ }
1670
+
1671
+ declare interface ITableProps {
1672
+ data: Array<any>;
1673
+ columns: ColumnDef<IData<Array<any>>, any>[];
1674
+ size?: "small" | "medium" | "large";
1675
+ paginator?: ITablePaginator;
1676
+ loading?: boolean;
1677
+ enableSorting?: boolean;
1678
+ enableRowSelection?: boolean;
1679
+ rowId?: string;
1680
+ }
1681
+
1647
1682
  declare type MenuItem = {
1648
1683
  icon?: Component;
1649
1684
  label: string;
@@ -1895,6 +1930,8 @@ onChange?: (() => any) | undefined;
1895
1930
 
1896
1931
  export declare const Tab: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1897
1932
 
1933
+ export declare const Table: DefineComponent<ITableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ITableEmits>;
1934
+
1898
1935
  declare interface TableBodyProps {
1899
1936
  columns: Column_2[];
1900
1937
  data: DataItem[];