@selfeesas/shared-components 0.4.0 → 0.4.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.
@@ -0,0 +1,817 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { ExtractPropTypes } from 'vue';
5
+ import { PropType } from 'vue';
6
+ import { PublicProps } from 'vue';
7
+ import { QBreadcrumbsProps } from 'quasar';
8
+ import { RouteLocationNormalizedLoaded } from 'vue-router';
9
+ import { RouteParamsRaw } from 'vue-router';
10
+ import { Router } from 'vue-router';
11
+
12
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_5<SelfeeHeaderProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+
14
+ declare const __VLS_component_2: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_8<LayoutProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_8<LayoutProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
15
+
16
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToOption_11<CustomTableProps>, {
17
+ filter: string;
18
+ loading: boolean;
19
+ rowKey: string;
20
+ services: () => {};
21
+ conditionals: () => {};
22
+ actions: () => never[];
23
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
+ "update:pagination": (...args: any[]) => void;
25
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToOption_11<CustomTableProps>, {
26
+ filter: string;
27
+ loading: boolean;
28
+ rowKey: string;
29
+ services: () => {};
30
+ conditionals: () => {};
31
+ actions: () => never[];
32
+ }>>> & Readonly<{
33
+ "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
34
+ }>, {
35
+ filter: string;
36
+ loading: boolean;
37
+ rowKey: string;
38
+ services: CustomTableServices;
39
+ conditionals: CustomTableConditionals;
40
+ actions: TableAction[] | ((row: any) => TableAction[]);
41
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
42
+
43
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+
45
+ declare type __VLS_NonUndefinedable_10<T> = T extends undefined ? never : T;
46
+
47
+ declare type __VLS_NonUndefinedable_11<T> = T extends undefined ? never : T;
48
+
49
+ declare type __VLS_NonUndefinedable_12<T> = T extends undefined ? never : T;
50
+
51
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
52
+
53
+ declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
54
+
55
+ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
56
+
57
+ declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
58
+
59
+ declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
60
+
61
+ declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
62
+
63
+ declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
64
+
65
+ declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
66
+
67
+ declare type __VLS_PrettifyLocal<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
70
+
71
+ declare type __VLS_PrettifyLocal_2<T> = {
72
+ [K in keyof T]: T[K];
73
+ } & {};
74
+
75
+ declare type __VLS_PrettifyLocal_3<T> = {
76
+ [K in keyof T]: T[K];
77
+ } & {};
78
+
79
+ declare type __VLS_PrettifyLocal_4<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};
82
+
83
+ declare type __VLS_PrettifyLocal_5<T> = {
84
+ [K in keyof T]: T[K];
85
+ } & {};
86
+
87
+ declare type __VLS_PrettifyLocal_6<T> = {
88
+ [K in keyof T]: T[K];
89
+ } & {};
90
+
91
+ declare type __VLS_PrettifyLocal_7<T> = {
92
+ [K in keyof T]: T[K];
93
+ } & {};
94
+
95
+ declare type __VLS_Props = CheckboxFilterProps & {
96
+ dataCy?: string;
97
+ };
98
+
99
+ declare type __VLS_Props_2 = ExportButtonProps;
100
+
101
+ declare function __VLS_template(): {
102
+ attrs: Partial<{}>;
103
+ slots: {
104
+ 'user-avatar'?(_: {}): any;
105
+ };
106
+ refs: {};
107
+ rootEl: any;
108
+ };
109
+
110
+ declare function __VLS_template_2(): {
111
+ attrs: Partial<{}>;
112
+ slots: Readonly<{
113
+ /**
114
+ * Slot for the layout's header section, typically a `SelfeeHeader` component.
115
+ */
116
+ header?: () => any;
117
+ /**
118
+ * Default slot for the main page content.
119
+ */
120
+ default: () => any;
121
+ /**
122
+ * Slot for the layout's footer section, typically a `SelfeeFooter` component.
123
+ */
124
+ footer?: () => any;
125
+ }> & {
126
+ /**
127
+ * Slot for the layout's header section, typically a `SelfeeHeader` component.
128
+ */
129
+ header?: () => any;
130
+ /**
131
+ * Default slot for the main page content.
132
+ */
133
+ default: () => any;
134
+ /**
135
+ * Slot for the layout's footer section, typically a `SelfeeFooter` component.
136
+ */
137
+ footer?: () => any;
138
+ };
139
+ refs: {};
140
+ rootEl: any;
141
+ };
142
+
143
+ declare function __VLS_template_3(): {
144
+ attrs: Partial<{}>;
145
+ slots: {
146
+ 'expand-button'?(_: {
147
+ row: any;
148
+ expanded: boolean;
149
+ toggle: () => Promise<void>;
150
+ }): any;
151
+ 'body-cell'?(_: {
152
+ row: any;
153
+ col: any;
154
+ value: any;
155
+ }): any;
156
+ expanded?(_: {
157
+ row: any;
158
+ }): any;
159
+ };
160
+ refs: {};
161
+ rootEl: any;
162
+ };
163
+
164
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
165
+
166
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
167
+
168
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
169
+
170
+ declare type __VLS_TypePropsToOption<T> = {
171
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
172
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
173
+ } : {
174
+ type: PropType<T[K]>;
175
+ required: true;
176
+ };
177
+ };
178
+
179
+ declare type __VLS_TypePropsToOption_10<T> = {
180
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
181
+ type: PropType<__VLS_NonUndefinedable_10<T[K]>>;
182
+ } : {
183
+ type: PropType<T[K]>;
184
+ required: true;
185
+ };
186
+ };
187
+
188
+ declare type __VLS_TypePropsToOption_11<T> = {
189
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
190
+ type: PropType<__VLS_NonUndefinedable_11<T[K]>>;
191
+ } : {
192
+ type: PropType<T[K]>;
193
+ required: true;
194
+ };
195
+ };
196
+
197
+ declare type __VLS_TypePropsToOption_12<T> = {
198
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
199
+ type: PropType<__VLS_NonUndefinedable_12<T[K]>>;
200
+ } : {
201
+ type: PropType<T[K]>;
202
+ required: true;
203
+ };
204
+ };
205
+
206
+ declare type __VLS_TypePropsToOption_2<T> = {
207
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
208
+ type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
209
+ } : {
210
+ type: PropType<T[K]>;
211
+ required: true;
212
+ };
213
+ };
214
+
215
+ declare type __VLS_TypePropsToOption_3<T> = {
216
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
217
+ type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
218
+ } : {
219
+ type: PropType<T[K]>;
220
+ required: true;
221
+ };
222
+ };
223
+
224
+ declare type __VLS_TypePropsToOption_4<T> = {
225
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
226
+ type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
227
+ } : {
228
+ type: PropType<T[K]>;
229
+ required: true;
230
+ };
231
+ };
232
+
233
+ declare type __VLS_TypePropsToOption_5<T> = {
234
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
235
+ type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
236
+ } : {
237
+ type: PropType<T[K]>;
238
+ required: true;
239
+ };
240
+ };
241
+
242
+ declare type __VLS_TypePropsToOption_6<T> = {
243
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
244
+ type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
245
+ } : {
246
+ type: PropType<T[K]>;
247
+ required: true;
248
+ };
249
+ };
250
+
251
+ declare type __VLS_TypePropsToOption_7<T> = {
252
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
253
+ type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
254
+ } : {
255
+ type: PropType<T[K]>;
256
+ required: true;
257
+ };
258
+ };
259
+
260
+ declare type __VLS_TypePropsToOption_8<T> = {
261
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
262
+ type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
263
+ } : {
264
+ type: PropType<T[K]>;
265
+ required: true;
266
+ };
267
+ };
268
+
269
+ declare type __VLS_TypePropsToOption_9<T> = {
270
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
271
+ type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
272
+ } : {
273
+ type: PropType<T[K]>;
274
+ required: true;
275
+ };
276
+ };
277
+
278
+ declare type __VLS_WithDefaults<P, D> = {
279
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
280
+ default: D[K];
281
+ }> : P[K];
282
+ };
283
+
284
+ declare type __VLS_WithDefaults_2<P, D> = {
285
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_2<P[K] & {
286
+ default: D[K];
287
+ }> : P[K];
288
+ };
289
+
290
+ declare type __VLS_WithDefaults_3<P, D> = {
291
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_3<P[K] & {
292
+ default: D[K];
293
+ }> : P[K];
294
+ };
295
+
296
+ declare type __VLS_WithDefaults_4<P, D> = {
297
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_4<P[K] & {
298
+ default: D[K];
299
+ }> : P[K];
300
+ };
301
+
302
+ declare type __VLS_WithDefaults_5<P, D> = {
303
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_5<P[K] & {
304
+ default: D[K];
305
+ }> : P[K];
306
+ };
307
+
308
+ declare type __VLS_WithDefaults_6<P, D> = {
309
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_6<P[K] & {
310
+ default: D[K];
311
+ }> : P[K];
312
+ };
313
+
314
+ declare type __VLS_WithDefaults_7<P, D> = {
315
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_7<P[K] & {
316
+ default: D[K];
317
+ }> : P[K];
318
+ };
319
+
320
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
321
+ new (): {
322
+ $slots: S;
323
+ };
324
+ };
325
+
326
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
327
+ new (): {
328
+ $slots: S;
329
+ };
330
+ };
331
+
332
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
333
+ new (): {
334
+ $slots: S;
335
+ };
336
+ };
337
+
338
+ export declare interface BreadcrumbConfig {
339
+ entity: string;
340
+ dataCy: string;
341
+ defaultLabel: string;
342
+ routeName: string;
343
+ shouldRender: (context: Context) => boolean;
344
+ getLabel?: (context: Context) => string;
345
+ getColor?: (context: Context) => string;
346
+ getRouteParams?: (context: Context) => Record<string, any>;
347
+ clearActions?: Array<(context: Context) => void>;
348
+ }
349
+
350
+ export declare interface BreadcrumbOptions {
351
+ entity: string;
352
+ dataCy: string;
353
+ defaultLabel: string;
354
+ routeName: string;
355
+ storeField?: string;
356
+ labelField?: string;
357
+ routeParamKey?: string;
358
+ routeParamField?: string;
359
+ clearMethods?: string[];
360
+ navActions?: Array<(navStore: NavStore) => void>;
361
+ customShouldRender?: (context: Context) => boolean;
362
+ customGetColor?: (context: Context) => string;
363
+ getLabel?: (context: Context) => string;
364
+ getRouteParams?: (context: Context) => Record<string, any>;
365
+ }
366
+
367
+ export declare const Breadcrumbs: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption<CustomBreadcrumbsProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<CustomBreadcrumbsProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
368
+
369
+ export declare const CheckboxFilter: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToOption_3<__VLS_Props>, {
370
+ label: string;
371
+ modelValue: () => never[];
372
+ scrollAreaHeight: string;
373
+ scrollAreaWidth: string;
374
+ dataCy: string;
375
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
376
+ "update:modelValue": (value: CheckboxOption[]) => void;
377
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToOption_3<__VLS_Props>, {
378
+ label: string;
379
+ modelValue: () => never[];
380
+ scrollAreaHeight: string;
381
+ scrollAreaWidth: string;
382
+ dataCy: string;
383
+ }>>> & Readonly<{
384
+ "onUpdate:modelValue"?: ((value: CheckboxOption[]) => any) | undefined;
385
+ }>, {
386
+ label: string;
387
+ dataCy: string;
388
+ modelValue: CheckboxOption[];
389
+ scrollAreaHeight: string;
390
+ scrollAreaWidth: string;
391
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
392
+
393
+ declare interface CheckboxFilterProps {
394
+ options: CheckboxOption[];
395
+ label?: string;
396
+ modelValue?: CheckboxOption[];
397
+ scrollAreaHeight?: string;
398
+ scrollAreaWidth?: string;
399
+ }
400
+
401
+ declare interface CheckboxOption {
402
+ value: string | number;
403
+ label: string;
404
+ disabled?: boolean;
405
+ }
406
+
407
+ export declare interface Context {
408
+ store: Store;
409
+ route: RouteLocationNormalizedLoaded;
410
+ navStore: NavStore;
411
+ }
412
+
413
+ export declare function createBreadcrumb(options: BreadcrumbOptions): BreadcrumbConfig;
414
+
415
+ declare interface CustomBreadcrumbsProps extends QBreadcrumbsProps {
416
+ activeColor?: string;
417
+ separatorIcon?: string;
418
+ separatorSize?: string;
419
+ separatorColor?: string;
420
+ store: Store;
421
+ navStore?: NavStore;
422
+ route: RouteLocationNormalizedLoaded;
423
+ router: Router;
424
+ breadcrumbConfig: BreadcrumbConfig[];
425
+ }
426
+
427
+ export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
428
+
429
+ declare interface CustomTableConditionals {
430
+ shouldShowExpandButton?: (row: any) => boolean;
431
+ }
432
+
433
+ declare interface CustomTableProps {
434
+ columns: TableColumn[];
435
+ results: any[];
436
+ filter?: string;
437
+ pagination: Pagination;
438
+ loading?: boolean;
439
+ onRequest?: (props: TableRequestProps) => void;
440
+ rowKey?: string;
441
+ services?: CustomTableServices;
442
+ conditionals?: CustomTableConditionals;
443
+ actions?: TableAction[] | ((row: any) => TableAction[]);
444
+ }
445
+
446
+ declare interface CustomTableServices {
447
+ fetchDetails?: (row: any) => Promise<any>;
448
+ redirectToPrm?: (row: any) => void;
449
+ }
450
+
451
+ export declare const DATE_FORMAT_REGEX: RegExp;
452
+
453
+ declare type DateInput = string | Date;
454
+
455
+ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_9<DatePickerProps>, {
456
+ label: string;
457
+ date: string;
458
+ required: boolean;
459
+ minDate: undefined;
460
+ maxDate: undefined;
461
+ datesDisabled: () => never[];
462
+ requiredErrorMessage: string;
463
+ disabled: boolean;
464
+ outlined: boolean;
465
+ placeholder: undefined;
466
+ closeLabel: string;
467
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
468
+ "update:date": (value: string) => void;
469
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_9<DatePickerProps>, {
470
+ label: string;
471
+ date: string;
472
+ required: boolean;
473
+ minDate: undefined;
474
+ maxDate: undefined;
475
+ datesDisabled: () => never[];
476
+ requiredErrorMessage: string;
477
+ disabled: boolean;
478
+ outlined: boolean;
479
+ placeholder: undefined;
480
+ closeLabel: string;
481
+ }>>> & Readonly<{
482
+ "onUpdate:date"?: ((value: string) => any) | undefined;
483
+ }>, {
484
+ required: boolean;
485
+ disabled: boolean;
486
+ label: string;
487
+ outlined: boolean;
488
+ date: string;
489
+ minDate: string;
490
+ maxDate: string;
491
+ datesDisabled: DisabledDate[];
492
+ requiredErrorMessage: string;
493
+ placeholder: string;
494
+ closeLabel: string;
495
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
496
+
497
+ declare interface DatePickerProps {
498
+ label?: string;
499
+ date?: string;
500
+ required?: boolean;
501
+ minDate?: string;
502
+ maxDate?: string;
503
+ datesDisabled?: DisabledDate[];
504
+ requiredErrorMessage?: string;
505
+ disabled?: boolean;
506
+ outlined?: boolean;
507
+ placeholder?: string;
508
+ closeLabel?: string;
509
+ }
510
+
511
+ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_10<DateRangeProps>, {
512
+ from: string;
513
+ to: string;
514
+ labelStart: string;
515
+ labelEnd: string;
516
+ startDateHint: string;
517
+ resetLabel: string;
518
+ closeLabel: string;
519
+ locale: () => DateRangeLocale;
520
+ required: boolean;
521
+ requiredErrorMessage: string;
522
+ rules: () => never[];
523
+ minDate: undefined;
524
+ maxDate: undefined;
525
+ datesDisabled: () => never[];
526
+ highlightEvents: () => never[];
527
+ disabled: boolean;
528
+ idCy: string;
529
+ }>>, {
530
+ resetDate: () => void;
531
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
532
+ "update:dateRange": (value: {
533
+ from: string;
534
+ to: string;
535
+ }) => void;
536
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToOption_10<DateRangeProps>, {
537
+ from: string;
538
+ to: string;
539
+ labelStart: string;
540
+ labelEnd: string;
541
+ startDateHint: string;
542
+ resetLabel: string;
543
+ closeLabel: string;
544
+ locale: () => DateRangeLocale;
545
+ required: boolean;
546
+ requiredErrorMessage: string;
547
+ rules: () => never[];
548
+ minDate: undefined;
549
+ maxDate: undefined;
550
+ datesDisabled: () => never[];
551
+ highlightEvents: () => never[];
552
+ disabled: boolean;
553
+ idCy: string;
554
+ }>>> & Readonly<{
555
+ "onUpdate:dateRange"?: ((value: {
556
+ from: string;
557
+ to: string;
558
+ }) => any) | undefined;
559
+ }>, {
560
+ required: boolean;
561
+ to: string;
562
+ disabled: boolean;
563
+ from: string;
564
+ rules: Array<(val: string) => boolean | string>;
565
+ minDate: string;
566
+ maxDate: string;
567
+ datesDisabled: Array<string | DisabledDateObject>;
568
+ requiredErrorMessage: string;
569
+ closeLabel: string;
570
+ labelStart: string;
571
+ labelEnd: string;
572
+ startDateHint: string;
573
+ resetLabel: string;
574
+ locale: DateRangeLocale;
575
+ highlightEvents: string[];
576
+ idCy: string;
577
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
578
+
579
+ declare interface DateRangeLocale {
580
+ days?: string[];
581
+ daysShort?: string[];
582
+ months?: string[];
583
+ monthsShort?: string[];
584
+ firstDayOfWeek?: number;
585
+ format24h?: boolean;
586
+ pluralDay?: string;
587
+ }
588
+
589
+ declare interface DateRangeProps {
590
+ from?: string;
591
+ to?: string;
592
+ labelStart?: string;
593
+ labelEnd?: string;
594
+ startDateHint?: string;
595
+ resetLabel?: string;
596
+ closeLabel?: string;
597
+ locale?: DateRangeLocale;
598
+ required?: boolean;
599
+ requiredErrorMessage?: string;
600
+ rules?: Array<(val: string) => boolean | string>;
601
+ minDate?: string;
602
+ maxDate?: string;
603
+ datesDisabled?: Array<string | DisabledDateObject>;
604
+ highlightEvents?: string[];
605
+ disabled?: boolean;
606
+ idCy?: string;
607
+ }
608
+
609
+ export declare interface DateRangeType {
610
+ from: string;
611
+ to: string;
612
+ }
613
+
614
+ export declare const dateRangeUtils: {
615
+ validateAndUpdate(currentRange: DateRangeType, newValue: string, isStartDate: boolean): DateRangeType;
616
+ handlePickerUpdate(value: DateRangeType | string | null): DateRangeType;
617
+ reset(): DateRangeType;
618
+ handleInput(value: string | number | null, callback: (value: string) => void): void;
619
+ };
620
+
621
+ export declare function dateWithoutTimezone(date: Date): Date;
622
+
623
+ export declare const defaultLocale: DateRangeLocale;
624
+
625
+ export declare type DisabledDate = string | DisabledDateObject;
626
+
627
+ export declare type DisabledDateObject = {
628
+ start_date: string | Date;
629
+ end_date: string | Date;
630
+ };
631
+
632
+ declare interface ExcelColumn<T = any> {
633
+ field: keyof T & string;
634
+ label: string;
635
+ format?: (value: T[keyof T]) => string | number | Date;
636
+ width?: number;
637
+ }
638
+
639
+ declare interface ExcelExportFilters {
640
+ [key: string]: string | number | boolean | null | undefined;
641
+ }
642
+
643
+ export declare const ExportButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_12<__VLS_Props_2>, {
644
+ label: string;
645
+ color: string;
646
+ disabled: boolean;
647
+ filters: () => {};
648
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
649
+ success: () => void;
650
+ error: (error: unknown) => void;
651
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_12<__VLS_Props_2>, {
652
+ label: string;
653
+ color: string;
654
+ disabled: boolean;
655
+ filters: () => {};
656
+ }>>> & Readonly<{
657
+ onError?: ((error: unknown) => any) | undefined;
658
+ onSuccess?: (() => any) | undefined;
659
+ }>, {
660
+ disabled: boolean;
661
+ color: string;
662
+ label: string;
663
+ filters: ExcelExportFilters;
664
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
665
+
666
+ declare interface ExportButtonProps<T = any> {
667
+ data: T[];
668
+ columns: Array<ExcelColumn<T>>;
669
+ fileNamePrefix: string;
670
+ filters?: ExcelExportFilters;
671
+ color?: string;
672
+ label?: string;
673
+ disabled?: boolean;
674
+ beforeExport?: () => Promise<void> | void;
675
+ onSuccess?: () => void;
676
+ onError?: (error: unknown) => void;
677
+ }
678
+
679
+ export declare function formatDate(dateStr: string): string;
680
+
681
+ export declare function isDateSelectable(date: DateInput, minDateProps?: DateInput | null, maxDateProps?: DateInput | null, datesDisabled?: DisabledDate[]): boolean;
682
+
683
+ export declare const Layout: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
684
+
685
+ declare interface LayoutProps {
686
+ view?: string;
687
+ layoutClass?: string;
688
+ pageContainerClass?: string;
689
+ }
690
+
691
+ export declare const NavButton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption_2<NavButtonProps>, {
692
+ to: undefined;
693
+ labelTo: undefined;
694
+ params: () => {};
695
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption_2<NavButtonProps>, {
696
+ to: undefined;
697
+ labelTo: undefined;
698
+ params: () => {};
699
+ }>>> & Readonly<{}>, {
700
+ params: RouteParamsRaw;
701
+ to: string;
702
+ labelTo: string;
703
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
704
+
705
+ declare interface NavButtonProps {
706
+ from: string;
707
+ to?: string;
708
+ labelFrom: string;
709
+ labelTo?: string;
710
+ params?: RouteParamsRaw;
711
+ }
712
+
713
+ export declare interface NavStore {
714
+ [key: string]: any;
715
+ }
716
+
717
+ declare interface Pagination {
718
+ sortBy: string;
719
+ descending: boolean;
720
+ page: number;
721
+ rowsPerPage: number;
722
+ rowsNumber?: number;
723
+ rowsPerPageOptions?: number[];
724
+ }
725
+
726
+ declare interface SelectOption {
727
+ label: string;
728
+ value: string | number;
729
+ [key: string]: any;
730
+ }
731
+
732
+ export declare const SelectSearch: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToOption_4<SelectSearchProps>, {
733
+ options: () => never[];
734
+ label: string;
735
+ modelValue: null;
736
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
737
+ "update:modelValue": (val: string | number | null) => void;
738
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToOption_4<SelectSearchProps>, {
739
+ options: () => never[];
740
+ label: string;
741
+ modelValue: null;
742
+ }>>> & Readonly<{
743
+ "onUpdate:modelValue"?: ((val: string | number | null) => any) | undefined;
744
+ }>, {
745
+ label: string;
746
+ options: SelectOption[];
747
+ modelValue: string | number | null;
748
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
749
+
750
+ declare interface SelectSearchProps {
751
+ options?: SelectOption[];
752
+ fetchOptions?: (searchTerm: string) => Promise<SelectOption[]>;
753
+ label?: string;
754
+ modelValue?: string | number | null;
755
+ }
756
+
757
+ export declare const SelfeeFooter: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeFooterProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_6<SelfeeFooterProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
758
+
759
+ declare interface SelfeeFooterProps {
760
+ frontVersion: string;
761
+ backVersion: string;
762
+ platform: string;
763
+ }
764
+
765
+ export declare const SelfeeHeader: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
766
+
767
+ declare interface SelfeeHeaderProps {
768
+ logoSrc: string;
769
+ logoAlt?: string;
770
+ logoTo?: string;
771
+ }
772
+
773
+ export declare interface Store {
774
+ [key: string]: any;
775
+ }
776
+
777
+ declare interface TableAction {
778
+ id: string;
779
+ label?: string;
780
+ icon?: string;
781
+ color?: string;
782
+ size?: string;
783
+ class?: string;
784
+ disabled?: boolean | ((row: any) => boolean);
785
+ visible?: boolean | ((row: any) => boolean);
786
+ handler: (row: any) => void;
787
+ isButton?: boolean;
788
+ buttonProps?: Record<string, any>;
789
+ position?: 'row' | 'cell' | 'both';
790
+ columnName?: string;
791
+ testId?: string | ((row: any) => string);
792
+ isCancel?: boolean;
793
+ }
794
+
795
+ declare interface TableColumn {
796
+ name: string;
797
+ label: string;
798
+ field: string | ((row: any) => any);
799
+ align?: 'left' | 'right' | 'center';
800
+ sortable?: boolean;
801
+ format?: (value: any) => string;
802
+ }
803
+
804
+ declare interface TableRequestProps {
805
+ pagination: Pagination;
806
+ filter?: string;
807
+ }
808
+
809
+ export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_TypePropsToOption_7<UserAvatarProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption_7<UserAvatarProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
810
+
811
+ declare interface UserAvatarProps {
812
+ username: string;
813
+ onLogout: () => void;
814
+ logoutLabel?: string;
815
+ }
816
+
817
+ export { }