prlg-ui 1.8.115 → 1.8.116

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
@@ -157,7 +157,7 @@ declare const __VLS_component_19: DefineComponent<__VLS_Props_30, {}, {}, {}, {}
157
157
  declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
158
158
  "update:currentPage": (value: number) => any;
159
159
  "update:perPage": (value: number) => any;
160
- "update:selectedRows": (value: DataItem | DataItem[]) => any;
160
+ "update:selectedRows": (value: DataItem | DataItem[] | null) => any;
161
161
  } & {
162
162
  rowClickHandler: (value: {
163
163
  data: any;
@@ -170,7 +170,7 @@ index: number;
170
170
  }) => any) | undefined;
171
171
  "onUpdate:currentPage"?: ((value: number) => any) | undefined;
172
172
  "onUpdate:perPage"?: ((value: number) => any) | undefined;
173
- "onUpdate:selectedRows"?: ((value: DataItem | DataItem[]) => any) | undefined;
173
+ "onUpdate:selectedRows"?: ((value: DataItem | DataItem[] | null) => any) | undefined;
174
174
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
175
175
  tableRef: HTMLTableElement;
176
176
  tableBodyRef: CreateComponentPublicInstanceWithMixins<Readonly<TableBodyProps> & Readonly<{
@@ -247,10 +247,15 @@ visible: boolean;
247
247
  declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
248
248
  "update:modelValue": (value: any) => any;
249
249
  } & {
250
- change: (value?: string | number | object | undefined) => any;
250
+ change: (value: string | number | boolean | any[] | null) => any;
251
+ "update:modelValue": (value: string | number | boolean | any[] | null) => any;
252
+ "update:checked": (value: boolean) => any;
253
+ "update:indeterminate": (value: boolean) => any;
251
254
  }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
252
- onChange?: ((value?: string | number | object | undefined) => any) | undefined;
253
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
255
+ onChange?: ((value: string | number | boolean | any[] | null) => any) | undefined;
256
+ "onUpdate:modelValue"?: ((value: string | number | boolean | any[] | null) => any) | undefined;
257
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
258
+ "onUpdate:indeterminate"?: ((value: boolean) => any) | undefined;
254
259
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
255
260
 
256
261
  declare const __VLS_component_5: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -467,11 +472,11 @@ declare type __VLS_Props_4 = {
467
472
  falseValue?: string | boolean;
468
473
  name?: string;
469
474
  disabled?: boolean;
470
- checked?: boolean;
471
475
  indeterminate?: boolean;
472
476
  size?: "small" | "default" | "large";
473
477
  error?: boolean;
474
478
  errorText?: string;
479
+ checked?: boolean;
475
480
  };
476
481
 
477
482
  declare type __VLS_Props_5 = {
@@ -507,7 +512,7 @@ declare type __VLS_Props_9 = Props;
507
512
  declare type __VLS_PublicProps = {
508
513
  "currentPage"?: number;
509
514
  "perPage"?: number;
510
- 'selectedRows'?: DataItem[] | DataItem;
515
+ 'selectedRows'?: DataItem[] | DataItem | null;
511
516
  } & __VLS_Props_2;
512
517
 
513
518
  declare type __VLS_PublicProps_10 = {
@@ -559,7 +564,7 @@ declare type __VLS_PublicProps_2 = {
559
564
  } & __VLS_Props_3;
560
565
 
561
566
  declare type __VLS_PublicProps_3 = {
562
- modelValue?: string[] | string | boolean | any | null;
567
+ modelValue?: string | boolean | any | null | any[];
563
568
  } & __VLS_Props_4;
564
569
 
565
570
  declare type __VLS_PublicProps_4 = {
@@ -834,10 +839,8 @@ declare function __VLS_template_3(): {
834
839
 
835
840
  declare function __VLS_template_4(): {
836
841
  attrs: Partial<{}>;
837
- slots: Readonly<{
838
- label(): any;
839
- }> & {
840
- label(): any;
842
+ slots: {
843
+ label?(_: {}): any;
841
844
  };
842
845
  refs: {};
843
846
  rootEl: HTMLLabelElement;
@@ -862,13 +865,7 @@ declare function __VLS_template_6(): {
862
865
  option?(_: {
863
866
  option: DropdownOption;
864
867
  selected: boolean;
865
- multiple: true;
866
- handleSelect: () => void;
867
- }): any;
868
- option?(_: {
869
- option: DropdownOption;
870
- selected: boolean;
871
- multiple: false;
868
+ multiple: boolean;
872
869
  handleSelect: () => void;
873
870
  }): any;
874
871
  };
@@ -1858,7 +1855,8 @@ export declare const Tab: __VLS_WithTemplateSlots_23<typeof __VLS_component_23,
1858
1855
  declare interface TableBodyProps {
1859
1856
  columns: Column_2[];
1860
1857
  data: DataItem[];
1861
- selectedRows: DataItem[] | DataItem;
1858
+ selectedRows: DataItem[] | DataItem | null;
1859
+ dataKey?: string;
1862
1860
  size: TableSize;
1863
1861
  colorHovered: boolean;
1864
1862
  scroller?: {
@@ -1877,6 +1875,8 @@ declare type TableProps = {
1877
1875
  theme?: 'default';
1878
1876
  /** Данные */
1879
1877
  data: DataItem[];
1878
+ /** Ключ для уникальной идентификации строк */
1879
+ dataKey?: string;
1880
1880
  /** Размер таблицы */
1881
1881
  size?: TableSize;
1882
1882
  /** Поля для сортировки */