@frollo/frollo-web-ui 9.0.1 → 9.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.
- package/cjs/index.js +10733 -3060
- package/esm/{_rollupPluginBabelHelpers-DODWUb5N.js → _rollupPluginBabelHelpers-BKlDnZ7n.js} +1 -1
- package/esm/fw-accordion.js +15 -18
- package/esm/fw-alert.js +32 -25
- package/esm/fw-bar-chart.js +265 -93
- package/esm/fw-button-DZTHZLjk.js +318 -0
- package/esm/fw-button.js +2 -2
- package/esm/{fw-card-D45R4kN-.js → fw-card-XGtsK2bM.js} +7 -10
- package/esm/fw-card.js +2 -2
- package/esm/fw-checkbox.js +8 -11
- package/esm/fw-date-picker.js +85 -49
- package/esm/fw-drawer.js +8 -8
- package/esm/{fw-dropdown-58wyuzsW.js → fw-dropdown-CSmYTm5O.js} +11 -14
- package/esm/fw-dropdown.js +7 -6
- package/esm/fw-form.js +1 -1
- package/esm/fw-icons.js +11 -12
- package/esm/fw-image-A2lXYs0u.js +325 -0
- package/esm/fw-image.js +5 -4
- package/esm/{fw-input-C2-cZ-BY.js → fw-input-BiPWWfK3.js} +12 -19
- package/esm/fw-input.js +3 -3
- package/esm/fw-loading-bar-3x4tkF1B.js +37 -0
- package/esm/fw-loading.js +89 -40
- package/esm/fw-media-picker.js +10 -653
- package/esm/fw-modal.js +11 -10
- package/esm/fw-navigation-menu.js +36 -41
- package/esm/fw-popover-BZ-zqUme.js +330 -0
- package/esm/fw-popover.js +2 -3
- package/esm/fw-progress-bar.js +1 -1
- package/esm/fw-provider-list.js +109 -87
- package/esm/fw-sidebar-menu.js +58 -51
- package/esm/fw-slider.js +64 -61
- package/esm/fw-switch.js +76 -49
- package/esm/fw-table-row-D6FdCJMs.js +447 -0
- package/esm/fw-table.js +5 -6
- package/esm/fw-tabs.js +87 -35
- package/esm/fw-tag-BRxPc4zc.js +199 -0
- package/esm/fw-tag.js +4 -4
- package/esm/fw-toast.js +58 -76
- package/esm/fw-transactions-card.js +20 -20
- package/esm/{get-root-colours-DCjlYelc.js → get-root-colours-DCCAnRF4.js} +3 -1
- package/esm/index-C8z11jcJ.js +7583 -0
- package/esm/index-DHyRsKsZ.js +843 -0
- package/esm/index-eP2GMSdQ.js +755 -0
- package/esm/index.js +54 -61
- package/esm/{uniqueId-DZdGzBh8.js → uniqueId-DK6xzFd8.js} +1 -1
- package/esm/{vee-validate.esm-3ptvCDR1.js → vee-validate-0dtT5GSQ.js} +182 -305
- package/frollo-web-ui.esm.js +10790 -3115
- package/icons/circle-check.svg +4 -0
- package/index.d.ts +1522 -586
- package/package.json +11 -11
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +9 -7
- package/types/components/fw-alert/fw-alert.vue.d.ts +11 -6
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +15 -64
- package/types/components/fw-button/fw-button.vue.d.ts +11 -7
- package/types/components/fw-card/fw-card.vue.d.ts +6 -6
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +365 -5
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +3 -242
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +11 -8
- package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +20 -12
- package/types/components/fw-icons/fw-success-animation.vue.d.ts +1 -1
- package/types/components/fw-image/fw-image.vue.d.ts +33 -7
- package/types/components/fw-input/fw-input.vue.d.ts +368 -10
- package/types/components/fw-loading/fw-loading-bar.vue.d.ts +7 -5
- package/types/components/fw-loading/fw-loading-card.vue.d.ts +3 -1
- package/types/components/fw-loading/fw-loading-dots.vue.d.ts +8 -1
- package/types/components/fw-loading/fw-loading-table.vue.d.ts +11 -6
- package/types/components/fw-media-picker/fw-media-picker.vue.d.ts +27 -18
- package/types/components/fw-modal/fw-modal.vue.d.ts +11 -7
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +12 -8
- package/types/components/fw-popover/fw-popover.vue.d.ts +16 -21
- package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +6 -4
- package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +20 -45
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +13 -7
- package/types/components/fw-slider/fw-slider.vue.d.ts +11 -8
- package/types/components/fw-switch/fw-switch.vue.d.ts +383 -9
- package/types/components/fw-switch/index.types.d.ts +1 -0
- package/types/components/fw-table/fw-table-head.vue.d.ts +1 -1
- package/types/components/fw-table/fw-table-row.vue.d.ts +1 -1
- package/types/components/fw-table/fw-table.vue.d.ts +40 -19
- package/types/components/fw-table/index.types.d.ts +36 -2
- package/types/components/fw-tabs/fw-tab.vue.d.ts +4 -8
- package/types/components/fw-tabs/fw-tabs.vue.d.ts +11 -8
- package/types/components/fw-tabs/index.types.d.ts +14 -4
- package/types/components/fw-tag/fw-tag.vue.d.ts +14 -8
- package/types/components/fw-toast/fw-toast.vue.d.ts +17 -22
- package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +6 -3
- package/types/directives/lazy-loader.d.ts +11 -2
- package/types/helpers/get-root-colours.d.ts +1 -0
- package/web-components/index.js +16793 -7700
- package/esm/fw-button-YMoW4x4c.js +0 -296
- package/esm/fw-image-D-OHafdw.js +0 -217
- package/esm/fw-loading-bar-DecYSBC_.js +0 -45
- package/esm/fw-popover-B4bsfuxm.js +0 -620
- package/esm/fw-table-row-Cgi8871h.js +0 -389
- package/esm/fw-tag-fDo50Nw7.js +0 -177
- package/esm/index-BsEH8YYr.js +0 -979
package/esm/fw-loading.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode,
|
|
1
|
+
import { s as script$3 } from './fw-loading-bar-3x4tkF1B.js';
|
|
2
|
+
import { defineComponent, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, computed, normalizeClass, Fragment, renderList, normalizeStyle, createBlock } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
-
import './get-root-colours-
|
|
4
|
+
import { u as useColours } from './get-root-colours-DCCAnRF4.js';
|
|
5
5
|
|
|
6
6
|
var script$2 = defineComponent({
|
|
7
7
|
name: 'FwLoadingCard',
|
|
8
8
|
components: {
|
|
9
|
-
FwLoadingBar:
|
|
9
|
+
FwLoadingBar: script$3
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
var _hoisted_1$
|
|
13
|
+
var _hoisted_1$1 = {
|
|
14
14
|
"class": "fw-loading-card rounded shadow-card relative"
|
|
15
15
|
};
|
|
16
16
|
var _hoisted_2$1 = {
|
|
@@ -18,7 +18,7 @@ var _hoisted_2$1 = {
|
|
|
18
18
|
};
|
|
19
19
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20
20
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
21
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [createVNode(_component_FwLoadingBar, {
|
|
22
22
|
"class": "w-2/4 h-5"
|
|
23
23
|
})]), createVNode(_component_FwLoadingBar, {
|
|
24
24
|
"class": "w-full h-full rounded-t-none"
|
|
@@ -30,7 +30,7 @@ script$2.render = render$2;
|
|
|
30
30
|
var script$1 = defineComponent({
|
|
31
31
|
name: 'FwLoadingTable',
|
|
32
32
|
components: {
|
|
33
|
-
FwLoadingBar:
|
|
33
|
+
FwLoadingBar: script$3
|
|
34
34
|
},
|
|
35
35
|
props: {
|
|
36
36
|
columns: {
|
|
@@ -42,67 +42,116 @@ var script$1 = defineComponent({
|
|
|
42
42
|
"default": 5
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
setup: function setup() {
|
|
46
|
-
var
|
|
45
|
+
setup: function setup(props) {
|
|
46
|
+
var wrapperClass = 'fw-loading-table-wrapper cursor-wait table-responsive rounded-md shadow-card overflow-hidden';
|
|
47
|
+
// Pre-compute arrays once; avoids v-for over raw numbers
|
|
48
|
+
var colList = computed(function () {
|
|
49
|
+
return Array.from({
|
|
50
|
+
length: props.columns
|
|
51
|
+
}, function (_, i) {
|
|
52
|
+
return i;
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
var rowList = computed(function () {
|
|
56
|
+
return Array.from({
|
|
57
|
+
length: props.rows
|
|
58
|
+
}, function (_, i) {
|
|
59
|
+
return i;
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
// Deterministic pseudo-random width so it doesn't jitter between renders
|
|
63
|
+
var cellWidth = function cellWidth(r, c) {
|
|
64
|
+
var seed = (r + 1) * 31 + (c + 1) * 17;
|
|
65
|
+
var pct = 55 + seed % 40; // 55% -> 95%
|
|
66
|
+
return "".concat(pct, "%");
|
|
67
|
+
};
|
|
47
68
|
return {
|
|
48
|
-
|
|
69
|
+
wrapperClass: wrapperClass,
|
|
70
|
+
colList: colList,
|
|
71
|
+
rowList: rowList,
|
|
72
|
+
cellWidth: cellWidth
|
|
49
73
|
};
|
|
50
74
|
}
|
|
51
75
|
});
|
|
52
76
|
|
|
53
|
-
var _hoisted_1
|
|
54
|
-
"class": "
|
|
77
|
+
var _hoisted_1 = {
|
|
78
|
+
"class": "fw-loading-table table-auto w-full"
|
|
55
79
|
};
|
|
56
80
|
var _hoisted_2 = {
|
|
57
|
-
"class": "p-
|
|
81
|
+
"class": "text-p-small"
|
|
58
82
|
};
|
|
59
83
|
var _hoisted_3 = {
|
|
60
|
-
"class": "m-0 p-0"
|
|
61
|
-
};
|
|
62
|
-
var _hoisted_4 = {
|
|
63
84
|
"class": "text-p-small bg-white font-light"
|
|
64
85
|
};
|
|
65
86
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
87
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
67
|
-
return openBlock(), createElementBlock("
|
|
68
|
-
"class": normalizeClass(_ctx.
|
|
88
|
+
return openBlock(), createElementBlock("div", {
|
|
89
|
+
"class": normalizeClass(_ctx.wrapperClass),
|
|
69
90
|
"aria-live": "polite",
|
|
70
91
|
"aria-busy": "true"
|
|
71
|
-
}, [createElementVNode("
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
92
|
+
}, [createElementVNode("table", _hoisted_1, [createElementVNode("colgroup", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (c) {
|
|
93
|
+
return openBlock(), createElementBlock("col", {
|
|
94
|
+
key: c
|
|
95
|
+
});
|
|
96
|
+
}), 128))]), createElementVNode("thead", _hoisted_2, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (c) {
|
|
97
|
+
return openBlock(), createElementBlock("th", {
|
|
98
|
+
key: 'h' + c,
|
|
99
|
+
"class": "p-4"
|
|
100
|
+
}, [createVNode(_component_FwLoadingBar, {
|
|
101
|
+
"class": "h-6 w-full rounded-b-none"
|
|
102
|
+
})]);
|
|
103
|
+
}), 128))])]), createElementVNode("tbody", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rowList, function (r) {
|
|
75
104
|
return openBlock(), createElementBlock("tr", {
|
|
76
|
-
key:
|
|
77
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.
|
|
105
|
+
key: r
|
|
106
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.colList, function (c) {
|
|
78
107
|
return openBlock(), createElementBlock("td", {
|
|
79
|
-
key:
|
|
80
|
-
"class": "py-
|
|
108
|
+
key: r + '-' + c,
|
|
109
|
+
"class": "py-3 pl-5 pr-3 text-left whitespace-nowrap"
|
|
81
110
|
}, [createVNode(_component_FwLoadingBar, {
|
|
82
|
-
"class": "
|
|
83
|
-
|
|
111
|
+
"class": "h-5",
|
|
112
|
+
style: normalizeStyle({
|
|
113
|
+
width: _ctx.cellWidth(r, c)
|
|
114
|
+
})
|
|
115
|
+
}, null, 8, ["style"])]);
|
|
84
116
|
}), 128))]);
|
|
85
|
-
}), 128))])], 2);
|
|
117
|
+
}), 128))])])], 2);
|
|
86
118
|
}
|
|
87
119
|
|
|
120
|
+
var css_248z = ".fw-loading-table-wrapper{background:#fff}.fw-loading-table{border-collapse:separate;border-spacing:0}.fw-loading-table tbody tr+tr td{border-top:1px solid rgba(0,0,0,.04)}.fw-loading-table thead th{background:rgba(0,0,0,.02)}";
|
|
121
|
+
var stylesheet = ".fw-loading-table-wrapper{background:#fff}.fw-loading-table{border-collapse:separate;border-spacing:0}.fw-loading-table tbody tr+tr td{border-top:1px solid rgba(0,0,0,.04)}.fw-loading-table thead th{background:rgba(0,0,0,.02)}";
|
|
122
|
+
styleInject(css_248z);
|
|
123
|
+
|
|
88
124
|
script$1.render = render$1;
|
|
89
125
|
|
|
90
126
|
var script = defineComponent({
|
|
91
|
-
name: 'FwLoadingDots'
|
|
127
|
+
name: 'FwLoadingDots',
|
|
128
|
+
components: {
|
|
129
|
+
FwLoadingBar: script$3
|
|
130
|
+
},
|
|
131
|
+
setup: function setup() {
|
|
132
|
+
var _useColours = useColours(),
|
|
133
|
+
primaryFade10 = _useColours.primaryFade10,
|
|
134
|
+
primaryFade20 = _useColours.primaryFade20;
|
|
135
|
+
var barVars = computed(function () {
|
|
136
|
+
return {
|
|
137
|
+
'--fw-bar-light': primaryFade10,
|
|
138
|
+
'--fw-bar-dark': primaryFade20
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
barVars: barVars
|
|
143
|
+
};
|
|
144
|
+
}
|
|
92
145
|
});
|
|
93
146
|
|
|
94
|
-
var _hoisted_1 = {
|
|
95
|
-
"class": "fw-loading-dots",
|
|
96
|
-
"aria-hidden": "true"
|
|
97
|
-
};
|
|
98
147
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
99
|
-
|
|
148
|
+
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
149
|
+
return openBlock(), createBlock(_component_FwLoadingBar, {
|
|
150
|
+
"class": "rounded-full w-full h-[20px] max-w-[200px]",
|
|
151
|
+
style: normalizeStyle(_ctx.barVars)
|
|
152
|
+
}, null, 8, ["style"]);
|
|
100
153
|
}
|
|
101
154
|
|
|
102
|
-
var css_248z = ".fw-loading-dots{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-shadow-color:var(--colorPrimary);--tw-shadow:var(--tw-shadow-colored);-webkit-animation:l21 .5s linear infinite alternate;-moz-animation:l21 .5s linear infinite alternate;animation:l21 .5s linear infinite alternate;aspect-ratio:1;border-radius:9999px;-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);-webkit-box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;color:var(--colorPrimary);-webkit-transform:translateX(-32px);-moz-transform:translateX(-32px);-ms-transform:translateX(-32px);transform:translateX(-32px);width:6px}@-webkit-keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@-moz-keyframes l21{50%{box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}";
|
|
103
|
-
var stylesheet = ".fw-loading-dots{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-shadow-color:var(--colorPrimary);--tw-shadow:var(--tw-shadow-colored);-webkit-animation:l21 .5s linear infinite alternate;-moz-animation:l21 .5s linear infinite alternate;animation:l21 .5s linear infinite alternate;aspect-ratio:1;border-radius:9999px;-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);-webkit-box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;color:var(--colorPrimary);-webkit-transform:translateX(-32px);-moz-transform:translateX(-32px);-ms-transform:translateX(-32px);transform:translateX(-32px);width:6px}@-webkit-keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@-moz-keyframes l21{50%{box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}";
|
|
104
|
-
styleInject(css_248z);
|
|
105
|
-
|
|
106
155
|
script.render = render;
|
|
107
156
|
|
|
108
|
-
export {
|
|
157
|
+
export { script$3 as FwLoadingBar, script$2 as FwLoadingCard, script as FwLoadingDots, script$1 as FwLoadingTable };
|