@frollo/frollo-web-ui 3.0.0 → 3.0.2

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 (73) hide show
  1. package/cjs/index.js +18838 -3083
  2. package/esm/add-to-unscopables-2400f45b.js +25 -0
  3. package/esm/{array-iteration-98e2cf9a.js → array-iteration-107f927f.js} +2 -3
  4. package/esm/array-method-has-species-support-3d413468.js +23 -0
  5. package/esm/{array-method-is-strict-544b103f.js → array-method-is-strict-055b1830.js} +1 -1
  6. package/esm/{array-species-create-5fc23c89.js → array-species-create-a5f5503b.js} +3 -4
  7. package/esm/{classof-a45668b6.js → classof-39c30bd5.js} +1 -2
  8. package/esm/{create-property-558a3c24.js → create-property-534611fd.js} +1 -2
  9. package/esm/delete-property-or-throw-8032646c.js +31 -0
  10. package/esm/does-not-exceed-safe-integer-31d08811.js +11 -0
  11. package/esm/es.array.concat-987938be.js +69 -0
  12. package/esm/{es.array.find-36d8f2f0.js → es.array.find-dfa1f42f.js} +5 -6
  13. package/esm/{es.array.includes-df8e6e35.js → es.array.includes-91be7771.js} +3 -4
  14. package/esm/{es.function.name-b642b74f.js → es.function.name-557cb1f9.js} +1 -1
  15. package/esm/{es.number.constructor-f279ce82.js → es.number.constructor-1249bd78.js} +2 -3
  16. package/esm/{fw-image-ec7b02c5.js → es.string.iterator-284b31d4.js} +11 -311
  17. package/esm/{object-keys-6a890c6f.js → export-a37ba078.js} +2 -13
  18. package/esm/function-apply-ce251590.js +14 -0
  19. package/esm/fw-accordion.js +2 -8
  20. package/esm/fw-animations.js +6 -20
  21. package/esm/fw-bar-chart.js +19 -0
  22. package/esm/{fw-button-df5c923f.js → fw-button-0401f207.js} +12 -27
  23. package/esm/fw-button.js +9 -8
  24. package/esm/{fw-card-8d3f4ab5.js → fw-card-1b6a67fe.js} +0 -5
  25. package/esm/fw-card.js +1 -1
  26. package/esm/fw-checkbox.js +27 -17
  27. package/esm/fw-dropdown.js +17 -34
  28. package/esm/fw-image-03f85465.js +289 -0
  29. package/esm/fw-image.js +20 -17
  30. package/esm/fw-input.js +24 -25
  31. package/esm/fw-loading-bar-f5ca605c.js +22 -0
  32. package/esm/{fw-loading-spinner-9b7c6855.js → fw-loading-spinner-164d8df0.js} +1 -2
  33. package/esm/fw-loading.js +6 -9
  34. package/esm/fw-modal.js +11 -21
  35. package/esm/fw-navigation-menu.js +11 -19
  36. package/esm/fw-progress-bar.js +4 -11
  37. package/esm/fw-sidebar-menu.js +131 -0
  38. package/esm/fw-table.js +12 -57
  39. package/esm/fw-tabs.js +60 -21
  40. package/esm/fw-tag.js +8 -8
  41. package/esm/fw-toast.js +29 -125
  42. package/esm/fw-transactions-card.js +21 -24
  43. package/esm/index-1a41e7bf.js +15838 -0
  44. package/esm/{index-4605e00e.js → index-692e4d19.js} +83 -55
  45. package/esm/index.js +43 -57
  46. package/esm/is-forced-752b5893.js +927 -0
  47. package/esm/{add-to-unscopables-3f461c07.js → object-create-f6f3a673.js} +3 -25
  48. package/esm/object-keys-4f5bf4e7.js +13 -0
  49. package/esm/{to-string-685748aa.js → to-string-12728fd2.js} +2 -2
  50. package/esm/{web.timers-4a6aaab8.js → web.timers-0f117224.js} +5 -15
  51. package/frollo-web-ui.esm.js +19112 -3282
  52. package/icons/chevron-left.svg +3 -0
  53. package/icons/chevron-right.svg +3 -0
  54. package/icons/index.ts +4 -0
  55. package/index.d.ts +200 -26
  56. package/package.json +4 -1
  57. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -0
  58. package/types/components/fw-bar-chart/index.d.ts +2 -0
  59. package/types/components/fw-bar-chart/index.types.d.ts +11 -0
  60. package/types/components/fw-button/fw-button.vue.d.ts +2 -2
  61. package/types/components/fw-button/index.types.d.ts +1 -1
  62. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +3 -1
  63. package/types/components/fw-input/fw-input.vue.d.ts +1 -0
  64. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +71 -0
  65. package/types/components/fw-sidebar-menu/index.d.ts +2 -0
  66. package/types/components/fw-sidebar-menu/index.types.d.ts +6 -0
  67. package/types/components/index.d.ts +2 -0
  68. package/types/components/index.types.d.ts +2 -0
  69. package/types/icons/index.d.ts +3 -1
  70. package/web-components/index.js +24066 -8740
  71. package/esm/function-name-e2f6ea36.js +0 -492
  72. package/esm/fw-loading-bar-da7d53fb.js +0 -22
  73. package/esm/is-forced-ddf227e6.js +0 -438
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 56 56" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M39.6812 3.96479C40.0572 4.30834 40.2451 4.77832 40.2451 5.24995C40.2451 5.67552 40.0913 6.10099 39.7803 6.43776L19.881 27.9999L39.6888 49.5578C40.3451 50.2687 40.3041 51.3777 39.5897 52.0307C38.8788 52.687 37.7752 52.6426 37.1189 51.9333L16.1189 29.1833C15.4968 28.51 15.4968 27.4814 16.1189 26.8077L37.1189 4.05769C37.8655 3.35338 38.9702 3.30854 39.6812 3.96479Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 56 56" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.6454 52.0406C18.2693 51.6971 18.0814 51.2271 18.0814 50.7555C18.0814 50.3299 18.2352 49.9044 18.5463 49.5677L38.3541 28.0098L18.5458 6.4378C17.8896 5.72686 17.9306 4.6178 18.645 3.96483C19.3559 3.30858 20.4595 3.35299 21.1157 4.06224L42.1158 26.8123C42.7379 27.4856 42.7379 28.5141 42.1158 29.1879L21.1157 51.9379C20.4566 52.6422 19.3563 52.6969 18.6454 52.0406Z" />
3
+ </svg>
package/icons/index.ts CHANGED
@@ -16,6 +16,8 @@ import EnvelopeSvg from './envelope.svg';
16
16
  import CheckSvg from './check.svg';
