@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.
- package/cjs/index.js +18838 -3083
- package/esm/add-to-unscopables-2400f45b.js +25 -0
- package/esm/{array-iteration-98e2cf9a.js → array-iteration-107f927f.js} +2 -3
- package/esm/array-method-has-species-support-3d413468.js +23 -0
- package/esm/{array-method-is-strict-544b103f.js → array-method-is-strict-055b1830.js} +1 -1
- package/esm/{array-species-create-5fc23c89.js → array-species-create-a5f5503b.js} +3 -4
- package/esm/{classof-a45668b6.js → classof-39c30bd5.js} +1 -2
- package/esm/{create-property-558a3c24.js → create-property-534611fd.js} +1 -2
- 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-36d8f2f0.js → es.array.find-dfa1f42f.js} +5 -6
- package/esm/{es.array.includes-df8e6e35.js → es.array.includes-91be7771.js} +3 -4
- package/esm/{es.function.name-b642b74f.js → es.function.name-557cb1f9.js} +1 -1
- package/esm/{es.number.constructor-f279ce82.js → es.number.constructor-1249bd78.js} +2 -3
- package/esm/{fw-image-ec7b02c5.js → es.string.iterator-284b31d4.js} +11 -311
- package/esm/{object-keys-6a890c6f.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-df5c923f.js → fw-button-0401f207.js} +12 -27
- package/esm/fw-button.js +9 -8
- package/esm/{fw-card-8d3f4ab5.js → fw-card-1b6a67fe.js} +0 -5
- package/esm/fw-card.js +1 -1
- package/esm/fw-checkbox.js +27 -17
- package/esm/fw-dropdown.js +17 -34
- package/esm/fw-image-03f85465.js +289 -0
- package/esm/fw-image.js +20 -17
- package/esm/fw-input.js +24 -25
- package/esm/fw-loading-bar-f5ca605c.js +22 -0
- package/esm/{fw-loading-spinner-9b7c6855.js → fw-loading-spinner-164d8df0.js} +1 -2
- package/esm/fw-loading.js +6 -9
- package/esm/fw-modal.js +11 -21
- package/esm/fw-navigation-menu.js +11 -19
- package/esm/fw-progress-bar.js +4 -11
- package/esm/fw-sidebar-menu.js +131 -0
- package/esm/fw-table.js +12 -57
- package/esm/fw-tabs.js +60 -21
- package/esm/fw-tag.js +8 -8
- package/esm/fw-toast.js +29 -125
- package/esm/fw-transactions-card.js +21 -24
- package/esm/index-1a41e7bf.js +15838 -0
- package/esm/{index-4605e00e.js → index-692e4d19.js} +83 -55
- package/esm/index.js +43 -57
- package/esm/is-forced-752b5893.js +927 -0
- package/esm/{add-to-unscopables-3f461c07.js → object-create-f6f3a673.js} +3 -25
- package/esm/object-keys-4f5bf4e7.js +13 -0
- package/esm/{to-string-685748aa.js → to-string-12728fd2.js} +2 -2
- package/esm/{web.timers-4a6aaab8.js → web.timers-0f117224.js} +5 -15
- package/frollo-web-ui.esm.js +19112 -3282
- package/icons/chevron-left.svg +3 -0
- package/icons/chevron-right.svg +3 -0
- package/icons/index.ts +4 -0
- package/index.d.ts +200 -26
- package/package.json +4 -1
- 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-button/fw-button.vue.d.ts +2 -2
- package/types/components/fw-button/index.types.d.ts +1 -1
- 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-sidebar-menu/fw-sidebar-menu.vue.d.ts +71 -0
- package/types/components/fw-sidebar-menu/index.d.ts +2 -0
- package/types/components/fw-sidebar-menu/index.types.d.ts +6 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/index.types.d.ts +2 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +24066 -8740
- package/esm/function-name-e2f6ea36.js +0 -492
- package/esm/fw-loading-bar-da7d53fb.js +0 -22
- package/esm/is-forced-ddf227e6.js +0 -438
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock } from 'vue';
|
|
2
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
3
|
+
|
|
4
|
+
var script = defineComponent({
|
|
5
|
+
name: 'FwLoadingBar'
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
var _hoisted_1 = {
|
|
9
|
+
"class": "fw-loading-bar rounded",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
};
|
|
12
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13
|
+
return openBlock(), createElementBlock("div", _hoisted_1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
var css_248z = ".fw-loading-bar{-webkit-animation:fwSkeletonLoading 1.5s linear infinite;animation:fwSkeletonLoading 1.5s linear infinite;background:#e4e4e4;background-image:linear-gradient(100deg,hsla(0,0%,100%,0) 40%,hsla(0,0%,100%,.5) 50%,hsla(0,0%,100%,0) 60%);background-size:200% 200%}@-webkit-keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}@keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}";
|
|
17
|
+
var stylesheet = ".fw-loading-bar{-webkit-animation:fwSkeletonLoading 1.5s linear infinite;animation:fwSkeletonLoading 1.5s linear infinite;background:#e4e4e4;background-image:linear-gradient(100deg,hsla(0,0%,100%,0) 40%,hsla(0,0%,100%,.5) 50%,hsla(0,0%,100%,0) 60%);background-size:200% 200%}@-webkit-keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}@keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}";
|
|
18
|
+
styleInject(css_248z);
|
|
19
|
+
|
|
20
|
+
script.render = render;
|
|
21
|
+
|
|
22
|
+
export { script as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as render$1 } from './index-692e4d19.js';
|
|
2
2
|
import { defineComponent, resolveComponent, openBlock, createBlock } from 'vue';
|
|
3
3
|
|
|
4
4
|
var script = defineComponent({
|
|
@@ -10,7 +10,6 @@ var script = defineComponent({
|
|
|
10
10
|
|
|
11
11
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
12
|
var _component_LoadingSvg = resolveComponent("LoadingSvg");
|
|
13
|
-
|
|
14
13
|
return openBlock(), createBlock(_component_LoadingSvg, {
|
|
15
14
|
"class": "fw-loading-spinner animate-spin"
|
|
16
15
|
});
|
package/esm/fw-loading.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { s as script$2 } from './fw-loading-bar-
|
|
2
|
-
export { s as FwLoadingBar } from './fw-loading-bar-
|
|
1
|
+
import { s as script$2 } from './fw-loading-bar-f5ca605c.js';
|
|
2
|
+
export { s as FwLoadingBar } from './fw-loading-bar-f5ca605c.js';
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList } from 'vue';
|
|
4
|
-
import './es.number.constructor-
|
|
4
|
+
import './es.number.constructor-1249bd78.js';
|
|
5
5
|
import './style-inject.es-1f59c1d0.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './classof-a45668b6.js';
|
|
6
|
+
import './is-forced-752b5893.js';
|
|
7
|
+
import './to-string-12728fd2.js';
|
|
8
|
+
import './classof-39c30bd5.js';
|
|
10
9
|
|
|
11
10
|
var script$1 = defineComponent({
|
|
12
11
|
name: 'FwLoadingCard',
|
|
@@ -23,7 +22,6 @@ var _hoisted_2$1 = {
|
|
|
23
22
|
};
|
|
24
23
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25
24
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
26
|
-
|
|
27
25
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [createVNode(_component_FwLoadingBar, {
|
|
28
26
|
"class": "w-2/4 h-5"
|
|
29
27
|
})]), createVNode(_component_FwLoadingBar, {
|
|
@@ -67,7 +65,6 @@ var _hoisted_3 = {
|
|
|
67
65
|
};
|
|
68
66
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
67
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
70
|
-
|
|
71
68
|
return openBlock(), createElementBlock("table", {
|
|
72
69
|
"class": normalizeClass(_ctx.tableClass)
|
|
73
70
|
}, [createElementVNode("thead", _hoisted_1, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, thKey) {
|
package/esm/fw-modal.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import './es.array.includes-
|
|
1
|
+
import './es.array.includes-91be7771.js';
|
|
2
2
|
import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, createElementVNode, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
|
|
3
|
-
import { s as script$1 } from './fw-button-
|
|
3
|
+
import { s as script$1 } from './fw-button-0401f207.js';
|
|
4
4
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
6
|
+
import './is-forced-752b5893.js';
|
|
7
|
+
import './export-a37ba078.js';
|
|
8
|
+
import './add-to-unscopables-2400f45b.js';
|
|
9
|
+
import './object-create-f6f3a673.js';
|
|
10
|
+
import './object-keys-4f5bf4e7.js';
|
|
11
|
+
import './fw-loading-spinner-164d8df0.js';
|
|
12
|
+
import './index-692e4d19.js';
|
|
12
13
|
import './check-94a5917a.js';
|
|
13
14
|
|
|
14
15
|
var script = defineComponent({
|
|
@@ -24,14 +25,12 @@ var script = defineComponent({
|
|
|
24
25
|
modelValue: {
|
|
25
26
|
type: Boolean
|
|
26
27
|
},
|
|
27
|
-
|
|
28
28
|
/**
|
|
29
29
|
* The header title of the modal
|
|
30
30
|
*/
|
|
31
31
|
header: {
|
|
32
32
|
type: String
|
|
33
33
|
},
|
|
34
|
-
|
|
35
34
|
/**
|
|
36
35
|
* The element to attach the modal too. Defaults to `#app` element.
|
|
37
36
|
*/
|
|
@@ -39,14 +38,12 @@ var script = defineComponent({
|
|
|
39
38
|
type: String,
|
|
40
39
|
"default": '#app'
|
|
41
40
|
},
|
|
42
|
-
|
|
43
41
|
/**
|
|
44
42
|
* The body description of the modal
|
|
45
43
|
*/
|
|
46
44
|
body: {
|
|
47
45
|
type: String
|
|
48
46
|
},
|
|
49
|
-
|
|
50
47
|
/**
|
|
51
48
|
* The aria role of the modal container. Defaults to `dialog`
|
|
52
49
|
*/
|
|
@@ -54,7 +51,6 @@ var script = defineComponent({
|
|
|
54
51
|
type: String,
|
|
55
52
|
"default": 'dialog'
|
|
56
53
|
},
|
|
57
|
-
|
|
58
54
|
/**
|
|
59
55
|
* Whether to show the cancel button
|
|
60
56
|
*/
|
|
@@ -62,7 +58,6 @@ var script = defineComponent({
|
|
|
62
58
|
type: Boolean,
|
|
63
59
|
"default": false
|
|
64
60
|
},
|
|
65
|
-
|
|
66
61
|
/**
|
|
67
62
|
* Whether to show the confirm button
|
|
68
63
|
*/
|
|
@@ -70,7 +65,6 @@ var script = defineComponent({
|
|
|
70
65
|
type: Boolean,
|
|
71
66
|
"default": true
|
|
72
67
|
},
|
|
73
|
-
|
|
74
68
|
/**
|
|
75
69
|
* Custom text for the cancel button
|
|
76
70
|
*/
|
|
@@ -78,7 +72,6 @@ var script = defineComponent({
|
|
|
78
72
|
type: String,
|
|
79
73
|
"default": 'Cancel'
|
|
80
74
|
},
|
|
81
|
-
|
|
82
75
|
/**
|
|
83
76
|
* Button variant for the cancel button
|
|
84
77
|
*/
|
|
@@ -89,7 +82,6 @@ var script = defineComponent({
|
|
|
89
82
|
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
90
83
|
}
|
|
91
84
|
},
|
|
92
|
-
|
|
93
85
|
/**
|
|
94
86
|
* Custom text for the confirm button
|
|
95
87
|
*/
|
|
@@ -97,7 +89,6 @@ var script = defineComponent({
|
|
|
97
89
|
type: String,
|
|
98
90
|
"default": 'Confirm'
|
|
99
91
|
},
|
|
100
|
-
|
|
101
92
|
/**
|
|
102
93
|
* Button variant for the confirm button
|
|
103
94
|
*/
|
|
@@ -153,7 +144,6 @@ var _hoisted_11 = {
|
|
|
153
144
|
};
|
|
154
145
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
155
146
|
var _component_FwButton = resolveComponent("FwButton");
|
|
156
|
-
|
|
157
147
|
return _ctx.isMounted ? (openBlock(), createBlock(Teleport, {
|
|
158
148
|
key: 0,
|
|
159
149
|
to: _ctx.element
|
|
@@ -220,8 +210,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
210
|
})], 8, ["to"])) : createCommentVNode("", true);
|
|
221
211
|
}
|
|
222
212
|
|
|
223
|
-
var css_248z = ".modalFadeIn-enter-active{-webkit-animation:modalFadeIn .4s;animation:modalFadeIn .4s;-webkit-transition:opacity .4s ease-in
|
|
224
|
-
var stylesheet = ".modalFadeIn-enter-active{-webkit-animation:modalFadeIn .4s;animation:modalFadeIn .4s;-webkit-transition:opacity .4s ease-in
|
|
213
|
+
var css_248z = ".modalFadeIn-enter-active{-webkit-animation:modalFadeIn .4s;animation:modalFadeIn .4s;-webkit-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active{animation:modalFadeIn .4s reverse;-webkit-transition:opacity .4s ease-in-out;transition:opacity .4s ease-in-out}@-webkit-keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
214
|
+
var stylesheet = ".modalFadeIn-enter-active{-webkit-animation:modalFadeIn .4s;animation:modalFadeIn .4s;-webkit-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active{animation:modalFadeIn .4s reverse;-webkit-transition:opacity .4s ease-in-out;transition:opacity .4s ease-in-out}@-webkit-keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}";
|
|
225
215
|
styleInject(css_248z);
|
|
226
216
|
|
|
227
217
|
script.render = render;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
2
|
+
import { s as script$1 } from './fw-button-0401f207.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
import './es.array.includes-
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
4
|
+
import './es.array.includes-91be7771.js';
|
|
5
|
+
import './is-forced-752b5893.js';
|
|
6
|
+
import './export-a37ba078.js';
|
|
7
|
+
import './add-to-unscopables-2400f45b.js';
|
|
8
|
+
import './object-create-f6f3a673.js';
|
|
9
|
+
import './object-keys-4f5bf4e7.js';
|
|
10
|
+
import './fw-loading-spinner-164d8df0.js';
|
|
11
|
+
import './index-692e4d19.js';
|
|
11
12
|
import './check-94a5917a.js';
|
|
12
13
|
|
|
13
14
|
var script = defineComponent({
|
|
@@ -24,7 +25,6 @@ var script = defineComponent({
|
|
|
24
25
|
menuItems: {
|
|
25
26
|
type: Array
|
|
26
27
|
},
|
|
27
|
-
|
|
28
28
|
/**
|
|
29
29
|
* The label for the action button.
|
|
30
30
|
* Also emits the `action` event.
|
|
@@ -32,7 +32,6 @@ var script = defineComponent({
|
|
|
32
32
|
actionLabel: {
|
|
33
33
|
type: String
|
|
34
34
|
},
|
|
35
|
-
|
|
36
35
|
/**
|
|
37
36
|
* The class for the container wrapper.
|
|
38
37
|
*/
|
|
@@ -45,15 +44,12 @@ var script = defineComponent({
|
|
|
45
44
|
var mobileMenuClass = ref( // eslint-disable-next-line max-len
|
|
46
45
|
"min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1");
|
|
47
46
|
var isMobileMenuOpen = ref(false);
|
|
48
|
-
|
|
49
47
|
var toggleMobileMenu = function toggleMobileMenu() {
|
|
50
48
|
return isMobileMenuOpen.value = !isMobileMenuOpen.value;
|
|
51
49
|
};
|
|
52
|
-
|
|
53
50
|
var actionClicked = function actionClicked() {
|
|
54
51
|
return ctx.emit('action');
|
|
55
52
|
};
|
|
56
|
-
|
|
57
53
|
return {
|
|
58
54
|
mobileMenuClass: mobileMenuClass,
|
|
59
55
|
isMobileMenuOpen: isMobileMenuOpen,
|
|
@@ -84,11 +80,9 @@ var _hoisted_5 = {
|
|
|
84
80
|
var _hoisted_6 = {
|
|
85
81
|
"class": "flex items-center sm:hidden"
|
|
86
82
|
};
|
|
87
|
-
|
|
88
83
|
var _hoisted_7 = /*#__PURE__*/createElementVNode("span", {
|
|
89
84
|
"class": "sr-only"
|
|
90
85
|
}, "Open main menu", -1);
|
|
91
|
-
|
|
92
86
|
var _hoisted_8 = {
|
|
93
87
|
"class": "block h-6 w-6",
|
|
94
88
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -103,9 +97,7 @@ var _hoisted_10 = {
|
|
|
103
97
|
};
|
|
104
98
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
105
99
|
var _ctx$menuItems;
|
|
106
|
-
|
|
107
100
|
var _component_FwButton = resolveComponent("FwButton");
|
|
108
|
-
|
|
109
101
|
return openBlock(), createElementBlock("nav", _hoisted_1, [createElementVNode("div", {
|
|
110
102
|
"class": normalizeClass(["px-6 flex-1 h-full flex bg-white items-stretch justify-between mx-auto", _ctx.containerClass])
|
|
111
103
|
}, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
@@ -184,8 +176,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
184
176
|
})]);
|
|
185
177
|
}
|
|
186
178
|
|
|
187
|
-
var css_248z = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in
|
|
188
|
-
var stylesheet = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in
|
|
179
|
+
var css_248z = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
|
|
180
|
+
var stylesheet = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
|
|
189
181
|
styleInject(css_248z);
|
|
190
182
|
|
|
191
183
|
script.render = render;
|
package/esm/fw-progress-bar.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import './es.number.constructor-
|
|
1
|
+
import './es.number.constructor-1249bd78.js';
|
|
2
2
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, createBlock, toDisplayString, normalizeStyle, createCommentVNode } from 'vue';
|
|
3
3
|
import { r as render$1 } from './check-94a5917a.js';
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './classof-a45668b6.js';
|
|
4
|
+
import './is-forced-752b5893.js';
|
|
5
|
+
import './to-string-12728fd2.js';
|
|
6
|
+
import './classof-39c30bd5.js';
|
|
8
7
|
|
|
9
8
|
var script = defineComponent({
|
|
10
9
|
name: 'FwProgressBar',
|
|
@@ -20,7 +19,6 @@ var script = defineComponent({
|
|
|
20
19
|
type: Array,
|
|
21
20
|
required: true
|
|
22
21
|
},
|
|
23
|
-
|
|
24
22
|
/**
|
|
25
23
|
* An current active step.
|
|
26
24
|
*/
|
|
@@ -28,7 +26,6 @@ var script = defineComponent({
|
|
|
28
26
|
type: Number,
|
|
29
27
|
required: true
|
|
30
28
|
},
|
|
31
|
-
|
|
32
29
|
/**
|
|
33
30
|
* An current active sub-step.
|
|
34
31
|
*/
|
|
@@ -41,15 +38,12 @@ var script = defineComponent({
|
|
|
41
38
|
var calculatedProgressBar = function calculatedProgressBar(step) {
|
|
42
39
|
var numOfSubSteps = step.subSteps;
|
|
43
40
|
var equalPercentageWidths = 100 / numOfSubSteps;
|
|
44
|
-
|
|
45
41
|
if (props.activeStep === step.position && props.activeSubStep) {
|
|
46
42
|
var width = equalPercentageWidths * props.activeSubStep;
|
|
47
43
|
return "width: ".concat(width, "%");
|
|
48
44
|
}
|
|
49
|
-
|
|
50
45
|
return 'width: 0%;';
|
|
51
46
|
};
|
|
52
|
-
|
|
53
47
|
return {
|
|
54
48
|
calculatedProgressBar: calculatedProgressBar
|
|
55
49
|
};
|
|
@@ -75,7 +69,6 @@ var _hoisted_5 = {
|
|
|
75
69
|
};
|
|
76
70
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77
71
|
var _component_CheckSvg = resolveComponent("CheckSvg");
|
|
78
|
-
|
|
79
72
|
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.steps, function (step) {
|
|
80
73
|
return openBlock(), createElementBlock("div", {
|
|
81
74
|
"class": normalizeClass(["flex", step.position !== _ctx.steps.length ? 'flex-1' : 'w-[70px] md:w-[96px]']),
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Transition, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { s as script$1 } from './fw-button-0401f207.js';
|
|
3
|
+
import { f as render$1 } from './index-692e4d19.js';
|
|
4
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
|
+
import './es.array.includes-91be7771.js';
|
|
6
|
+
import './is-forced-752b5893.js';
|
|
7
|
+
import './export-a37ba078.js';
|
|
8
|
+
import './add-to-unscopables-2400f45b.js';
|
|
9
|
+
import './object-create-f6f3a673.js';
|
|
10
|
+
import './object-keys-4f5bf4e7.js';
|
|
11
|
+
import './fw-loading-spinner-164d8df0.js';
|
|
12
|
+
import './check-94a5917a.js';
|
|
13
|
+
|
|
14
|
+
var script = defineComponent({
|
|
15
|
+
name: 'FwSidebarMenu',
|
|
16
|
+
emits: ['toggled'],
|
|
17
|
+
components: {
|
|
18
|
+
FwButton: script$1,
|
|
19
|
+
ChevronRightSvg: render$1
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
/**
|
|
23
|
+
* An array of menu items
|
|
24
|
+
* `{ to?: string | object; href?: string; label: string; }`
|
|
25
|
+
*/
|
|
26
|
+
menuItems: {
|
|
27
|
+
type: Array
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* The class for the open/close toggle button
|
|
31
|
+
*/
|
|
32
|
+
toggleButtonClass: {
|
|
33
|
+
type: String,
|
|
34
|
+
"default": ''
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* The width class for the sidebar when opened
|
|
38
|
+
*/
|
|
39
|
+
openWidth: {
|
|
40
|
+
type: String,
|
|
41
|
+
"default": 'w-96'
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* The width class for the sidebar when opened
|
|
45
|
+
*/
|
|
46
|
+
closedWidth: {
|
|
47
|
+
type: String,
|
|
48
|
+
"default": 'w-6'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup: function setup(props, ctx) {
|
|
52
|
+
var isMenuOpen = ref(true);
|
|
53
|
+
var toggleMenu = function toggleMenu() {
|
|
54
|
+
isMenuOpen.value = !isMenuOpen.value;
|
|
55
|
+
ctx.emit('toggled', isMenuOpen.value ? props.openWidth : props.closedWidth);
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
isMenuOpen: isMenuOpen,
|
|
59
|
+
toggleMenu: toggleMenu
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
var _hoisted_1 = {
|
|
65
|
+
key: 0,
|
|
66
|
+
"class": "flex flex-col px-4 py-8"
|
|
67
|
+
};
|
|
68
|
+
var _hoisted_2 = {
|
|
69
|
+
key: 0,
|
|
70
|
+
"class": "text-left px-4 pb-6"
|
|
71
|
+
};
|
|
72
|
+
var _hoisted_3 = {
|
|
73
|
+
"class": "flex flex-col space-y-1"
|
|
74
|
+
};
|
|
75
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76
|
+
var _ctx$menuItems;
|
|
77
|
+
var _component_ChevronRightSvg = resolveComponent("ChevronRightSvg");
|
|
78
|
+
var _component_FwButton = resolveComponent("FwButton");
|
|
79
|
+
return _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", {
|
|
80
|
+
key: 0,
|
|
81
|
+
"class": normalizeClass(["fw-sidebar-menu h-full shadow-md bg-grey-lightest border-r border-grey-20 fixed top-0 left-0 transition-all duration-300", _ctx.isMenuOpen ? _ctx.openWidth : _ctx.closedWidth]),
|
|
82
|
+
"aria-label": "Aside navigation menu"
|
|
83
|
+
}, [createVNode(_component_FwButton, {
|
|
84
|
+
variant: "primary",
|
|
85
|
+
tabindex: "",
|
|
86
|
+
title: _ctx.isMenuOpen ? 'Close sidebar navigation menu' : 'Open sidebar navigation menu',
|
|
87
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
88
|
+
return _ctx.toggleMenu();
|
|
89
|
+
}),
|
|
90
|
+
"class": normalizeClass(["inline-block w-9 h-9 !p-0 shadow absolute top-4 -right-4 rounded-full", _ctx.toggleButtonClass])
|
|
91
|
+
}, {
|
|
92
|
+
"default": withCtx(function () {
|
|
93
|
+
return [createVNode(_component_ChevronRightSvg, {
|
|
94
|
+
"class": normalizeClass(["w-6 h-6 inline-block m-0 transition-rotate duration-200", _ctx.isMenuOpen ? 'rotate-180' : ''])
|
|
95
|
+
}, null, 8, ["class"])];
|
|
96
|
+
}),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["title", "class"]), createVNode(Transition, {
|
|
99
|
+
name: "sidebarMenuSlide"
|
|
100
|
+
}, {
|
|
101
|
+
"default": withCtx(function () {
|
|
102
|
+
return [_ctx.isMenuOpen ? (openBlock(), createElementBlock("div", _hoisted_1, [_ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "title")])) : createCommentVNode("", true), createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
103
|
+
return openBlock(), createBlock(_component_FwButton, {
|
|
104
|
+
key: i,
|
|
105
|
+
rounded: false,
|
|
106
|
+
"class": "!text-left !px-4 text-grey-base",
|
|
107
|
+
variant: "transparent",
|
|
108
|
+
href: item.href,
|
|
109
|
+
to: item.to,
|
|
110
|
+
external: item.external,
|
|
111
|
+
size: "lg",
|
|
112
|
+
"aria-current": "page"
|
|
113
|
+
}, {
|
|
114
|
+
"default": withCtx(function () {
|
|
115
|
+
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
116
|
+
}),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1032, ["href", "to", "external"]);
|
|
119
|
+
}), 128))])])) : createCommentVNode("", true)];
|
|
120
|
+
}),
|
|
121
|
+
_: 3
|
|
122
|
+
})], 2)) : createCommentVNode("", true);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var css_248z = ".sidebarMenuSlide-enter-active{-webkit-animation:sidebarMenuSlide .1s;animation:sidebarMenuSlide .1s;-webkit-transition:opacity .1s ease-in;transition:opacity .1s ease-in;-webkit-transition-delay:10s;transition-delay:10s}.sidebarMenuSlide-leave-active{animation:sidebarMenuSlide .1s reverse;-webkit-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out}@-webkit-keyframes sidebarMenuSlide{0%{opacity:0}to{opacity:1}}@keyframes sidebarMenuSlide{0%{opacity:0}to{opacity:1}}";
|
|
126
|
+
var stylesheet = ".sidebarMenuSlide-enter-active{-webkit-animation:sidebarMenuSlide .1s;animation:sidebarMenuSlide .1s;-webkit-transition:opacity .1s ease-in;transition:opacity .1s ease-in;-webkit-transition-delay:10s;transition-delay:10s}.sidebarMenuSlide-leave-active{animation:sidebarMenuSlide .1s reverse;-webkit-transition:opacity .1s ease-in-out;transition:opacity .1s ease-in-out}@-webkit-keyframes sidebarMenuSlide{0%{opacity:0}to{opacity:1}}@keyframes sidebarMenuSlide{0%{opacity:0}to{opacity:1}}";
|
|
127
|
+
styleInject(css_248z);
|
|
128
|
+
|
|
129
|
+
script.render = render;
|
|
130
|
+
|
|
131
|
+
export { script as FwSidebarMenu };
|
package/esm/fw-table.js
CHANGED
|
@@ -1,44 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as toString$1 } from './to-string-
|
|
5
|
-
import { c as createProperty$1 } from './create-property-
|
|
6
|
-
import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-
|
|
7
|
-
import { b as render$3 } from './index-
|
|
1
|
+
import { d as deletePropertyOrThrow$1 } from './delete-property-or-throw-8032646c.js';
|
|
2
|
+
import { i as toAbsoluteIndex$1, l as lengthOfArrayLike$2, j as engineUserAgent, f as functionUncurryThis, k as aCallable$1, e as toObject$1, h as fails$1, m as engineV8Version } from './is-forced-752b5893.js';
|
|
3
|
+
import { _ as _export } from './export-a37ba078.js';
|
|
4
|
+
import { t as toString$1 } from './to-string-12728fd2.js';
|
|
5
|
+
import { c as createProperty$1 } from './create-property-534611fd.js';
|
|
6
|
+
import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-055b1830.js';
|
|
7
|
+
import { b as render$3 } from './index-692e4d19.js';
|
|
8
8
|
import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, withKeys, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
|
|
9
|
-
import { s as script$3 } from './fw-loading-bar-
|
|
10
|
-
import './
|
|
9
|
+
import { s as script$3 } from './fw-loading-bar-f5ca605c.js';
|
|
10
|
+
import './object-keys-4f5bf4e7.js';
|
|
11
|
+
import './classof-39c30bd5.js';
|
|
11
12
|
import './check-94a5917a.js';
|
|
12
13
|
import './style-inject.es-1f59c1d0.js';
|
|
13
14
|
|
|
14
|
-
var es_object_keys = {};
|
|
15
|
-
|
|
16
|
-
var $$1 = _export;
|
|
17
|
-
var toObject$1 = toObject$2;
|
|
18
|
-
var nativeKeys = objectKeys;
|
|
19
|
-
var fails$1 = fails$2;
|
|
20
|
-
|
|
21
|
-
var FAILS_ON_PRIMITIVES = fails$1(function () { nativeKeys(1); });
|
|
22
|
-
|
|
23
|
-
// `Object.keys` method
|
|
24
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
25
|
-
$$1({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
26
|
-
keys: function keys(it) {
|
|
27
|
-
return nativeKeys(toObject$1(it));
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
15
|
var es_array_sort = {};
|
|
32
16
|
|
|
33
|
-
'use strict';
|
|
34
|
-
var tryToString = tryToString$1;
|
|
35
|
-
|
|
36
|
-
var $TypeError = TypeError;
|
|
37
|
-
|
|
38
|
-
var deletePropertyOrThrow$1 = function (O, P) {
|
|
39
|
-
if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
17
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
43
18
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
44
19
|
var createProperty = createProperty$1;
|
|
@@ -121,11 +96,11 @@ var engineWebkitVersion = !!webkit && +webkit[1];
|
|
|
121
96
|
var $ = _export;
|
|
122
97
|
var uncurryThis = functionUncurryThis;
|
|
123
98
|
var aCallable = aCallable$1;
|
|
124
|
-
var toObject = toObject$
|
|
99
|
+
var toObject = toObject$1;
|
|
125
100
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
126
101
|
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
127
102
|
var toString = toString$1;
|
|
128
|
-
var fails = fails$
|
|
103
|
+
var fails = fails$1;
|
|
129
104
|
var internalSort = arraySort;
|
|
130
105
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
131
106
|
var FF = engineFfVersion;
|
|
@@ -251,11 +226,9 @@ var script$2 = defineComponent({
|
|
|
251
226
|
var sortBy = ref('');
|
|
252
227
|
var sortDirection = ref('asc');
|
|
253
228
|
var currentSortedColumn = ref('');
|
|
254
|
-
|
|
255
229
|
var sortColumn = function sortColumn(column) {
|
|
256
230
|
if (!isColumnSortable(column)) return;
|
|
257
231
|
currentSortedColumn.value = column;
|
|
258
|
-
|
|
259
232
|
if (sortBy.value === column) {
|
|
260
233
|
sortDirection.value = sortDirection.value === 'asc' ? 'desc' : 'asc';
|
|
261
234
|
} else {
|
|
@@ -263,12 +236,10 @@ var script$2 = defineComponent({
|
|
|
263
236
|
sortDirection.value = 'asc';
|
|
264
237
|
}
|
|
265
238
|
};
|
|
266
|
-
|
|
267
239
|
var sortedData = computed(function () {
|
|
268
240
|
if (!sortBy.value) {
|
|
269
241
|
return props.items;
|
|
270
242
|
}
|
|
271
|
-
|
|
272
243
|
var data = props.items;
|
|
273
244
|
data.sort(function (a, b) {
|
|
274
245
|
var sortVal = a[sortBy.value] > b[sortBy.value] ? 1 : -1;
|
|
@@ -276,53 +247,39 @@ var script$2 = defineComponent({
|
|
|
276
247
|
});
|
|
277
248
|
return data;
|
|
278
249
|
});
|
|
279
|
-
|
|
280
250
|
var formattedText = function formattedText(row, column) {
|
|
281
251
|
var _props$options$column;
|
|
282
|
-
|
|
283
252
|
if (props.options && props.options[column] && (_props$options$column = props.options[column]) !== null && _props$options$column !== void 0 && _props$options$column.formatter) {
|
|
284
253
|
var _props$options$column2;
|
|
285
|
-
|
|
286
254
|
var colFormatter = (_props$options$column2 = props.options[column]) === null || _props$options$column2 === void 0 ? void 0 : _props$options$column2.formatter;
|
|
287
|
-
|
|
288
255
|
if (colFormatter) {
|
|
289
256
|
return colFormatter(row[column]);
|
|
290
257
|
}
|
|
291
258
|
}
|
|
292
|
-
|
|
293
259
|
return row[column];
|
|
294
260
|
};
|
|
295
|
-
|
|
296
261
|
var sortedIcon = function sortedIcon(sortDir, column) {
|
|
297
262
|
if (currentSortedColumn.value === column) {
|
|
298
263
|
if (sortDirection.value === sortDir) {
|
|
299
264
|
return 'text-body';
|
|
300
265
|
}
|
|
301
266
|
}
|
|
302
|
-
|
|
303
267
|
return 'text-grey-light';
|
|
304
268
|
};
|
|
305
|
-
|
|
306
269
|
var isColumnSortable = function isColumnSortable(column) {
|
|
307
270
|
if (props.options && props.options[column]) {
|
|
308
271
|
var _props$options$column3;
|
|
309
|
-
|
|
310
272
|
return (_props$options$column3 = props.options[column]) === null || _props$options$column3 === void 0 ? void 0 : _props$options$column3.isSortable;
|
|
311
273
|
}
|
|
312
|
-
|
|
313
274
|
return false;
|
|
314
275
|
};
|
|
315
|
-
|
|
316
276
|
var isDisabled = function isDisabled(column) {
|
|
317
277
|
var _props$options$column4;
|
|
318
|
-
|
|
319
278
|
if (props.options && (_props$options$column4 = props.options[column]) !== null && _props$options$column4 !== void 0 && _props$options$column4.disabled) {
|
|
320
279
|
return true;
|
|
321
280
|
}
|
|
322
|
-
|
|
323
281
|
return false;
|
|
324
282
|
};
|
|
325
|
-
|
|
326
283
|
return {
|
|
327
284
|
columns: columns,
|
|
328
285
|
sortBy: sortBy,
|
|
@@ -368,9 +325,7 @@ var _hoisted_9 = {
|
|
|
368
325
|
var _hoisted_10 = ["innerHTML"];
|
|
369
326
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
370
327
|
var _component_CaretDownSvg = resolveComponent("CaretDownSvg");
|
|
371
|
-
|
|
372
328
|
var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
|
|
373
|
-
|
|
374
329
|
return openBlock(), createElementBlock("table", {
|
|
375
330
|
"class": normalizeClass(["table-auto table-responsive rounded border border-grey-40 border-spacing-px border-separate bg-grey-40", _ctx.loading ? 'cursor-wait' : ''])
|
|
376
331
|
}, [createElementVNode("thead", _hoisted_1$2, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, function (column, thKey) {
|