@frollo/frollo-web-ui 9.0.9 → 9.0.10

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.
package/index.d.ts CHANGED
@@ -29,6 +29,10 @@ declare interface FwInputProps {
29
29
  required?: boolean;
30
30
  invalidate?: boolean;
31
31
  }
32
+ declare interface InputTag {
33
+ name: string;
34
+ id: number;
35
+ }
32
36
 
33
37
  declare const __default__$c: vue.DefineComponent<vue.ExtractPropTypes<{
34
38
  /**
@@ -157,14 +161,28 @@ declare const __default__$c: vue.DefineComponent<vue.ExtractPropTypes<{
157
161
  type: BooleanConstructor;
158
162
  required: false;
159
163
  };
164
+ /**
165
+ * Enable tags within the input borders
166
+ * Defaults to false
167
+ */
168
+ enableTags: {
169
+ type: BooleanConstructor;
170
+ default: boolean;
171
+ };
172
+ tags: {
173
+ type: PropType<InputTag[]>;
174
+ required: false;
175
+ };
160
176
  }>, {
161
177
  inputBaseClass: vue.Ref<string, string>;
162
178
  inputValue: vue.WritableComputedRef<string, string>;
179
+ tagsValue: vue.WritableComputedRef<InputTag[] | undefined, InputTag[] | undefined>;
163
180
  onFocus: (e: FocusEvent) => void;
164
181
  onBlur: (e: FocusEvent) => void;
165
182
  primaryFade5: string;
166
183
  colorErrorTextFade5: string;
167
- }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur")[], "update:modelValue" | "focus" | "blur", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
184
+ handleTagDismiss: (id: number) => void;
185
+ }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "update:tags")[], "update:modelValue" | "focus" | "blur" | "update:tags", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
168
186
  /**
169
187
  * The input v-model
170
188
  */
@@ -291,10 +309,23 @@ declare const __default__$c: vue.DefineComponent<vue.ExtractPropTypes<{
291
309
  type: BooleanConstructor;
292
310
  required: false;
293
311
  };
