@frollo/frollo-web-ui 1.2.6 → 1.2.8
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 +219 -150
- package/esm/fw-animations.js +3 -0
- package/esm/{fw-button-d5d2cf19.js → fw-button-dc078722.js} +57 -14
- package/esm/fw-button.js +4 -1
- package/esm/fw-dropdown.js +1 -1
- package/esm/fw-image.js +1 -1
- package/esm/fw-loading-spinner-649aa589.js +21 -0
- package/esm/fw-modal.js +5 -2
- package/esm/fw-navigation-menu.js +4 -1
- package/esm/fw-table.js +1 -1
- package/esm/{index-b3aa1664.js → index-403af654.js} +100 -82
- package/esm/{index-7d8c95be.js → index-f00f3690.js} +1 -1
- package/esm/index.js +9 -6
- package/frollo-web-ui.esm.js +235 -157
- package/icons/index.ts +3 -1
- package/icons/loading.svg +4 -0
- package/index.d.ts +59 -25
- package/package.json +1 -1
- package/types/components/fw-animations/fw-loading-spinner.vue.d.ts +2 -0
- package/types/components/fw-animations/index.d.ts +2 -1
- package/types/components/fw-button/fw-button.vue.d.ts +36 -5
- package/types/components/fw-button/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +2 -1
package/icons/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ import CaretDownSvg from './caret-down.svg';
|
|
|
24
24
|
import SortLightSvg from './sort-light.svg';
|
|
25
25
|
import PlusSvg from './plus.svg';
|
|
26
26
|
import UserSvg from './user.svg';
|
|
27
|
+
import LoadingSvg from './loading.svg';
|
|
27
28
|
|
|
28
29
|
export {
|
|
29
30
|
ViewSvg,
|
|
@@ -51,5 +52,6 @@ export {
|
|
|
51
52
|
CaretDownSvg,
|
|
52
53
|
SortLightSvg,
|
|
53
54
|
PlusSvg,
|
|
54
|
-
UserSvg
|
|
55
|
+
UserSvg,
|
|
56
|
+
LoadingSvg
|
|
55
57
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 44 44" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M26.6585 4.61339C17.0561 2.04043 7.186 7.73892 4.61304 17.3413C2.04009 26.9437 7.73858 36.8138 17.341 39.3867L16.3057 43.2504C4.56943 40.1057 -2.39538 28.0423 0.74934 16.306C3.89406 4.56978 15.9575 -2.39504 27.6937 0.749683C39.43 3.8944 46.3948 15.9578 43.2501 27.6941L39.3864 26.6588C41.9593 17.0564 36.2608 7.18634 26.6585 4.61339Z" />
|
|
3
|
+
</svg>
|
|
4
|
+
|
package/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare interface FwInputProps {
|
|
|
18
18
|
tabindex?: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
declare const _default$
|
|
21
|
+
declare const _default$j: vue.DefineComponent<{
|
|
22
22
|
/**
|
|
23
23
|
* The input v-model
|
|
24
24
|
*/
|
|
@@ -169,7 +169,7 @@ declare const _default$i: vue.DefineComponent<{
|
|
|
169
169
|
tabindex: string;
|
|
170
170
|
}>;
|
|
171
171
|
|
|
172
|
-
declare const _default$
|
|
172
|
+
declare const _default$i: vue.DefineComponent<{
|
|
173
173
|
/**
|
|
174
174
|
* The name of the input field. Must be unique per form.
|
|
175
175
|
*/
|
|
@@ -236,7 +236,7 @@ declare interface FwDropdownProps {
|
|
|
236
236
|
placeholder?: string;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
declare const _default$
|
|
239
|
+
declare const _default$h: vue.DefineComponent<{
|
|
240
240
|
/**
|
|
241
241
|
* The select v-model
|
|
242
242
|
*/
|
|
@@ -347,7 +347,7 @@ declare const _default$g: vue.DefineComponent<{
|
|
|
347
347
|
placeholder: string;
|
|
348
348
|
}>;
|
|
349
349
|
|
|
350
|
-
declare const _default$
|
|
350
|
+
declare const _default$g: vue.DefineComponent<{
|
|
351
351
|
/**
|
|
352
352
|
* The header title of the card
|
|
353
353
|
*/
|
|
@@ -452,9 +452,10 @@ declare interface FwButtonProps {
|
|
|
452
452
|
buttonType?: ButtonTypeAttribute;
|
|
453
453
|
animation?: ButtonAnimation;
|
|
454
454
|
rounded?: boolean;
|
|
455
|
+
loading?: boolean;
|
|
455
456
|
}
|
|
456
457
|
|
|
457
|
-
declare const _default$
|
|
458
|
+
declare const _default$f: vue.DefineComponent<{
|
|
458
459
|
/**
|
|
459
460
|
* A `router-link` path or object
|
|
460
461
|
*/
|
|
@@ -506,18 +507,41 @@ declare const _default$e: vue.DefineComponent<{
|
|
|
506
507
|
type: BooleanConstructor;
|
|
507
508
|
default: boolean;
|
|
508
509
|
};
|
|
510
|
+
/**
|
|
511
|
+
* Whether the loading animation is shown or not
|
|
512
|
+
*/
|
|
513
|
+
loading: {
|
|
514
|
+
type: BooleanConstructor;
|
|
515
|
+
default: boolean;
|
|
516
|
+
};
|
|
509
517
|
}, {
|
|
510
518
|
baseClass: vue.Ref<string>;
|
|
511
519
|
textColorClass: vue.ComputedRef<string>;
|
|
512
520
|
bgColorClass: vue.ComputedRef<string>;
|
|
513
521
|
sizeClass: vue.ComputedRef<string>;
|
|
514
522
|
borderClass: vue.ComputedRef<string>;
|
|
515
|
-
onClick: (
|
|
516
|
-
onMouseover: (
|
|
517
|
-
onMouseout: (
|
|
518
|
-
onFocusin: (
|
|
519
|
-
onFocusout: (
|
|
523
|
+
onClick: (e: MouseEvent | KeyboardEvent) => void;
|
|
524
|
+
onMouseover: (e: MouseEvent) => void;
|
|
525
|
+
onMouseout: (e: MouseEvent) => void;
|
|
526
|
+
onFocusin: (e: FocusEvent) => void;
|
|
527
|
+
onFocusout: (e: FocusEvent) => void;
|
|
520
528
|
tagName: vue.ComputedRef<"button" | "router-link" | "a">;
|
|
529
|
+
loadingSize: vue.ComputedRef<{
|
|
530
|
+
spacing: string;
|
|
531
|
+
size: string;
|
|
532
|
+
} | {
|
|
533
|
+
spacing: string;
|
|
534
|
+
size: string;
|
|
535
|
+
} | {
|
|
536
|
+
spacing: string;
|
|
537
|
+
size: string;
|
|
538
|
+
} | {
|
|
539
|
+
spacing: string;
|
|
540
|
+
size: string;
|
|
541
|
+
} | {
|
|
542
|
+
spacing: string;
|
|
543
|
+
size: string;
|
|
544
|
+
}>;
|
|
521
545
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
522
546
|
/**
|
|
523
547
|
* A `router-link` path or object
|
|
@@ -570,6 +594,13 @@ declare const _default$e: vue.DefineComponent<{
|
|
|
570
594
|
type: BooleanConstructor;
|
|
571
595
|
default: boolean;
|
|
572
596
|
};
|
|
597
|
+
/**
|
|
598
|
+
* Whether the loading animation is shown or not
|
|
599
|
+
*/
|
|
600
|
+
loading: {
|
|
601
|
+
type: BooleanConstructor;
|
|
602
|
+
default: boolean;
|
|
603
|
+
};
|
|
573
604
|
}>> & {
|
|
574
605
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
575
606
|
onMouseover?: ((...args: any[]) => any) | undefined;
|
|
@@ -582,6 +613,7 @@ declare const _default$e: vue.DefineComponent<{
|
|
|
582
613
|
buttonType: ButtonTypeAttribute;
|
|
583
614
|
animation: ButtonAnimation;
|
|
584
615
|
rounded: boolean;
|
|
616
|
+
loading: boolean;
|
|
585
617
|
}>;
|
|
586
618
|
|
|
587
619
|
declare interface NavMenuItem {
|
|
@@ -590,7 +622,7 @@ declare interface NavMenuItem {
|
|
|
590
622
|
label: string;
|
|
591
623
|
}
|
|
592
624
|
|
|
593
|
-
declare const _default$
|
|
625
|
+
declare const _default$e: vue.DefineComponent<{
|
|
594
626
|
/**
|
|
595
627
|
* An array of menu items
|
|
596
628
|
* `{ to?: string | object; href?: string; label: string; }`
|
|
@@ -645,7 +677,7 @@ declare const _default$d: vue.DefineComponent<{
|
|
|
645
677
|
containerClass: string;
|
|
646
678
|
}>;
|
|
647
679
|
|
|
648
|
-
declare const _default$
|
|
680
|
+
declare const _default$d: vue.DefineComponent<{
|
|
649
681
|
/**
|
|
650
682
|
* The active tab v-model
|
|
651
683
|
*/
|
|
@@ -669,7 +701,7 @@ declare const _default$c: vue.DefineComponent<{
|
|
|
669
701
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
670
702
|
}, {}>;
|
|
671
703
|
|
|
672
|
-
declare const _default$
|
|
704
|
+
declare const _default$c: vue.DefineComponent<{
|
|
673
705
|
/**
|
|
674
706
|
* The label of the tab component used as the button panel label
|
|
675
707
|
*/
|
|
@@ -701,7 +733,7 @@ declare const _default$b: vue.DefineComponent<{
|
|
|
701
733
|
};
|
|
702
734
|
}>>, {}>;
|
|
703
735
|
|
|
704
|
-
declare const _default$
|
|
736
|
+
declare const _default$b: vue.DefineComponent<{
|
|
705
737
|
/**
|
|
706
738
|
* The header title of the modal
|
|
707
739
|
*/
|
|
@@ -850,7 +882,7 @@ declare interface ProgressBarStep {
|
|
|
850
882
|
subSteps: number;
|
|
851
883
|
}
|
|
852
884
|
|
|
853
|
-
declare const _default$
|
|
885
|
+
declare const _default$a: vue.DefineComponent<{
|
|
854
886
|
/**
|
|
855
887
|
* An array of menu progress steps.
|
|
856
888
|
* `{ label: string; position: number; subSteps: number; }`
|
|
@@ -917,7 +949,7 @@ declare interface FwTagProps {
|
|
|
917
949
|
variant?: TagVariantName;
|
|
918
950
|
}
|
|
919
951
|
|
|
920
|
-
declare const _default$
|
|
952
|
+
declare const _default$9: vue.DefineComponent<{
|
|
921
953
|
/**
|
|
922
954
|
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
923
955
|
*/
|
|
@@ -977,7 +1009,7 @@ declare interface FwTableProps {
|
|
|
977
1009
|
loading?: boolean;
|
|
978
1010
|
}
|
|
979
1011
|
|
|
980
|
-
declare const _default$
|
|
1012
|
+
declare const _default$8: vue.DefineComponent<{
|
|
981
1013
|
items: {
|
|
982
1014
|
type: PropType<FwTableItem[]>;
|
|
983
1015
|
required: true;
|
|
@@ -1018,11 +1050,11 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
1018
1050
|
loading: boolean;
|
|
1019
1051
|
}>;
|
|
1020
1052
|
|
|
1021
|
-
declare const _default$
|
|
1053
|
+
declare const _default$7: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1022
1054
|
|
|
1023
|
-
declare const _default$
|
|
1055
|
+
declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1024
1056
|
|
|
1025
|
-
declare const _default$
|
|
1057
|
+
declare const _default$5: vue.DefineComponent<{
|
|
1026
1058
|
/**
|
|
1027
1059
|
* The header title of the accordion
|
|
1028
1060
|
*/
|
|
@@ -1070,7 +1102,7 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
1070
1102
|
isOpened: boolean;
|
|
1071
1103
|
}>;
|
|
1072
1104
|
|
|
1073
|
-
declare const _default$
|
|
1105
|
+
declare const _default$4: vue.DefineComponent<{
|
|
1074
1106
|
/**
|
|
1075
1107
|
* The src attribute of the image
|
|
1076
1108
|
*/
|
|
@@ -1153,11 +1185,11 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
1153
1185
|
threshold: number;
|
|
1154
1186
|
}>;
|
|
1155
1187
|
|
|
1156
|
-
declare const _default$
|
|
1188
|
+
declare const _default$3: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1157
1189
|
|
|
1158
|
-
declare const _default$
|
|
1190
|
+
declare const _default$2: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1159
1191
|
|
|
1160
|
-
declare const _default: vue.DefineComponent<{
|
|
1192
|
+
declare const _default$1: vue.DefineComponent<{
|
|
1161
1193
|
columns: {
|
|
1162
1194
|
type: NumberConstructor;
|
|
1163
1195
|
default: number;
|
|
@@ -1230,6 +1262,8 @@ declare const __default__: vue.DefineComponent<{
|
|
|
1230
1262
|
animationIteration: string | number;
|
|
1231
1263
|
}>;
|
|
1232
1264
|
|
|
1265
|
+
declare const _default: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1266
|
+
|
|
1233
1267
|
declare interface FwModalProps {
|
|
1234
1268
|
header?: string;
|
|
1235
1269
|
body?: string;
|
|
@@ -1286,4 +1320,4 @@ declare interface FwImageProps {
|
|
|
1286
1320
|
|
|
1287
1321
|
declare module '@frollo/frollo-web-ui/icons' { }
|
|
1288
1322
|
|
|
1289
|
-
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$
|
|
1323
|
+
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$5 as FwAccordion, FwAccordionProps, _default$f as FwButton, FwButtonProps, _default$g as FwCard, FwCardProps, _default$i as FwCheckbox, FwCheckboxProps, _default$h as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$4 as FwImage, FwImageProps, _default$j as FwInput, FwInputProps, FwInputType, _default$3 as FwLoadingBar, _default$2 as FwLoadingCard, _default as FwLoadingSpinner, _default$1 as FwLoadingTable, _default$b as FwModal, FwModalProps, _default$e as FwNavigationMenu, _default$a as FwProgressBar, __default__ as FwSuccessPulse, _default$c as FwTab, _default$8 as FwTable, FwTableFormatFunction, _default$7 as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$6 as FwTableRow, FwTableSort, _default$d as FwTabs, _default$9 as FwTag, FwTagProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, install as default, modalService };
|
package/package.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -52,18 +52,41 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* Whether the loading animation is shown or not
|
|
57
|
+
*/
|
|
58
|
+
loading: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
55
62
|
}, {
|
|
56
63
|
baseClass: import("vue").Ref<string>;
|
|
57
64
|
textColorClass: import("vue").ComputedRef<string>;
|
|
58
65
|
bgColorClass: import("vue").ComputedRef<string>;
|
|
59
66
|
sizeClass: import("vue").ComputedRef<string>;
|
|
60
67
|
borderClass: import("vue").ComputedRef<string>;
|
|
61
|
-
onClick: (
|
|
62
|
-
onMouseover: (
|
|
63
|
-
onMouseout: (
|
|
64
|
-
onFocusin: (
|
|
65
|
-
onFocusout: (
|
|
68
|
+
onClick: (e: MouseEvent | KeyboardEvent) => void;
|
|
69
|
+
onMouseover: (e: MouseEvent) => void;
|
|
70
|
+
onMouseout: (e: MouseEvent) => void;
|
|
71
|
+
onFocusin: (e: FocusEvent) => void;
|
|
72
|
+
onFocusout: (e: FocusEvent) => void;
|
|
66
73
|
tagName: import("vue").ComputedRef<"button" | "router-link" | "a">;
|
|
74
|
+
loadingSize: import("vue").ComputedRef<{
|
|
75
|
+
spacing: string;
|
|
76
|
+
size: string;
|
|
77
|
+
} | {
|
|
78
|
+
spacing: string;
|
|
79
|
+
size: string;
|
|
80
|
+
} | {
|
|
81
|
+
spacing: string;
|
|
82
|
+
size: string;
|
|
83
|
+
} | {
|
|
84
|
+
spacing: string;
|
|
85
|
+
size: string;
|
|
86
|
+
} | {
|
|
87
|
+
spacing: string;
|
|
88
|
+
size: string;
|
|
89
|
+
}>;
|
|
67
90
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
91
|
/**
|
|
69
92
|
* A `router-link` path or object
|
|
@@ -116,6 +139,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
139
|
type: BooleanConstructor;
|
|
117
140
|
default: boolean;
|
|
118
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Whether the loading animation is shown or not
|
|
144
|
+
*/
|
|
145
|
+
loading: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
119
149
|
}>> & {
|
|
120
150
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
121
151
|
onMouseover?: ((...args: any[]) => any) | undefined;
|
|
@@ -128,5 +158,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
158
|
buttonType: ButtonTypeAttribute;
|
|
129
159
|
animation: ButtonAnimation;
|
|
130
160
|
rounded: boolean;
|
|
161
|
+
loading: boolean;
|
|
131
162
|
}>;
|
|
132
163
|
export default _default;
|
package/types/icons/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ import CaretDownSvg from './caret-down.svg';
|
|
|
24
24
|
import SortLightSvg from './sort-light.svg';
|
|
25
25
|
import PlusSvg from './plus.svg';
|
|
26
26
|
import UserSvg from './user.svg';
|
|
27
|
-
|
|
27
|
+
import LoadingSvg from './loading.svg';
|
|
28
|
+
export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg };
|