@frollo/frollo-web-ui 3.0.2 → 4.0.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.
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.7936 9.26844L8.54361 14.7684C8.39986 14.9153 8.20611 14.9997 7.99986 14.9997C7.79361 14.9997 7.59861 14.9157 7.45673 14.7673L2.20673 9.26725C1.92173 8.94031 1.93248 8.49344 2.2323 8.20594C2.52917 7.91981 3.00573 7.93056 3.29292 8.23133L7.24986 12.3778V1.75031C7.24986 1.33625 7.5858 1 7.97174 1C8.35767 1 8.74986 1.33625 8.74986 1.75031V12.3784L12.7061 8.23156C12.9922 7.93078 13.4689 7.92003 13.7667 8.20617C14.0686 8.49344 14.078 8.94031 13.7936 9.26844Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.4497 12.472L7.7497 14.3407V3.7507C7.7497 3.33633 7.41533 3.00008 6.9997 3.00008C6.58408 3.00008 6.2497 3.33633 6.2497 3.7507V14.3413L4.55064 12.4991C4.40317 12.339 4.20189 12.2579 4.00001 12.2579C3.81839 12.2579 3.63564 12.3234 3.49126 12.4571C3.18658 12.7377 3.16814 13.2128 3.44926 13.5178L6.42114 16.7709C6.70433 17.0778 7.23958 17.0778 7.5227 16.7709L10.4946 13.5178C10.7758 13.2128 10.7573 12.7378 10.4526 12.4571C10.2028 12.172 9.72783 12.1938 9.4497 12.472ZM16.5497 6.48133L13.5778 3.2282C13.2946 2.92133 12.7594 2.92133 12.4763 3.2282L9.4497 6.48133C9.16845 6.78627 9.18701 7.26133 9.4917 7.54195C9.63617 7.67573 9.81889 7.74117 10.0005 7.74117C10.2026 7.74117 10.4039 7.66011 10.5511 7.49995L12.2497 5.65945V16.2501C12.2497 16.6626 12.5872 17.0001 12.9997 17.0001C13.4122 17.0001 13.7497 16.6638 13.7497 16.2495V5.65945L15.4488 7.50164C15.7281 7.80658 16.2025 7.82695 16.5081 7.54364C16.8122 7.26258 16.831 6.78758 16.5497 6.48133Z" />
3
+ </svg>
package/icons/index.ts CHANGED
@@ -30,6 +30,8 @@ import LoadingSvg from './loading.svg';
30
30
  import BullseyeSvg from './bullseye.svg';
31
31
  import SolidCheckSvg from './solid-check.svg';
32
32
  import SolidXMarkSvg from './solid-xmark.svg';
33
+ import ArrowSortSvg from './arrow-sort.svg';
34
+ import ArrowDownSvg from './arrow-down.svg';
33
35
 