312
+ /**
313
+ * Enable tags within the input borders
314
+ * Defaults to false
315
+ */
316
+ enableTags: {
317
+ type: BooleanConstructor;
318
+ default: boolean;
319
+ };
320
+ tags: {
321
+ type: PropType<InputTag[]>;
322
+ required: false;
323
+ };
294
324
  }>> & Readonly<{
295
325
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
296
326
  onFocus?: ((...args: any[]) => any) | undefined;
297
327
  onBlur?: ((...args: any[]) => any) | undefined;
328
+ "onUpdate:tags"?: ((...args: any[]) => any) | undefined;
298
329
  }>, {
299
330
  modelValue: string;
300
331
  type: FwInputType;
@@ -305,6 +336,7 @@ declare const __default__$c: vue.DefineComponent<vue.ExtractPropTypes<{
305
336
  rounded: boolean;
306
337
  enableErrors: boolean;
307
338
  invalidate: boolean;
339
+ enableTags: boolean;
308
340
  }, {}, {
309
341
  InputField: {
310
342
  new (...args: any[]): vue.CreateComponentPublicInstance<Readonly<vue.ExtractPropTypes<{
@@ -665,6 +697,7 @@ declare const __default__$c: vue.DefineComponent<vue.ExtractPropTypes<{
665
697
  default: (arg: vee_validate.FieldSlotProps<any>) => vue.VNode[];
666
698
  };
667
699
  });
700
+ FwTag: vue.ComponentOptions;
668
701
  }, {}, string, vue.ComponentProvideOptions, true, {}, any>;
669
702
 
670
703
  declare interface FwCheckboxProps {
@@ -3087,6 +3120,13 @@ declare const __default__$7: vue.DefineComponent<vue.ExtractPropTypes<{
3087
3120
  type: BooleanConstructor;
3088
3121
  default: boolean;
3089
3122
  };
3123
+ /**
3124
+ * Whether the tag has round borders or not.
3125
+ */
3126
+ rounded: {
3127
+ type: BooleanConstructor;
3128
+ default: boolean;
3129
+ };
3090
3130
  }>, {
3091
3131
  visible: vue.Ref<boolean, boolean>;
3092
3132
  baseClass: string;
@@ -3129,12 +3169,20 @@ declare const __default__$7: vue.DefineComponent<vue.ExtractPropTypes<{
3129
3169
  type: BooleanConstructor;
3130
3170
  default: boolean;
3131
3171
  };
3172
+ /**
3173
+ * Whether the tag has round borders or not.
3174
+ */
3175
+ rounded: {
3176
+ type: BooleanConstructor;
3177
+ default: boolean;
3178
+ };
3132
3179
  }>> & Readonly<{
3133
3180
  onDismissed?: ((...args: any[]) => any) | undefined;
3134
3181
  }>, {
3135
3182
  variant: TagVariantName;
3136
3183
  size: TagSize;
3137
3184
  dismissable: boolean;
3185
+ rounded: boolean;
3138
3186
  }, {}, {
3139
3187
  FwButton: vue.ComponentOptions;
3140
3188
  XMarkSvg: VueConstructor<Vue>;
@@ -4531,4 +4579,4 @@ declare const install: Exclude<Plugin['install'], undefined>;
4531
4579
 
4532
4580
  declare module '@frollo/frollo-web-ui/icons' { }
4533
4581
 
4534
- export { type ButtonAnimation, type ButtonDefinition, type ButtonDefinitionList, type ButtonSize, type ButtonSizes, type ButtonTypeAttribute, type ButtonVariantName, __default__$5 as FwAccordion, type FwAccordionProps, _default$h as FwAlert, _default$1 as FwBarChart, type FwBarChartProps, type FwBarGraphData, _default$i as FwButton, type FwButtonProps, __default__$9 as FwCard, type FwCardProps, __default__$b as FwCheckbox, type FwCheckboxProps, __default__$1 as FwDatePicker, type FwDatePickerModel, type FwDatePickerProps, __default__$3 as FwDrawer, type FwDrawerProps, __default__$a as FwDropdown, type FwDropdownOption, type FwDropdownProps, __default__$4 as FwImage, type FwImageProps, __default__$c as FwInput, type FwInputProps, type FwInputType, _default$a as FwLoadingBar, _default$9 as FwLoadingCard, _default$7 as FwLoadingDots, _default$8 as FwLoadingTable, _default$3 as FwMediaPicker, type FwMediaPickerProps, __default__$8 as FwModal, type FwModalProps, _default$g as FwNavigationMenu, type FwNavigationMenuProps, __default__ as FwPopover, type FwPopoverProps, _default$d as FwProgressBar, __default__$2 as FwProviderList, type FwProviderListItem, type FwProviderListProps, _default$4 as FwSidebarMenu, type FwSidebarMenuItem, type FwSidebarMenuProps, _default$2 as FwSlider, _default as FwSuccessAnimation, _default$j as FwSwitch, type FwSwitchProps, _default$e as FwTab, type FwTabProps, __default__$6 as FwTable, type FwTableCellComponentHandlers, type FwTableCellComponentProps, type FwTableColumnMeta, type FwTableFormatFunction, _default$c as FwTableHead, type FwTableItem, type FwTableItemOptions, type FwTableItemValue, type FwTableProps, _default$b as FwTableRow, type FwTableSort, type FwTableSortFunction, _default$f as FwTabs, type FwTabsProps, __default__$7 as FwTag, type FwTagProps, _default$6 as FwToast, type FwToastProps, _default$5 as FwTransactionsCard, type FwTransactionsCardProps, type ModalServiceProps, type NavMenuItem, type ProgressBarStep, type TabRecord, type TabsApi, type TagDefinition, type TagDefinitionList, type TagSize, type TagSizes, type TagVariantName, type ToastPosition, type ToastServiceProps, type ToastType, type ToastTypes, install as default, getHexWithOpacity, getVueComponentHtml, modalService, toastService, useColours };
4582
+ export { type ButtonAnimation, type ButtonDefinition, type ButtonDefinitionList, type ButtonSize, type ButtonSizes, type ButtonTypeAttribute, type ButtonVariantName, __default__$5 as FwAccordion, type FwAccordionProps, _default$h as FwAlert, _default$1 as FwBarChart, type FwBarChartProps, type FwBarGraphData, _default$i as FwButton, type FwButtonProps, __default__$9 as FwCard, type FwCardProps, __default__$b as FwCheckbox, type FwCheckboxProps, __default__$1 as FwDatePicker, type FwDatePickerModel, type FwDatePickerProps, __default__$3 as FwDrawer, type FwDrawerProps, __default__$a as FwDropdown, type FwDropdownOption, type FwDropdownProps, __default__$4 as FwImage, type FwImageProps, __default__$c as FwInput, type FwInputProps, type FwInputType, _default$a as FwLoadingBar, _default$9 as FwLoadingCard, _default$7 as FwLoadingDots, _default$8 as FwLoadingTable, _default$3 as FwMediaPicker, type FwMediaPickerProps, __default__$8 as FwModal, type FwModalProps, _default$g as FwNavigationMenu, type FwNavigationMenuProps, __default__ as FwPopover, type FwPopoverProps, _default$d as FwProgressBar, __default__$2 as FwProviderList, type FwProviderListItem, type FwProviderListProps, _default$4 as FwSidebarMenu, type FwSidebarMenuItem, type FwSidebarMenuProps, _default$2 as FwSlider, _default as FwSuccessAnimation, _default$j as FwSwitch, type FwSwitchProps, _default$e as FwTab, type FwTabProps, __default__$6 as FwTable, type FwTableCellComponentHandlers, type FwTableCellComponentProps, type FwTableColumnMeta, type FwTableFormatFunction, _default$c as FwTableHead, type FwTableItem, type FwTableItemOptions, type FwTableItemValue, type FwTableProps, _default$b as FwTableRow, type FwTableSort, type FwTableSortFunction, _default$f as FwTabs, type FwTabsProps, __default__$7 as FwTag, type FwTagProps, _default$6 as FwToast, type FwToastProps, _default$5 as FwTransactionsCard, type FwTransactionsCardProps, type InputTag, type ModalServiceProps, type NavMenuItem, type ProgressBarStep, type TabRecord, type TabsApi, type TagDefinition, type TagDefinitionList, type TagSize, type TagSizes, type TagVariantName, type ToastPosition, type ToastServiceProps, type ToastType, type ToastTypes, install as default, getHexWithOpacity, getVueComponentHtml, modalService, toastService, useColours };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "9.0.9",
3
+ "version": "9.0.10",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import type { FwInputProps, FwInputType } from './index.types';
2
+ import type { FwInputProps, InputTag, FwInputType } from './index.types';
3
3
  declare const __default__: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  /**
5
5
  * The input v-model
@@ -127,14 +127,28 @@ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPr
127
127
  type: BooleanConstructor;
128
128
  required: false;
129
129
  };
130
+ /**
131
+ * Enable tags within the input borders
132
+ * Defaults to false
133
+ */
134
+ enableTags: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ tags: {
139
+ type: PropType<InputTag[]>;
140
+ required: false;
141
+ };
130
142
  }>, {
131
143
  inputBaseClass: import("vue").Ref<string, string>;
132
144
  inputValue: import("vue").WritableComputedRef<string, string>;
145
+ tagsValue: import("vue").WritableComputedRef<InputTag[] | undefined, InputTag[] | undefined>;
133
146
  onFocus: (e: FocusEvent) => void;
134
147
  onBlur: (e: FocusEvent) => void;
135
148
  primaryFade5: string;
136
149
  colorErrorTextFade5: string;
137
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur")[], "update:modelValue" | "focus" | "blur", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
150
+ handleTagDismiss: (id: number) => void;
151
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "update:tags")[], "update:modelValue" | "focus" | "blur" | "update:tags", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
138
152
  /**
139
153
  * The input v-model
140
154
  */
@@ -261,10 +275,23 @@ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPr
261
275
  type: BooleanConstructor;
262
276
  required: false;
263
277
  };
