@frollo/frollo-web-ui 7.0.1 → 8.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.
Files changed (172) hide show
  1. package/cjs/index.js +34615 -34451
  2. package/esm/_rollupPluginBabelHelpers-DpC_oIQV.js +2566 -0
  3. package/esm/{check-94a5917a.js → check--YD4Ts6g.js} +4 -4
  4. package/esm/fw-accordion.js +27 -26
  5. package/esm/fw-animations.js +23 -26
  6. package/esm/fw-bar-chart.js +15289 -19
  7. package/esm/{fw-button-c8502414.js → fw-button-4QLZlu0U.js} +44 -44
  8. package/esm/fw-button.js +5 -10
  9. package/esm/{fw-card-1b6a67fe.js → fw-card-bsYbpPmW.js} +12 -12
  10. package/esm/fw-card.js +1 -1
  11. package/esm/fw-checkbox.js +23 -32
  12. package/esm/fw-date-picker.js +137 -80
  13. package/esm/fw-drawer.js +31 -34
  14. package/esm/fw-dropdown-nLtzu2fS.js +277 -0
  15. package/esm/fw-dropdown.js +7 -15
  16. package/esm/fw-form.js +1 -1
  17. package/esm/fw-image-DOgM8i8X.js +200 -0
  18. package/esm/fw-image.js +5 -21
  19. package/esm/{fw-input-8969b226.js → fw-input-Qiy53nRk.js} +61 -53
  20. package/esm/fw-input.js +6 -19
  21. package/esm/fw-loading-bar-DThRjdw1.js +22 -0
  22. package/esm/{fw-loading-spinner-72d70258.js → fw-loading-spinner-Dn52RI5h.js} +1 -1
  23. package/esm/fw-loading.js +3 -7
  24. package/esm/fw-modal.js +79 -53
  25. package/esm/fw-navigation-menu.js +15 -20
  26. package/esm/fw-popover.js +39 -375
  27. package/esm/fw-progress-bar.js +8 -11
  28. package/esm/fw-provider-list.js +41 -84
  29. package/esm/fw-sidebar-menu.js +33 -24
  30. package/esm/{fw-table-row-23f78218.js → fw-table-row-DkZaaMmE.js} +15 -301
  31. package/esm/fw-table.js +6 -16
  32. package/esm/fw-tabs.js +21 -103
  33. package/esm/{fw-tag-ac28200a.js → fw-tag-CPp1P480.js} +29 -20
  34. package/esm/fw-tag.js +7 -12
  35. package/esm/fw-toast.js +22 -37
  36. package/esm/fw-transactions-card.js +14 -30
  37. package/esm/index-CUPvK0Aa.js +586 -0
  38. package/esm/index.js +66 -228
  39. package/esm/vee-validate.esm-3ptvCDR1.js +4071 -0
  40. package/frollo-web-ui.esm.js +34134 -34388
  41. package/icons/chart-line-up.svg +3 -0
  42. package/icons/icons.stories.ts +24 -29
  43. package/icons/index.ts +5 -1
  44. package/icons/sack-dollar.svg +3 -0
  45. package/icons/xmark.svg +2 -2
  46. package/index.d.ts +2789 -2573
  47. package/package.json +75 -73
  48. package/styles/tailwind.scss +6 -0
  49. package/types/components/fw-accordion/fw-accordion.vue.d.ts +128 -128
  50. package/types/components/fw-accordion/index.d.ts +2 -2
  51. package/types/components/fw-accordion/index.types.d.ts +10 -10
  52. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -24
  53. package/types/components/fw-animations/fw-loading-spinner.vue.d.ts +2 -2
  54. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -24
  55. package/types/components/fw-animations/index.d.ts +4 -4
  56. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -83
  57. package/types/components/fw-bar-chart/index.d.ts +2 -2
  58. package/types/components/fw-bar-chart/index.types.d.ts +11 -11
  59. package/types/components/fw-button/fw-button.vue.d.ts +190 -176
  60. package/types/components/fw-button/index.d.ts +2 -2
  61. package/types/components/fw-button/index.types.d.ts +27 -26
  62. package/types/components/fw-card/fw-card.vue.d.ts +82 -82
  63. package/types/components/fw-card/index.d.ts +2 -2
  64. package/types/components/fw-card/index.types.d.ts +8 -8
  65. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +108 -108
  66. package/types/components/fw-checkbox/index.d.ts +2 -2
  67. package/types/components/fw-checkbox/index.types.d.ts +9 -9
  68. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +249 -177
  69. package/types/components/fw-date-picker/index.d.ts +2 -2
  70. package/types/components/fw-date-picker/index.types.d.ts +21 -16
  71. package/types/components/fw-drawer/fw-drawer.vue.d.ts +165 -165
  72. package/types/components/fw-drawer/index.d.ts +2 -2
  73. package/types/components/fw-drawer/index.types.d.ts +13 -13
  74. package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +154 -130
  75. package/types/components/fw-dropdown/index.d.ts +2 -2
  76. package/types/components/fw-dropdown/index.types.d.ts +16 -13
  77. package/types/components/fw-form/index.d.ts +2 -2
  78. package/types/components/fw-image/fw-image.vue.d.ts +103 -84
  79. package/types/components/fw-image/index.d.ts +2 -2
  80. package/types/components/fw-image/index.types.d.ts +9 -8
  81. package/types/components/fw-input/fw-input.vue.d.ts +214 -197
  82. package/types/components/fw-input/index.d.ts +2 -2
  83. package/types/components/fw-input/index.types.d.ts +18 -16
  84. package/types/components/fw-loading/fw-loading-bar.vue.d.ts +2 -2
  85. package/types/components/fw-loading/fw-loading-card.vue.d.ts +2 -2
  86. package/types/components/fw-loading/fw-loading-table.vue.d.ts +25 -25
  87. package/types/components/fw-loading/index.d.ts +4 -4
  88. package/types/components/fw-modal/fw-modal.vue.d.ts +205 -175
  89. package/types/components/fw-modal/index.d.ts +2 -2
  90. package/types/components/fw-modal/index.types.d.ts +16 -14
  91. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +57 -57
  92. package/types/components/fw-navigation-menu/index.d.ts +2 -2
  93. package/types/components/fw-navigation-menu/index.types.d.ts +7 -7
  94. package/types/components/fw-popover/fw-popover.vue.d.ts +157 -157
  95. package/types/components/fw-popover/index.d.ts +2 -2
  96. package/types/components/fw-popover/index.types.d.ts +11 -11
  97. package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +52 -52
  98. package/types/components/fw-progress-bar/index.d.ts +2 -2
  99. package/types/components/fw-progress-bar/index.types.d.ts +5 -5
  100. package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +100 -100
  101. package/types/components/fw-provider-list/index.d.ts +2 -2
  102. package/types/components/fw-provider-list/index.types.d.ts +11 -11
  103. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +88 -72
  104. package/types/components/fw-sidebar-menu/index.d.ts +2 -2
  105. package/types/components/fw-sidebar-menu/index.types.d.ts +9 -8
  106. package/types/components/fw-table/fw-table-head.vue.d.ts +2 -2
  107. package/types/components/fw-table/fw-table-row.vue.d.ts +2 -2
  108. package/types/components/fw-table/fw-table.vue.d.ts +71 -71
  109. package/types/components/fw-table/index.d.ts +4 -4
  110. package/types/components/fw-table/index.types.d.ts +16 -16
  111. package/types/components/fw-tabs/fw-tab.vue.d.ts +24 -32
  112. package/types/components/fw-tabs/fw-tabs.vue.d.ts +24 -24
  113. package/types/components/fw-tabs/index.d.ts +3 -3
  114. package/types/components/fw-tabs/index.types.d.ts +8 -0
  115. package/types/components/fw-tag/fw-tag.vue.d.ts +80 -70
  116. package/types/components/fw-tag/index.d.ts +2 -2
  117. package/types/components/fw-tag/index.types.d.ts +18 -18
  118. package/types/components/fw-toast/fw-toast.vue.d.ts +121 -121
  119. package/types/components/fw-toast/index.d.ts +2 -2
  120. package/types/components/fw-toast/index.types.d.ts +13 -13
  121. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -58
  122. package/types/components/fw-transactions-card/index.d.ts +2 -2
  123. package/types/components/fw-transactions-card/index.types.d.ts +6 -6
  124. package/types/components/index.d.ts +24 -24
  125. package/types/components/index.types.d.ts +21 -20
  126. package/types/directives/index.d.ts +2 -2
  127. package/types/directives/lazy-loader.d.ts +3 -3
  128. package/types/helpers/get-root-colours.d.ts +17 -17
  129. package/types/icons/index.d.ts +43 -41
  130. package/types/index-types.esm.d.ts +6 -6
  131. package/types/index.browser-umd.d.ts +2 -1
  132. package/types/index.d.ts +3 -3
  133. package/types/index.esm.d.ts +5 -5
  134. package/types/services/index.d.ts +2 -2
  135. package/types/services/modal.d.ts +9 -9
  136. package/types/services/toast.d.ts +9 -9
  137. package/web-components/index.js +19662 -19720
  138. package/esm/add-to-unscopables-ee05b58f.js +0 -25
  139. package/esm/array-iteration-8267bf22.js +0 -92
  140. package/esm/array-method-has-species-support-6c675094.js +0 -23
  141. package/esm/array-method-is-strict-d313436f.js +0 -14
  142. package/esm/array-species-create-1c67e297.js +0 -97
  143. package/esm/classof-d44bf093.js +0 -42
  144. package/esm/create-property-eb329361.js +0 -14
  145. package/esm/defineProperty-b85f2e0f.js +0 -42
  146. package/esm/does-not-exceed-safe-integer-de37ce28.js +0 -11
  147. package/esm/es.array.concat-99b85557.js +0 -69
  148. package/esm/es.array.find-1ded15d5.js +0 -28
  149. package/esm/es.array.includes-08e25019.js +0 -27
  150. package/esm/es.array.map-c56ebffd.js +0 -22
  151. package/esm/es.date.to-string-15eb9936.js +0 -23
  152. package/esm/es.function.name-6cafd747.js +0 -29
  153. package/esm/es.number.constructor-fb16fe05.js +0 -204
  154. package/esm/es.object.to-string-4b07c4d1.js +0 -24
  155. package/esm/es.string.includes-061e8272.js +0 -66
  156. package/esm/es.string.iterator-25db8cd2.js +0 -469
  157. package/esm/export-10c4adbc.js +0 -95
  158. package/esm/function-apply-e17cf65b.js +0 -14
  159. package/esm/fw-dropdown-6856e66e.js +0 -224
  160. package/esm/fw-image-aca2c61d.js +0 -296
  161. package/esm/fw-loading-bar-f5ca605c.js +0 -22
  162. package/esm/index-6758f755.js +0 -15797
  163. package/esm/index-bced3b35.js +0 -560
  164. package/esm/is-forced-7cb3ee8f.js +0 -927
  165. package/esm/object-create-51bf02dc.js +0 -125
  166. package/esm/regexp-flags-c09864e5.js +0 -50
  167. package/esm/vee-validate.esm-a17a23c3.js +0 -3192
  168. package/esm/web.timers-e406c8e6.js +0 -72
  169. /package/esm/{get-root-colours-865a52ba.js → get-root-colours-DYEoJPEb.js} +0 -0
  170. /package/esm/{index-0c5cae4f.js → index-BVcOAKar.js} +0 -0
  171. /package/esm/{style-inject.es-1f59c1d0.js → style-inject.es-tgCJW-Cu.js} +0 -0
  172. /package/esm/{uniqueId-fe08534a.js → uniqueId-DK6xzFd8.js} +0 -0
