@frollo/frollo-web-ui 8.2.1 → 8.3.0
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 +1077 -399
- package/esm/fw-accordion.js +1 -1
- package/esm/fw-animations.js +2 -2
- package/esm/{fw-button-DdxvSBFa.js → fw-button-LhSQ6Fx_.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-date-picker.js +1 -1
- package/esm/fw-drawer.js +3 -3
- package/esm/{fw-dropdown-BcnKbaW1.js → fw-dropdown-b1b7d7BF.js} +2 -2
- package/esm/fw-dropdown.js +3 -3
- package/esm/{fw-image-DedhILQL.js → fw-image-Dlb_dFZf.js} +1 -1
- package/esm/fw-image.js +2 -2
- package/esm/{fw-loading-spinner-BEzZf1xe.js → fw-loading-spinner-CfcmqMwb.js} +1 -1
- package/esm/fw-media-picker.js +642 -0
- package/esm/fw-modal.js +3 -3
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-period-selector.js +3 -3
- package/esm/fw-provider-list.js +7 -7
- package/esm/fw-sidebar-menu.js +3 -3
- package/esm/{fw-table-row-CBQBV4yq.js → fw-table-row-suFSeIN3.js} +2 -2
- package/esm/fw-table.js +4 -4
- package/esm/{fw-tag-508OLlZR.js → fw-tag-CziUTbtg.js} +2 -2
- package/esm/fw-tag.js +4 -4
- package/esm/fw-toast.js +1 -1
- package/esm/fw-transactions-card.js +2 -2
- package/esm/{index-svDiDkSU.js → index-CUeOOfIp.js} +165 -103
- package/esm/index.js +33 -31
- package/frollo-web-ui.esm.js +1135 -442
- package/icons/arrows-rotate.svg +4 -0
- package/icons/cloud-arrow-up.svg +3 -0
- package/icons/guide.svg +12 -0
- package/icons/index.ts +9 -1
- package/icons/mountain-flag.svg +4 -0
- package/index.d.ts +145 -24
- package/package.json +1 -1
- package/types/components/fw-media-picker/fw-media-picker.vue.d.ts +112 -0
- package/types/components/fw-media-picker/index.d.ts +2 -0
- package/types/components/fw-media-picker/index.types.d.ts +8 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +5 -1
- package/web-components/index.js +1136 -443
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M18.2617 11.2539C17.7625 11.1074 17.2438 11.3943 17.0996 11.891C16.2539 14.8398 13.5391 16.875 10.4648 16.875C7.86602 16.875 5.51172 15.3797 4.35156 13.125H8.27344C8.79102 13.125 9.21094 12.7051 9.21094 12.1875C9.21094 11.6699 8.82812 11.25 8.30859 11.25H2.05859C1.54102 11.25 1.12109 11.6699 1.12109 12.1875V18.4375C1.12109 18.9551 1.54102 19.375 2.05859 19.375C2.57617 19.375 2.99609 18.9551 2.99609 18.4375V14.4492C4.55078 17.0469 7.37891 18.75 10.4648 18.75C14.332 18.75 17.7852 16.1598 18.8672 12.4492C19.0469 11.918 18.7578 11.4336 18.2617 11.2539ZM18.9375 0.625C18.4219 0.625 18 1.04492 18 1.5625V5.55078C16.4492 2.95117 13.6172 1.25 10.5 1.25C6.63281 1.25 3.17695 3.84023 2.09805 7.55078C1.95273 8.04688 2.23828 8.56641 2.73516 8.71094C3.23672 8.85863 3.7543 8.56934 3.89727 8.07383C4.74609 5.16016 7.46094 3.125 10.5 3.125C13.0988 3.125 15.4531 4.62031 16.6133 6.875H12.6875C12.1719 6.875 11.75 7.29688 11.75 7.8125C11.75 8.32812 12.1719 8.75 12.6875 8.75H18.9375C19.4551 8.75 19.875 8.33008 19.875 7.8125V1.5625C19.875 1.04492 19.457 0.625 18.9375 0.625Z" />
|
|
3
|
+
</svg>
|
|
4
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 48" fill="currentColor">
|
|
2
|
+
<path d="M28.9406 15.4406C29.5219 14.85 30.4781 14.85 31.0594 15.4406L38.5594 22.9406C39.15 23.5219 39.15 24.4781 38.5594 25.0594C37.9781 25.65 37.0219 25.65 36.4406 25.0594L31.5 20.1188V34.5C31.5 35.325 30.825 36 30 36C29.175 36 28.5 35.325 28.5 34.5V20.1188L23.5594 25.0594C22.9781 25.65 22.0219 25.65 21.4406 25.0594C20.85 24.4781 20.85 23.5219 21.4406 22.9406L28.9406 15.4406ZM25.5 3C31.0781 3 36.0094 5.77031 39 10.0125C40.3594 9.36281 41.8875 9 43.5 9C49.3031 9 54 13.6969 54 19.5C54 20.5031 53.8594 21.3844 53.5969 22.3875C57.4031 24.3938 60 28.3969 60 33C60 39.6281 54.6281 45 48 45H13.5C6.04406 45 0 38.9531 0 31.5C0 25.6125 3.76406 20.6156 9.01594 18.7594C9.40312 9.99375 16.6313 3 25.5 3ZM25.5 6C18.2437 6 12.3281 11.7188 12.0094 18.8906C11.9625 20.1187 11.1656 21.1031 10.0125 21.5906C5.92313 23.0344 3 26.925 3 31.5C3 37.3031 7.70062 42 13.5 42H48C52.9688 42 57 37.9688 57 33C57 29.55 55.0594 26.55 52.2 25.0406C50.9437 24.2906 50.325 22.9219 50.7094 21.4781C50.8969 20.9062 51 20.2219 51 19.5C51 15.3562 47.6437 12 43.5 12C42.3469 12 41.2594 12.2625 40.2844 12.7219C38.9719 13.35 37.3875 12.9281 36.5437 11.7375C34.0969 8.26125 30.0656 6 25.5 6Z"/>
|
|
3
|
+
</svg>
|
package/icons/guide.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg viewBox="0 0 440 440" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g style="mix-blend-mode:multiply">
|
|
3
|
+
<circle cx="220" cy="220" r="146.5" stroke="#C6C7D5"/>
|
|
4
|
+
<rect x="72.25" y="0.249817" width="0.5" height="439.5" fill="#C6C7D5" stroke="#C6C7D5" stroke-width="0.5"/>
|
|
5
|
+
<rect x="0.25" y="72.2498" width="439.5" height="0.5" fill="#C6C7D5" stroke="#C6C7D5" stroke-width="0.5"/>
|
|
6
|
+
<rect x="0.25" y="367.25" width="439.5" height="0.5" fill="#C6C7D5" stroke="#C6C7D5" stroke-width="0.5"/>
|
|
7
|
+
<rect x="367.25" y="0.249817" width="0.5" height="439.5" fill="#C6C7D5" stroke="#C6C7D5" stroke-width="0.5"/>
|
|
8
|
+
<path d="M0 440C171.831 268.169 268.169 171.831 440 -0.000183105L0 440Z" stroke="#C6C7D5"/>
|
|
9
|
+
<path d="M2.6226e-05 -0.000202338C171.831 171.831 268.169 268.169 440 440L2.6226e-05 -0.000202338Z" stroke="#C6C7D5"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
12
|
+
|
package/icons/index.ts
CHANGED
|
@@ -40,6 +40,10 @@ import CalendarDaySvg from './calendar-day.svg';
|
|
|
40
40
|
import EllipsisSvg from './ellipsis.svg';
|
|
41
41
|
import ChartLineUpSvg from './chart-line-up.svg';
|
|
42
42
|
import SackDollarSvg from './sack-dollar.svg';
|
|
43
|
+
import MountainFlagSvg from './mountain-flag.svg';
|
|
44
|
+
import CloudArrowUpSvg from './cloud-arrow-up.svg';
|
|
45
|
+
import GuideSvg from './guide.svg';
|
|
46
|
+
import ArrowsRotateSvg from './arrows-rotate.svg';
|
|
43
47
|
|
|
44
48
|
export {
|
|
45
49
|
ViewSvg,
|
|
@@ -83,5 +87,9 @@ export {
|
|
|
83
87
|
CalendarDaySvg,
|
|
84
88
|
EllipsisSvg,
|
|
85
89
|
ChartLineUpSvg,
|
|
86
|
-
SackDollarSvg
|
|
90
|
+
SackDollarSvg,
|
|
91
|
+
MountainFlagSvg,
|
|
92
|
+
CloudArrowUpSvg,
|
|
93
|
+
GuideSvg,
|
|
94
|
+
ArrowsRotateSvg
|
|
87
95
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 111 95" fill="currentColor">
|
|
2
|
+
<path d="M9 93L31.5337 52.4713M80 93L64.5708 66.8M64.5708 66.8L74.43 50.3008C75.5929 48.3547 78.4113 48.3522 79.5777 50.2962L98 81M64.5708 66.8L58.8901 57.1763M2 93H25M109 93H41M31.5337 52.4713L41.379 35.5143C42.5412 33.5126 45.4365 33.5254 46.581 35.5373L58.8901 57.1763M31.5337 52.4713L37.831 57.1344C38.5279 57.6504 39.478 57.6586 40.1837 57.1545L45.1799 53.5858C45.6957 53.2173 46.3557 53.1152 46.9588 53.3106L58.8901 57.1763" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M44 33V19M44 2V4M44 4H65.0337L60.393 10.4534C60.1554 10.7839 60.1418 11.2253 60.3585 11.5698L65.0337 19H44M44 4V19" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
package/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare interface FwInputProps {
|
|
|
25
25
|
required?: boolean;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
declare const _default$
|
|
28
|
+
declare const _default$o: vue.DefineComponent<{
|
|
29
29
|
/**
|
|
30
30
|
* The input v-model
|
|
31
31
|
*/
|
|
@@ -246,7 +246,7 @@ declare const _default$n: vue.DefineComponent<{
|
|
|
246
246
|
centerAlignInput: boolean;
|
|
247
247
|
}, {}>;
|
|
248
248
|
|
|
249
|
-
declare const _default$
|
|
249
|
+
declare const _default$n: vue.DefineComponent<{
|
|
250
250
|
/**
|
|
251
251
|
* The name of the checkbox input field.
|
|
252
252
|
* Multiple checkboxes can use the same name with a unique value.
|
|
@@ -370,7 +370,7 @@ declare interface FwDropdownProps {
|
|
|
370
370
|
required?: boolean;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
declare const _default$
|
|
373
|
+
declare const _default$m: vue.DefineComponent<{
|
|
374
374
|
/**
|
|
375
375
|
* The select v-model
|
|
376
376
|
*/
|
|
@@ -522,7 +522,7 @@ declare const _default$l: vue.DefineComponent<{
|
|
|
522
522
|
required: boolean;
|
|
523
523
|
}, {}>;
|
|
524
524
|
|
|
525
|
-
declare const _default$
|
|
525
|
+
declare const _default$l: vue.DefineComponent<{
|
|
526
526
|
/**
|
|
527
527
|
* The header title of the card
|
|
528
528
|
*/
|
|
@@ -632,7 +632,7 @@ declare interface FwButtonProps {
|
|
|
632
632
|
external?: boolean;
|
|
633
633
|
}
|
|
634
634
|
|
|
635
|
-
declare const _default$
|
|
635
|
+
declare const _default$k: vue.DefineComponent<{
|
|
636
636
|
/**
|
|
637
637
|
* The label text of the button.
|
|
638
638
|
* Overrides the default slot content.
|
|
@@ -828,7 +828,7 @@ declare interface NavMenuItem {
|
|
|
828
828
|
onClick?: () => void;
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
declare const _default$
|
|
831
|
+
declare const _default$j: vue.DefineComponent<{
|
|
832
832
|
/**
|
|
833
833
|
* An array of menu items
|
|
834
834
|
* `{ to?: string | object; href?: string; label: string; }`
|
|
@@ -891,7 +891,7 @@ declare interface FwTabsProps {
|
|
|
891
891
|
modelValue: number;
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
-
declare const _default$
|
|
894
|
+
declare const _default$i: vue.DefineComponent<{
|
|
895
895
|
/**
|
|
896
896
|
* The active tab v-model
|
|
897
897
|
*/
|
|
@@ -914,7 +914,7 @@ declare const _default$h: vue.DefineComponent<{
|
|
|
914
914
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
915
915
|
}, {}, {}>;
|
|
916
916
|
|
|
917
|
-
declare const _default$
|
|
917
|
+
declare const _default$h: vue.DefineComponent<{
|
|
918
918
|
/**
|
|
919
919
|
* The label of the tab component used as the button panel label
|
|
920
920
|
*/
|
|
@@ -938,7 +938,7 @@ declare const _default$g: vue.DefineComponent<{
|
|
|
938
938
|
};
|
|
939
939
|
}>>, {}, {}>;
|
|
940
940
|
|
|
941
|
-
declare const _default$
|
|
941
|
+
declare const _default$g: vue.DefineComponent<{
|
|
942
942
|
/**
|
|
943
943
|
* The modal's v-model. Controls the visibility of the modal.
|
|
944
944
|
*/
|
|
@@ -1171,7 +1171,7 @@ declare interface ProgressBarStep {
|
|
|
1171
1171
|
subSteps: number;
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
-
declare const _default$
|
|
1174
|
+
declare const _default$f: vue.DefineComponent<{
|
|
1175
1175
|
/**
|
|
1176
1176
|
* An array of menu progress steps.
|
|
1177
1177
|
* `{ label: string; position: number; subSteps: number; }`
|
|
@@ -1419,6 +1419,15 @@ interface FwPopoverProps {
|
|
|
1419
1419
|
textAlign?: 'center' | 'left' | 'right';
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
|
+
declare interface FwMediaPickerProps {
|
|
1423
|
+
acceptedFileTypes?: string;
|
|
1424
|
+
maxFileSize?: number;
|
|
1425
|
+
imageUrl?: string;
|
|
1426
|
+
title?: string;
|
|
1427
|
+
uploadHeaderText?: string;
|
|
1428
|
+
editHeaderText?: string;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1422
1431
|
declare const __default__$6: vue.DefineComponent<{
|
|
1423
1432
|
/**
|
|
1424
1433
|
* The label text of the tag.
|
|
@@ -1591,9 +1600,9 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1591
1600
|
enablePagination: boolean;
|
|
1592
1601
|
}, {}>;
|
|
1593
1602
|
|
|
1594
|
-
declare const _default$
|
|
1603
|
+
declare const _default$e: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
|
|
1595
1604
|
|
|
1596
|
-
declare const _default$
|
|
1605
|
+
declare const _default$d: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
|
|
1597
1606
|
|
|
1598
1607
|
declare const __default__$4: vue.DefineComponent<{
|
|
1599
1608
|
/**
|
|
@@ -1723,7 +1732,7 @@ declare const __default__$4: vue.DefineComponent<{
|
|
|
1723
1732
|
borderStyle: string;
|
|
1724
1733
|
}, {}>;
|
|
1725
1734
|
|
|
1726
|
-
declare const _default$
|
|
1735
|
+
declare const _default$c: vue.DefineComponent<{
|
|
1727
1736
|
/**
|
|
1728
1737
|
* The src attribute of the image
|
|
1729
1738
|
*/
|
|
@@ -1825,11 +1834,11 @@ declare const _default$b: vue.DefineComponent<{
|
|
|
1825
1834
|
enableErrors: boolean;
|
|
1826
1835
|
}, {}>;
|
|
1827
1836
|
|
|
1828
|
-
declare const _default$
|
|
1837
|
+
declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
|
|
1829
1838
|
|
|
1830
|
-
declare const _default$
|
|
1839
|
+
declare const _default$a: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
|
|
1831
1840
|
|
|
1832
|
-
declare const _default$
|
|
1841
|
+
declare const _default$9: vue.DefineComponent<{
|
|
1833
1842
|
columns: {
|
|
1834
1843
|
type: NumberConstructor;
|
|
1835
1844
|
default: number;
|
|
@@ -1854,7 +1863,7 @@ declare const _default$8: vue.DefineComponent<{
|
|
|
1854
1863
|
rows: number;
|
|
1855
1864
|
}, {}>;
|
|
1856
1865
|
|
|
1857
|
-
declare const _default$
|
|
1866
|
+
declare const _default$8: vue.DefineComponent<{
|
|
1858
1867
|
/**
|
|
1859
1868
|
* The toast's v-model. Controls the visibility of the toast.
|
|
1860
1869
|
*/
|
|
@@ -1973,7 +1982,7 @@ declare const _default$7: vue.DefineComponent<{
|
|
|
1973
1982
|
timeout: number;
|
|
1974
1983
|
}, {}>;
|
|
1975
1984
|
|
|
1976
|
-
declare const _default$
|
|
1985
|
+
declare const _default$7: vue.DefineComponent<{
|
|
1977
1986
|
/**
|
|
1978
1987
|
* The transaction title of the card
|
|
1979
1988
|
*/
|
|
@@ -2031,7 +2040,7 @@ declare const _default$6: vue.DefineComponent<{
|
|
|
2031
2040
|
};
|
|
2032
2041
|
}>>, {}, {}>;
|
|
2033
2042
|
|
|
2034
|
-
declare const _default$
|
|
2043
|
+
declare const _default$6: vue.DefineComponent<{
|
|
2035
2044
|
/**
|
|
2036
2045
|
* The transaction title of the chart
|
|
2037
2046
|
*/
|
|
@@ -2112,7 +2121,7 @@ declare const _default$5: vue.DefineComponent<{
|
|
|
2112
2121
|
};
|
|
2113
2122
|
}>>, {}, {}>;
|
|
2114
2123
|
|
|
2115
|
-
declare const _default$
|
|
2124
|
+
declare const _default$5: vue.DefineComponent<{
|
|
2116
2125
|
/**
|
|
2117
2126
|
* Controls the sidebar menu open/close state
|
|
2118
2127
|
*/
|
|
@@ -2198,7 +2207,7 @@ declare const _default$4: vue.DefineComponent<{
|
|
|
2198
2207
|
closedWidth: string;
|
|
2199
2208
|
}, {}>;
|
|
2200
2209
|
|
|
2201
|
-
declare const _default$
|
|
2210
|
+
declare const _default$4: vue.DefineComponent<{
|
|
2202
2211
|
/**
|
|
2203
2212
|
* The drawer's v-model. Controls the visibility of the drawer.
|
|
2204
2213
|
*/
|
|
@@ -2361,7 +2370,7 @@ declare const _default$3: vue.DefineComponent<{
|
|
|
2361
2370
|
confirmButtonType: ButtonVariantName;
|
|
2362
2371
|
}, {}>;
|
|
2363
2372
|
|
|
2364
|
-
declare const _default$
|
|
2373
|
+
declare const _default$3: vue.DefineComponent<{
|
|
2365
2374
|
/**
|
|
2366
2375
|
* The header heading of the list.
|
|
2367
2376
|
*/
|
|
@@ -2862,7 +2871,7 @@ declare const __default__$2: vue.DefineComponent<{
|
|
|
2862
2871
|
showArrow: boolean;
|
|
2863
2872
|
}, {}>;
|
|
2864
2873
|
|
|
2865
|
-
declare const _default$
|
|
2874
|
+
declare const _default$2: vue.DefineComponent<{
|
|
2866
2875
|
/**
|
|
2867
2876
|
* The available periods to be chosen in months.
|
|
2868
2877
|
*/
|
|
@@ -2902,6 +2911,118 @@ declare const _default$1: vue.DefineComponent<{
|
|
|
2902
2911
|
size: ButtonSize;
|
|
2903
2912
|
}, {}>;
|
|
2904
2913
|
|
|
2914
|
+
declare const _default$1: vue.DefineComponent<{
|
|
2915
|
+
/**
|
|
2916
|
+
* The accepted file types for the media picker
|
|
2917
|
+
*/
|
|
2918
|
+
acceptedFileTypes: {
|
|
2919
|
+
type: StringConstructor;
|
|
2920
|
+
default: string;
|
|
2921
|
+
};
|
|
2922
|
+
/**
|
|
2923
|
+
* The maximum file size in bytes
|
|
2924
|
+
*/
|
|
2925
|
+
maxFileSize: {
|
|
2926
|
+
type: NumberConstructor;
|
|
2927
|
+
default: number;
|
|
2928
|
+
};
|
|
2929
|
+
/**
|
|
2930
|
+
* The title of the picker tile
|
|
2931
|
+
*/
|
|
2932
|
+
title: {
|
|
2933
|
+
type: StringConstructor;
|
|
2934
|
+
};
|
|
2935
|
+
/**
|
|
2936
|
+
* The image URL to display in the media picker
|
|
2937
|
+
*/
|
|
2938
|
+
imageUrl: {
|
|
2939
|
+
type: StringConstructor;
|
|
2940
|
+
};
|
|
2941
|
+
/**
|
|
2942
|
+
* The header text for the upload modal
|
|
2943
|
+
*/
|
|
2944
|
+
uploadHeaderText: {
|
|
2945
|
+
type: StringConstructor;
|
|
2946
|
+
default: string;
|
|
2947
|
+
};
|
|
2948
|
+
/**
|
|
2949
|
+
* The header text for the edit modal
|
|
2950
|
+
*/
|
|
2951
|
+
editHeaderText: {
|
|
2952
|
+
type: StringConstructor;
|
|
2953
|
+
default: string;
|
|
2954
|
+
};
|
|
2955
|
+
}, {
|
|
2956
|
+
previewImageUrl: vue.ComputedRef<string | undefined>;
|
|
2957
|
+
fileInput: vue.Ref<HTMLInputElement | null>;
|
|
2958
|
+
editorCanvas: vue.Ref<HTMLCanvasElement | null>;
|
|
2959
|
+
isSelectMediaModalOpen: vue.Ref<boolean>;
|
|
2960
|
+
isEditMediaModalOpen: vue.Ref<boolean>;
|
|
2961
|
+
acceptedFileTypesText: vue.ComputedRef<string>;
|
|
2962
|
+
maxFileSizeText: vue.ComputedRef<string>;
|
|
2963
|
+
openFilePicker: () => void | undefined;
|
|
2964
|
+
fileSelected: (event: Event) => void;
|
|
2965
|
+
dragging: vue.Ref<boolean>;
|
|
2966
|
+
loading: vue.Ref<boolean>;
|
|
2967
|
+
dragDropFile: (event: DragEvent) => void;
|
|
2968
|
+
isInvalidFile: vue.ComputedRef<boolean | null>;
|
|
2969
|
+
showEditor: () => void;
|
|
2970
|
+
change: () => void;
|
|
2971
|
+
reset: () => void;
|
|
2972
|
+
save: () => Promise<void>;
|
|
2973
|
+
startEditImage: ({ button, offsetX, offsetY }: MouseEvent) => void;
|
|
2974
|
+
stopEditImage: () => void;
|
|
2975
|
+
editImage: ({ offsetX, offsetY }: MouseEvent) => void;
|
|
2976
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "selected"[], "selected", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
2977
|
+
/**
|
|
2978
|
+
* The accepted file types for the media picker
|
|
2979
|
+
*/
|
|
2980
|
+
acceptedFileTypes: {
|
|
2981
|
+
type: StringConstructor;
|
|
2982
|
+
default: string;
|
|
2983
|
+
};
|
|
2984
|
+
/**
|
|
2985
|
+
* The maximum file size in bytes
|
|
2986
|
+
*/
|
|
2987
|
+
maxFileSize: {
|
|
2988
|
+
type: NumberConstructor;
|
|
2989
|
+
default: number;
|
|
2990
|
+
};
|
|
2991
|
+
/**
|
|
2992
|
+
* The title of the picker tile
|
|
2993
|
+
*/
|
|
2994
|
+
title: {
|
|
2995
|
+
type: StringConstructor;
|
|
2996
|
+
};
|
|
2997
|
+
/**
|
|
2998
|
+
* The image URL to display in the media picker
|
|
2999
|
+
*/
|
|
3000
|
+
imageUrl: {
|
|
3001
|
+
type: StringConstructor;
|
|
3002
|
+
};
|
|
3003
|
+
/**
|
|
3004
|
+
* The header text for the upload modal
|
|
3005
|
+
*/
|
|
3006
|
+
uploadHeaderText: {
|
|
3007
|
+
type: StringConstructor;
|
|
3008
|
+
default: string;
|
|
3009
|
+
};
|
|
3010
|
+
/**
|
|
3011
|
+
* The header text for the edit modal
|
|
3012
|
+
*/
|
|
3013
|
+
editHeaderText: {
|
|
3014
|
+
type: StringConstructor;
|
|
3015
|
+
default: string;
|
|
3016
|
+
};
|
|
3017
|
+
}>> & {
|
|
3018
|
+
onSelected?: ((...args: any[]) => any) | undefined;
|
|
3019
|
+
}, {
|
|
3020
|
+
acceptedFileTypes: string;
|
|
3021
|
+
maxFileSize: number;
|
|
3022
|
+
uploadHeaderText: string;
|
|
3023
|
+
editHeaderText: string;
|
|
3024
|
+
}, {}>;
|
|
3025
|
+
|
|
2905
3026
|
declare const __default__$1: vue.DefineComponent<{
|
|
2906
3027
|
/**
|
|
2907
3028
|
* The animation-iteration-count CSS property of the pulse animation.
|
|
@@ -2974,4 +3095,4 @@ declare const install: Exclude<Plugin['install'], undefined>;
|
|
|
2974
3095
|
|
|
2975
3096
|
declare module '@frollo/frollo-web-ui/icons' { }
|
|
2976
3097
|
|
|
2977
|
-
export { type ButtonAnimation, type ButtonDefinition, type ButtonDefinitionList, type ButtonSize, type ButtonSizes, type ButtonTypeAttribute, type ButtonVariantName, __default__$4 as FwAccordion, type FwAccordionProps, _default$
|
|
3098
|
+
export { type ButtonAnimation, type ButtonDefinition, type ButtonDefinitionList, type ButtonSize, type ButtonSizes, type ButtonTypeAttribute, type ButtonVariantName, __default__$4 as FwAccordion, type FwAccordionProps, _default$6 as FwBarChart, type FwBarChartProps, type FwBarGraphData, _default$k as FwButton, type FwButtonProps, _default$l as FwCard, type FwCardProps, _default$n as FwCheckbox, type FwCheckboxProps, __default__$3 as FwDatePicker, type FwDatePickerProps, _default$4 as FwDrawer, type FwDrawerProps, _default$m as FwDropdown, type FwDropdownOption, type FwDropdownProps, __default__$1 as FwEmailPulse, _default$c as FwImage, type FwImageProps, _default$o as FwInput, type FwInputProps, type FwInputType, _default$b as FwLoadingBar, _default$a as FwLoadingCard, _default as FwLoadingSpinner, _default$9 as FwLoadingTable, _default$1 as FwMediaPicker, type FwMediaPickerProps, _default$g as FwModal, type FwModalProps, _default$j as FwNavigationMenu, _default$2 as FwPeriodSelector, __default__$2 as FwPopover, type FwPopoverProps, _default$f as FwProgressBar, _default$3 as FwProviderList, type FwProviderListItem, type FwProviderListProps, _default$5 as FwSidebarMenu, type FwSidebarMenuItem, __default__ as FwSuccessPulse, _default$h as FwTab, __default__$5 as FwTable, type FwTableFormatFunction, _default$e as FwTableHead, type FwTableItem, type FwTableItemOptions, type FwTableProps, _default$d as FwTableRow, type FwTableSort, _default$i as FwTabs, type FwTabsProps, __default__$6 as FwTag, type FwTagProps, _default$8 as FwToast, type FwToastProps, _default$7 as FwTransactionsCard, type FwTransactionsCardProps, type ModalServiceProps, type NavMenuItem, type ProgressBarStep, type TabsState, type TagDefinition, type TagDefinitionList, type TagSize, type TagSizes, type TagVariantName, type ToastPosition, type ToastServiceProps, type ToastType, type ToastTypes, install as default, modalService, toastService };
|
package/package.json
CHANGED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* The accepted file types for the media picker
|
|
4
|
+
*/
|
|
5
|
+
acceptedFileTypes: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The maximum file size in bytes
|
|
11
|
+
*/
|
|
12
|
+
maxFileSize: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The title of the picker tile
|
|
18
|
+
*/
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The image URL to display in the media picker
|
|
24
|
+
*/
|
|
25
|
+
imageUrl: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The header text for the upload modal
|
|
30
|
+
*/
|
|
31
|
+
uploadHeaderText: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The header text for the edit modal
|
|
37
|
+
*/
|
|
38
|
+
editHeaderText: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
previewImageUrl: import("vue").ComputedRef<string | undefined>;
|
|
44
|
+
fileInput: import("vue").Ref<HTMLInputElement | null>;
|
|
45
|
+
editorCanvas: import("vue").Ref<HTMLCanvasElement | null>;
|
|
46
|
+
isSelectMediaModalOpen: import("vue").Ref<boolean>;
|
|
47
|
+
isEditMediaModalOpen: import("vue").Ref<boolean>;
|
|
48
|
+
acceptedFileTypesText: import("vue").ComputedRef<string>;
|
|
49
|
+
maxFileSizeText: import("vue").ComputedRef<string>;
|
|
50
|
+
openFilePicker: () => void | undefined;
|
|
51
|
+
fileSelected: (event: Event) => void;
|
|
52
|
+
dragging: import("vue").Ref<boolean>;
|
|
53
|
+
loading: import("vue").Ref<boolean>;
|
|
54
|
+
dragDropFile: (event: DragEvent) => void;
|
|
55
|
+
isInvalidFile: import("vue").ComputedRef<boolean | null>;
|
|
56
|
+
showEditor: () => void;
|
|
57
|
+
change: () => void;
|
|
58
|
+
reset: () => void;
|
|
59
|
+
save: () => Promise<void>;
|
|
60
|
+
startEditImage: ({ button, offsetX, offsetY }: MouseEvent) => void;
|
|
61
|
+
stopEditImage: () => void;
|
|
62
|
+
editImage: ({ offsetX, offsetY }: MouseEvent) => void;
|
|
63
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "selected"[], "selected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
/**
|
|
65
|
+
* The accepted file types for the media picker
|
|
66
|
+
*/
|
|
67
|
+
acceptedFileTypes: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* The maximum file size in bytes
|
|
73
|
+
*/
|
|
74
|
+
maxFileSize: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* The title of the picker tile
|
|
80
|
+
*/
|
|
81
|
+
title: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* The image URL to display in the media picker
|
|
86
|
+
*/
|
|
87
|
+
imageUrl: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* The header text for the upload modal
|
|
92
|
+
*/
|
|
93
|
+
uploadHeaderText: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* The header text for the edit modal
|
|
99
|
+
*/
|
|
100
|
+
editHeaderText: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
}>> & {
|
|
105
|
+
onSelected?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
acceptedFileTypes: string;
|
|
108
|
+
maxFileSize: number;
|
|
109
|
+
uploadHeaderText: string;
|
|
110
|
+
editHeaderText: string;
|
|
111
|
+
}, {}>;
|
|
112
|
+
export default _default;
|
|
@@ -19,3 +19,4 @@ export * from '../components/fw-provider-list/index.types';
|
|
|
19
19
|
export * from '../components/fw-date-picker/index.types';
|
|
20
20
|
export * from '../components/fw-popover/index.types';
|
|
21
21
|
export * from '../components/fw-tabs/index.types';
|
|
22
|
+
export * from '../components/fw-media-picker/index.types';
|
package/types/icons/index.d.ts
CHANGED
|
@@ -40,4 +40,8 @@ import CalendarDaySvg from './calendar-day.svg';
|
|
|
40
40
|
import EllipsisSvg from './ellipsis.svg';
|
|
41
41
|
import ChartLineUpSvg from './chart-line-up.svg';
|
|
42
42
|
import SackDollarSvg from './sack-dollar.svg';
|
|
43
|
-
|
|
43
|
+
import MountainFlagSvg from './mountain-flag.svg';
|
|
44
|
+
import CloudArrowUpSvg from './cloud-arrow-up.svg';
|
|
45
|
+
import GuideSvg from './guide.svg';
|
|
46
|
+
import ArrowsRotateSvg from './arrows-rotate.svg';
|
|
47
|
+
export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg, SearchSvg, XMarkSvg, PenSvg, CalendarSvg, CalendarDaySvg, EllipsisSvg, ChartLineUpSvg, SackDollarSvg, MountainFlagSvg, CloudArrowUpSvg, GuideSvg, ArrowsRotateSvg };
|