@frollo/frollo-web-ui 2.0.0 → 3.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.
- package/cjs/index.js +17802 -1708
- package/esm/add-to-unscopables-2400f45b.js +25 -0
- package/esm/array-iteration-107f927f.js +92 -0
- package/esm/array-method-has-species-support-3d413468.js +23 -0
- package/esm/array-method-is-strict-055b1830.js +14 -0
- package/esm/array-species-create-a5f5503b.js +97 -0
- package/esm/{classof-088c9833.js → classof-39c30bd5.js} +1 -2
- package/esm/create-property-534611fd.js +14 -0
- package/esm/delete-property-or-throw-8032646c.js +31 -0
- package/esm/does-not-exceed-safe-integer-31d08811.js +11 -0
- package/esm/es.array.concat-987938be.js +69 -0
- package/esm/{es.array.find-54b8f84b.js → es.array.find-dfa1f42f.js} +5 -6
- package/esm/{es.array.includes-9a6e4066.js → es.array.includes-91be7771.js} +3 -4
- package/esm/{es.function.name-2fa3a718.js → es.function.name-557cb1f9.js} +1 -1
- package/esm/{es.number.constructor-b7faae1f.js → es.number.constructor-1249bd78.js} +2 -3
- package/esm/es.string.iterator-284b31d4.js +470 -0
- package/esm/{object-keys-3c73c404.js → export-a37ba078.js} +2 -13
- package/esm/function-apply-ce251590.js +14 -0
- package/esm/fw-accordion.js +2 -8
- package/esm/fw-animations.js +6 -20
- package/esm/fw-bar-chart.js +19 -0
- package/esm/{fw-button-765b9d52.js → fw-button-1486e2d9.js} +6 -24
- package/esm/fw-button.js +9 -8
- package/esm/fw-card-1b6a67fe.js +90 -0
- package/esm/fw-card.js +2 -95
- package/esm/fw-checkbox.js +27 -17
- package/esm/fw-dropdown.js +17 -33
- package/esm/fw-image-4727ac61.js +289 -0
- package/esm/fw-image.js +22 -847
- package/esm/fw-input.js +24 -25
- package/esm/fw-loading-bar-f5ca605c.js +22 -0
- package/esm/{fw-loading-spinner-01b9a040.js → fw-loading-spinner-df1627c0.js} +1 -2
- package/esm/fw-loading.js +6 -9
- package/esm/fw-modal.js +218 -11
- package/esm/fw-navigation-menu.js +11 -19
- package/esm/fw-progress-bar.js +4 -11
- package/esm/fw-table.js +12 -56
- package/esm/fw-tabs.js +60 -20
- package/esm/fw-tag.js +8 -8
- package/esm/fw-toast.js +276 -0
- package/esm/fw-transactions-card.js +115 -0
- package/esm/index-1a41e7bf.js +15838 -0
- package/esm/{index-7833cf39.js → index-4605e00e.js} +114 -86
- package/esm/index.js +87 -73
- package/esm/is-forced-752b5893.js +927 -0
- package/esm/{add-to-unscopables-a5032b1d.js → object-create-f6f3a673.js} +3 -25
- package/esm/object-keys-4f5bf4e7.js +13 -0
- package/esm/{to-string-c2bd1f4d.js → to-string-12728fd2.js} +2 -2
- package/esm/uniqueId-fe08534a.js +279 -0
- package/esm/web.timers-0f117224.js +72 -0
- package/frollo-web-ui.esm.js +18020 -1824
- package/icons/index.ts +5 -1
- package/icons/solid-check.svg +3 -0
- package/icons/solid-xmark.svg +3 -0
- package/index.d.ts +344 -22
- package/package.json +5 -1
- package/styles/web-components.scss +8 -0
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -0
- package/types/components/fw-bar-chart/index.d.ts +2 -0
- package/types/components/fw-bar-chart/index.types.d.ts +11 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +3 -1
- package/types/components/fw-input/fw-input.vue.d.ts +1 -0
- package/types/components/fw-modal/fw-modal.vue.d.ts +16 -0
- package/types/components/fw-modal/index.types.d.ts +1 -0
- package/types/components/fw-toast/fw-toast.vue.d.ts +121 -0
- package/types/components/fw-toast/index.d.ts +2 -0
- package/types/components/fw-toast/index.types.d.ts +13 -0
- package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -0
- package/types/components/fw-transactions-card/index.d.ts +2 -0
- package/types/components/fw-transactions-card/index.types.d.ts +6 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/index.types.d.ts +3 -0
- package/types/icons/index.d.ts +3 -1
- package/types/index.browser-umd.d.ts +1 -0
- package/types/services/index.d.ts +1 -0
- package/types/services/modal.d.ts +1 -1
- package/types/services/toast.d.ts +9 -0
- package/web-components/index.js +36612 -0
- package/esm/array-iteration-4f83e223.js +0 -186
- package/esm/create-property-da6d232b.js +0 -26
- package/esm/function-name-c49146fc.js +0 -492
- package/esm/fw-loading-bar-da7d53fb.js +0 -22
- package/esm/index-06f4e5f1.js +0 -482
- package/esm/is-forced-fd46b5f2.js +0 -438
package/icons/index.ts
CHANGED
|
@@ -26,6 +26,8 @@ import PlusSvg from './plus.svg';
|
|
|
26
26
|
import UserSvg from './user.svg';
|
|
27
27
|
import LoadingSvg from './loading.svg';
|
|
28
28
|
import BullseyeSvg from './bullseye.svg';
|
|
29
|
+
import SolidCheckSvg from './solid-check.svg';
|
|
30
|
+
import SolidXMarkSvg from './solid-xmark.svg';
|
|
29
31
|
|
|
30
32
|
export {
|
|
31
33
|
ViewSvg,
|
|
@@ -55,5 +57,7 @@ export {
|
|
|
55
57
|
PlusSvg,
|
|
56
58
|
UserSvg,
|
|
57
59
|
LoadingSvg,
|
|
58
|
-
BullseyeSvg
|
|
60
|
+
BullseyeSvg,
|
|
61
|
+
SolidCheckSvg,
|
|
62
|
+
SolidXMarkSvg
|
|
59
63
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0 12C0 5.37188 5.37188 0 12 0C18.6281 0 24 5.37188 24 12C24 18.6281 18.6281 24 12 24C5.37188 24 0 18.6281 0 12ZM17.4281 9.92813C17.9391 9.41719 17.9391 8.58281 17.4281 8.07187C16.9172 7.56094 16.0828 7.56094 15.5719 8.07187L10.5 13.1437L8.42813 11.0719C7.91719 10.5609 7.08281 10.5609 6.57187 11.0719C6.06094 11.5828 6.06094 12.4172 6.57187 12.9281L9.57187 15.9281C10.0828 16.4391 10.9172 16.4391 11.4281 15.9281L17.4281 9.92813Z" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0 12C0 5.37188 5.37188 0 12 0C18.6281 0 24 5.37188 24 12C24 18.6281 18.6281 24 12 24C5.37188 24 0 18.6281 0 12ZM8.20312 9.75469L10.4109 11.9578L8.20312 14.2031C7.76719 14.6438 7.76719 15.3563 8.20312 15.7547C8.64375 16.2328 9.35625 16.2328 9.75469 15.7547L11.9578 13.5891L14.2031 15.7547C14.6438 16.2328 15.3563 16.2328 15.7547 15.7547C16.2328 15.3563 16.2328 14.6438 15.7547 14.2031L13.5891 11.9578L15.7547 9.75469C16.2328 9.35625 16.2328 8.64375 15.7547 8.20312C15.3563 7.76719 14.6438 7.76719 14.2031 8.20312L11.9578 10.4109L9.75469 8.20312C9.35625 7.76719 8.64375 7.76719 8.20312 8.20312C7.76719 8.64375 7.76719 9.35625 8.20312 9.75469Z" />
|
|
3
|
+
</svg>
|
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$
|
|
23
|
+
declare const _default$m: vue.DefineComponent<{
|
|
22
24
|
/**
|
|
23
25
|
* The input v-model
|
|
24
26
|
*/
|
|
@@ -88,6 +90,7 @@ declare const _default$j: 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$j: vue.DefineComponent<{
|
|
|
169
172
|
tabindex: string;
|
|
170
173
|
}>;
|
|
171
174
|
|
|
172
|
-
declare const _default$
|
|
175
|
+
declare const _default$l: 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$i: vue.DefineComponent<{
|
|
|
195
198
|
hint: {
|
|
196
199
|
type: StringConstructor;
|
|
197
200
|
};
|
|
198
|
-
},
|
|
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$
|
|
244
|
+
declare const _default$k: vue.DefineComponent<{
|
|
240
245
|
/**
|
|
241
246
|
* The select v-model
|
|
242
247
|
*/
|
|
@@ -347,7 +352,7 @@ declare const _default$h: vue.DefineComponent<{
|
|
|
347
352
|
placeholder: string;
|
|
348
353
|
}>;
|
|
349
354
|
|
|
350
|
-
declare const _default$
|
|
355
|
+
declare const _default$j: vue.DefineComponent<{
|
|
351
356
|
/**
|
|
352
357
|
* The header title of the card
|
|
353
358
|
*/
|
|
@@ -456,7 +461,7 @@ declare interface FwButtonProps {
|
|
|
456
461
|
external?: boolean;
|
|
457
462
|
}
|
|
458
463
|
|
|
459
|
-
declare const _default$
|
|
464
|
+
declare const _default$i: vue.DefineComponent<{
|
|
460
465
|
/**
|
|
461
466
|
* A `router-link` path or object
|
|
462
467
|
*/
|
|
@@ -637,7 +642,7 @@ declare interface NavMenuItem {
|
|
|
637
642
|
external?: boolean;
|
|
638
643
|
}
|
|
639
644
|
|
|
640
|
-
declare const _default$
|
|
645
|
+
declare const _default$h: 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$e: vue.DefineComponent<{
|
|
|
692
697
|
containerClass: string;
|
|
693
698
|
}>;
|
|
694
699
|
|
|
695
|
-
declare const _default$
|
|
700
|
+
declare const _default$g: vue.DefineComponent<{
|
|
696
701
|
/**
|
|
697
702
|
* The active tab v-model
|
|
698
703
|
*/
|
|
@@ -716,7 +721,7 @@ declare const _default$d: vue.DefineComponent<{
|
|
|
716
721
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
717
722
|
}, {}>;
|
|
718
723
|
|
|
719
|
-
declare const _default$
|
|
724
|
+
declare const _default$f: 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$c: vue.DefineComponent<{
|
|
|
748
753
|
};
|
|
749
754
|
}>>, {}>;
|
|
750
755
|
|
|
751
|
-
declare const _default$
|
|
756
|
+
declare const _default$e: vue.DefineComponent<{
|
|
752
757
|
/**
|
|
753
758
|
* The modal's v-model. Controls the visibility of the modal.
|
|
754
759
|
*/
|
|
@@ -761,6 +766,13 @@ declare const _default$b: vue.DefineComponent<{
|
|
|
761
766
|
header: {
|
|
762
767
|
type: StringConstructor;
|
|
763
768
|
};
|
|
769
|
+
/**
|
|
770
|
+
* The element to attach the modal too. Defaults to `#app` element.
|
|
771
|
+
*/
|
|
772
|
+
element: {
|
|
773
|
+
type: StringConstructor;
|
|
774
|
+
default: string;
|
|
775
|
+
};
|
|
764
776
|
/**
|
|
765
777
|
* The body description of the modal
|
|
766
778
|
*/
|
|
@@ -821,6 +833,7 @@ declare const _default$b: vue.DefineComponent<{
|
|
|
821
833
|
}, {
|
|
822
834
|
isOpen: vue.ComputedRef<boolean>;
|
|
823
835
|
uuid: string;
|
|
836
|
+
isMounted: vue.Ref<boolean>;
|
|
824
837
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
825
838
|
/**
|
|
826
839
|
* The modal's v-model. Controls the visibility of the modal.
|
|
@@ -834,6 +847,13 @@ declare const _default$b: vue.DefineComponent<{
|
|
|
834
847
|
header: {
|
|
835
848
|
type: StringConstructor;
|
|
836
849
|
};
|
|
850
|
+
/**
|
|
851
|
+
* The element to attach the modal too. Defaults to `#app` element.
|
|
852
|
+
*/
|
|
853
|
+
element: {
|
|
854
|
+
type: StringConstructor;
|
|
855
|
+
default: string;
|
|
856
|
+
};
|
|
837
857
|
/**
|
|
838
858
|
* The body description of the modal
|
|
839
859
|
*/
|
|
@@ -896,6 +916,7 @@ declare const _default$b: vue.DefineComponent<{
|
|
|
896
916
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
897
917
|
}, {
|
|
898
918
|
modelValue: boolean;
|
|
919
|
+
element: string;
|
|
899
920
|
role: string;
|
|
900
921
|
showCancel: boolean;
|
|
901
922
|
showConfirm: boolean;
|
|
@@ -911,7 +932,7 @@ declare interface ProgressBarStep {
|
|
|
911
932
|
subSteps: number;
|
|
912
933
|
}
|
|
913
934
|
|
|
914
|
-
declare const _default$
|
|
935
|
+
declare const _default$d: vue.DefineComponent<{
|
|
915
936
|
/**
|
|
916
937
|
* An array of menu progress steps.
|
|
917
938
|
* `{ label: string; position: number; subSteps: number; }`
|
|
@@ -978,7 +999,7 @@ declare interface FwTagProps {
|
|
|
978
999
|
variant?: TagVariantName;
|
|
979
1000
|
}
|
|
980
1001
|
|
|
981
|
-
declare const _default$
|
|
1002
|
+
declare const _default$c: vue.DefineComponent<{
|
|
982
1003
|
/**
|
|
983
1004
|
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
984
1005
|
*/
|
|
@@ -1038,7 +1059,7 @@ declare interface FwTableProps {
|
|
|
1038
1059
|
loading?: boolean;
|
|
1039
1060
|
}
|
|
1040
1061
|
|
|
1041
|
-
declare const _default$
|
|
1062
|
+
declare const _default$b: vue.DefineComponent<{
|
|
1042
1063
|
items: {
|
|
1043
1064
|
type: PropType<FwTableItem[]>;
|
|
1044
1065
|
required: true;
|
|
@@ -1079,11 +1100,11 @@ declare const _default$8: vue.DefineComponent<{
|
|
|
1079
1100
|
loading: boolean;
|
|
1080
1101
|
}>;
|
|
1081
1102
|
|
|
1082
|
-
declare const _default$
|
|
1103
|
+
declare const _default$a: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1083
1104
|
|
|
1084
|
-
declare const _default$
|
|
1105
|
+
declare const _default$9: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1085
1106
|
|
|
1086
|
-
declare const _default$
|
|
1107
|
+
declare const _default$8: vue.DefineComponent<{
|
|
1087
1108
|
/**
|
|
1088
1109
|
* The header title of the accordion
|
|
1089
1110
|
*/
|
|
@@ -1131,7 +1152,7 @@ declare const _default$5: vue.DefineComponent<{
|
|
|
1131
1152
|
isOpened: boolean;
|
|
1132
1153
|
}>;
|
|
1133
1154
|
|
|
1134
|
-
declare const _default$
|
|
1155
|
+
declare const _default$7: vue.DefineComponent<{
|
|
1135
1156
|
/**
|
|
1136
1157
|
* The src attribute of the image
|
|
1137
1158
|
*/
|
|
@@ -1214,11 +1235,11 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
1214
1235
|
threshold: number;
|
|
1215
1236
|
}>;
|
|
1216
1237
|
|
|
1217
|
-
declare const _default$
|
|
1238
|
+
declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1218
1239
|
|
|
1219
|
-
declare const _default$
|
|
1240
|
+
declare const _default$5: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1220
1241
|
|
|
1221
|
-
declare const _default$
|
|
1242
|
+
declare const _default$4: vue.DefineComponent<{
|
|
1222
1243
|
columns: {
|
|
1223
1244
|
type: NumberConstructor;
|
|
1224
1245
|
default: number;
|
|
@@ -1243,6 +1264,290 @@ declare const _default$1: vue.DefineComponent<{
|
|
|
1243
1264
|
rows: number;
|
|
1244
1265
|
}>;
|
|
1245
1266
|
|
|
1267
|
+
declare type ToastType = 'success' | 'error' | 'warning';
|
|
1268
|
+
declare type ToastTypes = {
|
|
1269
|
+
[key in ToastType]: string;
|
|
1270
|
+
};
|
|
1271
|
+
declare type ToastPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
1272
|
+
declare interface FwToastProps {
|
|
1273
|
+
modelValue: boolean;
|
|
1274
|
+
type?: ToastType;
|
|
1275
|
+
position?: ToastPosition;
|
|
1276
|
+
content?: string;
|
|
1277
|
+
element?: string;
|
|
1278
|
+
timeout?: number;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
declare const _default$3: vue.DefineComponent<{
|
|
1282
|
+
/**
|
|
1283
|
+
* The toast's v-model. Controls the visibility of the toast.
|
|
1284
|
+
*/
|
|
1285
|
+
modelValue: {
|
|
1286
|
+
type: BooleanConstructor;
|
|
1287
|
+
};
|
|
1288
|
+
/**
|
|
1289
|
+
* The type of the toast.
|
|
1290
|
+
* Accepts: 'success', 'error', 'warning'
|
|
1291
|
+
*/
|
|
1292
|
+
type: {
|
|
1293
|
+
type: PropType<ToastType>;
|
|
1294
|
+
default: string;
|
|
1295
|
+
validator: (value: string) => boolean;
|
|
1296
|
+
};
|
|
1297
|
+
/**
|
|
1298
|
+
* The position of the toast on the screen.
|
|
1299
|
+
* Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
|
|
1300
|
+
*/
|
|
1301
|
+
position: {
|
|
1302
|
+
type: PropType<ToastPosition>;
|
|
1303
|
+
default: string;
|
|
1304
|
+
validator: (value: string) => boolean;
|
|
1305
|
+
};
|
|
1306
|
+
/**
|
|
1307
|
+
* The content of the toast.
|
|
1308
|
+
*/
|
|
1309
|
+
content: {
|
|
1310
|
+
type: StringConstructor;
|
|
1311
|
+
};
|
|
1312
|
+
/**
|
|
1313
|
+
* The base container to attach to. Defaults to `#app` element.
|
|
1314
|
+
*/
|
|
1315
|
+
element: {
|
|
1316
|
+
type: StringConstructor;
|
|
1317
|
+
default: string;
|
|
1318
|
+
};
|
|
1319
|
+
/**
|
|
1320
|
+
* The duration timeout before the toast is dismissed.
|
|
1321
|
+
*/
|
|
1322
|
+
timeout: {
|
|
1323
|
+
type: NumberConstructor;
|
|
1324
|
+
default: number;
|
|
1325
|
+
};
|
|
1326
|
+
}, {
|
|
1327
|
+
containerEl: vue.ComputedRef<string>;
|
|
1328
|
+
baseClass: string;
|
|
1329
|
+
typeClasses: vue.Ref<{
|
|
1330
|
+
success: string;
|
|
1331
|
+
error: string;
|
|
1332
|
+
warning: string;
|
|
1333
|
+
}>;
|
|
1334
|
+
svgComponent: vue.Ref<{
|
|
1335
|
+
success: string;
|
|
1336
|
+
error: string;
|
|
1337
|
+
warning: string;
|
|
1338
|
+
}>;
|
|
1339
|
+
isOpen: vue.WritableComputedRef<vue.Ref<boolean>>;
|
|
1340
|
+
uuid: string;
|
|
1341
|
+
isMounted: vue.Ref<boolean>;
|
|
1342
|
+
mountContainer: vue.Ref<boolean>;
|
|
1343
|
+
isLeftRightorCenter: vue.ComputedRef<"Right" | "Left" | "Center">;
|
|
1344
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "dismissed")[], "update:modelValue" | "dismissed", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
1345
|
+
/**
|
|
1346
|
+
* The toast's v-model. Controls the visibility of the toast.
|
|
1347
|
+
*/
|
|
1348
|
+
modelValue: {
|
|
1349
|
+
type: BooleanConstructor;
|
|
1350
|
+
};
|
|
1351
|
+
/**
|
|
1352
|
+
* The type of the toast.
|
|
1353
|
+
* Accepts: 'success', 'error', 'warning'
|
|
1354
|
+
*/
|
|
1355
|
+
type: {
|
|
1356
|
+
type: PropType<ToastType>;
|
|
1357
|
+
default: string;
|
|
1358
|
+
validator: (value: string) => boolean;
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* The position of the toast on the screen.
|
|
1362
|
+
* Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
|
|
1363
|
+
*/
|
|
1364
|
+
position: {
|
|
1365
|
+
type: PropType<ToastPosition>;
|
|
1366
|
+
default: string;
|
|
1367
|
+
validator: (value: string) => boolean;
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* The content of the toast.
|
|
1371
|
+
*/
|
|
1372
|
+
content: {
|
|
1373
|
+
type: StringConstructor;
|
|
1374
|
+
};
|
|
1375
|
+
/**
|
|
1376
|
+
* The base container to attach to. Defaults to `#app` element.
|
|
1377
|
+
*/
|
|
1378
|
+
element: {
|
|
1379
|
+
type: StringConstructor;
|
|
1380
|
+
default: string;
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* The duration timeout before the toast is dismissed.
|
|
1384
|
+
*/
|
|
1385
|
+
timeout: {
|
|
1386
|
+
type: NumberConstructor;
|
|
1387
|
+
default: number;
|
|
1388
|
+
};
|
|
1389
|
+
}>> & {
|
|
1390
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1391
|
+
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
1392
|
+
}, {
|
|
1393
|
+
modelValue: boolean;
|
|
1394
|
+
type: ToastType;
|
|
1395
|
+
position: ToastPosition;
|
|
1396
|
+
element: string;
|
|
1397
|
+
timeout: number;
|
|
1398
|
+
}>;
|
|
1399
|
+
|
|
1400
|
+
declare const _default$2: vue.DefineComponent<{
|
|
1401
|
+
/**
|
|
1402
|
+
* The transaction title of the card
|
|
1403
|
+
*/
|
|
1404
|
+
title: {
|
|
1405
|
+
type: StringConstructor;
|
|
1406
|
+
};
|
|
1407
|
+
/**
|
|
1408
|
+
* The transaction sub-title of the card
|
|
1409
|
+
*/
|
|
1410
|
+
subTitle: {
|
|
1411
|
+
type: StringConstructor;
|
|
1412
|
+
required: false;
|
|
1413
|
+
};
|
|
1414
|
+
/**
|
|
1415
|
+
* The transaction amount.
|
|
1416
|
+
*/
|
|
1417
|
+
amount: {
|
|
1418
|
+
type: StringConstructor;
|
|
1419
|
+
required: false;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* The src url for the image.
|
|
1423
|
+
*/
|
|
1424
|
+
imageUrl: {
|
|
1425
|
+
type: StringConstructor;
|
|
1426
|
+
required: false;
|
|
1427
|
+
};
|
|
1428
|
+
}, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
1429
|
+
/**
|
|
1430
|
+
* The transaction title of the card
|
|
1431
|
+
*/
|
|
1432
|
+
title: {
|
|
1433
|
+
type: StringConstructor;
|
|
1434
|
+
};
|
|
1435
|
+
/**
|
|
1436
|
+
* The transaction sub-title of the card
|
|
1437
|
+
*/
|
|
1438
|
+
subTitle: {
|
|
1439
|
+
type: StringConstructor;
|
|
1440
|
+
required: false;
|
|
1441
|
+
};
|
|
1442
|
+
/**
|
|
1443
|
+
* The transaction amount.
|
|
1444
|
+
*/
|
|
1445
|
+
amount: {
|
|
1446
|
+
type: StringConstructor;
|
|
1447
|
+
required: false;
|
|
1448
|
+
};
|
|
1449
|
+
/**
|
|
1450
|
+
* The src url for the image.
|
|
1451
|
+
*/
|
|
1452
|
+
imageUrl: {
|
|
1453
|
+
type: StringConstructor;
|
|
1454
|
+
required: false;
|
|
1455
|
+
};
|
|
1456
|
+
}>>, {}>;
|
|
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$1: 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
|
+
|
|
1246
1551
|
declare const __default__$1: vue.DefineComponent<{
|
|
1247
1552
|
/**
|
|
1248
1553
|
* The animation-iteration-count CSS property of the pulse animation.
|
|
@@ -1296,6 +1601,7 @@ declare const _default: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOpt
|
|
|
1296
1601
|
declare interface FwModalProps {
|
|
1297
1602
|
modelValue: boolean;
|
|
1298
1603
|
header?: string;
|
|
1604
|
+
element?: string;
|
|
1299
1605
|
body?: string;
|
|
1300
1606
|
role?: string;
|
|
1301
1607
|
showCancel?: boolean;
|
|
@@ -1310,11 +1616,20 @@ declare interface ModalServiceProps extends Omit<FwModalProps, 'modelValue'> {
|
|
|
1310
1616
|
onConfirm?: () => void;
|
|
1311
1617
|
onCancel?: () => void;
|
|
1312
1618
|
}
|
|
1313
|
-
declare const modalService: (options?: ModalServiceProps
|
|
1619
|
+
declare const modalService: (options?: ModalServiceProps) => {
|
|
1314
1620
|
open: () => void;
|
|
1315
1621
|
close: () => void;
|
|
1316
1622
|
};
|
|
1317
1623
|
|
|
1624
|
+
declare interface ToastServiceProps extends Omit<FwToastProps, 'modelValue' | 'type'> {
|
|
1625
|
+
onDismissed?: () => void;
|
|
1626
|
+
}
|
|
1627
|
+
declare const toastService: () => {
|
|
1628
|
+
success: (options?: ToastServiceProps) => void;
|
|
1629
|
+
error: (options?: ToastServiceProps) => void;
|
|
1630
|
+
warning: (options?: ToastServiceProps) => void;
|
|
1631
|
+
};
|
|
1632
|
+
|
|
1318
1633
|
declare const install: Exclude<Plugin['install'], undefined>;
|
|
1319
1634
|
|
|
1320
1635
|
declare interface FwCardProps {
|
|
@@ -1348,6 +1663,13 @@ declare interface FwImageProps {
|
|
|
1348
1663
|
threshold?: number;
|
|
1349
1664
|
}
|
|
1350
1665
|
|
|
1666
|
+
declare interface FwTransactionsCardProps {
|
|
1667
|
+
title: string;
|
|
1668
|
+
subTitle?: string;
|
|
1669
|
+
imageUrl?: string;
|
|
1670
|
+
amount?: string;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1351
1673
|
declare module '@frollo/frollo-web-ui/icons' { }
|
|
1352
1674
|
|
|
1353
|
-
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$
|
|
1675
|
+
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$8 as FwAccordion, FwAccordionProps, _default$1 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$7 as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$6 as FwLoadingBar, _default$5 as FwLoadingCard, _default as FwLoadingSpinner, _default$4 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, _default$d as FwProgressBar, __default__ as FwSuccessPulse, _default$f as FwTab, _default$b as FwTable, FwTableFormatFunction, _default$a as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$9 as FwTableRow, FwTableSort, _default$g as FwTabs, _default$c as FwTag, FwTagProps, _default$3 as FwToast, FwToastProps, _default$2 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": "
|
|
3
|
+
"version": "3.0.1",
|
|
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,9 +85,11 @@
|
|
|
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",
|
|
92
|
+
"vue3-webcomponent-wrapper": "^0.2.0",
|
|
89
93
|
"yup": "^0.32.11"
|
|
90
94
|
},
|
|
91
95
|
"homepage": "https://github.com/frollous/frollo-web-ui#readme",
|