cleek 2.10.1 → 2.10.2

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.
@@ -1,40 +1,49 @@
1
- import { Color, Size } from '../types/cleek-options';
1
+ import { Size } from '../types/cleek-options';
2
2
 
3
3
  declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
5
  };
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
7
- modelValue: boolean;
8
- label?: string;
9
- disabled?: boolean;
10
- color?: Color;
11
- colorText?: Color;
12
- size?: Size;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "update:modelValue": (value: boolean) => void;
6
+ declare const __VLS_component: import('vue').DefineComponent<{
7
+ modelValue: import('vue').PropType<boolean | null>;
8
+ label: {
9
+ type: import('vue').PropType<string>;
10
+ };
11
+ disabled: {
12
+ type: import('vue').PropType<boolean>;
13
+ };
14
+ color: {
15
+ type: import('vue').PropType<string>;
16
+ };
17
+ colorText: {
18
+ type: import('vue').PropType<string>;
19
+ };
20
+ size: {
21
+ type: import('vue').PropType<Size>;
22
+ };
23
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
24
  change: (event: Event) => void;
16
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
17
- modelValue: boolean;
18
- label?: string;
19
- disabled?: boolean;
20
- color?: Color;
21
- colorText?: Color;
22
- size?: Size;
23
- }>>> & {
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
+ modelValue: import('vue').PropType<boolean | null>;
27
+ label: {
28
+ type: import('vue').PropType<string>;
29
+ };
30
+ disabled: {
31
+ type: import('vue').PropType<boolean>;
32
+ };
33
+ color: {
34
+ type: import('vue').PropType<string>;
35
+ };
36
+ colorText: {
37
+ type: import('vue').PropType<string>;
38
+ };
39
+ size: {
40
+ type: import('vue').PropType<Size>;
41
+ };
42
+ }>> & {
24
43
  onChange?: (event: Event) => any;
25
- "onUpdate:modelValue"?: (value: boolean) => any;
26
44
  }, {}, {}>;
