@frollo/frollo-web-ui 3.0.2 → 4.0.1

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.
Files changed (40) hide show
  1. package/cjs/index.js +371 -247
  2. package/esm/{es.number.constructor-1249bd78.js → es.number.constructor-d6ff8874.js} +13 -4
  3. package/esm/{es.string.iterator-284b31d4.js → es.string.iterator-590198a8.js} +1 -2
  4. package/esm/fw-animations.js +3 -4
  5. package/esm/fw-bar-chart.js +3 -4
  6. package/esm/{fw-button-0401f207.js → fw-button-7902ae9e.js} +1 -1
  7. package/esm/fw-button.js +3 -3
  8. package/esm/fw-dropdown.js +1 -1
  9. package/esm/{fw-image-03f85465.js → fw-image-c829ed20.js} +3 -3
  10. package/esm/fw-image.js +4 -5
  11. package/esm/fw-input.js +25 -7
  12. package/esm/{fw-loading-spinner-164d8df0.js → fw-loading-spinner-7462e0b2.js} +1 -1
  13. package/esm/fw-loading.js +17 -17
  14. package/esm/fw-modal.js +3 -3
  15. package/esm/fw-navigation-menu.js +3 -3
  16. package/esm/fw-progress-bar.js +1 -2
  17. package/esm/fw-sidebar-menu.js +13 -9
  18. package/esm/fw-table.js +119 -52
  19. package/esm/fw-tabs.js +1 -2
  20. package/esm/fw-toast.js +2 -3
  21. package/esm/fw-transactions-card.js +4 -5
  22. package/esm/{index-692e4d19.js → index-dbe0534d.js} +137 -95
  23. package/esm/{index-1a41e7bf.js → index-f0510452.js} +2 -3
  24. package/esm/index.js +35 -36
  25. package/frollo-web-ui.esm.js +411 -279
  26. package/icons/arrow-down.svg +3 -0
  27. package/icons/arrow-sort.svg +3 -0
  28. package/icons/index.ts +7 -1
  29. package/icons/search.svg +3 -0
  30. package/index.d.ts +88 -20
  31. package/package.json +1 -1
  32. package/types/components/fw-input/fw-input.vue.d.ts +34 -0
  33. package/types/components/fw-input/index.types.d.ts +2 -0
  34. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +4 -3
  35. package/types/components/fw-sidebar-menu/index.types.d.ts +2 -1
  36. package/types/components/fw-table/fw-table.vue.d.ts +32 -5
  37. package/types/components/fw-table/index.types.d.ts +4 -1
  38. package/types/icons/index.d.ts +4 -1
  39. package/web-components/index.js +414 -282
  40. package/esm/to-string-12728fd2.js +0 -13
@@ -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,9 @@ 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';
35
+ import SearchSvg from './search.svg';
33
36
 
