@selfeesas/shared-components 0.6.4 → 0.9.0

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.
@@ -26,8 +26,19 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
26
26
  conditionals: () => {};
27
27
  actions: () => never[];
28
28
  rowClasses: undefined;
29
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
+ selection: string;
30
+ selected: () => never[];
31
+ selectable: () => true;
32
+ showSelectAll: boolean;
33
+ }>>, {
34
+ clearSelection: typeof clearSelection;
35
+ getSelectedRows: () => any[];
36
+ toggleRowSelection: typeof toggleRowSelection;
37
+ toggleSelectAll: typeof toggleSelectAll;
38
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
30
39
  "update:pagination": (...args: any[]) => void;
40
+ "update:selected": (...args: any[]) => void;
41
+ "selection-change": (...args: any[]) => void;
31
42
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToOption_11<CustomTableProps>, {
32
43
  filter: string;
33
44
  loading: boolean;
@@ -36,8 +47,14 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
36
47
  conditionals: () => {};
37
48
  actions: () => never[];
38
49
  rowClasses: undefined;
50
+ selection: string;
51
+ selected: () => never[];
52
+ selectable: () => true;
53
+ showSelectAll: boolean;
39
54
  }>>> & Readonly<{
40
55
  "onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
56
+ "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
57
+ "onSelection-change"?: ((...args: any[]) => any) | undefined;
41
58
  }>, {
42
59
  filter: string;
43
60
  loading: boolean;
@@ -46,6 +63,10 @@ declare const __VLS_component_3: DefineComponent<ExtractPropTypes<__VLS_WithDefa
46
63
  conditionals: CustomTableConditionals;
47
64
  actions: TableAction[] | ((row: any) => TableAction[]);
48
65
  rowClasses: string | ((row: any) => string);
66
+ selection: "single" | "multiple" | "none";
67
+ selected: any[];
68
+ selectable: (row: any) => boolean;
69
+ showSelectAll: boolean;
49
70
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
50
71
 
51
72
  declare const __VLS_component_4: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_12<__VLS_TypePropsToOption_17<Props_2>, {
@@ -93,6 +114,7 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
93
114
  flat: boolean;
94
115
  dense: boolean;
95
116
  rounded: boolean;
117
+ bordered: boolean;
96
118
  title: string;
97
119
  subtitle: string;
98
120
  showHeader: boolean;
@@ -100,7 +122,6 @@ declare const __VLS_component_5: DefineComponent<ExtractPropTypes<__VLS_WithDefa
100
122
  shadowIntensity: "none" | "light" | "medium" | "heavy";
101
123
  noPadding: boolean;
102
124
  hoverable: boolean;
103
- bordered: boolean;
104
125
  centerTitle: boolean;
105
126
  centerActions: boolean;
106
127
  contentGap: boolean | string;
@@ -247,6 +268,10 @@ declare function __VLS_template_2(): {
247
268
  declare function __VLS_template_3(): {
248
269
  attrs: Partial<{}>;
249
270
  slots: {
271
+ 'selection-actions'?(_: {
272
+ selected: any[];
273
+ clearSelection: typeof clearSelection;
274
+ }): any;
250
275
  'expand-button'?(_: {
251
276
  row: any;
252
277
  expanded: boolean;
@@ -643,6 +668,8 @@ export declare interface CheckboxOption {
643
668
  disabled?: boolean;
644
669
  }
645
670
 
671
+ declare function clearSelection(): void;
672
+
646
673
  export declare const ConfirmDeleteDialog: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_11<__VLS_TypePropsToOption_16<ConfirmDeleteDialogProps>, {
647
674
  icon: string;
648
675
  color: string;
@@ -702,6 +729,7 @@ export declare const CustomTable: __VLS_WithTemplateSlots_3<typeof __VLS_compone
702
729
 
703
730
  export declare interface CustomTableConditionals {
704
731
  shouldShowExpandButton?: (row: any) => boolean;
732
+ shouldShowSelectionColumn?: () => boolean;
705
733
  }
706
734
 
707
735
  export declare interface CustomTableProps {
@@ -717,6 +745,11 @@ export declare interface CustomTableProps {
717
745
  actions?: TableAction[] | ((row: any) => TableAction[]);
718
746
  showSkeleton?: boolean;
719
747
  rowClasses?: string | ((row: any) => string);
748
+ selection?: 'single' | 'multiple' | 'none';
749
+ selected?: any[];
750
+ onSelectionChange?: (selected: any[]) => void;
751
+ selectable?: (row: any) => boolean;
752
+ showSelectAll?: boolean;
720
753
  }
721
754
 
722
755
  export declare interface CustomTableServices {
@@ -736,6 +769,7 @@ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefa
736
769
  maxDate: undefined;
737
770
  datesDisabled: () => never[];
738
771
  requiredErrorMessage: string;
772
+ invalidDateErrorMessage: string;
739
773
  disabled: boolean;
740
774
  outlined: boolean;
741
775
  placeholder: undefined;
@@ -751,6 +785,7 @@ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefa
751
785
  maxDate: undefined;
752
786
  datesDisabled: () => never[];
753
787
  requiredErrorMessage: string;
788
+ invalidDateErrorMessage: string;
754
789
  disabled: boolean;
755
790
  outlined: boolean;
756
791
  placeholder: undefined;
@@ -769,6 +804,7 @@ export declare const DatePicker: DefineComponent<ExtractPropTypes<__VLS_WithDefa
769
804
  maxDate: string;
770
805
  datesDisabled: DisabledDate[];
771
806
  requiredErrorMessage: string;
807
+ invalidDateErrorMessage: string;
772
808
  placeholder: string;
773
809
  closeLabel: string;
774
810
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -781,6 +817,7 @@ export declare interface DatePickerProps {
781
817
  maxDate?: string;
782
818
  datesDisabled?: DisabledDate[];
783
819
  requiredErrorMessage?: string;
820
+ invalidDateErrorMessage?: string;
784
821
  disabled?: boolean;
785
822
  outlined?: boolean;
786
823
  placeholder?: string;
@@ -799,6 +836,7 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
799
836
  locale: () => DateRangeLocale;
800
837
  required: boolean;
801
838
  requiredErrorMessage: string;
839
+ invalidDateErrorMessage: string;
802
840
  rules: () => never[];
803
841
  minDate: undefined;
804
842
  maxDate: undefined;
@@ -831,6 +869,7 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
831
869
  locale: () => DateRangeLocale;
832
870
  required: boolean;
833
871
  requiredErrorMessage: string;
872
+ invalidDateErrorMessage: string;
834
873
  rules: () => never[];
835
874
  minDate: undefined;
836
875
  maxDate: undefined;
@@ -856,6 +895,7 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
856
895
  maxDate: string;
857
896
  datesDisabled: Array<string | DisabledDateObject>;
858
897
  requiredErrorMessage: string;
898
+ invalidDateErrorMessage: string;
859
899
  closeLabel: string;
860
900
  allowSameDate: boolean;
861
901
  labelStart: string;
@@ -890,6 +930,7 @@ export declare interface DateRangeProps {
890
930
  locale?: DateRangeLocale;
891
931
  required?: boolean;
892
932
  requiredErrorMessage?: string;
933
+ invalidDateErrorMessage?: string;
893
934
  rules?: Array<(val: string) => boolean | string>;
894
935
  minDate?: string;
895
936
  maxDate?: string;
@@ -1288,6 +1329,7 @@ export declare interface TableColumn {
1288
1329
  align?: 'left' | 'right' | 'center';
1289
1330
  sortable?: boolean;
1290
1331
  format?: (value: any) => string;
1332
+ isSelectionColumn?: boolean;
1291
1333
  }
1292
1334
 
1293
1335
  export declare interface TableRequestProps {
@@ -1295,6 +1337,10 @@ export declare interface TableRequestProps {
1295
1337
  filter?: string;
1296
1338
  }
1297
1339
 
1340
+ declare function toggleRowSelection(row: any, selected: boolean): void;
1341
+
1342
+ declare function toggleSelectAll(selected: boolean): void;
1343
+
1298
1344
  export declare const UserAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToOption_7<UserAvatarProps>, {
1299
1345
  logoutLabel: string;
1300
1346
  showVersionInfo: boolean;