@cobre-npm/ds-v3 0.113.1 → 0.113.4

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.
@@ -15,6 +15,13 @@ declare const _default: import("vue").DefineComponent<Props, {
15
15
  key: string;
16
16
  value: Filter["value"];
17
17
  }) => any;
18
+ "filter-search": (payload: {
19
+ key: string;
20
+ value: string;
21
+ }) => any;
22
+ "filter-cleared": (payload: {
23
+ key: string;
24
+ }) => any;
18
25
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
19
26
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
20
27
  "onUpdate:activeFilter"?: ((value: string) => any) | undefined;
@@ -22,6 +29,13 @@ declare const _default: import("vue").DefineComponent<Props, {
22
29
  key: string;
23
30
  value: Filter["value"];
24
31
  }) => any) | undefined;
32
+ "onFilter-search"?: ((payload: {
33
+ key: string;
34
+ value: string;
35
+ }) => any) | undefined;
36
+ "onFilter-cleared"?: ((payload: {
37
+ key: string;
38
+ }) => any) | undefined;
25
39
  }>, {
26
40
  title: string;
27
41
  filters: Filter[];
@@ -13,6 +13,7 @@ export interface BaseFilter<T extends FilterType> {
13
13
  key: string;
14
14
  type: T;
15
15
  label: string;
16
+ icon?: string;
16
17
  count?: number;
17
18
  }
18
19
  export interface CommonValidation {
@@ -23,16 +24,23 @@ export interface CommonDisabledProps {
23
24
  disabled?: boolean;
24
25
  labelTooltip?: string;
25
26
  }
27
+ export interface CommonSearchProps {
28
+ searchable?: boolean;
29
+ search?: {
30
+ placeholder?: string;
31
+ disabled?: boolean;
32
+ };
33
+ }
26
34
  export interface CheckboxFilter extends BaseFilter<'checkbox'> {
27
35
  value: (string | number)[];
28
36
  options: FilterOption[];
29
- props?: CommonDisabledProps;
37
+ props?: CommonDisabledProps & CommonSearchProps;
30
38
  validation?: CommonValidation;
31
39
  }
32
40
  export interface RadioFilter extends BaseFilter<'radio'> {
33
41
  value: string | number | null;
34
42
  options: FilterOption[];
35
- props?: CommonDisabledProps;
43
+ props?: CommonDisabledProps & CommonSearchProps;
36
44
  validation?: CommonValidation;
37
45
  }
38
46
  export interface InputFilter extends BaseFilter<'input'> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.113.1",
3
+ "version": "0.113.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"