@@ -1,13 +1,16 @@
1
- export declare interface FwDropdownOption {
2
- label: string;
3
- value: string;
4
- }
5
- export declare interface FwDropdownProps {
6
- name: string;
7
- label?: string;
8
- rules?: string | Record<string, unknown> | (() => boolean);
9
- options: FwDropdownOption[];
10
- hint?: string;
11
- placeholder?: string;
12
- enableErrors?: boolean;
13
- }
1
+ export declare interface FwDropdownOption {
2
+ label: string;
3
+ value: string;
4
+ image_url?: string;
5
+ description?: string;
6
+ }
7
+ export declare interface FwDropdownProps {
8
+ name: string;
9
+ label?: string;
10
+ rules?: string | Record<string, unknown> | (() => boolean);
11
+ options: FwDropdownOption[];
12
+ hint?: string;
13
+ placeholder?: string;
14
+ enableErrors?: boolean;
15
+ required?: boolean;
16
+ }
@@ -1,2 +1,2 @@
1
- import { Form as FwForm } from 'vee-validate';
2
- export { FwForm };
1
+ import { Form as FwForm } from 'vee-validate';
2
+ export { FwForm };
@@ -1,84 +1,103 @@
1
- import { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- /**
4
- * The src attribute of the image
5
- */
6
- src: StringConstructor;
7
- /**
8
- * The alt attribute of the image
9
- */
10
- alt: StringConstructor;
11
- /**
12
- * The type of component. Accepts 'background' and defaults to the native html5 element.
13
- */
14
- type: {
15
- type: PropType<"native" | "background" | undefined>;
16
- default: string;
17
- validator: (value: string) => boolean;
18
- };
19
- /**
20
- * Whether the loading bar and error state are rounded.
21
- */
22
- rounded: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- /**
27
- * The class for the native image element
28
- */
29
- imageClass: {
30
- type: StringConstructor;
31
- };
32
- /**
33
- * Controls the threshold before the component triggers the src url.
34
- */
35
- threshold: {
36
- type: NumberConstructor;
37
- default: number;
38
- };
39
- }, {
40
- fwImageRef: import("vue").Ref<null>;
41
- isBackground: import("vue").ComputedRef<boolean>;
42
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
- /**
44
- * The src attribute of the image
45
- */
46
- src: StringConstructor;
47
- /**
48
- * The alt attribute of the image
49
- */
50
- alt: StringConstructor;
51
- /**
52
- * The type of component. Accepts 'background' and defaults to the native html5 element.
53
- */
54
- type: {
55
- type: PropType<"native" | "background" | undefined>;
56
- default: string;
57
- validator: (value: string) => boolean;
58
- };
59
- /**
60
- * Whether the loading bar and error state are rounded.
61
- */
62
- rounded: {
63
- type: BooleanConstructor;
64
- default: boolean;
65
- };
66
- /**
67
- * The class for the native image element
68
- */
69
- imageClass: {
70
- type: StringConstructor;
71
- };
72
- /**
73
- * Controls the threshold before the component triggers the src url.
74
- */
75
- threshold: {
76
- type: NumberConstructor;
77
- default: number;
78
- };
79
- }>>, {
80
- type: "native" | "background" | undefined;
81
- rounded: boolean;
82
- threshold: number;
83
- }>;
84
- export default _default;
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ /**
4
+ * The src attribute of the image
5
+ */
6
+ src: StringConstructor;
7
+ /**
8
+ * The alt attribute of the image
9
+ */
10
+ alt: StringConstructor;
11
+ /**
12
+ * The type of component. Accepts 'background' and defaults to the native html5 element.
13
+ */
14
+ type: {
15
+ type: PropType<"native" | "background" | undefined>;
16
+ default: string;
17
+ validator: (value: string) => boolean;
18
+ };
19
+ /**
20
+ * Whether the loading bar and error state are rounded.
21
+ */
22
+ rounded: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ /**
27
+ * The class for the native image element
28
+ */
29
+ imageClass: {
30
+ type: StringConstructor;
31
+ };
32
+ /**
33
+ * Controls the threshold before the component triggers the src url.
34
+ */
35
+ threshold: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ /**
40
+ * Controls the error UI when an image src is unavailable.
41
+ */
42
+ enableErrors: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ }, {
47
+ fwImageRef: import("vue").Ref<null>;
48
+ isBackground: import("vue").ComputedRef<boolean>;
49
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover" | "mouseout")[], "click" | "mouseover" | "mouseout", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
50
+ /**
51
+ * The src attribute of the image
52
+ */
53
+ src: StringConstructor;
54
+ /**
55
+ * The alt attribute of the image
56
+ */
57
+ alt: StringConstructor;
58
+ /**
59
+ * The type of component. Accepts 'background' and defaults to the native html5 element.
60
+ */
61
+ type: {
62
+ type: PropType<"native" | "background" | undefined>;
63
+ default: string;
64
+ validator: (value: string) => boolean;
65
+ };
66
+ /**
67
+ * Whether the loading bar and error state are rounded.
68
+ */
69
+ rounded: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ /**
74
+ * The class for the native image element
75
+ */
76
+ imageClass: {
77
+ type: StringConstructor;
78
+ };
79
+ /**
80
+ * Controls the threshold before the component triggers the src url.
81
+ */
82
+ threshold: {
83
+ type: NumberConstructor;
84
+ default: number;
85
+ };
86
+ /**
87
+ * Controls the error UI when an image src is unavailable.
88
+ */
89
+ enableErrors: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ }>> & {
94
+ onClick?: ((...args: any[]) => any) | undefined;
95
+ onMouseover?: ((...args: any[]) => any) | undefined;
96
+ onMouseout?: ((...args: any[]) => any) | undefined;
97
+ }, {
98
+ type: "native" | "background" | undefined;
99
+ rounded: boolean;
100
+ threshold: number;
101
+ enableErrors: boolean;
102
+ }, {}>;
103
+ export default _default;
@@ -1,2 +1,2 @@
1
- import FwImage from './fw-image.vue';
2
- export { FwImage };
1
+ import FwImage from './fw-image.vue';
2
+ export { FwImage };
@@ -1,8 +1,9 @@
1
- export declare interface FwImageProps {
2
- src?: string;
3
- alt?: string;
4
- type?: 'native' | 'background';
5
- rounded?: boolean;
6
- imageClass?: string;
7
- threshold?: number;
8
- }
1
+ export declare interface FwImageProps {
2
+ src?: string;
3
+ alt?: string;
4
+ type?: 'native' | 'background';
5
+ rounded?: boolean;
6
+ imageClass?: string;
7
+ threshold?: number;
8
+ enableErrors?: boolean;
9
+ }
@@ -1,197 +1,214 @@
1
- import { PropType } from 'vue';
2
- import { FwInputType } from './index.types';
3
- declare const _default: import("vue").DefineComponent<{
4
- /**
5
- * The input v-model
6
- */
7
- modelValue: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- /**
12
- * The name of the input field. Must be unique per form.
13
- */
14
- name: {
15
- type: StringConstructor;
16
- required: true;
17
- };
18
- /**
19
- * The input type. Accepts `text` | `password`
20
- */
21
- type: {
22
- type: PropType<FwInputType>;
23
- default: string;
24
- validator: (value: string) => boolean;
25
- };
26
- /**
27
- * Label for the input. Also renders to an aria-label attribute
28
- */
29
- label: {
30
- type: StringConstructor;
31
- };
32
- /**
33
- * The placeholder text of the input
34
- */
35
- placeholder: {
36
- type: StringConstructor;
37
- };
38
- /**
39
- * Validation rules. Accepts an object, string schema or validation function.
40
- */
41
- rules: {
42
- type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
43
- };
44
- /**
45
- * Converts the input into a readonly disabled field
46
- */
47
- readonly: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- /**
52
- * The hint text shown below the input
53
- */
54
- hint: {
55
- type: StringConstructor;
56
- };
57
- /**
58
- * The autocomplete input attribute
59
- */
60
- autocomplete: {
61
- type: StringConstructor;
62
- };
63
- /**
64
- * The logical tab order of the input.
65
- * Defaults to 0
66
- */
67
- tabindex: {
68
- type: StringConstructor;
69
- default: string;
70
- };
71
- /**
72
- * Whether the input is rounded.
73
- * Defaults to false
74
- */
75
- rounded: {
76
- type: BooleanConstructor;
77
- default: boolean;
78
- };
79
- /**
80
- * Enable the error section UI.
81
- * Defaults to true
82
- */
83
- enableErrors: {
84
- type: BooleanConstructor;
85
- default: boolean;
86
- };
87
- /**
88
- * The inputs `maxlength` attribute.
89
- */
90
- maxLength: {
91
- type: NumberConstructor;
92
- };
93
- }, {
94
- uuid: string;
95
- inputBaseClass: import("vue").Ref<string>;
96
- inputValue: import("vue").WritableComputedRef<string>;
97
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
98
- /**
99
- * The input v-model
100
- */
101
- modelValue: {
102
- type: StringConstructor;
103
- default: string;
104
- };
105
- /**
106
- * The name of the input field. Must be unique per form.
107
- */
108
- name: {
109
- type: StringConstructor;
110
- required: true;
111
- };
112
- /**
113
- * The input type. Accepts `text` | `password`
114
- */
115
- type: {
116
- type: PropType<FwInputType>;
117
- default: string;
118
- validator: (value: string) => boolean;
119
- };
120
- /**
121
- * Label for the input. Also renders to an aria-label attribute
122
- */
123
- label: {
124
- type: StringConstructor;
125
- };
126
- /**
127
- * The placeholder text of the input
128
- */
129
- placeholder: {
130
- type: StringConstructor;
131
- };
132
- /**
133
- * Validation rules. Accepts an object, string schema or validation function.
134
- */
135
- rules: {
136
- type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
137
- };
138
- /**
139
- * Converts the input into a readonly disabled field
140
- */
141
- readonly: {
142
- type: BooleanConstructor;
143
- default: boolean;
144
- };
145
- /**
146
- * The hint text shown below the input
147
- */
148
- hint: {
149
- type: StringConstructor;
150
- };
151
- /**
152
- * The autocomplete input attribute
153
- */
154
- autocomplete: {
155
- type: StringConstructor;
156
- };
157
- /**
158
- * The logical tab order of the input.
159
- * Defaults to 0
160
- */
161
- tabindex: {
162
- type: StringConstructor;
163
- default: string;
164
- };
165
- /**
166
- * Whether the input is rounded.
167
- * Defaults to false
168
- */
169
- rounded: {
170
- type: BooleanConstructor;
171
- default: boolean;
172
- };
173
- /**
174
- * Enable the error section UI.
175
- * Defaults to true
176
- */
177
- enableErrors: {
178
- type: BooleanConstructor;
179
- default: boolean;
180
- };
181
- /**
182
- * The inputs `maxlength` attribute.
183
- */
184
- maxLength: {
185
- type: NumberConstructor;
186
- };
187
- }>> & {
188
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
189
- }, {
190
- modelValue: string;
191
- type: FwInputType;
192
- readonly: boolean;
193
- tabindex: string;
194
- rounded: boolean;
195
- enableErrors: boolean;
196
- }>;
197
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { FwInputType } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The input v-model
6
+ */
7
+ modelValue: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ /**
12
+ * The name of the input field. Must be unique per form.
13
+ */
14
+ name: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ /**
19
+ * The input type. Accepts `text` | `password`
20
+ */
21
+ type: {
22
+ type: PropType<FwInputType>;
23
+ default: string;
24
+ validator: (value: string) => boolean;
25
+ };
26
+ /**
27
+ * Label for the input. Also renders to an aria-label attribute
28
+ */
29
+ label: {
30
+ type: StringConstructor;
31
+ };
32
+ /**
33
+ * The placeholder text of the input
34
+ */
35
+ placeholder: {
36
+ type: StringConstructor;
37
+ };
38
+ /**
39
+ * Validation rules. Accepts an object, string schema or validation function.
40
+ */
41
+ rules: {
42
+ type: PropType<import("vee-validate").RuleExpression<unknown>>;
43
+ };
44
+ /**
45
+ * Converts the input into a readonly disabled field
46
+ */
47
+ readonly: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ /**
52
+ * The hint text shown below the input
53
+ */
54
+ hint: {
55
+ type: StringConstructor;
56
+ };
57
+ /**
58
+ * The autocomplete input attribute
59
+ */
60
+ autocomplete: {
61
+ type: StringConstructor;
62
+ };
63
+ /**
64
+ * The logical tab order of the input.
65
+ * Defaults to 0
66
+ */
67
+ tabindex: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ /**
72
+ * Whether the input is rounded.
73
+ * Defaults to false
74
+ */
75
+ rounded: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ /**
80
+ * Enable the error section UI.
81
+ * Defaults to true
82
+ */
83
+ enableErrors: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ /**
88
+ * The inputs `maxlength` attribute.
89
+ */
90
+ maxLength: {
91
+ type: NumberConstructor;
92
+ };
93
+ /**
94
+ * Enables the required asterisk. (UI only)
95
+ * Use the field validation rule to validate input.
96
+ */
97
+ required: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ }, {
102
+ uuid: string;
103
+ inputBaseClass: import("vue").Ref<string>;
104
+ inputValue: import("vue").WritableComputedRef<string>;
105
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
106
+ /**
107
+ * The input v-model
108
+ */
109
+ modelValue: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ /**
114
+ * The name of the input field. Must be unique per form.
115
+ */
116
+ name: {
117
+ type: StringConstructor;
118
+ required: true;
119
+ };
120
+ /**
121
+ * The input type. Accepts `text` | `password`
122
+ */
123
+ type: {
124
+ type: PropType<FwInputType>;
125
+ default: string;
126
+ validator: (value: string) => boolean;
127
+ };
128
+ /**
129
+ * Label for the input. Also renders to an aria-label attribute
130
+ */
131
+ label: {
132
+ type: StringConstructor;
133
+ };
134
+ /**
135
+ * The placeholder text of the input
136
+ */
137
+ placeholder: {
138
+ type: StringConstructor;
139
+ };
140
+ /**
141
+ * Validation rules. Accepts an object, string schema or validation function.
142
+ */
143
+ rules: {
144
+ type: PropType<import("vee-validate").RuleExpression<unknown>>;
145
+ };
146
+ /**
147
+ * Converts the input into a readonly disabled field
148
+ */
149
+ readonly: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ /**
154
+ * The hint text shown below the input
155
+ */
156
+ hint: {
157
+ type: StringConstructor;
158
+ };
159
+ /**
160
+ * The autocomplete input attribute
161
+ */
162
+ autocomplete: {
163
+ type: StringConstructor;
164
+ };
165
+ /**
166
+ * The logical tab order of the input.
167
+ * Defaults to 0
168
+ */
169
+ tabindex: {
170
+ type: StringConstructor;
171
+ default: string;
172
+ };
173
+ /**
174
+ * Whether the input is rounded.
175
+ * Defaults to false
176
+ */
177
+ rounded: {
178
+ type: BooleanConstructor;
179
+ default: boolean;
180
+ };
181
+ /**
182
+ * Enable the error section UI.
183
+ * Defaults to true
184
+ */
185
+ enableErrors: {
186
+ type: BooleanConstructor;
187
+ default: boolean;
188
+ };
189
+ /**
190
+ * The inputs `maxlength` attribute.
191
+ */
192
+ maxLength: {
193
+ type: NumberConstructor;
194
+ };
195
+ /**
196
+ * Enables the required asterisk. (UI only)
197
+ * Use the field validation rule to validate input.
198
+ */
199
+ required: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ }>> & {
204
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
205
+ }, {
206
+ modelValue: string;
207
+ type: FwInputType;
208
+ required: boolean;
209
+ readonly: boolean;
210
+ tabindex: string;
211
+ rounded: boolean;
212
+ enableErrors: boolean;
213
+ }, {}>;
214
+ export default _default;
@@ -1,2 +1,2 @@
1
- import FwInput from './fw-input.vue';
2
- export { FwInput };
1
+ import FwInput from './fw-input.vue';
2
+ export { FwInput };