@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
package/esm/fw-tabs.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import './es.number.constructor-
|
|
1
|
+
import './es.number.constructor-1249bd78.js';
|
|
2
2
|
import { defineComponent, computed, ref, provide, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, getCurrentInstance, inject, watchEffect } from 'vue';
|
|
3
|
-
import './
|
|
4
|
-
import { _ as _export } from './
|
|
5
|
-
import { a as arrayIteration } from './array-iteration-
|
|
6
|
-
import { a as addToUnscopables$1 } from './add-to-unscopables-
|
|
7
|
-
import './
|
|
8
|
-
import './to-string-
|
|
9
|
-
import './classof-
|
|
10
|
-
import './array-species-create-
|
|
3
|
+
import { e as toObject$1, l as lengthOfArrayLike$1, h as fails$1 } from './is-forced-752b5893.js';
|
|
4
|
+
import { _ as _export } from './export-a37ba078.js';
|
|
5
|
+
import { a as arrayIteration } from './array-iteration-107f927f.js';
|
|
6
|
+
import { a as addToUnscopables$1 } from './add-to-unscopables-2400f45b.js';
|
|
7
|
+
import { d as doesNotExceedSafeInteger$1 } from './does-not-exceed-safe-integer-31d08811.js';
|
|
8
|
+
import './to-string-12728fd2.js';
|
|
9
|
+
import './classof-39c30bd5.js';
|
|
10
|
+
import './array-species-create-a5f5503b.js';
|
|
11
|
+
import './object-create-f6f3a673.js';
|
|
12
|
+
import './object-keys-4f5bf4e7.js';
|
|
11
13
|
|
|
12
14
|
var script$1 = defineComponent({
|
|
13
15
|
name: 'FwTabs',
|
|
@@ -27,11 +29,9 @@ var script$1 = defineComponent({
|
|
|
27
29
|
});
|
|
28
30
|
var tabs = ref();
|
|
29
31
|
tabs.value = [];
|
|
30
|
-
|
|
31
32
|
var selectTab = function selectTab(tab) {
|
|
32
33
|
ctx.emit('update:modelValue', tab);
|
|
33
34
|
};
|
|
34
|
-
|
|
35
35
|
provide('tabsState', {
|
|
36
36
|
active: active,
|
|
37
37
|
tabs: tabs
|
|
@@ -72,7 +72,7 @@ script$1.render = render$1;
|
|
|
72
72
|
var es_array_findIndex = {};
|
|
73
73
|
|
|
74
74
|
'use strict';
|
|
75
|
-
var
|
|
75
|
+
var $$1 = _export;
|
|
76
76
|
var $findIndex = arrayIteration.findIndex;
|
|
77
77
|
var addToUnscopables = addToUnscopables$1;
|
|
78
78
|
|
|
@@ -84,7 +84,7 @@ if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; })
|
|
|
84
84
|
|
|
85
85
|
// `Array.prototype.findIndex` method
|
|
86
86
|
// https://tc39.es/ecma262/#sec-array.prototype.findindex
|
|
87
|
-
|
|
87
|
+
$$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
88
88
|
findIndex: function findIndex(callbackfn /* , that = undefined */) {
|
|
89
89
|
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
90
90
|
}
|
|
@@ -93,6 +93,48 @@ $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
|
93
93
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
94
94
|
addToUnscopables(FIND_INDEX);
|
|
95
95
|
|
|
96
|
+
var es_array_push = {};
|
|
97
|
+
|
|
98
|
+
'use strict';
|
|
99
|
+
var $ = _export;
|
|
100
|
+
var toObject = toObject$1;
|
|
101
|
+
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
102
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
103
|
+
var fails = fails$1;
|
|
104
|
+
|
|
105
|
+
var INCORRECT_TO_LENGTH = fails(function () {
|
|
106
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// V8 and Safari <= 15.4, FF < 23 throws InternalError
|
|
110
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
111
|
+
var SILENT_ON_NON_WRITABLE_LENGTH = !function () {
|
|
112
|
+
try {
|
|
113
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
114
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
115
|
+
} catch (error) {
|
|
116
|
+
return error instanceof TypeError;
|
|
117
|
+
}
|
|
118
|
+
}();
|
|
119
|
+
|
|
120
|
+
// `Array.prototype.push` method
|
|
121
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
122
|
+
$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, {
|
|
123
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
124
|
+
push: function push(item) {
|
|
125
|
+
var O = toObject(this);
|
|
126
|
+
var len = lengthOfArrayLike(O);
|
|
127
|
+
var argCount = arguments.length;
|
|
128
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
129
|
+
for (var i = 0; i < argCount; i++) {
|
|
130
|
+
O[len] = arguments[i];
|
|
131
|
+
len++;
|
|
132
|
+
}
|
|
133
|
+
O.length = len;
|
|
134
|
+
return len;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
|
|
96
138
|
var script = defineComponent({
|
|
97
139
|
name: 'FwTab',
|
|
98
140
|
props: {
|
|
@@ -106,17 +148,14 @@ var script = defineComponent({
|
|
|
106
148
|
},
|
|
107
149
|
setup: function setup(props) {
|
|
108
150
|
var instance = getCurrentInstance();
|
|
109
|
-
|
|
110
151
|
var _ref = inject('tabsState') || {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
152
|
+
tabs: [],
|
|
153
|
+
active: 0
|
|
154
|
+
},
|
|
155
|
+
tabs = _ref.tabs,
|
|
156
|
+
active = _ref.active;
|
|
117
157
|
var index = computed(function () {
|
|
118
158
|
var _tabs$value;
|
|
119
|
-
|
|
120
159
|
return (_tabs$value = tabs.value) === null || _tabs$value === void 0 ? void 0 : _tabs$value.findIndex(function (target) {
|
|
121
160
|
return target.uid === (instance === null || instance === void 0 ? void 0 : instance.uid);
|
|
122
161
|
});
|
package/esm/fw-tag.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import './es.array.includes-
|
|
1
|
+
import './es.array.includes-91be7771.js';
|
|
2
2
|
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
4
|
+
import './is-forced-752b5893.js';
|
|
5
|
+
import './export-a37ba078.js';
|
|
6
|
+
import './add-to-unscopables-2400f45b.js';
|
|
7
|
+
import './object-create-f6f3a673.js';
|
|
8
|
+
import './object-keys-4f5bf4e7.js';
|
|
8
9
|
|
|
9
10
|
var script = defineComponent({
|
|
10
11
|
name: 'FwTag',
|
|
@@ -19,7 +20,6 @@ var script = defineComponent({
|
|
|
19
20
|
return ['xs', 'sm'].includes(value);
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
|
-
|
|
23
23
|
/**
|
|
24
24
|
* The colour variant of the tag.
|
|
25
25
|
* Accepts 'primary', 'alert', 'error', 'success'
|
|
@@ -80,8 +80,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
80
80
|
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
var css_248z = ".fw-tag{line-height:normal;-webkit-transition:all .25s ease-in-out
|
|
84
|
-
var stylesheet = ".fw-tag{line-height:normal;-webkit-transition:all .25s ease-in-out
|
|
83
|
+
var css_248z = ".fw-tag{line-height:normal;-webkit-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
|
|
84
|
+
var stylesheet = ".fw-tag{line-height:normal;-webkit-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
|
|
85
85
|
styleInject(css_248z);
|
|
86
86
|
|
|
87
87
|
script.render = render;
|
package/esm/fw-toast.js
CHANGED
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
import './es.array.includes-
|
|
2
|
-
import './es.number.constructor-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as _export } from './
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { c as createProperty$1 } from './create-property-558a3c24.js';
|
|
9
|
-
import './web.timers-4a6aaab8.js';
|
|
1
|
+
import './es.array.includes-91be7771.js';
|
|
2
|
+
import './es.number.constructor-1249bd78.js';
|
|
3
|
+
import { n as isObject$1, p as classofRaw, w as wellKnownSymbol$2, f as functionUncurryThis, r as requireObjectCoercible$1 } from './is-forced-752b5893.js';
|
|
4
|
+
import { _ as _export } from './export-a37ba078.js';
|
|
5
|
+
import { t as toString$1 } from './to-string-12728fd2.js';
|
|
6
|
+
import './es.array.concat-987938be.js';
|
|
7
|
+
import './web.timers-0f117224.js';
|
|
10
8
|
import { defineComponent, ref, computed, onMounted, watchEffect, openBlock, createElementBlock, Fragment, createBlock, Teleport, createVNode, TransitionGroup, createCommentVNode, Transition, withCtx, normalizeClass, createElementVNode, resolveDynamicComponent, toDisplayString, renderSlot } from 'vue';
|
|
11
9
|
import { u as uniqueId } from './uniqueId-fe08534a.js';
|
|
12
|
-
import { c as render$1, d as render$2, e as render$3 } from './index-
|
|
10
|
+
import { c as render$1, d as render$2, e as render$3 } from './index-692e4d19.js';
|
|
13
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
14
|
-
import './add-to-unscopables-
|
|
15
|
-
import './
|
|
12
|
+
import './add-to-unscopables-2400f45b.js';
|
|
13
|
+
import './object-create-f6f3a673.js';
|
|
14
|
+
import './object-keys-4f5bf4e7.js';
|
|
15
|
+
import './classof-39c30bd5.js';
|
|
16
|
+
import './array-species-create-a5f5503b.js';
|
|
17
|
+
import './does-not-exceed-safe-integer-31d08811.js';
|
|
18
|
+
import './create-property-534611fd.js';
|
|
19
|
+
import './array-method-has-species-support-3d413468.js';
|
|
20
|
+
import './function-apply-ce251590.js';
|
|
16
21
|
import './check-94a5917a.js';
|
|
17
22
|
|
|
18
23
|
var es_string_includes = {};
|
|
19
24
|
|
|
20
|
-
var isObject
|
|
25
|
+
var isObject = isObject$1;
|
|
21
26
|
var classof = classofRaw;
|
|
22
|
-
var wellKnownSymbol$
|
|
27
|
+
var wellKnownSymbol$1 = wellKnownSymbol$2;
|
|
23
28
|
|
|
24
|
-
var MATCH$1 = wellKnownSymbol$
|
|
29
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
25
30
|
|
|
26
31
|
// `IsRegExp` abstract operation
|
|
27
32
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
28
33
|
var isRegexp = function (it) {
|
|
29
34
|
var isRegExp;
|
|
30
|
-
return isObject
|
|
35
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
var isRegExp = isRegexp;
|
|
34
39
|
|
|
35
|
-
var $TypeError
|
|
40
|
+
var $TypeError = TypeError;
|
|
36
41
|
|
|
37
42
|
var notARegexp = function (it) {
|
|
38
43
|
if (isRegExp(it)) {
|
|
39
|
-
throw $TypeError
|
|
44
|
+
throw $TypeError("The method doesn't accept regular expressions");
|
|
40
45
|
} return it;
|
|
41
46
|
};
|
|
42
47
|
|
|
43
|
-
var wellKnownSymbol
|
|
48
|
+
var wellKnownSymbol = wellKnownSymbol$2;
|
|
44
49
|
|
|
45
|
-
var MATCH = wellKnownSymbol
|
|
50
|
+
var MATCH = wellKnownSymbol('match');
|
|
46
51
|
|
|
47
52
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
48
53
|
var regexp = /./;
|
|
@@ -57,7 +62,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
'use strict';
|
|
60
|
-
var
|
|
65
|
+
var $ = _export;
|
|
61
66
|
var uncurryThis = functionUncurryThis;
|
|
62
67
|
var notARegExp = notARegexp;
|
|
63
68
|
var requireObjectCoercible = requireObjectCoercible$1;
|
|
@@ -68,7 +73,7 @@ var stringIndexOf = uncurryThis(''.indexOf);
|
|
|
68
73
|
|
|
69
74
|
// `String.prototype.includes` method
|
|
70
75
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
71
|
-
|
|
76
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
72
77
|
includes: function includes(searchString /* , position = 0 */) {
|
|
73
78
|
return !!~stringIndexOf(
|
|
74
79
|
toString(requireObjectCoercible(this)),
|
|
@@ -78,97 +83,6 @@ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
|
|
|
78
83
|
}
|
|
79
84
|
});
|
|
80
85
|
|
|
81
|
-
var es_array_concat = {};
|
|
82
|
-
|
|
83
|
-
var $TypeError = TypeError;
|
|
84
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
85
|
-
|
|
86
|
-
var doesNotExceedSafeInteger$1 = function (it) {
|
|
87
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
88
|
-
return it;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
var fails$1 = fails$2;
|
|
92
|
-
var wellKnownSymbol$1 = wellKnownSymbol$4;
|
|
93
|
-
var V8_VERSION$1 = engineV8Version;
|
|
94
|
-
|
|
95
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
96
|
-
|
|
97
|
-
var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
|
|
98
|
-
// We can't use this feature detection in V8 since it causes
|
|
99
|
-
// deoptimization and serious performance degradation
|
|
100
|
-
// https://github.com/zloirock/core-js/issues/677
|
|
101
|
-
return V8_VERSION$1 >= 51 || !fails$1(function () {
|
|
102
|
-
var array = [];
|
|
103
|
-
var constructor = array.constructor = {};
|
|
104
|
-
constructor[SPECIES] = function () {
|
|
105
|
-
return { foo: 1 };
|
|
106
|
-
};
|
|
107
|
-
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
'use strict';
|
|
112
|
-
var $ = _export;
|
|
113
|
-
var fails = fails$2;
|
|
114
|
-
var isArray = isArray$1;
|
|
115
|
-
var isObject = isObject$2;
|
|
116
|
-
var toObject = toObject$1;
|
|
117
|
-
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
118
|
-
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
119
|
-
var createProperty = createProperty$1;
|
|
120
|
-
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
121
|
-
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
122
|
-
var wellKnownSymbol = wellKnownSymbol$4;
|
|
123
|
-
var V8_VERSION = engineV8Version;
|
|
124
|
-
|
|
125
|
-
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
126
|
-
|
|
127
|
-
// We can't use this feature detection in V8 since it causes
|
|
128
|
-
// deoptimization and serious performance degradation
|
|
129
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
130
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
|
|
131
|
-
var array = [];
|
|
132
|
-
array[IS_CONCAT_SPREADABLE] = false;
|
|
133
|
-
return array.concat()[0] !== array;
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
137
|
-
|
|
138
|
-
var isConcatSpreadable = function (O) {
|
|
139
|
-
if (!isObject(O)) return false;
|
|
140
|
-
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
141
|
-
return spreadable !== undefined ? !!spreadable : isArray(O);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
145
|
-
|
|
146
|
-
// `Array.prototype.concat` method
|
|
147
|
-
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
148
|
-
// with adding support of @@isConcatSpreadable and @@species
|
|
149
|
-
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
150
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
151
|
-
concat: function concat(arg) {
|
|
152
|
-
var O = toObject(this);
|
|
153
|
-
var A = arraySpeciesCreate(O, 0);
|
|
154
|
-
var n = 0;
|
|
155
|
-
var i, k, length, len, E;
|
|
156
|
-
for (i = -1, length = arguments.length; i < length; i++) {
|
|
157
|
-
E = i === -1 ? O : arguments[i];
|
|
158
|
-
if (isConcatSpreadable(E)) {
|
|
159
|
-
len = lengthOfArrayLike(E);
|
|
160
|
-
doesNotExceedSafeInteger(n + len);
|
|
161
|
-
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
162
|
-
} else {
|
|
163
|
-
doesNotExceedSafeInteger(n + 1);
|
|
164
|
-
createProperty(A, n++, E);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
A.length = n;
|
|
168
|
-
return A;
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
|
|
172
86
|
var script = defineComponent({
|
|
173
87
|
name: 'FwToast',
|
|
174
88
|
components: {
|
|
@@ -184,7 +98,6 @@ var script = defineComponent({
|
|
|
184
98
|
modelValue: {
|
|
185
99
|
type: Boolean
|
|
186
100
|
},
|
|
187
|
-
|
|
188
101
|
/**
|
|
189
102
|
* The type of the toast.
|
|
190
103
|
* Accepts: 'success', 'error', 'warning'
|
|
@@ -196,7 +109,6 @@ var script = defineComponent({
|
|
|
196
109
|
return ['success', 'error', 'warning'].includes(value);
|
|
197
110
|
}
|
|
198
111
|
},
|
|
199
|
-
|
|
200
112
|
/**
|
|
201
113
|
* The position of the toast on the screen.
|
|
202
114
|
* Accepts: 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'
|
|
@@ -208,14 +120,12 @@ var script = defineComponent({
|
|
|
208
120
|
return ['top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'].includes(value);
|
|
209
121
|
}
|
|
210
122
|
},
|
|
211
|
-
|
|
212
123
|
/**
|
|
213
124
|
* The content of the toast.
|
|
214
125
|
*/
|
|
215
126
|
content: {
|
|
216
127
|
type: String
|
|
217
128
|
},
|
|
218
|
-
|
|
219
129
|
/**
|
|
220
130
|
* The base container to attach to. Defaults to `#app` element.
|
|
221
131
|
*/
|
|
@@ -223,7 +133,6 @@ var script = defineComponent({
|
|
|
223
133
|
type: String,
|
|
224
134
|
"default": '#app'
|
|
225
135
|
},
|
|
226
|
-
|
|
227
136
|
/**
|
|
228
137
|
* The duration timeout before the toast is dismissed.
|
|
229
138
|
*/
|
|
@@ -254,11 +163,9 @@ var script = defineComponent({
|
|
|
254
163
|
if (props.position.includes('right')) {
|
|
255
164
|
return 'Right';
|
|
256
165
|
}
|
|
257
|
-
|
|
258
166
|
if (props.position.includes('left')) {
|
|
259
167
|
return 'Left';
|
|
260
168
|
}
|
|
261
|
-
|
|
262
169
|
return 'Center';
|
|
263
170
|
});
|
|
264
171
|
var baseClass = "text-white flex min-w-[70%] max-w-[90%] md:min-w-[320px] md:max-w-[600px]\n py-3.5 px-6";
|
|
@@ -277,12 +184,10 @@ var script = defineComponent({
|
|
|
277
184
|
});
|
|
278
185
|
onMounted(function () {
|
|
279
186
|
var positionContainer = document.querySelector("#".concat(containerEl.value));
|
|
280
|
-
|
|
281
187
|
if (!positionContainer) {
|
|
282
188
|
mountContainer.value = true;
|
|
283
189
|
} else if (positionContainer.children.length) {
|
|
284
190
|
var _positionContainer$ch;
|
|
285
|
-
|
|
286
191
|
var first = positionContainer === null || positionContainer === void 0 ? void 0 : positionContainer.clientHeight;
|
|
287
192
|
var toastHeight = (positionContainer === null || positionContainer === void 0 ? void 0 : (_positionContainer$ch = positionContainer.children[0]) === null || _positionContainer$ch === void 0 ? void 0 : _positionContainer$ch.clientHeight) || 52;
|
|
288
193
|
var last = first + toastHeight;
|
|
@@ -296,7 +201,6 @@ var script = defineComponent({
|
|
|
296
201
|
easing: 'ease'
|
|
297
202
|
});
|
|
298
203
|
}
|
|
299
|
-
|
|
300
204
|
isMounted.value = true;
|
|
301
205
|
});
|
|
302
206
|
watchEffect(function () {
|
|
@@ -363,8 +267,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
363
267
|
}, 8, ["name"])], 8, ["to"])) : createCommentVNode("", true)], 64);
|
|
364
268
|
}
|
|
365
269
|
|
|
366
|
-
var css_248z = ".fw-toast{will-change:transform}.fw-toast--container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;pointer-events:none;position:fixed;-webkit-transition:all .4s ease
|
|
367
|
-
var stylesheet = ".fw-toast{will-change:transform}.fw-toast--container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;pointer-events:none;position:fixed;-webkit-transition:all .4s ease
|
|
270
|
+
var css_248z = ".fw-toast{will-change:transform}.fw-toast--container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;pointer-events:none;position:fixed;-webkit-transition:all .4s ease;transition:all .4s ease}#fw-toast--container-bottom-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;bottom:50px;margin-left:20px;right:50px}#fw-toast--container-bottom-left{bottom:50px;left:50px;margin-right:20px}#fw-toast--container-bottom{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:50px;width:100%}#fw-toast--container-top-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;margin-left:20px;right:50px}#fw-toast--container-top-left,#fw-toast--container-top-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px}#fw-toast--container-top-left{left:50px;margin-right:20px}#fw-toast--container-top{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:reverse;align-items:center;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px;width:100%}.toastSlideInRight-enter-active{-webkit-animation:toastSlideInRight .4s;animation:toastSlideInRight .4s;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInRight-leave-active{animation:toastSlideInRight .4s reverse;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInLeft-enter-active{-webkit-animation:toastSlideInLeft .4s;animation:toastSlideInLeft .4s;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInLeft-leave-active{animation:toastSlideInLeft .4s reverse;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInCenter-enter-active{-webkit-animation:toastSlideInCenter .4s;animation:toastSlideInCenter .4s;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInCenter-leave-active{animation:toastSlideInCenter .4s reverse;-webkit-transition:all .4s ease;transition:all .4s ease}@-webkit-keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}@keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}";
|
|
271
|
+
var stylesheet = ".fw-toast{will-change:transform}.fw-toast--container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;pointer-events:none;position:fixed;-webkit-transition:all .4s ease;transition:all .4s ease}#fw-toast--container-bottom-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;bottom:50px;margin-left:20px;right:50px}#fw-toast--container-bottom-left{bottom:50px;left:50px;margin-right:20px}#fw-toast--container-bottom{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:50px;width:100%}#fw-toast--container-top-right{-webkit-box-align:end;-ms-flex-align:end;align-items:end;margin-left:20px;right:50px}#fw-toast--container-top-left,#fw-toast--container-top-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px}#fw-toast--container-top-left{left:50px;margin-right:20px}#fw-toast--container-top{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:reverse;align-items:center;-ms-flex-direction:column-reverse;flex-direction:column-reverse;top:50px;width:100%}.toastSlideInRight-enter-active{-webkit-animation:toastSlideInRight .4s;animation:toastSlideInRight .4s;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInRight-leave-active{animation:toastSlideInRight .4s reverse;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInLeft-enter-active{-webkit-animation:toastSlideInLeft .4s;animation:toastSlideInLeft .4s;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInLeft-leave-active{animation:toastSlideInLeft .4s reverse;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInCenter-enter-active{-webkit-animation:toastSlideInCenter .4s;animation:toastSlideInCenter .4s;-webkit-transition:all .4s ease;transition:all .4s ease}.toastSlideInCenter-leave-active{animation:toastSlideInCenter .4s reverse;-webkit-transition:all .4s ease;transition:all .4s ease}@-webkit-keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInRight{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}40%{opacity:1;-webkit-transform:translateX(-3%);transform:translateX(-3%)}70%{-webkit-transform:translateX(1%);transform:translateX(1%)}90%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes toastSlideInLeft{0%{opacity:0;-webkit-transform:translateX(-100%);transform:translateX(-100%)}40%{opacity:1;-webkit-transform:translateX(3%);transform:translateX(3%)}70%{-webkit-transform:translateX(-1%);transform:translateX(-1%)}90%{-webkit-transform:translateX(1%);transform:translateX(1%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}@keyframes toastSlideInCenter{0%{opacity:0;scale:0}to{opacity:1;scale:1}}";
|
|
368
272
|
styleInject(css_248z);
|
|
369
273
|
|
|
370
274
|
script.render = render;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { defineComponent, createElementVNode, resolveComponent, openBlock, createBlock, withCtx, createCommentVNode, toDisplayString, createElementBlock } from 'vue';
|
|
2
|
-
import { s as script$1 } from './fw-card-
|
|
3
|
-
import { s as script$2 } from './fw-image-
|
|
4
|
-
import './es.array.includes-
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './array-
|
|
14
|
-
import './array-
|
|
15
|
-
import './create-
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
2
|
+
import { s as script$1 } from './fw-card-1b6a67fe.js';
|
|
3
|
+
import { s as script$2 } from './fw-image-03f85465.js';
|
|
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 './es.number.constructor-1249bd78.js';
|
|
11
|
+
import './to-string-12728fd2.js';
|
|
12
|
+
import './classof-39c30bd5.js';
|
|
13
|
+
import './es.array.find-dfa1f42f.js';
|
|
14
|
+
import './array-iteration-107f927f.js';
|
|
15
|
+
import './array-species-create-a5f5503b.js';
|
|
16
|
+
import './es.string.iterator-284b31d4.js';
|
|
17
|
+
import './create-property-534611fd.js';
|
|
18
|
+
import './web.timers-0f117224.js';
|
|
19
|
+
import './function-apply-ce251590.js';
|
|
20
|
+
import './array-method-is-strict-055b1830.js';
|
|
21
|
+
import './fw-loading-bar-f5ca605c.js';
|
|
19
22
|
import './style-inject.es-1f59c1d0.js';
|
|
20
|
-
import './index-
|
|
23
|
+
import './index-692e4d19.js';
|
|
21
24
|
import './check-94a5917a.js';
|
|
22
25
|
|
|
23
26
|
var script = defineComponent({
|
|
@@ -33,7 +36,6 @@ var script = defineComponent({
|
|
|
33
36
|
title: {
|
|
34
37
|
type: String
|
|
35
38
|
},
|
|
36
|
-
|
|
37
39
|
/**
|
|
38
40
|
* The transaction sub-title of the card
|
|
39
41
|
*/
|
|
@@ -41,7 +43,6 @@ var script = defineComponent({
|
|
|
41
43
|
type: String,
|
|
42
44
|
required: false
|
|
43
45
|
},
|
|
44
|
-
|
|
45
46
|
/**
|
|
46
47
|
* The transaction amount.
|
|
47
48
|
*/
|
|
@@ -49,7 +50,6 @@ var script = defineComponent({
|
|
|
49
50
|
type: String,
|
|
50
51
|
required: false
|
|
51
52
|
},
|
|
52
|
-
|
|
53
53
|
/**
|
|
54
54
|
* The src url for the image.
|
|
55
55
|
*/
|
|
@@ -63,7 +63,6 @@ var script = defineComponent({
|
|
|
63
63
|
var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
|
|
64
64
|
"class": "absolute top-0 left-0 w-full h-full rounded-lg bg-primary opacity-5 pointer-events-none"
|
|
65
65
|
}, null, -1);
|
|
66
|
-
|
|
67
66
|
var _hoisted_2 = {
|
|
68
67
|
"class": "flex flex-row w-full items-center py-3 px-4"
|
|
69
68
|
};
|
|
@@ -89,9 +88,7 @@ var _hoisted_9 = {
|
|
|
89
88
|
};
|
|
90
89
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
91
90
|
var _component_FwImage = resolveComponent("FwImage");
|
|
92
|
-
|
|
93
91
|
var _component_FwCard = resolveComponent("FwCard");
|
|
94
|
-
|
|
95
92
|
return openBlock(), createBlock(_component_FwCard, {
|
|
96
93
|
"class": "relative rounded-lg shadow",
|
|
97
94
|
"slot-padding": false
|