278
+ /**
279
+ * Enable tags within the input borders
280
+ * Defaults to false
281
+ */
282
+ enableTags: {
283
+ type: BooleanConstructor;
284
+ default: boolean;
285
+ };
286
+ tags: {
287
+ type: PropType<InputTag[]>;
288
+ required: false;
289
+ };
264
290
  }>> & Readonly<{
265
291
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
266
292
  onFocus?: ((...args: any[]) => any) | undefined;
267
293
  onBlur?: ((...args: any[]) => any) | undefined;
294
+ "onUpdate:tags"?: ((...args: any[]) => any) | undefined;
268
295
  }>, {
269
296
  modelValue: string;
270
297
  type: FwInputType;
@@ -275,6 +302,7 @@ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPr
275
302
  rounded: boolean;
276
303
  enableErrors: boolean;
277
304
  invalidate: boolean;
305
+ enableTags: boolean;
278
306
  }, {}, {
279
307
  InputField: {
280
308
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
@@ -635,5 +663,6 @@ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPr
635
663
  default: (arg: import("vee-validate").FieldSlotProps<any>) => import("vue").VNode[];
636
664
  };
637
665
  });
666
+ FwTag: import("vue").ComponentOptions;
638
667
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
639
668
  export default __default__;
@@ -20,3 +20,7 @@ export declare interface FwInputProps {
20
20
  required?: boolean;
21
21
  invalidate?: boolean;
22
22
  }
23
+ export declare interface InputTag {
24
+ name: string;
25
+ id: number;
26
+ }
@@ -31,6 +31,13 @@ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPr
31
31
  type: BooleanConstructor;
32
32
  default: boolean;
33
33
  };
34
+ /**
35
+ * Whether the tag has round borders or not.
36
+ */
37
+ rounded: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
34
41
  }>, {
35
42
  visible: import("vue").Ref<boolean, boolean>;
36
43
  baseClass: string;
@@ -73,12 +80,20 @@ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPr
73
80
  type: BooleanConstructor;
74
81
  default: boolean;
75
82
  };
83
+ /**
84
+ * Whether the tag has round borders or not.
85
+ */
86
+ rounded: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
76
90
  }>> & Readonly<{
77
91
  onDismissed?: ((...args: any[]) => any) | undefined;
78
92
  }>, {
79
93
  variant: TagVariantName;
80
94
  size: TagSize;
81
95
  dismissable: boolean;
96
+ rounded: boolean;
82
97
  }, {}, {
83
98
  FwButton: import("vue").ComponentOptions;
84
99
  XMarkSvg: VueConstructor<Vue>;