34
36
  export {
35
37
  ViewSvg,
@@ -63,5 +65,7 @@ export {
63
65
  LoadingSvg,
64
66
  BullseyeSvg,
65
67
  SolidCheckSvg,
66
- SolidXMarkSvg
68
+ SolidXMarkSvg,
69
+ ArrowSortSvg,
70
+ ArrowDownSvg
67
71
  };
package/index.d.ts CHANGED
@@ -20,7 +20,7 @@ declare interface FwInputProps {
20
20
  tabindex?: string;
21
21
  }
22
22
 
23
- declare const _default$n: vue.DefineComponent<{
23
+ declare const _default$m: vue.DefineComponent<{
24
24
  /**
25
25
  * The input v-model
26
26
  */
@@ -172,7 +172,7 @@ declare const _default$n: vue.DefineComponent<{
172
172
  tabindex: string;
173
173
  }>;
174
174
 
175
- declare const _default$m: vue.DefineComponent<{
175
+ declare const _default$l: vue.DefineComponent<{
176
176
  /**
177
177
  * The name of the input field. Must be unique per form.
178
178
  */
@@ -241,7 +241,7 @@ declare interface FwDropdownProps {
241
241
  placeholder?: string;
242
242
  }
243
243
 
244
- declare const _default$l: vue.DefineComponent<{
244
+ declare const _default$k: vue.DefineComponent<{
245
245
  /**
246
246
  * The select v-model
247
247
  */
@@ -352,7 +352,7 @@ declare const _default$l: vue.DefineComponent<{
352
352
  placeholder: string;
353
353
  }>;
354
354
 
355
- declare const _default$k: vue.DefineComponent<{
355
+ declare const _default$j: vue.DefineComponent<{
356
356
  /**
357
357
  * The header title of the card
358
358
  */
@@ -461,7 +461,7 @@ declare interface FwButtonProps {
461
461
  external?: boolean;
462
462
  }
463
463
 
464
- declare const _default$j: vue.DefineComponent<{
464
+ declare const _default$i: vue.DefineComponent<{
465
465
  /**
466
466
  * A `router-link` path or object
467
467
  */
@@ -642,7 +642,7 @@ declare interface NavMenuItem {
642
642
  external?: boolean;
643
643
  }
644
644
 
645
- declare const _default$i: vue.DefineComponent<{
645
+ declare const _default$h: vue.DefineComponent<{
646
646
  /**
647
647
  * An array of menu items
648
648
  * `{ to?: string | object; href?: string; label: string; }`
@@ -697,7 +697,7 @@ declare const _default$i: vue.DefineComponent<{
697
697
  containerClass: string;
698
698
  }>;
699
699
 
700
- declare const _default$h: vue.DefineComponent<{
700
+ declare const _default$g: vue.DefineComponent<{
701
701
  /**
702
702
  * The active tab v-model
703
703
  */
@@ -721,7 +721,7 @@ declare const _default$h: vue.DefineComponent<{
721
721
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
722
722
  }, {}>;
723
723
 
724
- declare const _default$g: vue.DefineComponent<{
724
+ declare const _default$f: vue.DefineComponent<{
725
725
  /**
726
726
  * The label of the tab component used as the button panel label
727
727
  */
@@ -753,7 +753,7 @@ declare const _default$g: vue.DefineComponent<{
753
753
  };
754
754
  }>>, {}>;
755
755
 
756
- declare const _default$f: vue.DefineComponent<{
756
+ declare const _default$e: vue.DefineComponent<{
757
757
  /**
758
758
  * The modal's v-model. Controls the visibility of the modal.
759
759
  */
@@ -932,7 +932,7 @@ declare interface ProgressBarStep {
932
932
  subSteps: number;
933
933
  }
934
934
 
935
- declare const _default$e: vue.DefineComponent<{
935
+ declare const _default$d: vue.DefineComponent<{
936
936
  /**
937
937
  * An array of menu progress steps.
938
938
  * `{ label: string; position: number; subSteps: number; }`
@@ -999,7 +999,7 @@ declare interface FwTagProps {
999
999
  variant?: TagVariantName;
1000
1000
  }
1001
1001
 
1002
- declare const _default$d: vue.DefineComponent<{
1002
+ declare const _default$c: vue.DefineComponent<{
1003
1003
  /**
1004
1004
  * The size of the tag. Accepts: 'xs' & 'sm'
1005
1005
  */
@@ -1057,9 +1057,10 @@ declare interface FwTableProps {
1057
1057
  items: FwTableItem[];
1058
1058
  options?: FwTableItemOptions;
1059
1059
  loading?: boolean;
1060
+ clickableRows?: boolean;
1060
1061
  }
1061
1062
 
1062
- declare const _default$c: vue.DefineComponent<{
1063
+ declare const __default__$2: vue.DefineComponent<{
1063
1064
  items: {
1064
1065
  type: PropType<FwTableItem[]>;
1065
1066
  required: true;
@@ -1072,6 +1073,10 @@ declare const _default$c: vue.DefineComponent<{
1072
1073
  type: BooleanConstructor;
1073
1074
  default: boolean;
1074
1075
  };
1076
+ clickableRows: {
1077
+ type: BooleanConstructor;
1078
+ default: boolean;
1079
+ };
1075
1080
  }, {
1076
1081
  columns: vue.ComputedRef<string[]>;
1077
1082
  sortBy: vue.Ref<string>;
@@ -1079,11 +1084,13 @@ declare const _default$c: vue.DefineComponent<{
1079
1084
  sortColumn: (column: string) => void;
1080
1085
  sortedData: vue.ComputedRef<FwTableItem[]>;
1081
1086
  currentSortedColumn: vue.Ref<string>;
1082
- sortedIcon: (sortDir: string, column: string) => "text-body" | "text-grey-light";
1087
+ sortedIcon: (sortDir: string, column: string) => boolean;
1083
1088
  formattedText: (row: FwTableItem, column: string) => string | number;
1084
1089
  isColumnSortable: (column: string) => boolean | undefined;
1085
1090
  isDisabled: (column: string) => boolean;
1086
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1091
+ rowClicked: (row: FwTableItem) => void;
1092
+ bgHoverColor: string;
1093
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "rowClicked"[], "rowClicked", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1087
1094
  items: {
1088
1095
  type: PropType<FwTableItem[]>;
1089
1096
  required: true;
@@ -1096,8 +1103,15 @@ declare const _default$c: vue.DefineComponent<{
1096
1103
  type: BooleanConstructor;
1097
1104
  default: boolean;
1098
1105
  };
1099
- }>>, {
1106
+ clickableRows: {
1107
+ type: BooleanConstructor;
1108
+ default: boolean;
1109
+ };
1110
+ }>> & {
1111
+ onRowClicked?: ((...args: any[]) => any) | undefined;
1112
+ }, {
1100
1113
  loading: boolean;
1114
+ clickableRows: boolean;
1101
1115
  }>;
1102
1116
 
1103
1117
  declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
@@ -1748,4 +1762,4 @@ declare interface FwTransactionsCardProps {
1748
1762
 
1749
1763
  declare module '@frollo/frollo-web-ui/icons' { }
1750
1764
 
1751
- export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$9 as FwAccordion, FwAccordionProps, _default$2 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$j as FwButton, FwButtonProps, _default$k as FwCard, FwCardProps, _default$m as FwCheckbox, FwCheckboxProps, _default$l as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$8 as FwImage, FwImageProps, _default$n as FwInput, FwInputProps, FwInputType, _default$7 as FwLoadingBar, _default$6 as FwLoadingCard, _default as FwLoadingSpinner, _default$5 as FwLoadingTable, _default$f as FwModal, FwModalProps, _default$i as FwNavigationMenu, _default$e as FwProgressBar, _default$1 as FwSidebarMenu, __default__ as FwSuccessPulse, _default$g as FwTab, _default$c as FwTable, FwTableFormatFunction, _default$b as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$a as FwTableRow, FwTableSort, _default$h as FwTabs, _default$d as FwTag, FwTagProps, _default$4 as FwToast, FwToastProps, _default$3 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, SidebarMenuItem, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
1765
+ export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$9 as FwAccordion, FwAccordionProps, _default$2 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$i as FwButton, FwButtonProps, _default$j as FwCard, FwCardProps, _default$l as FwCheckbox, FwCheckboxProps, _default$k as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$8 as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$7 as FwLoadingBar, _default$6 as FwLoadingCard, _default as FwLoadingSpinner, _default$5 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, _default$d as FwProgressBar, _default$1 as FwSidebarMenu, __default__ as FwSuccessPulse, _default$f as FwTab, __default__$2 as FwTable, FwTableFormatFunction, _default$b as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$a as FwTableRow, FwTableSort, _default$g as FwTabs, _default$c as FwTag, FwTagProps, _default$4 as FwToast, FwToastProps, _default$3 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, SidebarMenuItem, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "3.0.2",
3
+ "version": "4.0.0",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { FwTableItem, FwTableSort } from './index.types';
3
- declare const _default: import("vue").DefineComponent<{
3
+ declare const __default__: import("vue").DefineComponent<{
4
4
  items: {
5
5
  type: PropType<FwTableItem[]>;
6
6
  required: true;
@@ -13,6 +13,10 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
+ clickableRows: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
16
20
  }, {
17
21
  columns: import("vue").ComputedRef<string[]>;
18
22
  sortBy: import("vue").Ref<string>;
@@ -20,11 +24,13 @@ declare const _default: import("vue").DefineComponent<{
20
24
  sortColumn: (column: string) => void;
21
25
  sortedData: import("vue").ComputedRef<FwTableItem[]>;
22
26
  currentSortedColumn: import("vue").Ref<string>;
23
- sortedIcon: (sortDir: string, column: string) => "text-body" | "text-grey-light";
27
+ sortedIcon: (sortDir: string, column: string) => boolean;
24
28
  formattedText: (row: FwTableItem, column: string) => string | number;
25
29
  isColumnSortable: (column: string) => boolean | undefined;
26
30
  isDisabled: (column: string) => boolean;
27
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ rowClicked: (row: FwTableItem) => void;
32
+ bgHoverColor: string;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "rowClicked"[], "rowClicked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
34
  items: {
29
35
  type: PropType<FwTableItem[]>;
30
36
  required: true;
@@ -37,7 +43,14 @@ declare const _default: import("vue").DefineComponent<{
37
43
  type: BooleanConstructor;
38
44
  default: boolean;
39
45
  };
40
- }>>, {
46
+ clickableRows: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ }>> & {
51
+ onRowClicked?: ((...args: any[]) => any) | undefined;
52
+ }, {
41
53
  loading: boolean;
54
+ clickableRows: boolean;
42
55
  }>;
43
- export default _default;
56
+ export default __default__;
@@ -10,4 +10,5 @@ export declare interface FwTableProps {
10
10
  items: FwTableItem[];
11
11
  options?: FwTableItemOptions;
12
12
  loading?: boolean;
13
+ clickableRows?: boolean;
13
14
  }
@@ -30,4 +30,6 @@ import LoadingSvg from './loading.svg';
30
30
  import BullseyeSvg from './bullseye.svg';
31
31
  import SolidCheckSvg from './solid-check.svg';
32
32
  import SolidXMarkSvg from './solid-xmark.svg';
33
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg };
33
+ import ArrowSortSvg from './arrow-sort.svg';
34
+ import ArrowDownSvg from './arrow-down.svg';
35
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg };