@selfeesas/shared-components 0.3.4 → 0.3.6

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 +1 @@
1
- .row[data-v-c5e3fee0]{width:100%;gap:8px}.smooth-rotate[data-v-0094cb2e]{transition:transform .3s ease}.logo[data-v-ab7c0ff6]{width:260px;height:auto}label[data-v-618766fa],[data-v-e97e0b6e] label{width:50%}.icon-same-size[data-v-e97e0b6e]{margin-left:10px;margin-top:10px;font-size:30px;height:30px;width:30px;opacity:.55;display:flex;align-items:center;justify-content:center}
1
+ .row[data-v-c5e3fee0]{width:100%;gap:8px}.smooth-rotate[data-v-0094cb2e]{transition:transform .3s ease}.logo[data-v-ab7c0ff6]{width:260px;height:auto}label[data-v-618766fa]{width:50%}
@@ -16,6 +16,20 @@ declare const __VLS_component: DefineComponent<SelfeeHeaderProps, {}, {}, {}, {}
16
16
 
17
17
  declare const __VLS_component_2: DefineComponent<LayoutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
18
 
19
+ declare const __VLS_component_3: DefineComponent<CustomTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ "update:pagination": (...args: any[]) => void;
21
+ }, string, PublicProps, Readonly<CustomTableProps> & Readonly<{
22
+ "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
23
+ }>, {
24
+ filter: string;
25
+ loading: boolean;
26
+ rowKey: string;
27
+ isAffaire: boolean;
28
+ services: CustomTableServices;
29
+ conditionals: CustomTableConditionals;
30
+ showActionsColumn: boolean;
31
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
32
+
19
33
  declare type __VLS_Props = CheckboxFilterProps & {
20
34
  dataCy?: string;
21
35
  };
@@ -62,10 +76,45 @@ declare function __VLS_template_2(): {
62
76
  rootEl: any;
63
77
  };
64
78
 
79
+ declare function __VLS_template_3(): {
80
+ attrs: Partial<{}>;
81
+ slots: {
82
+ 'expand-button'?(_: {
83
+ row: any;
84
+ expanded: boolean;
85
+ toggle: () => void;
86
+ }): any;
87
+ 'body-cell'?(_: {
88
+ row: any;
89
+ col: any;
90
+ value: any;
91
+ }): any;
92
+ 'cell-append'?(_: {
93
+ row: any;
94
+ col: any;
95
+ }): any;
96
+ actions?(_: {
97
+ row: any;
98
+ handleMove: () => void | undefined;
99
+ handleArchive: () => void;
100
+ handleUnarchive: () => void;
101
+ handleEdit: () => void | undefined;
102
+ handleCancel: () => void | undefined;
103
+ }): any;
104
+ expanded?(_: {
105
+ row: any;
106
+ }): any;
107
+ };
108
+ refs: {};
109
+ rootEl: any;
110
+ };
111
+
65
112
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
66
113
 
67
114
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
68
115
 
116
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
117
+
69
118
  declare type __VLS_WithTemplateSlots<T, S> = T & {
70
119
  new (): {
71
120
  $slots: S;
@@ -78,6 +127,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
78
127
  };
79
128
  };
80
129
 
130
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
131
+ new (): {
132
+ $slots: S;
133
+ };
134
+ };
135
+
81
136
  declare interface BaseFooterProps {
82
137
  frontVersion: string;
83
138
  backVersion: string;
@@ -161,6 +216,41 @@ declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
161
216
  breadcrumbConfig: BreadcrumbConfig[];
162
217
  }
163
218
 
219
+ export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
220
+
221
+ declare interface CustomTableConditionals {
222
+ shouldShowExpandButton?: (row: any) => boolean;
223
+ shouldShowMoveButton?: (row: any) => boolean;
224
+ shouldShowArchiveButton?: (row: any) => boolean;
225
+ shouldShowUnarchiveButton?: (row: any) => boolean;
226
+ shouldShowCancelButton?: (row: any) => boolean;
227
+ isCancelButtonDisabled?: (row: any) => boolean;
228
+ }
229
+
230
+ declare interface CustomTableProps {
231
+ columns: TableColumn[];
232
+ results: any[];
233
+ filter?: string;
234
+ pagination: Pagination;
235
+ loading?: boolean;
236
+ onRequest?: (props: TableRequestProps) => void;
237
+ onEdit?: (row: any) => void;
238
+ onCancel?: (row: any) => void;
239
+ onMove?: (row: any) => void;
240
+ rowKey?: string;
241
+ onArchive?: (row: any) => void;
242
+ onUnarchive?: (row: any) => void;
243
+ isAffaire?: boolean;
244
+ services?: CustomTableServices;
245
+ conditionals?: CustomTableConditionals;
246
+ showActionsColumn?: boolean;
247
+ }
248
+
249
+ declare interface CustomTableServices {
250
+ fetchDetails?: (row: any) => Promise<any>;
251
+ redirectToPrm?: (row: any) => void;
252
+ }
253
+
164
254
  export declare const DATE_FORMAT_REGEX: RegExp;
165
255
 
166
256
  declare type DateInput = string | Date;
@@ -312,6 +402,15 @@ export declare interface NavStore {
312
402
  [key: string]: any;
313
403
  }
314
404
 
405
+ declare interface Pagination {
406
+ sortBy: string;
407
+ descending: boolean;
408
+ page: number;
409
+ rowsPerPage: number;
410
+ rowsNumber?: number;
411
+ rowsPerPageOptions?: number[];
412
+ }
413
+
315
414
  declare interface SelectOption {
316
415
  label: string;
317
416
  value: string | number;
@@ -354,6 +453,20 @@ export declare interface Store {
354
453
  [key: string]: any;
355
454
  }
356
455
 
456
+ declare interface TableColumn {
457
+ name: string;
458
+ label: string;
459
+ field: string | ((row: any) => any);
460
+ align?: "left" | "right" | "center";
461
+ sortable?: boolean;
462
+ format?: (value: any) => string;
463
+ }
464
+
465
+ declare interface TableRequestProps {
466
+ pagination: Pagination;
467
+ filter?: string;
468
+ }
469
+
357
470
  export declare const UserAvatar: DefineComponent<UserAvatarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<UserAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
358
471
 
359
472
  declare interface UserAvatarProps {