17
17
  import ChevronUpSvg from './chevron-up.svg';
18
18
  import ChevronDownSvg from './chevron-down.svg';
19
+ import ChevronRightSvg from './chevron-right.svg';
20
+ import ChevronLeftSvg from './chevron-left.svg';
19
21
  import ErrorFilledSvg from './error-filled.svg';
20
22
  import LightBulbSvg from './light-bulb.svg';
21
23
  import LandmarkSvg from './landmark.svg';
@@ -48,6 +50,8 @@ export {
48
50
  CheckSvg,
49
51
  ChevronUpSvg,
50
52
  ChevronDownSvg,
53
+ ChevronRightSvg,
54
+ ChevronLeftSvg,
51
55
  ErrorFilledSvg,
52
56
  LightBulbSvg,
53
57
  LandmarkSvg,
package/index.d.ts CHANGED
@@ -3,6 +3,8 @@ import { PropType, Plugin } from 'vue';
3
3
  import * as vee_validate from 'vee-validate';
4
4
  export { Form as FwForm } from 'vee-validate';
5
5
  import * as _vue_shared from '@vue/shared';
6
+ import * as chart_js_dist_types_utils from 'chart.js/dist/types/utils';
7
+ import * as chart_js from 'chart.js';
6
8
 
7
9
  declare type FwInputType = 'text' | 'password' | 'email' | 'tel' | 'time' | 'url' | 'week' | 'month';
8
10
  declare interface FwInputProps {
@@ -18,7 +20,7 @@ declare interface FwInputProps {
18
20
  tabindex?: string;
19
21
  }
20
22
 
21
- declare const _default$l: vue.DefineComponent<{
23
+ declare const _default$n: vue.DefineComponent<{
22
24
  /**
23
25
  * The input v-model
24
26
  */
@@ -88,6 +90,7 @@ declare const _default$l: vue.DefineComponent<{
88
90
  default: string;
89
91
  };
90
92
  }, {
93
+ uuid: string;
91
94
  inputBaseClass: vue.Ref<string>;
92
95
  inputValue: vue.WritableComputedRef<string>;
93
96
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
@@ -169,7 +172,7 @@ declare const _default$l: vue.DefineComponent<{
169
172
  tabindex: string;
170
173
  }>;
171
174
 
172
- declare const _default$k: vue.DefineComponent<{
175
+ declare const _default$m: vue.DefineComponent<{
173
176
  /**
174
177
  * The name of the input field. Must be unique per form.
175
178
  */
@@ -195,7 +198,9 @@ declare const _default$k: vue.DefineComponent<{
195
198
  hint: {
196
199
  type: StringConstructor;
197
200
  };
198
- }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
201
+ }, {
202
+ uuid: string;
203
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
199
204
  /**
200
205
  * The name of the input field. Must be unique per form.
201
206
  */
@@ -236,7 +241,7 @@ declare interface FwDropdownProps {
236
241
  placeholder?: string;
237
242
  }
238
243
 
239
- declare const _default$j: vue.DefineComponent<{
244
+ declare const _default$l: vue.DefineComponent<{
240
245
  /**
241
246
  * The select v-model
242
247
  */
@@ -347,7 +352,7 @@ declare const _default$j: vue.DefineComponent<{
347
352
  placeholder: string;
348
353
  }>;
349
354
 
350
- declare const _default$i: vue.DefineComponent<{
355
+ declare const _default$k: vue.DefineComponent<{
351
356
  /**
352
357
  * The header title of the card
353
358
  */
@@ -429,7 +434,7 @@ declare const _default$i: vue.DefineComponent<{
429
434
  isBordered: boolean;
430
435
  }>;
431
436
 
432
- declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
437
+ declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text' | 'transparent';
433
438
  declare interface ButtonDefinition {
434
439
  text: string;
435
440
  background: string;
@@ -456,7 +461,7 @@ declare interface FwButtonProps {
456
461
  external?: boolean;
457
462
  }
458
463
 
459
- declare const _default$h: vue.DefineComponent<{
464
+ declare const _default$j: vue.DefineComponent<{
460
465
  /**
461
466
  * A `router-link` path or object
462
467
  */
@@ -477,7 +482,7 @@ declare const _default$h: vue.DefineComponent<{
477
482
  };
478
483
  /**
479
484
  * The colour variant of the button.
480
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
485
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
481
486
  */
482
487
  variant: {
483
488
  type: PropType<ButtonVariantName>;
@@ -570,7 +575,7 @@ declare const _default$h: vue.DefineComponent<{
570
575
  };
571
576
  /**
572
577
  * The colour variant of the button.
573
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
578
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
574
579
  */
575
580
  variant: {
576
581
  type: PropType<ButtonVariantName>;
@@ -637,7 +642,7 @@ declare interface NavMenuItem {
637
642
  external?: boolean;
638
643
  }
639
644
 
640
- declare const _default$g: vue.DefineComponent<{
645
+ declare const _default$i: vue.DefineComponent<{
641
646
  /**
642
647
  * An array of menu items
643
648
  * `{ to?: string | object; href?: string; label: string; }`
@@ -692,7 +697,7 @@ declare const _default$g: vue.DefineComponent<{
692
697
  containerClass: string;
693
698
  }>;
694
699
 
695
- declare const _default$f: vue.DefineComponent<{
700
+ declare const _default$h: vue.DefineComponent<{
696
701
  /**
697
702
  * The active tab v-model
698
703
  */
@@ -716,7 +721,7 @@ declare const _default$f: vue.DefineComponent<{
716
721
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
717
722
  }, {}>;
718
723
 
719
- declare const _default$e: vue.DefineComponent<{
724
+ declare const _default$g: vue.DefineComponent<{
720
725
  /**
721
726
  * The label of the tab component used as the button panel label
722
727
  */
@@ -748,7 +753,7 @@ declare const _default$e: vue.DefineComponent<{
748
753
  };
749
754
  }>>, {}>;
750
755
 
751
- declare const _default$d: vue.DefineComponent<{
756
+ declare const _default$f: vue.DefineComponent<{
752
757
  /**
753
758
  * The modal's v-model. Controls the visibility of the modal.
754
759
  */
@@ -927,7 +932,7 @@ declare interface ProgressBarStep {
927
932
  subSteps: number;
928
933
  }
929
934
 
930
- declare const _default$c: vue.DefineComponent<{
935
+ declare const _default$e: vue.DefineComponent<{
931
936
  /**
932
937
  * An array of menu progress steps.
933
938
  * `{ label: string; position: number; subSteps: number; }`
@@ -994,7 +999,7 @@ declare interface FwTagProps {
994
999
  variant?: TagVariantName;
995
1000
  }
996
1001
 
997
- declare const _default$b: vue.DefineComponent<{
1002
+ declare const _default$d: vue.DefineComponent<{
998
1003
  /**
999
1004
  * The size of the tag. Accepts: 'xs' & 'sm'
1000
1005
  */
@@ -1054,7 +1059,7 @@ declare interface FwTableProps {
1054
1059
  loading?: boolean;
1055
1060
  }
1056
1061
 
1057
- declare const _default$a: vue.DefineComponent<{
1062
+ declare const _default$c: vue.DefineComponent<{
1058
1063
  items: {
1059
1064
  type: PropType<FwTableItem[]>;
1060
1065
  required: true;
@@ -1095,11 +1100,11 @@ declare const _default$a: vue.DefineComponent<{
1095
1100
  loading: boolean;
1096
1101
  }>;
1097
1102
 
1098
- declare const _default$9: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1103
+ declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1099
1104
 
1100
- declare const _default$8: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1105
+ declare const _default$a: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1101
1106
 
1102
- declare const _default$7: vue.DefineComponent<{
1107
+ declare const _default$9: vue.DefineComponent<{
1103
1108
  /**
1104
1109
  * The header title of the accordion
1105
1110
  */
@@ -1147,7 +1152,7 @@ declare const _default$7: vue.DefineComponent<{
1147
1152
  isOpened: boolean;
1148
1153
  }>;
1149
1154
 
1150
- declare const _default$6: vue.DefineComponent<{
1155
+ declare const _default$8: vue.DefineComponent<{
1151
1156
  /**
1152
1157
  * The src attribute of the image
1153
1158
  */
@@ -1230,11 +1235,11 @@ declare const _default$6: vue.DefineComponent<{
1230
1235
  threshold: number;
1231
1236
  }>;
1232
1237
 
1233
- declare const _default$5: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1238
+ declare const _default$7: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1234
1239
 
1235
- declare const _default$4: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1240
+ declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1236
1241
 
1237
- declare const _default$3: vue.DefineComponent<{
1242
+ declare const _default$5: vue.DefineComponent<{
1238
1243
  columns: {
1239
1244
  type: NumberConstructor;
1240
1245
  default: number;
@@ -1273,7 +1278,7 @@ declare interface FwToastProps {
1273
1278
  timeout?: number;
1274
1279
  }
1275
1280
 
1276
- declare const _default$2: vue.DefineComponent<{
1281
+ declare const _default$4: vue.DefineComponent<{
1277
1282
  /**
1278
1283
  * The toast's v-model. Controls the visibility of the toast.
1279
1284
  */
@@ -1392,7 +1397,7 @@ declare const _default$2: vue.DefineComponent<{
1392
1397
  timeout: number;
1393
1398
  }>;
1394
1399
 
1395
- declare const _default$1: vue.DefineComponent<{
1400
+ declare const _default$3: vue.DefineComponent<{
1396
1401
  /**
1397
1402
  * The transaction title of the card
1398
1403
  */
@@ -1450,6 +1455,175 @@ declare const _default$1: vue.DefineComponent<{
1450
1455
  };
1451
1456
  }>>, {}>;
1452
1457
 
1458
+ declare interface FwBarGraphData {
1459
+ name: string;
1460
+ value: string | number;
1461
+ }
1462
+ declare interface FwBarChartProps {
1463
+ title?: string;
1464
+ yMarker?: string;
1465
+ x?: string[] | string;
1466
+ y?: (string | number)[] | string;
1467
+ graphData?: FwBarGraphData[] | string;
1468
+ }
1469
+
1470
+ declare const _default$2: vue.DefineComponent<{
1471
+ /**
1472
+ * The transaction title of the chart
1473
+ */
1474
+ title: {
1475
+ type: StringConstructor;
1476
+ };
1477
+ /**
1478
+ * The marker label of the y-axis transactions
1479
+ */
1480
+ yMarker: {
1481
+ type: StringConstructor;
1482
+ };
1483
+ /**
1484
+ * The x axis data.
1485
+ */
1486
+ x: {
1487
+ type: PropType<string | string[] | undefined>;
1488
+ };
1489
+ /**
1490
+ * The y axis data.
1491
+ */
1492
+ y: {
1493
+ type: PropType<string | (string | number)[] | undefined>;
1494
+ };
1495
+ /**
1496
+ * The x and y axis data.
1497
+ */
1498
+ graphData: {
1499
+ type: PropType<string | FwBarGraphData[] | undefined>;
1500
+ };
1501
+ }, {
1502
+ uuid: string;
1503
+ xModel: vue.ComputedRef<string[]>;
1504
+ yModel: vue.ComputedRef<number[]>;
1505
+ chartOptions: vue.ComputedRef<chart_js_dist_types_utils._DeepPartialObject<chart_js.CoreChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ElementChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.PluginChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.DatasetChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ScaleChartOptions<keyof chart_js.ChartTypeRegistry>>>;
1506
+ chartData: vue.ComputedRef<{
1507
+ labels: string[];
1508
+ datasets: {
1509
+ backgroundColor: string[] | undefined;
1510
+ data: number[];
1511
+ borderWidth: number;
1512
+ borderRadius: number;
1513
+ barPercentage: number;
1514
+ }[];
1515
+ }>;
1516
+ bgColor: string;
1517
+ primaryFade: string;
1518
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1519
+ /**
1520
+ * The transaction title of the chart
1521
+ */
1522
+ title: {
1523
+ type: StringConstructor;
1524
+ };
1525
+ /**
1526
+ * The marker label of the y-axis transactions
1527
+ */
1528
+ yMarker: {
1529
+ type: StringConstructor;
1530
+ };
1531
+ /**
1532
+ * The x axis data.
1533
+ */
1534
+ x: {
1535
+ type: PropType<string | string[] | undefined>;
1536
+ };
1537
+ /**
1538
+ * The y axis data.
1539
+ */
1540
+ y: {
1541
+ type: PropType<string | (string | number)[] | undefined>;
1542
+ };
1543
+ /**
1544
+ * The x and y axis data.
1545
+ */
1546
+ graphData: {
1547
+ type: PropType<string | FwBarGraphData[] | undefined>;
1548
+ };
1549
+ }>>, {}>;
1550
+
1551
+ declare interface SidebarMenuItem {
1552
+ to?: string | object;
1553
+ href?: string;
1554
+ label: string;
1555
+ external?: boolean;
1556
+ }
1557
+
1558
+ declare const _default$1: vue.DefineComponent<{
1559
+ /**
1560
+ * An array of menu items
1561
+ * `{ to?: string | object; href?: string; label: string; }`
1562
+ */
1563
+ menuItems: {
1564
+ type: PropType<SidebarMenuItem[]>;
1565
+ };
1566
+ /**
1567
+ * The class for the open/close toggle button
1568
+ */
1569
+ toggleButtonClass: {
1570
+ type: StringConstructor;
1571
+ default: string;
1572
+ };
1573
+ /**
1574
+ * The width class for the sidebar when opened
1575
+ */
1576
+ openWidth: {
1577
+ type: StringConstructor;
1578
+ default: string;
1579
+ };
1580
+ /**
1581
+ * The width class for the sidebar when opened
1582
+ */
1583
+ closedWidth: {
1584
+ type: StringConstructor;
1585
+ default: string;
1586
+ };
1587
+ }, {
1588
+ isMenuOpen: vue.Ref<boolean>;
1589
+ toggleMenu: () => void;
1590
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "toggled"[], "toggled", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1591
+ /**
1592
+ * An array of menu items
1593
+ * `{ to?: string | object; href?: string; label: string; }`
1594
+ */
1595
+ menuItems: {
1596
+ type: PropType<SidebarMenuItem[]>;
1597
+ };
1598
+ /**
1599
+ * The class for the open/close toggle button
1600
+ */
1601
+ toggleButtonClass: {
1602
+ type: StringConstructor;
1603
+ default: string;
1604
+ };
1605
+ /**
1606
+ * The width class for the sidebar when opened
1607
+ */
1608
+ openWidth: {
1609
+ type: StringConstructor;
1610
+ default: string;
1611
+ };
1612
+ /**
1613
+ * The width class for the sidebar when opened
1614
+ */
1615
+ closedWidth: {
1616
+ type: StringConstructor;
1617
+ default: string;
1618
+ };
1619
+ }>> & {
1620
+ onToggled?: ((...args: any[]) => any) | undefined;
1621
+ }, {
1622
+ toggleButtonClass: string;
1623
+ openWidth: string;
1624
+ closedWidth: string;
1625
+ }>;
1626
+
1453
1627
  declare const __default__$1: vue.DefineComponent<{
1454
1628
  /**
1455
1629
  * The animation-iteration-count CSS property of the pulse animation.
@@ -1574,4 +1748,4 @@ declare interface FwTransactionsCardProps {
1574
1748
 
1575
1749
  declare module '@frollo/frollo-web-ui/icons' { }
1576
1750
 
1577
- export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$7 as FwAccordion, FwAccordionProps, _default$h as FwButton, FwButtonProps, _default$i as FwCard, FwCardProps, _default$k as FwCheckbox, FwCheckboxProps, _default$j as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$6 as FwImage, FwImageProps, _default$l as FwInput, FwInputProps, FwInputType, _default$5 as FwLoadingBar, _default$4 as FwLoadingCard, _default as FwLoadingSpinner, _default$3 as FwLoadingTable, _default$d as FwModal, FwModalProps, _default$g as FwNavigationMenu, _default$c as FwProgressBar, __default__ as FwSuccessPulse, _default$e as FwTab, _default$a as FwTable, FwTableFormatFunction, _default$9 as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$8 as FwTableRow, FwTableSort, _default$f as FwTabs, _default$b as FwTag, FwTagProps, _default$2 as FwToast, FwToastProps, _default$1 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -33,6 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/core": "^7.17.5",
36
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
36
37
  "@geometricpanda/storybook-addon-iframe": "^0.2.1",
37
38
  "@rollup/plugin-alias": "^3.1.9",
38
39
  "@rollup/plugin-babel": "^5.3.0",
@@ -61,6 +62,7 @@
61
62
  "babel-core": "^7.0.0-bridge.0",
62
63
  "babel-jest": "^28.1.1",
63
64
  "babel-loader": "^8.2.5",
65
+ "chart.js": "^4.3.0",
64
66
  "cross-env": "^7.0.3",
65
67
  "css-loader": "^6.6.0",
66
68
  "eslint": "^8.9.0",
@@ -83,6 +85,7 @@
83
85
  "ts-jest": "^28.0.5",
84
86
  "typescript": "^4.7.4",
85
87
  "vee-validate": "^4.5.9",
88
+ "vue-chartjs": "^5.2.0",
86
89
  "vue-loader": "^16.8.3",
87
90
  "vue-style-loader": "^4.1.3",
88
91
  "vue-svg-loader": "^0.17.0-beta.2",
@@ -0,0 +1,83 @@
1
+ import { PropType } from 'vue';
2
+ import { FwBarGraphData } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The transaction title of the chart
6
+ */
7
+ title: {
8
+ type: StringConstructor;
9
+ };
10
+ /**
11
+ * The marker label of the y-axis transactions
12
+ */
13
+ yMarker: {
14
+ type: StringConstructor;
15
+ };
16
+ /**
17
+ * The x axis data.
18
+ */
19
+ x: {
20
+ type: PropType<string | string[] | undefined>;
21
+ };
22
+ /**
23
+ * The y axis data.
24
+ */
25
+ y: {
26
+ type: PropType<string | (string | number)[] | undefined>;
27
+ };
28
+ /**
29
+ * The x and y axis data.
30
+ */
31
+ graphData: {
32
+ type: PropType<string | FwBarGraphData[] | undefined>;
33
+ };
34
+ }, {
35
+ uuid: string;
36
+ xModel: import("vue").ComputedRef<string[]>;
37
+ yModel: import("vue").ComputedRef<number[]>;
38
+ chartOptions: import("vue").ComputedRef<import("chart.js/dist/types/utils")._DeepPartialObject<import("chart.js").CoreChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ElementChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").PluginChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").DatasetChartOptions<keyof import("chart.js").ChartTypeRegistry> & import("chart.js").ScaleChartOptions<keyof import("chart.js").ChartTypeRegistry>>>;
39
+ chartData: import("vue").ComputedRef<{
40
+ labels: string[];
41
+ datasets: {
42
+ backgroundColor: string[] | undefined;
43
+ data: number[];
44
+ borderWidth: number;
45
+ borderRadius: number;
46
+ barPercentage: number;
47
+ }[];
48
+ }>;
49
+ bgColor: string;
50
+ primaryFade: string;
51
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
52
+ /**
53
+ * The transaction title of the chart
54
+ */
55
+ title: {
56
+ type: StringConstructor;
57
+ };
58
+ /**
59
+ * The marker label of the y-axis transactions
60
+ */
61
+ yMarker: {
62
+ type: StringConstructor;
63
+ };
64
+ /**
65
+ * The x axis data.
66
+ */
67
+ x: {
68
+ type: PropType<string | string[] | undefined>;
69
+ };
70
+ /**
71
+ * The y axis data.
72
+ */
73
+ y: {
74
+ type: PropType<string | (string | number)[] | undefined>;
75
+ };
76
+ /**
77
+ * The x and y axis data.
78
+ */
79
+ graphData: {
80
+ type: PropType<string | FwBarGraphData[] | undefined>;
81
+ };
82
+ }>>, {}>;
83
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwBarChart from './fw-bar-chart.vue';
2
+ export { FwBarChart };
@@ -0,0 +1,11 @@
1
+ export declare interface FwBarGraphData {
2
+ name: string;
3
+ value: string | number;
4
+ }
5
+ export declare interface FwBarChartProps {
6
+ title?: string;
7
+ yMarker?: string;
8
+ x?: string[] | string;
9
+ y?: (string | number)[] | string;
10
+ graphData?: FwBarGraphData[] | string;
11
+ }
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  };
22
22
  /**
23
23
  * The colour variant of the button.
24
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
24
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
25
25
  */
26
26
  variant: {
27
27
  type: PropType<ButtonVariantName>;
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<{
114
114
  };
115
115
  /**
116
116
  * The colour variant of the button.
117
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
117
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
118
118
  */
119
119
  variant: {
120
120
  type: PropType<ButtonVariantName>;
@@ -1,4 +1,4 @@
1
- export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
1
+ export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text' | 'transparent';
2
2
  export declare interface ButtonDefinition {
3
3
  text: string;
4
4
  background: string;
@@ -25,7 +25,9 @@ declare const _default: import("vue").DefineComponent<{
25
25
  hint: {
26
26
  type: StringConstructor;
27
27
  };
28
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ }, {
29
+ uuid: string;
30
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
31
  /**
30
32
  * The name of the input field. Must be unique per form.
31
33
  */
@@ -70,6 +70,7 @@ declare const _default: import("vue").DefineComponent<{
70
70
  default: string;
71
71
  };
72
72
  }, {
73
+ uuid: string;
73
74
  inputBaseClass: import("vue").Ref<string>;
74
75
  inputValue: import("vue").WritableComputedRef<string>;
75
76
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -0,0 +1,71 @@
1
+ import { PropType } from 'vue';
2
+ import { SidebarMenuItem } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * An array of menu items
6
+ * `{ to?: string | object; href?: string; label: string; }`
7
+ */
8
+ menuItems: {
9
+ type: PropType<SidebarMenuItem[]>;
10
+ };
11
+ /**
12
+ * The class for the open/close toggle button
13
+ */
14
+ toggleButtonClass: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ /**
19
+ * The width class for the sidebar when opened
20
+ */
21
+ openWidth: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ /**
26
+ * The width class for the sidebar when opened
27
+ */
28
+ closedWidth: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ }, {
33
+ isMenuOpen: import("vue").Ref<boolean>;
34
+ toggleMenu: () => void;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ /**
37
+ * An array of menu items
38
+ * `{ to?: string | object; href?: string; label: string; }`
39
+ */
40
+ menuItems: {
41
+ type: PropType<SidebarMenuItem[]>;
42
+ };
43
+ /**
44
+ * The class for the open/close toggle button
45
+ */
46
+ toggleButtonClass: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ /**
51
+ * The width class for the sidebar when opened
52
+ */
53
+ openWidth: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ /**
58
+ * The width class for the sidebar when opened
59
+ */
60
+ closedWidth: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ }>> & {
65
+ onToggled?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ toggleButtonClass: string;
68
+ openWidth: string;
69
+ closedWidth: string;
70
+ }>;
71
+ export default _default;