@frollo/frollo-web-ui 9.0.8 → 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 {
@@ -2236,6 +2269,7 @@ declare interface FwNavigationMenuProps {
2236
2269
  logoSrc?: string;
2237
2270
  mobileLogoSrc?: string;
2238
2271
  reversedDesktopNavButton?: boolean;
2272
+ forcedLogoSrc?: string;
2239
2273
  }
2240
2274
 
2241
2275
  declare const _default$g: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -2313,6 +2347,12 @@ declare const _default$g: vue.DefineComponent<vue.ExtractPropTypes<{
2313
2347
  type: BooleanConstructor;
2314
2348
  default: boolean;
2315
2349
  };
2350
+ /**
2351
+ * Whether to force the logo to be displayed (forced for mobile themes that don't need a menu)
2352
+ */
2353
+ forcedLogoSrc: {
2354
+ type: StringConstructor;
2355
+ };
2316
2356
  }>, {
2317
2357
  parsedMenuItems: vue.ShallowRef<NavMenuItem[], NavMenuItem[]>;
2318
2358
  parsedAdditionalMenuItems: vue.ShallowRef<NavMenuItem[], NavMenuItem[]>;
@@ -2395,6 +2435,12 @@ declare const _default$g: vue.DefineComponent<vue.ExtractPropTypes<{
2395
2435
  type: BooleanConstructor;
2396
2436
  default: boolean;
2397
2437
  };
2438
+ /**
2439
+ * Whether to force the logo to be displayed (forced for mobile themes that don't need a menu)
2440
+ */
2441
+ forcedLogoSrc: {
2442
+ type: StringConstructor;
2443
+ };
2398
2444
  }>> & Readonly<{
2399
2445
  onAction?: ((...args: any[]) => any) | undefined;
2400
2446
  }>, {
@@ -3074,6 +3120,13 @@ declare const __default__$7: vue.DefineComponent<vue.ExtractPropTypes<{
3074
3120
  type: BooleanConstructor;
3075
3121
  default: boolean;
3076
3122
  };
3123
+ /**
3124
+ * Whether the tag has round borders or not.
3125
+ */
3126
+ rounded: {
3127
+ type: BooleanConstructor;
3128
+ default: boolean;
3129
+ };
3077
3130
  }>, {
3078
3131
  visible: vue.Ref<boolean, boolean>;
3079
3132
  baseClass: string;
@@ -3116,12 +3169,20 @@ declare const __default__$7: vue.DefineComponent<vue.ExtractPropTypes<{
3116
3169
  type: BooleanConstructor;
3117
3170
  default: boolean;
3118
3171
  };
3172
+ /**
3173
+ * Whether the tag has round borders or not.
3174
+ */
3175
+ rounded: {
3176
+ type: BooleanConstructor;
3177
+ default: boolean;
3178
+ };
3119
3179
  }>> & Readonly<{
3120
3180
  onDismissed?: ((...args: any[]) => any) | undefined;
3121
3181
  }>, {
3122
3182
  variant: TagVariantName;
3123
3183
  size: TagSize;
3124
3184
  dismissable: boolean;
3185
+ rounded: boolean;
3125
3186
  }, {}, {
3126
3187
  FwButton: vue.ComponentOptions;
3127
3188
  XMarkSvg: VueConstructor<Vue>;
@@ -4518,4 +4579,4 @@ declare const install: Exclude<Plugin['install'], undefined>;
4518
4579
 
4519
4580
  declare module '@frollo/frollo-web-ui/icons' { }
4520
4581
 
4521
- 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.8",
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
+ }
@@ -75,6 +75,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
75
75
  type: BooleanConstructor;
76
76
  default: boolean;
77
77
  };
78
+ /**
79
+ * Whether to force the logo to be displayed (forced for mobile themes that don't need a menu)
80
+ */
81
+ forcedLogoSrc: {
82
+ type: StringConstructor;
83
+ };
78
84
  }>, {
79
85
  parsedMenuItems: import("vue").ShallowRef<NavMenuItem[], NavMenuItem[]>;
80
86
  parsedAdditionalMenuItems: import("vue").ShallowRef<NavMenuItem[], NavMenuItem[]>;
@@ -157,6 +163,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
163
  type: BooleanConstructor;
158
164
  default: boolean;
159
165
  };
166
+ /**
167
+ * Whether to force the logo to be displayed (forced for mobile themes that don't need a menu)
168
+ */
169
+ forcedLogoSrc: {
170
+ type: StringConstructor;
171
+ };
160
172
  }>> & Readonly<{
161
173
  onAction?: ((...args: any[]) => any) | undefined;
162
174
  }>, {
@@ -18,4 +18,5 @@ export declare interface FwNavigationMenuProps {
18
18
  logoSrc?: string;
19
19
  mobileLogoSrc?: string;
20
20
  reversedDesktopNavButton?: boolean;
21
+ forcedLogoSrc?: string;
21
22
  }
@@ -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>;