@frollo/frollo-web-ui 4.0.0 → 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 (38) hide show
  1. package/cjs/index.js +265 -208
  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-e8b1bd62.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-3fa960e1.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-304e2f95.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 +60 -38
  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-c6458115.js → index-dbe0534d.js} +113 -99
  23. package/esm/{index-1a41e7bf.js → index-f0510452.js} +2 -3
  24. package/esm/index.js +11 -12
  25. package/frollo-web-ui.esm.js +268 -209
  26. package/icons/index.ts +3 -1
  27. package/icons/search.svg +3 -0
  28. package/index.d.ts +59 -5
  29. package/package.json +1 -1
  30. package/types/components/fw-input/fw-input.vue.d.ts +34 -0
  31. package/types/components/fw-input/index.types.d.ts +2 -0
  32. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +4 -3
  33. package/types/components/fw-sidebar-menu/index.types.d.ts +2 -1
  34. package/types/components/fw-table/fw-table.vue.d.ts +14 -0
  35. package/types/components/fw-table/index.types.d.ts +3 -1
  36. package/types/icons/index.d.ts +2 -1
  37. package/web-components/index.js +272 -213
  38. package/esm/to-string-12728fd2.js +0 -13
package/icons/index.ts CHANGED
@@ -32,6 +32,7 @@ import SolidCheckSvg from './solid-check.svg';
32
32
  import SolidXMarkSvg from './solid-xmark.svg';
33
33
  import ArrowSortSvg from './arrow-sort.svg';
34
34
  import ArrowDownSvg from './arrow-down.svg';
35
+ import SearchSvg from './search.svg';
35
36
 
36
37
  export {
37
38
  ViewSvg,
@@ -67,5 +68,6 @@ export {
67
68
  SolidCheckSvg,
68
69
  SolidXMarkSvg,
69
70
  ArrowSortSvg,
70
- ArrowDownSvg
71
+ ArrowDownSvg,
72
+ SearchSvg
71
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,6 +18,8 @@ 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
25
  declare const _default$m: vue.DefineComponent<{
@@ -89,6 +91,22 @@ declare const _default$m: 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$m: 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,6 +204,8 @@ declare const _default$m: 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
211
  declare const _default$l: vue.DefineComponent<{
@@ -1047,17 +1083,19 @@ declare const _default$c: 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;
1060
1097
  clickableRows?: boolean;
1098
+ autoSortColumn?: number;
1061
1099
  }
1062
1100
 
1063
1101
  declare const __default__$2: vue.DefineComponent<{
@@ -1073,10 +1111,17 @@ declare const __default__$2: vue.DefineComponent<{
1073
1111
  type: BooleanConstructor;
1074
1112
  default: boolean;
1075
1113
  };
1114
+ /**
1115
+ * Enable click events on rows.
1116
+ * Emits row data when clicked
1117
+ */
1076
1118
  clickableRows: {
1077
1119
  type: BooleanConstructor;
1078
1120
  default: boolean;
1079
1121
  };
1122
+ autoSortColumn: {
1123
+ type: NumberConstructor;
1124
+ };
1080
1125
  }, {
1081
1126
  columns: vue.ComputedRef<string[]>;
1082
1127
  sortBy: vue.Ref<string>;
@@ -1103,10 +1148,17 @@ declare const __default__$2: vue.DefineComponent<{
1103
1148
  type: BooleanConstructor;
1104
1149
  default: boolean;
1105
1150
  };
1151
+ /**
1152
+ * Enable click events on rows.
1153
+ * Emits row data when clicked
1154
+ */
1106
1155
  clickableRows: {
1107
1156
  type: BooleanConstructor;
1108
1157
  default: boolean;
1109
1158
  };
1159
+ autoSortColumn: {
1160
+ type: NumberConstructor;
1161
+ };
1110
1162
  }>> & {
1111
1163
  onRowClicked?: ((...args: any[]) => any) | undefined;
1112
1164
  }, {
@@ -1562,11 +1614,12 @@ declare const _default$2: vue.DefineComponent<{
1562
1614
  };
1563
1615
  }>>, {}>;
1564
1616
 
1565
- declare interface SidebarMenuItem {
1617
+ declare interface FwSidebarMenuItem {
1566
1618
  to?: string | object;
1567
1619
  href?: string;
1568
1620
  label: string;
1569
1621
  external?: boolean;
1622
+ disabled?: boolean;
1570
1623
  }
1571
1624
 
1572
1625
  declare const _default$1: vue.DefineComponent<{
@@ -1575,7 +1628,7 @@ declare const _default$1: vue.DefineComponent<{
1575
1628
  * `{ to?: string | object; href?: string; label: string; }`
1576
1629
  */
1577
1630
  menuItems: {
1578
- type: PropType<SidebarMenuItem[]>;
1631
+ type: PropType<FwSidebarMenuItem[]>;
1579
1632
  };
1580
1633
  /**
1581
1634
  * The class for the open/close toggle button
@@ -1599,6 +1652,7 @@ declare const _default$1: vue.DefineComponent<{
1599
1652
  default: string;
1600
1653
  };
1601
1654
  }, {
1655
+ baseClass: string;
1602
1656
  isMenuOpen: vue.Ref<boolean>;
1603
1657
  toggleMenu: () => void;
1604
1658
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "toggled"[], "toggled", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
@@ -1607,7 +1661,7 @@ declare const _default$1: vue.DefineComponent<{
1607
1661
  * `{ to?: string | object; href?: string; label: string; }`
1608
1662
  */
1609
1663
  menuItems: {
1610
- type: PropType<SidebarMenuItem[]>;
1664
+ type: PropType<FwSidebarMenuItem[]>;
1611
1665
  };
1612
1666
  /**
1613
1667
  * The class for the open/close toggle button
@@ -1762,4 +1816,4 @@ declare interface FwTransactionsCardProps {
1762
1816
 
1763
1817
  declare module '@frollo/frollo-web-ui/icons' { }
1764
1818
 
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 };
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": "4.0.0",
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
  }
@@ -13,10 +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
+ */
16
20
  clickableRows: {
17
21
  type: BooleanConstructor;
18
22
  default: boolean;
19
23
  };
24
+ autoSortColumn: {
25
+ type: NumberConstructor;
26
+ };
20
27
  }, {
21
28
  columns: import("vue").ComputedRef<string[]>;
22
29
  sortBy: import("vue").Ref<string>;
@@ -43,10 +50,17 @@ declare const __default__: import("vue").DefineComponent<{
43
50
  type: BooleanConstructor;
44
51
  default: boolean;
45
52
  };
53
+ /**
54
+ * Enable click events on rows.
55
+ * Emits row data when clicked
56
+ */
46
57
  clickableRows: {
47
58
  type: BooleanConstructor;
48
59
  default: boolean;
49
60
  };
61
+ autoSortColumn: {
62
+ type: NumberConstructor;
63
+ };
50
64
  }>> & {
51
65
  onRowClicked?: ((...args: any[]) => any) | undefined;
52
66
  }, {
@@ -1,14 +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;
13
14
  clickableRows?: boolean;
15
+ autoSortColumn?: number;
14
16
  }
@@ -32,4 +32,5 @@ import SolidCheckSvg from './solid-check.svg';
32
32
  import SolidXMarkSvg from './solid-xmark.svg';
33
33
  import ArrowSortSvg from './arrow-sort.svg';
34
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 };
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 };