@frollo/frollo-web-ui 2.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +17802 -1708
- package/esm/add-to-unscopables-2400f45b.js +25 -0
- package/esm/array-iteration-107f927f.js +92 -0
- package/esm/array-method-has-species-support-3d413468.js +23 -0
- package/esm/array-method-is-strict-055b1830.js +14 -0
- package/esm/array-species-create-a5f5503b.js +97 -0
- package/esm/{classof-088c9833.js → classof-39c30bd5.js} +1 -2
- package/esm/create-property-534611fd.js +14 -0
- package/esm/delete-property-or-throw-8032646c.js +31 -0
- package/esm/does-not-exceed-safe-integer-31d08811.js +11 -0
- package/esm/es.array.concat-987938be.js +69 -0
- package/esm/{es.array.find-54b8f84b.js → es.array.find-dfa1f42f.js} +5 -6
- package/esm/{es.array.includes-9a6e4066.js → es.array.includes-91be7771.js} +3 -4
- package/esm/{es.function.name-2fa3a718.js → es.function.name-557cb1f9.js} +1 -1
- package/esm/{es.number.constructor-b7faae1f.js → es.number.constructor-1249bd78.js} +2 -3
- package/esm/es.string.iterator-284b31d4.js +470 -0
- package/esm/{object-keys-3c73c404.js → export-a37ba078.js} +2 -13
- package/esm/function-apply-ce251590.js +14 -0
- package/esm/fw-accordion.js +2 -8
- package/esm/fw-animations.js +6 -20
- package/esm/fw-bar-chart.js +19 -0
- package/esm/{fw-button-765b9d52.js → fw-button-1486e2d9.js} +6 -24
- package/esm/fw-button.js +9 -8
- package/esm/fw-card-1b6a67fe.js +90 -0
- package/esm/fw-card.js +2 -95
- package/esm/fw-checkbox.js +27 -17
- package/esm/fw-dropdown.js +17 -33
- package/esm/fw-image-4727ac61.js +289 -0
- package/esm/fw-image.js +22 -847
- package/esm/fw-input.js +24 -25
- package/esm/fw-loading-bar-f5ca605c.js +22 -0
- package/esm/{fw-loading-spinner-01b9a040.js → fw-loading-spinner-df1627c0.js} +1 -2
- package/esm/fw-loading.js +6 -9
- package/esm/fw-modal.js +218 -11
- package/esm/fw-navigation-menu.js +11 -19
- package/esm/fw-progress-bar.js +4 -11
- package/esm/fw-table.js +12 -56
- package/esm/fw-tabs.js +60 -20
- package/esm/fw-tag.js +8 -8
- package/esm/fw-toast.js +276 -0
- package/esm/fw-transactions-card.js +115 -0
- package/esm/index-1a41e7bf.js +15838 -0
- package/esm/{index-7833cf39.js → index-4605e00e.js} +114 -86
- package/esm/index.js +87 -73
- package/esm/is-forced-752b5893.js +927 -0
- package/esm/{add-to-unscopables-a5032b1d.js → object-create-f6f3a673.js} +3 -25
- package/esm/object-keys-4f5bf4e7.js +13 -0
- package/esm/{to-string-c2bd1f4d.js → to-string-12728fd2.js} +2 -2
- package/esm/uniqueId-fe08534a.js +279 -0
- package/esm/web.timers-0f117224.js +72 -0
- package/frollo-web-ui.esm.js +18020 -1824
- package/icons/index.ts +5 -1
- package/icons/solid-check.svg +3 -0
- package/icons/solid-xmark.svg +3 -0
- package/index.d.ts +344 -22
- package/package.json +5 -1
- package/styles/web-components.scss +8 -0
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -0
- package/types/components/fw-bar-chart/index.d.ts +2 -0
- package/types/components/fw-bar-chart/index.types.d.ts +11 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +3 -1
- package/types/components/fw-input/fw-input.vue.d.ts +1 -0
- package/types/components/fw-modal/fw-modal.vue.d.ts +16 -0
- package/types/components/fw-modal/index.types.d.ts +1 -0
- package/types/components/fw-toast/fw-toast.vue.d.ts +121 -0
- package/types/components/fw-toast/index.d.ts +2 -0
- package/types/components/fw-toast/index.types.d.ts +13 -0
- package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -0
- package/types/components/fw-transactions-card/index.d.ts +2 -0
- package/types/components/fw-transactions-card/index.types.d.ts +6 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/index.types.d.ts +3 -0
- package/types/icons/index.d.ts +3 -1
- package/types/index.browser-umd.d.ts +1 -0
- package/types/services/index.d.ts +1 -0
- package/types/services/modal.d.ts +1 -1
- package/types/services/toast.d.ts +9 -0
- package/web-components/index.js +36612 -0
- package/esm/array-iteration-4f83e223.js +0 -186
- package/esm/create-property-da6d232b.js +0 -26
- package/esm/function-name-c49146fc.js +0 -492
- package/esm/fw-loading-bar-da7d53fb.js +0 -22
- package/esm/index-06f4e5f1.js +0 -482
- package/esm/is-forced-fd46b5f2.js +0 -438
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './es.array.includes-
|
|
1
|
+
import './es.array.includes-91be7771.js';
|
|
2
2
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createElementVNode, renderSlot, createVNode, createCommentVNode } from 'vue';
|
|
3
|
-
import { s as script$1 } from './fw-loading-spinner-
|
|
3
|
+
import { s as script$1 } from './fw-loading-spinner-df1627c0.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
5
|
|
|
6
6
|
var script = defineComponent({
|
|
@@ -16,12 +16,10 @@ var script = defineComponent({
|
|
|
16
16
|
to: {
|
|
17
17
|
type: [String, Object]
|
|
18
18
|
},
|
|
19
|
-
|
|
20
19
|
/**
|
|
21
20
|
* A URL to link to using a native anchor element
|
|
22
21
|
*/
|
|
23
22
|
href: String,
|
|
24
|
-
|
|
25
23
|
/**
|
|
26
24
|
* The size of the button. Accepts: 'sm', 'md', 'lg', 'xl', '2xl'
|
|
27
25
|
*/
|
|
@@ -32,7 +30,6 @@ var script = defineComponent({
|
|
|
32
30
|
return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
|
-
|
|
36
33
|
/**
|
|
37
34
|
* The colour variant of the button.
|
|
38
35
|
* Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
|
|
@@ -44,7 +41,6 @@ var script = defineComponent({
|
|
|
44
41
|
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
45
42
|
}
|
|
46
43
|
},
|
|
47
|
-
|
|
48
44
|
/**
|
|
49
45
|
* The type attribute of the button
|
|
50
46
|
*/
|
|
@@ -55,7 +51,6 @@ var script = defineComponent({
|
|
|
55
51
|
return ['button', 'submit', 'reset'].includes(value);
|
|
56
52
|
}
|
|
57
53
|
},
|
|
58
|
-
|
|
59
54
|
/**
|
|
60
55
|
* The animation type of the hover & focus states.
|
|
61
56
|
* Accepts 'alternate' and 'fade'
|
|
@@ -67,7 +62,6 @@ var script = defineComponent({
|
|
|
67
62
|
return ['alternate', 'fade'].includes(value);
|
|
68
63
|
}
|
|
69
64
|
},
|
|
70
|
-
|
|
71
65
|
/**
|
|
72
66
|
* Whether the button is rounded or not
|
|
73
67
|
*/
|
|
@@ -75,7 +69,6 @@ var script = defineComponent({
|
|
|
75
69
|
type: Boolean,
|
|
76
70
|
"default": true
|
|
77
71
|
},
|
|
78
|
-
|
|
79
72
|
/**
|
|
80
73
|
* Whether the loading animation is shown or not
|
|
81
74
|
*/
|
|
@@ -83,7 +76,6 @@ var script = defineComponent({
|
|
|
83
76
|
type: Boolean,
|
|
84
77
|
"default": false
|
|
85
78
|
},
|
|
86
|
-
|
|
87
79
|
/**
|
|
88
80
|
* Whether the link should open in a new tab
|
|
89
81
|
*/
|
|
@@ -92,7 +84,8 @@ var script = defineComponent({
|
|
|
92
84
|
}
|
|
93
85
|
},
|
|
94
86
|
setup: function setup(props, ctx) {
|
|
95
|
-
var baseClass = ref(
|
|
87
|
+
var baseClass = ref(
|
|
88
|
+
// eslint-disable-next-line max-len
|
|
96
89
|
'inline-block text-center whitespace-nowrap transition-colors ease-in-out duration-300 focus:outline-0 border-2 focus-visible:outline-0 focus:ring-none ring-offset-2 focus-visible:ring');
|
|
97
90
|
var buttonClasses = ref({
|
|
98
91
|
primary: {
|
|
@@ -178,43 +171,33 @@ var script = defineComponent({
|
|
|
178
171
|
/**
|
|
179
172
|
* @event Click - Native click
|
|
180
173
|
*/
|
|
181
|
-
|
|
182
174
|
var onClick = function onClick(e) {
|
|
183
175
|
return ctx.emit('click', e);
|
|
184
176
|
};
|
|
185
177
|
/**
|
|
186
178
|
* @event mouseover - Native hover
|
|
187
179
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
180
|
var onMouseover = function onMouseover(e) {
|
|
191
181
|
return ctx.emit('mouseover', e);
|
|
192
182
|
};
|
|
193
183
|
/**
|
|
194
184
|
* @event mouseout - Native hover out
|
|
195
185
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
186
|
var onMouseout = function onMouseout(e) {
|
|
199
187
|
return ctx.emit('mouseout', e);
|
|
200
188
|
};
|
|
201
189
|
/**
|
|
202
190
|
* @event focusin - Native focusin
|
|
203
191
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
192
|
var onFocusin = function onFocusin(e) {
|
|
207
193
|
return ctx.emit('focusin', e);
|
|
208
194
|
};
|
|
209
195
|
/**
|
|
210
196
|
* @event focusout - Native focusout
|
|
211
197
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
198
|
var onFocusout = function onFocusout(e) {
|
|
215
199
|
return ctx.emit('focusout', e);
|
|
216
200
|
};
|
|
217
|
-
|
|
218
201
|
var tagName = computed(function () {
|
|
219
202
|
if (props.to) return 'router-link';
|
|
220
203
|
if (props.href) return 'a';
|
|
@@ -243,7 +226,6 @@ var _hoisted_1 = {
|
|
|
243
226
|
};
|
|
244
227
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
245
228
|
var _component_FwLoadingSpinner = resolveComponent("FwLoadingSpinner");
|
|
246
|
-
|
|
247
229
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
248
230
|
"class": normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : 'font-semibold', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress' : 'cursor-pointer']]),
|
|
249
231
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
@@ -272,8 +254,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
272
254
|
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "target", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
273
255
|
}
|
|
274
256
|
|
|
275
|
-
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s
|
|
276
|
-
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s
|
|
257
|
+
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
258
|
+
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary:hover{background:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--secondary{background:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate:hover{background:var(--colorButtonSecondaryText);color:var(--colorButtonSecondary)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary{background:var(--colorButtonTertiary);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate:hover{background:var(--colorButtonTertiaryText);color:var(--colorButtonTertiary)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}";
|
|
277
259
|
styleInject(css_248z);
|
|
278
260
|
|
|
279
261
|
script.render = render;
|
package/esm/fw-button.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { s as FwButton } from './fw-button-
|
|
2
|
-
import './es.array.includes-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
1
|
+
export { s as FwButton } from './fw-button-1486e2d9.js';
|
|
2
|
+
import './es.array.includes-91be7771.js';
|
|
3
|
+
import './is-forced-752b5893.js';
|
|
4
|
+
import './export-a37ba078.js';
|
|
5
|
+
import './add-to-unscopables-2400f45b.js';
|
|
6
|
+
import './object-create-f6f3a673.js';
|
|
7
|
+
import './object-keys-4f5bf4e7.js';
|
|
7
8
|
import 'vue';
|
|
8
|
-
import './fw-loading-spinner-
|
|
9
|
-
import './index-
|
|
9
|
+
import './fw-loading-spinner-df1627c0.js';
|
|
10
|
+
import './index-4605e00e.js';
|
|
10
11
|
import './check-94a5917a.js';
|
|
11
12
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from 'vue';
|
|
2
|
+
|
|
3
|
+
var script = defineComponent({
|
|
4
|
+
name: 'FwCard',
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* The header title of the card
|
|
8
|
+
*/
|
|
9
|
+
title: {
|
|
10
|
+
type: String
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* Title prefix with primary color
|
|
14
|
+
*/
|
|
15
|
+
prefixTitle: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* A `router-link` path or object
|
|
20
|
+
*/
|
|
21
|
+
to: {
|
|
22
|
+
type: [String, Object]
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* A URL to link to using a native anchor element
|
|
26
|
+
*/
|
|
27
|
+
href: String,
|
|
28
|
+
/**
|
|
29
|
+
* Whether padding should be applied around the default slot
|
|
30
|
+
*/
|
|
31
|
+
slotPadding: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
"default": true
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Whether the card has a border or shadow by default
|
|
37
|
+
*/
|
|
38
|
+
isBordered: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
"default": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
setup: function setup(props) {
|
|
44
|
+
var linkClass = ref( // eslint-disable-next-line max-len
|
|
45
|
+
"block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1");
|
|
46
|
+
var componentName = computed(function () {
|
|
47
|
+
if (props.to) return 'router-link';
|
|
48
|
+
if (props.href) return 'a';
|
|
49
|
+
return 'div';
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
componentName: componentName,
|
|
53
|
+
linkClass: linkClass
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
var _hoisted_1 = {
|
|
59
|
+
key: 0,
|
|
60
|
+
"class": "fw-card--header px-8 py-4 bg-grey-lightest rounded-t border-opacity-0"
|
|
61
|
+
};
|
|
62
|
+
var _hoisted_2 = {
|
|
63
|
+
key: 0,
|
|
64
|
+
"class": "fw-card--prefix-title text-primary"
|
|
65
|
+
};
|
|
66
|
+
var _hoisted_3 = ["innerHTML"];
|
|
67
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.componentName), {
|
|
69
|
+
to: _ctx.to ? _ctx.to : null,
|
|
70
|
+
href: _ctx.href ? _ctx.href : null,
|
|
71
|
+
tabindex: _ctx.to ? 0 : null,
|
|
72
|
+
"class": normalizeClass(["fw-card rounded", [_ctx.to || _ctx.href || !!_ctx.$attrs.onClick ? _ctx.linkClass : '', _ctx.isBordered ? 'border border-grey-40' : 'shadow-card']])
|
|
73
|
+
}, {
|
|
74
|
+
"default": withCtx(function () {
|
|
75
|
+
return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("div", {
|
|
76
|
+
key: 1,
|
|
77
|
+
"class": "inline",
|
|
78
|
+
innerHTML: _ctx.title
|
|
79
|
+
}, null, 8, _hoisted_3)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", {
|
|
80
|
+
key: 1,
|
|
81
|
+
"class": normalizeClass(_ctx.slotPadding ? 'p-8' : '')
|
|
82
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true)];
|
|
83
|
+
}),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["to", "href", "tabindex", "class"]);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
script.render = render;
|
|
89
|
+
|
|
90
|
+
export { script as s };
|
package/esm/fw-card.js
CHANGED
|
@@ -1,95 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var script = defineComponent({
|
|
4
|
-
name: 'FwCard',
|
|
5
|
-
props: {
|
|
6
|
-
/**
|
|
7
|
-
* The header title of the card
|
|
8
|
-
*/
|
|
9
|
-
title: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Title prefix with primary color
|
|
15
|
-
*/
|
|
16
|
-
prefixTitle: {
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* A `router-link` path or object
|
|
22
|
-
*/
|
|
23
|
-
to: {
|
|
24
|
-
type: [String, Object]
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* A URL to link to using a native anchor element
|
|
29
|
-
*/
|
|
30
|
-
href: String,
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Whether padding should be applied around the default slot
|
|
34
|
-
*/
|
|
35
|
-
slotPadding: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
"default": true
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Whether the card has a border or shadow by default
|
|
42
|
-
*/
|
|
43
|
-
isBordered: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
"default": false
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
setup: function setup(props) {
|
|
49
|
-
var linkClass = ref( // eslint-disable-next-line max-len
|
|
50
|
-
"block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1");
|
|
51
|
-
var componentName = computed(function () {
|
|
52
|
-
if (props.to) return 'router-link';
|
|
53
|
-
if (props.href) return 'a';
|
|
54
|
-
return 'div';
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
componentName: componentName,
|
|
58
|
-
linkClass: linkClass
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
var _hoisted_1 = {
|
|
64
|
-
key: 0,
|
|
65
|
-
"class": "fw-card--header px-8 py-4 bg-grey-lightest rounded-t border-opacity-0"
|
|
66
|
-
};
|
|
67
|
-
var _hoisted_2 = {
|
|
68
|
-
key: 0,
|
|
69
|
-
"class": "fw-card--prefix-title text-primary"
|
|
70
|
-
};
|
|
71
|
-
var _hoisted_3 = ["innerHTML"];
|
|
72
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.componentName), {
|
|
74
|
-
to: _ctx.to ? _ctx.to : null,
|
|
75
|
-
href: _ctx.href ? _ctx.href : null,
|
|
76
|
-
tabindex: _ctx.to ? 0 : null,
|
|
77
|
-
"class": normalizeClass(["fw-card rounded", [_ctx.to || _ctx.href || !!_ctx.$attrs.onClick ? _ctx.linkClass : '', _ctx.isBordered ? 'border border-grey-40' : 'shadow-card']])
|
|
78
|
-
}, {
|
|
79
|
-
"default": withCtx(function () {
|
|
80
|
-
return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("div", {
|
|
81
|
-
key: 1,
|
|
82
|
-
"class": "inline",
|
|
83
|
-
innerHTML: _ctx.title
|
|
84
|
-
}, null, 8, _hoisted_3)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", {
|
|
85
|
-
key: 1,
|
|
86
|
-
"class": normalizeClass(_ctx.slotPadding ? 'p-8' : '')
|
|
87
|
-
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true)];
|
|
88
|
-
}),
|
|
89
|
-
_: 3
|
|
90
|
-
}, 8, ["to", "href", "tabindex", "class"]);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
script.render = render;
|
|
94
|
-
|
|
95
|
-
export { script as FwCard };
|
|
1
|
+
export { s as FwCard } from './fw-card-1b6a67fe.js';
|
|
2
|
+
import 'vue';
|
package/esm/fw-checkbox.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { defineComponent, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, mergeProps, createCommentVNode, Transition, toDisplayString } from 'vue';
|
|
2
2
|
import { a as Field } from './vee-validate.esm-a17a23c3.js';
|
|
3
|
-
import './
|
|
3
|
+
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
4
|
+
import './es.function.name-557cb1f9.js';
|
|
5
|
+
import './es.array.concat-987938be.js';
|
|
4
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
5
|
-
import './
|
|
7
|
+
import './is-forced-752b5893.js';
|
|
8
|
+
import './export-a37ba078.js';
|
|
9
|
+
import './array-species-create-a5f5503b.js';
|
|
10
|
+
import './classof-39c30bd5.js';
|
|
11
|
+
import './does-not-exceed-safe-integer-31d08811.js';
|
|
12
|
+
import './create-property-534611fd.js';
|
|
13
|
+
import './array-method-has-species-support-3d413468.js';
|
|
6
14
|
|
|
7
15
|
var script = defineComponent({
|
|
8
16
|
name: 'FwCheckbox',
|
|
@@ -17,34 +25,36 @@ var script = defineComponent({
|
|
|
17
25
|
type: String,
|
|
18
26
|
required: true
|
|
19
27
|
},
|
|
20
|
-
|
|
21
28
|
/**
|
|
22
29
|
* Label for the input. Also renders to an aria-label attribute
|
|
23
30
|
*/
|
|
24
31
|
label: {
|
|
25
32
|
type: String
|
|
26
33
|
},
|
|
27
|
-
|
|
28
34
|
/**
|
|
29
35
|
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
30
36
|
*/
|
|
31
37
|
rules: {
|
|
32
38
|
type: [Object, String, Function]
|
|
33
39
|
},
|
|
34
|
-
|
|
35
40
|
/**
|
|
36
41
|
* The hint text shown below the input
|
|
37
42
|
*/
|
|
38
43
|
hint: {
|
|
39
44
|
type: String
|
|
40
45
|
}
|
|
46
|
+
},
|
|
47
|
+
setup: function setup() {
|
|
48
|
+
var uuid = uniqueId();
|
|
49
|
+
return {
|
|
50
|
+
uuid: uuid
|
|
51
|
+
};
|
|
41
52
|
}
|
|
42
53
|
});
|
|
43
54
|
|
|
44
55
|
var _withScopeId = function _withScopeId(n) {
|
|
45
|
-
return pushScopeId("data-v-
|
|
56
|
+
return pushScopeId("data-v-3370ec5a"), n = n(), popScopeId(), n;
|
|
46
57
|
};
|
|
47
|
-
|
|
48
58
|
var _hoisted_1 = {
|
|
49
59
|
"class": "fw-checkbox w-full"
|
|
50
60
|
};
|
|
@@ -52,7 +62,7 @@ var _hoisted_2 = {
|
|
|
52
62
|
"class": "flex flex-col"
|
|
53
63
|
};
|
|
54
64
|
var _hoisted_3 = ["for"];
|
|
55
|
-
var _hoisted_4 = ["value", "name"];
|
|
65
|
+
var _hoisted_4 = ["value", "name", "id"];
|
|
56
66
|
var _hoisted_5 = ["innerHTML"];
|
|
57
67
|
var _hoisted_6 = {
|
|
58
68
|
"class": "italic text-sm font-medium min-h-[21px]"
|
|
@@ -66,7 +76,6 @@ var _hoisted_8 = {
|
|
|
66
76
|
};
|
|
67
77
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
78
|
var _component_InputField = resolveComponent("InputField");
|
|
69
|
-
|
|
70
79
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
|
|
71
80
|
name: _ctx.name,
|
|
72
81
|
value: _ctx.name,
|
|
@@ -75,15 +84,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
84
|
}, {
|
|
76
85
|
"default": withCtx(function (_ref) {
|
|
77
86
|
var field = _ref.field,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
errors = _ref.errors,
|
|
88
|
+
errorMessage = _ref.errorMessage,
|
|
89
|
+
meta = _ref.meta;
|
|
81
90
|
return [createElementVNode("div", _hoisted_2, [createElementVNode("label", {
|
|
82
|
-
"for": _ctx.name,
|
|
91
|
+
"for": "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
83
92
|
"class": "inline-flex items-center mb-3"
|
|
84
93
|
}, [createElementVNode("input", mergeProps(field, {
|
|
85
94
|
value: _ctx.name,
|
|
86
|
-
name: _ctx.name,
|
|
95
|
+
name: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
96
|
+
id: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
|
|
87
97
|
type: "checkbox",
|
|
88
98
|
"class": "text-link w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
|
|
89
99
|
}), null, 16, _hoisted_4), _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
@@ -104,11 +114,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
114
|
}, 8, ["name", "value", "rules"])]);
|
|
105
115
|
}
|
|
106
116
|
|
|
107
|
-
var css_248z = ".fwFadeIn-enter-active[data-v-
|
|
108
|
-
var stylesheet = ".fwFadeIn-enter-active[data-v-
|
|
117
|
+
var css_248z = ".fwFadeIn-enter-active[data-v-3370ec5a]{-webkit-animation:fwFadeIn-3370ec5a .35s;animation:fwFadeIn-3370ec5a .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-3370ec5a]{animation:fwFadeIn-3370ec5a .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-3370ec5a]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-3370ec5a]:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
118
|
+
var stylesheet = ".fwFadeIn-enter-active[data-v-3370ec5a]{-webkit-animation:fwFadeIn-3370ec5a .35s;animation:fwFadeIn-3370ec5a .35s;-webkit-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-3370ec5a]{animation:fwFadeIn-3370ec5a .35s reverse;-webkit-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-3370ec5a{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-3370ec5a]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-3370ec5a]:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
109
119
|
styleInject(css_248z);
|
|
110
120
|
|
|
111
121
|
script.render = render;
|
|
112
|
-
script.__scopeId = "data-v-
|
|
122
|
+
script.__scopeId = "data-v-3370ec5a";
|
|
113
123
|
|
|
114
124
|
export { script as FwCheckbox };
|
package/esm/fw-dropdown.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import './es.array.find-
|
|
1
|
+
import './es.array.find-dfa1f42f.js';
|
|
2
2
|
import { defineComponent, toRef, ref, computed, onMounted, onBeforeUnmount, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, createVNode, Transition, withCtx, Fragment, renderList } from 'vue';
|
|
3
3
|
import { u as useField } from './vee-validate.esm-a17a23c3.js';
|
|
4
|
-
import { a as render$1 } from './index-
|
|
5
|
-
import './es.function.name-
|
|
4
|
+
import { a as render$1 } from './index-4605e00e.js';
|
|
5
|
+
import './es.function.name-557cb1f9.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
|
-
import './
|
|
8
|
-
import './classof-
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './array-
|
|
12
|
-
import './add-to-unscopables-
|
|
7
|
+
import './is-forced-752b5893.js';
|
|
8
|
+
import './classof-39c30bd5.js';
|
|
9
|
+
import './export-a37ba078.js';
|
|
10
|
+
import './array-iteration-107f927f.js';
|
|
11
|
+
import './array-species-create-a5f5503b.js';
|
|
12
|
+
import './add-to-unscopables-2400f45b.js';
|
|
13
|
+
import './object-create-f6f3a673.js';
|
|
14
|
+
import './object-keys-4f5bf4e7.js';
|
|
13
15
|
import './check-94a5917a.js';
|
|
14
16
|
|
|
15
17
|
var script = defineComponent({
|
|
@@ -24,7 +26,6 @@ var script = defineComponent({
|
|
|
24
26
|
modelValue: {
|
|
25
27
|
type: String
|
|
26
28
|
},
|
|
27
|
-
|
|
28
29
|
/**
|
|
29
30
|
* The name of the input field. Must be unique per form.
|
|
30
31
|
*/
|
|
@@ -32,21 +33,18 @@ var script = defineComponent({
|
|
|
32
33
|
type: String,
|
|
33
34
|
required: true
|
|
34
35
|
},
|
|
35
|
-
|
|
36
36
|
/**
|
|
37
37
|
* Label for the input. Also renders to an aria-label attribute
|
|
38
38
|
*/
|
|
39
39
|
label: {
|
|
40
40
|
type: String
|
|
41
41
|
},
|
|
42
|
-
|
|
43
42
|
/**
|
|
44
43
|
* Validation rules. Accepts an object, string schema or validation function.
|
|
45
44
|
*/
|
|
46
45
|
rules: {
|
|
47
46
|
type: [Object, String, Function]
|
|
48
47
|
},
|
|
49
|
-
|
|
50
48
|
/**
|
|
51
49
|
* An array of options for the dropdown menu.
|
|
52
50
|
*/
|
|
@@ -54,14 +52,12 @@ var script = defineComponent({
|
|
|
54
52
|
type: Array,
|
|
55
53
|
required: true
|
|
56
54
|
},
|
|
57
|
-
|
|
58
55
|
/**
|
|
59
56
|
* The hint text shown below the input
|
|
60
57
|
*/
|
|
61
58
|
hint: {
|
|
62
59
|
type: String
|
|
63
60
|
},
|
|
64
|
-
|
|
65
61
|
/**
|
|
66
62
|
* Custom placeholder text
|
|
67
63
|
*/
|
|
@@ -76,13 +72,11 @@ var script = defineComponent({
|
|
|
76
72
|
var menuClass = "absolute left-0 mt-1 w-full text-left z-10 origin-top-left rounded-md bg-grey-20 drop-shadow-lg\n ring-1 ring-black ring-opacity-5 focus:outline-none";
|
|
77
73
|
var menuItemClass = "block px-4 py-3 my-1 cursor-pointer hover:bg-white first:rounded-t-md last:rounded-b-md\n first:mt-0 last:mb-0";
|
|
78
74
|
var nameRef = toRef(props, 'name');
|
|
79
|
-
|
|
80
75
|
var _useField = useField(nameRef, props.rules),
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
errors = _useField.errors,
|
|
77
|
+
errorMessage = _useField.errorMessage,
|
|
78
|
+
meta = _useField.meta,
|
|
79
|
+
fieldVal = _useField.value;
|
|
86
80
|
var selectedOption = ref();
|
|
87
81
|
var selectValue = computed({
|
|
88
82
|
get: function get() {
|
|
@@ -94,29 +88,23 @@ var script = defineComponent({
|
|
|
94
88
|
}
|
|
95
89
|
});
|
|
96
90
|
var isOpen = ref(false);
|
|
97
|
-
|
|
98
91
|
var selectOption = function selectOption(option) {
|
|
99
92
|
selectValue.value = option.value;
|
|
100
93
|
selectedOption.value = option;
|
|
101
94
|
isOpen.value = false;
|
|
102
95
|
};
|
|
103
|
-
|
|
104
96
|
var onEscape = function onEscape(e) {
|
|
105
97
|
if (e.key === 'Esc' || e.key === 'Escape') {
|
|
106
98
|
isOpen.value = false;
|
|
107
99
|
}
|
|
108
100
|
};
|
|
109
|
-
|
|
110
101
|
var menuItemActiveClass = function menuItemActiveClass(option) {
|
|
111
102
|
var _selectedOption$value;
|
|
112
|
-
|
|
113
103
|
if (((_selectedOption$value = selectedOption.value) === null || _selectedOption$value === void 0 ? void 0 : _selectedOption$value.value) === option.value) {
|
|
114
104
|
return 'bg-white';
|
|
115
105
|
}
|
|
116
|
-
|
|
117
106
|
return 'bg-none';
|
|
118
107
|
};
|
|
119
|
-
|
|
120
108
|
onMounted(function () {
|
|
121
109
|
if (selectValue.value) {
|
|
122
110
|
selectedOption.value = props.options.find(function (option) {
|
|
@@ -124,7 +112,6 @@ var script = defineComponent({
|
|
|
124
112
|
});
|
|
125
113
|
if (selectedOption.value) selectOption(selectedOption.value);
|
|
126
114
|
}
|
|
127
|
-
|
|
128
115
|
document.addEventListener('keydown', onEscape);
|
|
129
116
|
});
|
|
130
117
|
onBeforeUnmount(function () {
|
|
@@ -150,7 +137,6 @@ var script = defineComponent({
|
|
|
150
137
|
var _withScopeId = function _withScopeId(n) {
|
|
151
138
|
return pushScopeId("data-v-1467a810"), n = n(), popScopeId(), n;
|
|
152
139
|
};
|
|
153
|
-
|
|
154
140
|
var _hoisted_1 = {
|
|
155
141
|
"class": "fw-dropdown relative"
|
|
156
142
|
};
|
|
@@ -180,9 +166,7 @@ var _hoisted_10 = {
|
|
|
180
166
|
};
|
|
181
167
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
182
168
|
var _ctx$selectedOption, _ctx$selectedOption2;
|
|
183
|
-
|
|
184
169
|
var _component_ChevronDownSvg = resolveComponent("ChevronDownSvg");
|
|
185
|
-
|
|
186
170
|
return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true), createElementVNode("button", {
|
|
187
171
|
type: "button",
|
|
188
172
|
"class": normalizeClass([_ctx.menuButtonClass, _ctx.isOpen ? 'border-primary' : 'border-grey-40 hover:border-grey-60']),
|
|
@@ -229,8 +213,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
229
213
|
})])]);
|
|
230
214
|
}
|
|
231
215
|
|
|
232
|
-
var css_248z = ".slideUpDown-enter-active[data-v-1467a810]{-webkit-animation:slideUpDown-1467a810 .3s;animation:slideUpDown-1467a810 .3s;-webkit-transition:all .3s ease-in
|
|
233
|
-
var stylesheet = ".slideUpDown-enter-active[data-v-1467a810]{-webkit-animation:slideUpDown-1467a810 .3s;animation:slideUpDown-1467a810 .3s;-webkit-transition:all .3s ease-in
|
|
216
|
+
var css_248z = ".slideUpDown-enter-active[data-v-1467a810]{-webkit-animation:slideUpDown-1467a810 .3s;animation:slideUpDown-1467a810 .3s;-webkit-transition:all .3s ease-in;transition:all .3s ease-in}.slideUpDown-leave-active[data-v-1467a810]{animation:slideUpDown-1467a810 .3s reverse;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}@-webkit-keyframes slideUpDown-1467a810{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideUpDown-1467a810{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}";
|
|
217
|
+
var stylesheet = ".slideUpDown-enter-active[data-v-1467a810]{-webkit-animation:slideUpDown-1467a810 .3s;animation:slideUpDown-1467a810 .3s;-webkit-transition:all .3s ease-in;transition:all .3s ease-in}.slideUpDown-leave-active[data-v-1467a810]{animation:slideUpDown-1467a810 .3s reverse;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}@-webkit-keyframes slideUpDown-1467a810{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideUpDown-1467a810{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}";
|
|
234
218
|
styleInject(css_248z);
|
|
235
219
|
|
|
236
220
|
script.render = render;
|