34
37
  export {
35
38
  ViewSvg,
@@ -63,5 +66,8 @@ export {
63
66
  LoadingSvg,
64
67
  BullseyeSvg,
65
68
  SolidCheckSvg,
66
- SolidXMarkSvg
69
+ SolidXMarkSvg,
70
+ ArrowSortSvg,
71
+ ArrowDownSvg,
72
+ SearchSvg
67
73
  };
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.7797 22.7203L17.1469 16.0875C18.6094 14.3813 19.4578 12.1734 19.4578 9.75C19.4578 4.36406 15.0924 0 9.70782 0C4.32329 0 0 4.36547 0 9.75C0 15.1345 4.36501 19.5 9.70782 19.5C12.1303 19.5 14.3414 18.6112 16.0453 17.1492L22.6781 23.782C22.8656 23.925 23.0578 24 23.25 24C23.4422 24 23.6338 23.9268 23.7802 23.7803C24.075 23.4891 24.075 23.0109 23.7797 22.7203ZM9.75001 18C5.16095 18 1.50001 14.2969 1.50001 9.75C1.50001 5.20312 5.16095 1.5 9.75001 1.5C14.3391 1.5 18 5.16094 18 9.75C18 14.3391 14.2969 18 9.75001 18Z" />
3
+ </svg>
package/index.d.ts CHANGED
@@ -18,9 +18,11 @@ declare interface FwInputProps {
18
18
  hint?: string;
19
19
  autocomplete?: string;
20
20
  tabindex?: string;
21
+ rounded?: boolean;
22
+ enableErrors?: boolean;
21
23
  }
22
24
 
23
- declare const _default$n: vue.DefineComponent<{
25
+ declare const _default$m: vue.DefineComponent<{
24
26
  /**
25
27
  * The input v-model
26
28
  */
@@ -89,6 +91,22 @@ declare const _default$n: vue.DefineComponent<{
89
91
  type: StringConstructor;
90
92
  default: string;
91
93
  };
94
+ /**
95
+ * Whether the input is rounded.
96
+ * Defaults to false
97
+ */
98
+ rounded: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ /**
103
+ * Enable the error section UI.
104
+ * Defaults to true
105
+ */
106
+ enableErrors: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
92
110
  }, {
93
111
  uuid: string;
94
112
  inputBaseClass: vue.Ref<string>;
@@ -162,6 +180,22 @@ declare const _default$n: vue.DefineComponent<{
162
180
  type: StringConstructor;
163
181
  default: string;
164
182
  };
183
+ /**
184
+ * Whether the input is rounded.
185
+ * Defaults to false
186
+ */
187
+ rounded: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ /**
192
+ * Enable the error section UI.
193
+ * Defaults to true
194
+ */
195
+ enableErrors: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
165
199
  }>> & {
166
200
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
167
201
  }, {
@@ -170,9 +204,11 @@ declare const _default$n: vue.DefineComponent<{
170
204
  placeholder: string;
171
205
  readonly: boolean;
172
206
  tabindex: string;
207
+ rounded: boolean;
208
+ enableErrors: boolean;
173
209
  }>;
174
210
 
175
- declare const _default$m: vue.DefineComponent<{
211
+ declare const _default$l: vue.DefineComponent<{
176
212
  /**
177
213
  * The name of the input field. Must be unique per form.
178
214
  */
@@ -241,7 +277,7 @@ declare interface FwDropdownProps {
241
277
  placeholder?: string;
242
278
  }
243
279
 
244
- declare const _default$l: vue.DefineComponent<{
280
+ declare const _default$k: vue.DefineComponent<{
245
281
  /**
246
282
  * The select v-model
247
283
  */
@@ -352,7 +388,7 @@ declare const _default$l: vue.DefineComponent<{
352
388
  placeholder: string;
353
389
  }>;
354
390
 
355
- declare const _default$k: vue.DefineComponent<{
391
+ declare const _default$j: vue.DefineComponent<{
356
392
  /**
357
393
  * The header title of the card
358
394
  */
@@ -461,7 +497,7 @@ declare interface FwButtonProps {
461
497
  external?: boolean;
462
498
  }
463
499
 
464
- declare const _default$j: vue.DefineComponent<{
500
+ declare const _default$i: vue.DefineComponent<{
465
501
  /**
466
502
  * A `router-link` path or object
467
503
  */
@@ -642,7 +678,7 @@ declare interface NavMenuItem {
642
678
  external?: boolean;
643
679
  }
644
680
 
645
- declare const _default$i: vue.DefineComponent<{
681
+ declare const _default$h: vue.DefineComponent<{
646
682
  /**
647
683
  * An array of menu items
648
684
  * `{ to?: string | object; href?: string; label: string; }`
@@ -697,7 +733,7 @@ declare const _default$i: vue.DefineComponent<{
697
733
  containerClass: string;
698
734
  }>;
699
735
 
700
- declare const _default$h: vue.DefineComponent<{
736
+ declare const _default$g: vue.DefineComponent<{
701
737
  /**
702
738
  * The active tab v-model
703
739
  */
@@ -721,7 +757,7 @@ declare const _default$h: vue.DefineComponent<{
721
757
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
722
758
  }, {}>;
723
759
 
724
- declare const _default$g: vue.DefineComponent<{
760
+ declare const _default$f: vue.DefineComponent<{
725
761
  /**
726
762
  * The label of the tab component used as the button panel label
727
763
  */
@@ -753,7 +789,7 @@ declare const _default$g: vue.DefineComponent<{
753
789
  };
754
790
  }>>, {}>;
755
791
 
756
- declare const _default$f: vue.DefineComponent<{
792
+ declare const _default$e: vue.DefineComponent<{
757
793
  /**
758
794
  * The modal's v-model. Controls the visibility of the modal.
759
795
  */
@@ -932,7 +968,7 @@ declare interface ProgressBarStep {
932
968
  subSteps: number;
933
969
  }
934
970
 
935
- declare const _default$e: vue.DefineComponent<{
971
+ declare const _default$d: vue.DefineComponent<{
936
972
  /**
937
973
  * An array of menu progress steps.
938
974
  * `{ label: string; position: number; subSteps: number; }`
@@ -999,7 +1035,7 @@ declare interface FwTagProps {
999
1035
  variant?: TagVariantName;
1000
1036
  }
1001
1037
 
1002
- declare const _default$d: vue.DefineComponent<{
1038
+ declare const _default$c: vue.DefineComponent<{
1003
1039
  /**
1004
1040
  * The size of the tag. Accepts: 'xs' & 'sm'
1005
1041
  */
@@ -1047,19 +1083,22 @@ declare const _default$d: vue.DefineComponent<{
1047
1083
 
1048
1084
  declare type FwTableItem = Record<string, string | number>;
1049
1085
  declare type FwTableFormatFunction = (value: string | number | object) => string;
1086
+ declare type FwTableSort = 'asc' | 'desc';
1050
1087
  declare type FwTableItemOptions = Record<string, {
1051
1088
  formatter?: FwTableFormatFunction;
1052
1089
  isSortable?: boolean;
1053
1090
  disabled?: boolean;
1091
+ initSortOrder?: FwTableSort;
1054
1092
  }>;
1055
- declare type FwTableSort = 'asc' | 'desc';
1056
1093
  declare interface FwTableProps {
1057
1094
  items: FwTableItem[];
1058
1095
  options?: FwTableItemOptions;
1059
1096
  loading?: boolean;
1097
+ clickableRows?: boolean;
1098
+ autoSortColumn?: number;
1060
1099
  }
1061
1100
 
1062
- declare const _default$c: vue.DefineComponent<{
1101
+ declare const __default__$2: vue.DefineComponent<{
1063
1102
  items: {
1064
1103
  type: PropType<FwTableItem[]>;
1065
1104
  required: true;
@@ -1072,6 +1111,17 @@ declare const _default$c: vue.DefineComponent<{
1072
1111
  type: BooleanConstructor;
1073
1112
  default: boolean;
1074
1113
  };
1114
+ /**
1115
+ * Enable click events on rows.
1116
+ * Emits row data when clicked
1117
+ */
1118
+ clickableRows: {
1119
+ type: BooleanConstructor;
1120
+ default: boolean;
1121
+ };
1122
+ autoSortColumn: {
1123
+ type: NumberConstructor;
1124
+ };
1075
1125
  }, {
1076
1126
  columns: vue.ComputedRef<string[]>;
1077
1127
  sortBy: vue.Ref<string>;
@@ -1079,11 +1129,13 @@ declare const _default$c: vue.DefineComponent<{
1079
1129
  sortColumn: (column: string) => void;
1080
1130
  sortedData: vue.ComputedRef<FwTableItem[]>;
1081
1131
  currentSortedColumn: vue.Ref<string>;
1082
- sortedIcon: (sortDir: string, column: string) => "text-body" | "text-grey-light";
1132
+ sortedIcon: (sortDir: string, column: string) => boolean;
1083
1133
  formattedText: (row: FwTableItem, column: string) => string | number;
1084
1134
  isColumnSortable: (column: string) => boolean | undefined;
1085
1135
  isDisabled: (column: string) => boolean;
1086
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1136
+ rowClicked: (row: FwTableItem) => void;
1137
+ bgHoverColor: string;
1138
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "rowClicked"[], "rowClicked", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1087
1139
  items: {
1088
1140
  type: PropType<FwTableItem[]>;
1089
1141
  required: true;
@@ -1096,8 +1148,22 @@ declare const _default$c: vue.DefineComponent<{
1096
1148
  type: BooleanConstructor;
1097
1149
  default: boolean;
1098
1150
  };
1099
- }>>, {
1151
+ /**
1152
+ * Enable click events on rows.
1153
+ * Emits row data when clicked
1154
+ */
1155
+ clickableRows: {
1156
+ type: BooleanConstructor;
1157
+ default: boolean;
1158
+ };
1159
+ autoSortColumn: {
1160
+ type: NumberConstructor;
1161
+ };
1162
+ }>> & {
1163
+ onRowClicked?: ((...args: any[]) => any) | undefined;
1164
+ }, {
1100
1165
  loading: boolean;
1166
+ clickableRows: boolean;
1101
1167
  }>;
1102
1168
 
1103
1169
  declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
@@ -1548,11 +1614,12 @@ declare const _default$2: vue.DefineComponent<{
1548
1614
  };
1549
1615
  }>>, {}>;
1550
1616
 
1551
- declare interface SidebarMenuItem {
1617
+ declare interface FwSidebarMenuItem {
1552
1618
  to?: string | object;
1553
1619
  href?: string;
1554
1620
  label: string;
1555
1621
  external?: boolean;
1622
+ disabled?: boolean;
1556
1623
  }
1557
1624
 
1558
1625
  declare const _default$1: vue.DefineComponent<{
@@ -1561,7 +1628,7 @@ declare const _default$1: vue.DefineComponent<{
1561
1628
  * `{ to?: string | object; href?: string; label: string; }`
1562
1629
  */
1563
1630
  menuItems: {
1564
- type: PropType<SidebarMenuItem[]>;
1631
+ type: PropType<FwSidebarMenuItem[]>;
1565
1632
  };
1566
1633
  /**
1567
1634
  * The class for the open/close toggle button
@@ -1585,6 +1652,7 @@ declare const _default$1: vue.DefineComponent<{
1585
1652
  default: string;
1586
1653
  };
1587
1654
  }, {
1655
+ baseClass: string;
1588
1656
  isMenuOpen: vue.Ref<boolean>;
1589
1657
  toggleMenu: () => void;
1590
1658
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "toggled"[], "toggled", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
@@ -1593,7 +1661,7 @@ declare const _default$1: vue.DefineComponent<{
1593
1661
  * `{ to?: string | object; href?: string; label: string; }`
1594
1662
  */
1595
1663
  menuItems: {
1596
- type: PropType<SidebarMenuItem[]>;
1664
+ type: PropType<FwSidebarMenuItem[]>;
1597
1665
  };
1598
1666
  /**
1599
1667
  * The class for the open/close toggle button
@@ -1748,4 +1816,4 @@ declare interface FwTransactionsCardProps {
1748
1816
 
1749
1817
  declare module '@frollo/frollo-web-ui/icons' { }
1750
1818
 
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 };
1819
+ 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, FwSidebarMenuItem, __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, 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.1",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -69,6 +69,22 @@ declare const _default: import("vue").DefineComponent<{
69
69
  type: StringConstructor;
70
70
  default: string;
71
71
  };
72
+ /**
73
+ * Whether the input is rounded.
74
+ * Defaults to false
75
+ */
76
+ rounded: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ /**
81
+ * Enable the error section UI.
82
+ * Defaults to true
83
+ */
84
+ enableErrors: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
72
88
  }, {
73
89
  uuid: string;
74
90
  inputBaseClass: import("vue").Ref<string>;
@@ -142,6 +158,22 @@ declare const _default: import("vue").DefineComponent<{
142
158
  type: StringConstructor;
143
159
  default: string;
144
160
  };
161
+ /**
162
+ * Whether the input is rounded.
163
+ * Defaults to false
164
+ */
165
+ rounded: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
169
+ /**
170
+ * Enable the error section UI.
171
+ * Defaults to true
172
+ */
173
+ enableErrors: {
174
+ type: BooleanConstructor;
175
+ default: boolean;
176
+ };
145
177
  }>> & {
146
178
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
147
179
  }, {
@@ -150,5 +182,7 @@ declare const _default: import("vue").DefineComponent<{
150
182
  placeholder: string;
151
183
  readonly: boolean;
152
184
  tabindex: string;
185
+ rounded: boolean;
186
+ enableErrors: boolean;
153
187
  }>;
154
188
  export default _default;
@@ -10,4 +10,6 @@ export declare interface FwInputProps {
10
10
  hint?: string;
11
11
  autocomplete?: string;
12
12
  tabindex?: string;
13
+ rounded?: boolean;
14
+ enableErrors?: boolean;
13
15
  }
@@ -1,12 +1,12 @@
1
1
  import { PropType } from 'vue';
2
- import { SidebarMenuItem } from './index.types';
2
+ import { FwSidebarMenuItem } from './index.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  /**
5
5
  * An array of menu items
6
6
  * `{ to?: string | object; href?: string; label: string; }`
7
7
  */
8
8
  menuItems: {
9
- type: PropType<SidebarMenuItem[]>;
9
+ type: PropType<FwSidebarMenuItem[]>;
10
10
  };
11
11
  /**
12
12
  * The class for the open/close toggle button
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  default: string;
31
31
  };
32
32
  }, {
33
+ baseClass: string;
33
34
  isMenuOpen: import("vue").Ref<boolean>;
34
35
  toggleMenu: () => void;
35
36
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -38,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
38
39
  * `{ to?: string | object; href?: string; label: string; }`
39
40
  */
40
41
  menuItems: {
41
- type: PropType<SidebarMenuItem[]>;
42
+ type: PropType<FwSidebarMenuItem[]>;
42
43
  };
43
44
  /**
44
45
  * The class for the open/close toggle button
@@ -1,6 +1,7 @@
1
- export declare interface SidebarMenuItem {
1
+ export declare interface FwSidebarMenuItem {
2
2
  to?: string | object;
3
3
  href?: string;
4
4
  label: string;
5
5
  external?: boolean;
6
+ disabled?: boolean;
6
7
  }
@@ -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,17 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
+ /**
17
+ * Enable click events on rows.
18
+ * Emits row data when clicked
19
+ */
20
+ clickableRows: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ autoSortColumn: {
25
+ type: NumberConstructor;
26
+ };
16
27
  }, {
17
28
  columns: import("vue").ComputedRef<string[]>;
18
29
  sortBy: import("vue").Ref<string>;
@@ -20,11 +31,13 @@ declare const _default: import("vue").DefineComponent<{
20
31
  sortColumn: (column: string) => void;
21
32
  sortedData: import("vue").ComputedRef<FwTableItem[]>;
22
33
  currentSortedColumn: import("vue").Ref<string>;
23
- sortedIcon: (sortDir: string, column: string) => "text-body" | "text-grey-light";
34
+ sortedIcon: (sortDir: string, column: string) => boolean;
24
35
  formattedText: (row: FwTableItem, column: string) => string | number;
25
36
  isColumnSortable: (column: string) => boolean | undefined;
26
37
  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<{
38
+ rowClicked: (row: FwTableItem) => void;
39
+ bgHoverColor: string;
40
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "rowClicked"[], "rowClicked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
41
  items: {
29
42
  type: PropType<FwTableItem[]>;
30
43
  required: true;
@@ -37,7 +50,21 @@ declare const _default: import("vue").DefineComponent<{
37
50
  type: BooleanConstructor;
38
51
  default: boolean;
39
52
  };
40
- }>>, {
53
+ /**
54
+ * Enable click events on rows.
55
+ * Emits row data when clicked
56
+ */
57
+ clickableRows: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ autoSortColumn: {
62
+ type: NumberConstructor;
63
+ };
64
+ }>> & {
65
+ onRowClicked?: ((...args: any[]) => any) | undefined;
66
+ }, {
41
67
  loading: boolean;
68
+ clickableRows: boolean;
42
69
  }>;
43
- export default _default;
70
+ export default __default__;
@@ -1,13 +1,16 @@
1
1
  export declare type FwTableItem = Record<string, string | number>;
2
2
  export declare type FwTableFormatFunction = (value: string | number | object) => string;
3
+ export declare type FwTableSort = 'asc' | 'desc';
3
4
  export declare type FwTableItemOptions = Record<string, {
4
5
  formatter?: FwTableFormatFunction;
5
6
  isSortable?: boolean;
6
7
  disabled?: boolean;
8
+ initSortOrder?: FwTableSort;
7
9
  }>;
8
- export declare type FwTableSort = 'asc' | 'desc';
9
10
  export declare interface FwTableProps {
10
11
  items: FwTableItem[];
11
12
  options?: FwTableItemOptions;
12
13
  loading?: boolean;
14
+ clickableRows?: boolean;
15
+ autoSortColumn?: number;
13
16
  }
@@ -30,4 +30,7 @@ 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
+ import SearchSvg from './search.svg';
36
+ 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, SearchSvg };