27
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
46
  export default _default;
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToRuntimeProps<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
- } : {
34
- type: import('vue').PropType<T[K]>;
35
- required: true;
36
- };
37
- };
38
47
  type __VLS_WithTemplateSlots<T, S> = T & {
39
48
  new (): {
40
49
  $slots: S;
@@ -1,97 +1,199 @@
1
1
  import { ColumnItem } from '../../types/table';
2
- import { Align, Color, Layout, TableVersion } from '../../types/cleek-options';
2
+ import { Align, Layout, TableVersion } from '../../types/cleek-options';
3
+ import { SelectedRows } from '../index';
3
4
 
4
5
  type Columns = ColumnItem[] | object;
5
6
  type CellPadding = 's' | 'm' | 'l' | 'none';
6
7
  declare function __VLS_template(): {
7
8
  header?(_: {}): any;
9
+ selectedRowsActions?(_: {}): any;
8
10
  default?(_: {}): any;
9
11
  desktop?(_: {}): any;
12
+ row?(_: {
13
+ row: any;
14
+ }): any;
10
15
  footer?(_: {}): any;
11
16
  mobile?(_: {}): any;
12
17
  };
13
- declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
14
- columns?: Columns;
15
- hasColumnsManager?: boolean;
16
- currentPage?: number;
17
- itemsPerPage?: number;
18
- listLength?: number;
19
- paginationAlign?: Align;
20
- search?: string;
21
- loadingText?: string;
22
- isLoading?: {
23
- type: boolean;
24
- default: undefined;
25
- };
26
- hideHeaderActions?: boolean;
27
- showRefreshBtn?: boolean;
28
- hideItemsPerPage?: boolean;
29
- darkMode?: {
30
- type: boolean;
31
- default: undefined;
32
- };
33
- notFullWidth?: boolean;
34
- striped?: boolean;
35
- cellPadding?: CellPadding;
36
- cellPaddingY?: CellPadding;
37
- noResultsText?: string;
38
- notOverflow?: boolean;
39
- layout?: Layout;
40
- version?: TableVersion;
41
- headerTextColor?: Color;
42
- headerBackgroundColor?: Color;
43
- mobileMaxWidth?: Number;
44
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ declare const __VLS_component: import('vue').DefineComponent<{
19
+ selectedRows: import('vue').PropType<SelectedRows>;
20
+ rows: {
21
+ type: import('vue').PropType<any[]>;
22
+ required: true;
23
+ };
24
+ columns: {
25
+ type: import('vue').PropType<Columns>;
26
+ };
27
+ hasColumnsManager: {
28
+ type: import('vue').PropType<boolean>;
29
+ };
30
+ currentPage: {
31
+ type: import('vue').PropType<number>;
32
+ };
33
+ itemsPerPage: {
34
+ type: import('vue').PropType<number>;
35
+ };
36
+ listLength: {
37
+ type: import('vue').PropType<number>;
38
+ };
39
+ paginationAlign: {
40
+ type: import('vue').PropType<Align>;
41
+ };
42
+ search: {
43
+ type: import('vue').PropType<string>;
44
+ };
45
+ loadingText: {
46
+ type: import('vue').PropType<string>;
47
+ };
48
+ isLoading: {
49
+ type: import('vue').PropType<{
50
+ type: boolean;
51
+ default: undefined;
52
+ }>;
53
+ };
54
+ hideHeaderActions: {
55
+ type: import('vue').PropType<boolean>;
56
+ };
57
+ showRefreshBtn: {
58
+ type: import('vue').PropType<boolean>;
59
+ };
60
+ hideItemsPerPage: {
61
+ type: import('vue').PropType<boolean>;
62
+ };
63
+ darkMode: {
64
+ type: import('vue').PropType<{
65
+ type: boolean;
66
+ default: undefined;
67
+ }>;
68
+ };
69
+ notFullWidth: {
70
+ type: import('vue').PropType<boolean>;
71
+ };
72
+ striped: {
73
+ type: import('vue').PropType<boolean>;
74
+ };
75
+ cellPadding: {
76
+ type: import('vue').PropType<CellPadding>;
77
+ };
78
+ cellPaddingY: {
79
+ type: import('vue').PropType<CellPadding>;
80
+ };
81
+ noResultsText: {
82
+ type: import('vue').PropType<string>;
83
+ };
84
+ notOverflow: {
85
+ type: import('vue').PropType<boolean>;
86
+ };
87
+ layout: {
88
+ type: import('vue').PropType<Layout>;
89
+ };
90
+ version: {
91
+ type: import('vue').PropType<TableVersion>;
92
+ };
93
+ headerTextColor: {
94
+ type: import('vue').PropType<string>;
95
+ };
96
+ headerBackgroundColor: {
97
+ type: import('vue').PropType<string>;
98
+ };
99
+ mobileMaxWidth: {
100
+ type: import('vue').PropType<Number>;
101
+ };
102
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
103
  refreshList: (pageChange: boolean) => void;
46
104
  "update:search": (value: string) => void;
47
105
  "update:currentPage": (value: number) => void;
48
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
49
- columns?: Columns;
50
- hasColumnsManager?: boolean;
51
- currentPage?: number;
52
- itemsPerPage?: number;
53
- listLength?: number;
54
- paginationAlign?: Align;
55
- search?: string;
56
- loadingText?: string;
57
- isLoading?: {
58
- type: boolean;
59
- default: undefined;
60
- };
61
- hideHeaderActions?: boolean;
62
- showRefreshBtn?: boolean;
63
- hideItemsPerPage?: boolean;
64
- darkMode?: {
65
- type: boolean;
66
- default: undefined;
67
- };
68
- notFullWidth?: boolean;
69
- striped?: boolean;
70
- cellPadding?: CellPadding;
71
- cellPaddingY?: CellPadding;
72
- noResultsText?: string;
73
- notOverflow?: boolean;
74
- layout?: Layout;
75
- version?: TableVersion;
76
- headerTextColor?: Color;
77
- headerBackgroundColor?: Color;
78
- mobileMaxWidth?: Number;
79
- }>>> & {
106
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
107
+ selectedRows: import('vue').PropType<SelectedRows>;
108
+ rows: {
109
+ type: import('vue').PropType<any[]>;
110
+ required: true;
111
+ };
112
+ columns: {
113
+ type: import('vue').PropType<Columns>;
114
+ };
115
+ hasColumnsManager: {
116
+ type: import('vue').PropType<boolean>;
117
+ };
118
+ currentPage: {
119
+ type: import('vue').PropType<number>;
120
+ };
121
+ itemsPerPage: {
122
+ type: import('vue').PropType<number>;
123
+ };
124
+ listLength: {
125
+ type: import('vue').PropType<number>;
126
+ };
127
+ paginationAlign: {
128
+ type: import('vue').PropType<Align>;
129
+ };
130
+ search: {
131
+ type: import('vue').PropType<string>;
132
+ };
133
+ loadingText: {
134
+ type: import('vue').PropType<string>;
135
+ };
136
+ isLoading: {
137
+ type: import('vue').PropType<{
138
+ type: boolean;
139
+ default: undefined;
140
+ }>;
141
+ };
142
+ hideHeaderActions: {
143
+ type: import('vue').PropType<boolean>;
144
+ };
145
+ showRefreshBtn: {
146
+ type: import('vue').PropType<boolean>;
147
+ };
148
+ hideItemsPerPage: {
149
+ type: import('vue').PropType<boolean>;
150
+ };
151
+ darkMode: {
152
+ type: import('vue').PropType<{
153
+ type: boolean;
154
+ default: undefined;
155
+ }>;
156
+ };
157
+ notFullWidth: {
158
+ type: import('vue').PropType<boolean>;
159
+ };
160
+ striped: {
161
+ type: import('vue').PropType<boolean>;
162
+ };
163
+ cellPadding: {
164
+ type: import('vue').PropType<CellPadding>;
165
+ };
166
+ cellPaddingY: {
167
+ type: import('vue').PropType<CellPadding>;
168
+ };
169
+ noResultsText: {
170
+ type: import('vue').PropType<string>;
171
+ };
172
+ notOverflow: {
173
+ type: import('vue').PropType<boolean>;
174
+ };
175
+ layout: {
176
+ type: import('vue').PropType<Layout>;
177
+ };
178
+ version: {
179
+ type: import('vue').PropType<TableVersion>;
180
+ };
181
+ headerTextColor: {
182
+ type: import('vue').PropType<string>;
183
+ };
184
+ headerBackgroundColor: {
185
+ type: import('vue').PropType<string>;
186
+ };
187
+ mobileMaxWidth: {
188
+ type: import('vue').PropType<Number>;
189
+ };
190
+ }>> & {
80
191
  "onUpdate:search"?: (value: string) => any;
81
192
  onRefreshList?: (pageChange: boolean) => any;
82
193
  "onUpdate:currentPage"?: (value: number) => any;
83
194
  }, {}, {}>;
84
195
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
85
196
  export default _default;
86
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
87
- type __VLS_TypePropsToRuntimeProps<T> = {
88
- [K in keyof T]-?: {} extends Pick<T, K> ? {
89
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
90
- } : {
91
- type: import('vue').PropType<T[K]>;
92
- required: true;
93
- };
94
- };
95
197
  type __VLS_WithTemplateSlots<T, S> = T & {
96
198
  new (): {
97
199
  $slots: S;
@@ -40,3 +40,20 @@ export declare class TableData {
40
40
  isEmpty: boolean;
41
41
  constructor(itemsPerPage: number);
42
42
  }
43
+ type RowId = number;
44
+ export declare class SelectedRows {
45
+ ids: Set<any>;
46
+ toggleable: boolean;
47
+ constructor(list: RowId[], settings?: {
48
+ toggleable: boolean;
49
+ });
50
+ isRowSelected(id: RowId): boolean;
51
+ isAnyRowsSelected(ids: RowId[]): boolean;
52
+ areAllRowsSelecteds(ids: RowId[]): boolean;
53
+ switchValue(id: RowId): void;
54
+ addRow(id: RowId): void;
55
+ removeRow(id: RowId): void;
56
+ addManyRows(ids: RowId[]): void;
57
+ removeManyRows(ids: RowId[]): void;
58
+ removeAll(): void;
59
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cleek",
3
3
  "description": "Complete UX Vue library",
4
- "version": "2.10.1",
4
+ "version": "2.10.2",
5
5
  "author": "Quantic Onion",
6
6
  "license": "MIT",
7
7
  "repository": "",