@frollo/frollo-web-ui 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +96 -141
- package/esm/fw-navigation-menu.js +9 -65
- package/esm/fw-tabs.js +1 -2
- package/esm/{index-5ee56f7d.js → index-0e14da44.js} +61 -14
- package/esm/index.js +4 -5
- package/frollo-web-ui.esm.js +96 -151
- package/index.d.ts +2 -14
- package/package.json +1 -1
- package/types/components/fw-button/index.types.d.ts +1 -9
- package/types/components/fw-input/index.types.d.ts +1 -4
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +0 -2
- package/esm/to-string-139f1ee8.js +0 -52
|
@@ -1,64 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, createElementVNode, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString, createVNode, Transition, normalizeClass } from 'vue';
|
|
2
2
|
import { s as script$1 } from './fw-button-ab906734.js';
|
|
3
|
-
import { b as functionUncurryThis, r as requireObjectCoercible$1, f as fails$1 } from './function-name-f0c1223e.js';
|
|
4
|
-
import { _ as _export } from './add-to-unscopables-81c17489.js';
|
|
5
|
-
import { a as toString$1 } from './to-string-139f1ee8.js';
|
|
6
3
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
4
|
import './es.array.includes-debcb50f.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var uncurryThis = functionUncurryThis;
|
|
12
|
-
var requireObjectCoercible = requireObjectCoercible$1;
|
|
13
|
-
var toString = toString$1;
|
|
14
|
-
|
|
15
|
-
var quot = /"/g;
|
|
16
|
-
var replace = uncurryThis(''.replace);
|
|
17
|
-
|
|
18
|
-
// `CreateHTML` abstract operation
|
|
19
|
-
// https://tc39.es/ecma262/#sec-createhtml
|
|
20
|
-
var createHtml = function (string, tag, attribute, value) {
|
|
21
|
-
var S = toString(requireObjectCoercible(string));
|
|
22
|
-
var p1 = '<' + tag;
|
|
23
|
-
if (attribute !== '') p1 += ' ' + attribute + '="' + replace(toString(value), quot, '"') + '"';
|
|
24
|
-
return p1 + '>' + S + '</' + tag + '>';
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var fails = fails$1;
|
|
28
|
-
|
|
29
|
-
// check the existence of a method, lowercase
|
|
30
|
-
// of a tag and escaping quotes in arguments
|
|
31
|
-
var stringHtmlForced = function (METHOD_NAME) {
|
|
32
|
-
return fails(function () {
|
|
33
|
-
var test = ''[METHOD_NAME]('"');
|
|
34
|
-
return test !== test.toLowerCase() || test.split('"').length > 3;
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
'use strict';
|
|
39
|
-
var $ = _export;
|
|
40
|
-
var createHTML = createHtml;
|
|
41
|
-
var forcedStringHTMLMethod = stringHtmlForced;
|
|
42
|
-
|
|
43
|
-
// `String.prototype.link` method
|
|
44
|
-
// https://tc39.es/ecma262/#sec-string.prototype.link
|
|
45
|
-
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {
|
|
46
|
-
link: function link(url) {
|
|
47
|
-
return createHTML(this, 'a', 'href', url);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
var ButtonVariantName;
|
|
52
|
-
|
|
53
|
-
(function (ButtonVariantName) {
|
|
54
|
-
ButtonVariantName["primary"] = "primary";
|
|
55
|
-
ButtonVariantName["secondary"] = "secondary";
|
|
56
|
-
ButtonVariantName["tertiary"] = "tertiary";
|
|
57
|
-
ButtonVariantName["error"] = "error";
|
|
58
|
-
ButtonVariantName["success"] = "success";
|
|
59
|
-
ButtonVariantName["text"] = "text";
|
|
60
|
-
ButtonVariantName["link"] = "link";
|
|
61
|
-
})(ButtonVariantName || (ButtonVariantName = {}));
|
|
5
|
+
import './function-name-f0c1223e.js';
|
|
6
|
+
import './add-to-unscopables-81c17489.js';
|
|
62
7
|
|
|
63
8
|
var script = defineComponent({
|
|
64
9
|
name: 'FwNavigationMenu',
|
|
@@ -100,8 +45,7 @@ var script = defineComponent({
|
|
|
100
45
|
mobileMenuClass: mobileMenuClass,
|
|
101
46
|
isMobileMenuOpen: isMobileMenuOpen,
|
|
102
47
|
toggleMobileMenu: toggleMobileMenu,
|
|
103
|
-
actionClicked: actionClicked
|
|
104
|
-
ButtonVariantName: ButtonVariantName
|
|
48
|
+
actionClicked: actionClicked
|
|
105
49
|
};
|
|
106
50
|
}
|
|
107
51
|
});
|
|
@@ -155,7 +99,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
155
99
|
return openBlock(), createElementBlock("nav", _hoisted_1, [createElementVNode("div", _hoisted_2, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3, [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_4, [createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
156
100
|
return openBlock(), createBlock(_component_FwButton, {
|
|
157
101
|
key: i,
|
|
158
|
-
variant:
|
|
102
|
+
variant: "text",
|
|
159
103
|
href: item.href,
|
|
160
104
|
to: item.to,
|
|
161
105
|
size: "md",
|
|
@@ -165,7 +109,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165
109
|
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
166
110
|
}),
|
|
167
111
|
_: 2
|
|
168
|
-
}, 1032, ["
|
|
112
|
+
}, 1032, ["href", "to"]);
|
|
169
113
|
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_FwButton, {
|
|
170
114
|
onClick: _ctx.actionClicked,
|
|
171
115
|
size: "md",
|
|
@@ -176,7 +120,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
176
120
|
}),
|
|
177
121
|
_: 1
|
|
178
122
|
}, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_FwButton, {
|
|
179
|
-
variant:
|
|
123
|
+
variant: "text",
|
|
180
124
|
size: "sm",
|
|
181
125
|
onClick: _ctx.toggleMobileMenu
|
|
182
126
|
}, {
|
|
@@ -189,7 +133,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
133
|
}, null, 8, _hoisted_10)]))];
|
|
190
134
|
}),
|
|
191
135
|
_: 1
|
|
192
|
-
}, 8, ["
|
|
136
|
+
}, 8, ["onClick"])])]), createVNode(Transition, {
|
|
193
137
|
name: "slideInLeft"
|
|
194
138
|
}, {
|
|
195
139
|
"default": withCtx(function () {
|
|
@@ -200,7 +144,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
200
144
|
return openBlock(), createBlock(_component_FwButton, {
|
|
201
145
|
key: i,
|
|
202
146
|
"class": "w-full rounded-md",
|
|
203
|
-
variant:
|
|
147
|
+
variant: "text",
|
|
204
148
|
href: item.href,
|
|
205
149
|
to: item.to,
|
|
206
150
|
size: "md",
|
|
@@ -210,7 +154,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210
154
|
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
211
155
|
}),
|
|
212
156
|
_: 2
|
|
213
|
-
}, 1032, ["
|
|
157
|
+
}, 1032, ["href", "to"]);
|
|
214
158
|
}), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
|
|
215
159
|
key: 0,
|
|
216
160
|
"class": "w-full rounded-md",
|
package/esm/fw-tabs.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { b as functionUncurryThis, h as aCallable$1, c as functionBindNative,
|
|
2
|
-
import { b as classofRaw, i as inspectSource$1, e as indexedObject, l as lengthOfArrayLike$1, f as isForced_1, d as defineBuiltIn$1, g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor, _ as _export, j as addToUnscopables$1 } from './add-to-unscopables-81c17489.js';
|
|
3
|
-
import { c as classof$2, a as toString$1 } from './to-string-139f1ee8.js';
|
|
1
|
+
import { b as functionUncurryThis, h as aCallable$1, c as functionBindNative, w as wellKnownSymbol$3, i as isCallable$4, f as fails$2, j as getBuiltIn$1, k as isObject$2, t as toObject$1, l as anObject$1, r as requireObjectCoercible$1, a as descriptors, g as global$1, m as hasOwnProperty_1, o as objectIsPrototypeOf, n as isSymbol$1, p as toPrimitive$1, q as objectDefineProperty } from './function-name-f0c1223e.js';
|
|
2
|
+
import { b as classofRaw$1, i as inspectSource$1, e as indexedObject, l as lengthOfArrayLike$1, f as isForced_1, d as defineBuiltIn$1, g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor, _ as _export, j as addToUnscopables$1 } from './add-to-unscopables-81c17489.js';
|
|
4
3
|
import { defineComponent, computed, ref, provide, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, getCurrentInstance, inject, watchEffect } from 'vue';
|
|
5
4
|
|
|
6
5
|
var uncurryThis$6 = functionUncurryThis;
|
|
@@ -17,19 +16,58 @@ var functionBindContext = function (fn, that) {
|
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
|
|
20
|
-
var classof$
|
|
19
|
+
var classof$3 = classofRaw$1;
|
|
21
20
|
|
|
22
21
|
// `IsArray` abstract operation
|
|
23
22
|
// https://tc39.es/ecma262/#sec-isarray
|
|
24
23
|
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
25
24
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
26
|
-
return classof$
|
|
25
|
+
return classof$3(argument) == 'Array';
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var wellKnownSymbol$2 = wellKnownSymbol$3;
|
|
29
|
+
|
|
30
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
31
|
+
var test = {};
|
|
32
|
+
|
|
33
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
34
|
+
|
|
35
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
36
|
+
|
|
37
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
38
|
+
var isCallable$3 = isCallable$4;
|
|
39
|
+
var classofRaw = classofRaw$1;
|
|
40
|
+
var wellKnownSymbol$1 = wellKnownSymbol$3;
|
|
41
|
+
|
|
42
|
+
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
43
|
+
var $Object = Object;
|
|
44
|
+
|
|
45
|
+
// ES3 wrong here
|
|
46
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
47
|
+
|
|
48
|
+
// fallback for IE11 Script Access Denied error
|
|
49
|
+
var tryGet = function (it, key) {
|
|
50
|
+
try {
|
|
51
|
+
return it[key];
|
|
52
|
+
} catch (error) { /* empty */ }
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
56
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
57
|
+
var O, tag, result;
|
|
58
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
59
|
+
// @@toStringTag case
|
|
60
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
61
|
+
// builtinTag case
|
|
62
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
63
|
+
// ES3 arguments fallback
|
|
64
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
27
65
|
};
|
|
28
66
|
|
|
29
67
|
var uncurryThis$5 = functionUncurryThis;
|
|
30
68
|
var fails$1 = fails$2;
|
|
31
|
-
var isCallable$2 = isCallable$
|
|
32
|
-
var classof = classof$2;
|
|
69
|
+
var isCallable$2 = isCallable$4;
|
|
70
|
+
var classof$1 = classof$2;
|
|
33
71
|
var getBuiltIn = getBuiltIn$1;
|
|
34
72
|
var inspectSource = inspectSource$1;
|
|
35
73
|
|
|
@@ -52,7 +90,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
52
90
|
|
|
53
91
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
54
92
|
if (!isCallable$2(argument)) return false;
|
|
55
|
-
switch (classof(argument)) {
|
|
93
|
+
switch (classof$1(argument)) {
|
|
56
94
|
case 'AsyncFunction':
|
|
57
95
|
case 'GeneratorFunction':
|
|
58
96
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -82,7 +120,7 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
82
120
|
var isArray = isArray$1;
|
|
83
121
|
var isConstructor = isConstructor$1;
|
|
84
122
|
var isObject$1 = isObject$2;
|
|
85
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
123
|
+
var wellKnownSymbol = wellKnownSymbol$3;
|
|
86
124
|
|
|
87
125
|
var SPECIES = wellKnownSymbol('species');
|
|
88
126
|
var $Array = Array;
|
|
@@ -186,14 +224,14 @@ var arrayIteration = {
|
|
|
186
224
|
|
|
187
225
|
var es_number_constructor = {};
|
|
188
226
|
|
|
189
|
-
var isCallable$1 = isCallable$
|
|
227
|
+
var isCallable$1 = isCallable$4;
|
|
190
228
|
|
|
191
|
-
var $String = String;
|
|
229
|
+
var $String$1 = String;
|
|
192
230
|
var $TypeError = TypeError;
|
|
193
231
|
|
|
194
232
|
var aPossiblePrototype$1 = function (argument) {
|
|
195
233
|
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
|
196
|
-
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
234
|
+
throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
|
|
197
235
|
};
|
|
198
236
|
|
|
199
237
|
/* eslint-disable no-proto -- safe */
|
|
@@ -225,7 +263,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
225
263
|
};
|
|
226
264
|
}() : undefined);
|
|
227
265
|
|
|
228
|
-
var isCallable = isCallable$
|
|
266
|
+
var isCallable = isCallable$4;
|
|
229
267
|
var isObject = isObject$2;
|
|
230
268
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
231
269
|
|
|
@@ -250,6 +288,15 @@ var uncurryThis$2 = functionUncurryThis;
|
|
|
250
288
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
251
289
|
var thisNumberValue$1 = uncurryThis$2(1.0.valueOf);
|
|
252
290
|
|
|
291
|
+
var classof = classof$2;
|
|
292
|
+
|
|
293
|
+
var $String = String;
|
|
294
|
+
|
|
295
|
+
var toString$1 = function (argument) {
|
|
296
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
297
|
+
return $String(argument);
|
|
298
|
+
};
|
|
299
|
+
|
|
253
300
|
// a string of all valid unicode whitespaces
|
|
254
301
|
var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
255
302
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
@@ -511,4 +558,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
511
558
|
|
|
512
559
|
script.render = render;
|
|
513
560
|
|
|
514
|
-
export { arrayIteration as a, script as b, script$1 as s };
|
|
561
|
+
export { arrayIteration as a, script as b, classof$2 as c, script$1 as s, toStringTagSupport as t };
|
package/esm/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { f as fails$1, d as documentCreateElement$1, g as global$4, a as descriptors, b as functionUncurryThis, c as functionBindNative, i as isCallable$1, e as engineUserAgent } from './function-name-f0c1223e.js';
|
|
2
2
|
import { _ as _export, d as defineBuiltIn$1, c as createNonEnumerableProperty$1, o as objectKeys$1, t as toIndexedObject$1, a as objectPropertyIsEnumerable } from './add-to-unscopables-81c17489.js';
|
|
3
|
-
import { a as arrayIteration, s as script$5, b as script$6 } from './index-
|
|
4
|
-
export { b as FwTab, s as FwTabs } from './index-
|
|
5
|
-
import { t as toStringTagSupport, c as classof$1 } from './to-string-139f1ee8.js';
|
|
3
|
+
import { a as arrayIteration, t as toStringTagSupport, c as classof$1, s as script$5, b as script$6 } from './index-0e14da44.js';
|
|
4
|
+
export { b as FwTab, s as FwTabs } from './index-0e14da44.js';
|
|
6
5
|
import './fw-form.js';
|
|
7
6
|
import { FwInput as script } from './fw-input.js';
|
|
8
7
|
export { FwInput } from './fw-input.js';
|
|
@@ -402,14 +401,14 @@ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout$1 }, {
|
|
|
402
401
|
var modalService = function modalService(options, element) {
|
|
403
402
|
var elementToMount = document.createElement('div');
|
|
404
403
|
elementToMount.id = uniqueId('fw-modal-app-');
|
|
405
|
-
var elAppend = element || document.
|
|
404
|
+
var elAppend = element || document.querySelector('#app');
|
|
406
405
|
var modalVNode = undefined;
|
|
407
406
|
|
|
408
407
|
var open = function open() {
|
|
409
408
|
var _modalVNode;
|
|
410
409
|
|
|
411
410
|
modalVNode = createApp(script$7, _objectSpread2({}, options));
|
|
412
|
-
elAppend.appendChild(elementToMount);
|
|
411
|
+
elAppend === null || elAppend === void 0 ? void 0 : elAppend.appendChild(elementToMount);
|
|
413
412
|
(_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
|
|
414
413
|
};
|
|
415
414
|
|