@frollo/frollo-web-ui 0.0.2 → 0.0.3
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 +386 -90
- package/esm/fw-button.js +2 -0
- package/esm/index-280a9116.js +1317 -0
- package/esm/index.js +26 -1021
- package/frollo-web-ui.esm.js +409 -92
- package/index.d.ts +99 -3
- package/package.json +3 -2
- package/tailwind.config.js +3 -1
- package/types/components/fw-button/fw-button.vue.d.ts +97 -0
- package/types/components/fw-button/index.d.ts +2 -0
- package/types/components/index.d.ts +2 -1
- package/types/index-types.esm.d.ts +5 -0
package/cjs/index.js
CHANGED
|
@@ -125,7 +125,7 @@ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({
|
|
|
125
125
|
|
|
126
126
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
127
127
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
128
|
-
var f$
|
|
128
|
+
var f$5 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
129
129
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
130
130
|
return !!descriptor && descriptor.enumerable;
|
|
131
131
|
} : $propertyIsEnumerable$1;var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
@@ -183,7 +183,7 @@ var requireObjectCoercible$2 = function (it) {
|
|
|
183
183
|
var IndexedObject$1 = indexedObject;
|
|
184
184
|
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
185
185
|
|
|
186
|
-
var toIndexedObject$
|
|
186
|
+
var toIndexedObject$5 = function (it) {
|
|
187
187
|
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
188
188
|
};// `IsCallable` abstract operation
|
|
189
189
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
@@ -200,13 +200,13 @@ var aFunction = function (argument) {
|
|
|
200
200
|
return isCallable$9(argument) ? argument : undefined;
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
var getBuiltIn$
|
|
203
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
204
204
|
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
205
205
|
};var uncurryThis$a = functionUncurryThis;
|
|
206
206
|
|
|
207
|
-
var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);var getBuiltIn$
|
|
207
|
+
var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);var getBuiltIn$4 = getBuiltIn$5;
|
|
208
208
|
|
|
209
|
-
var engineUserAgent = getBuiltIn$
|
|
209
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';var global$k = global$o;
|
|
210
210
|
var userAgent = engineUserAgent;
|
|
211
211
|
|
|
212
212
|
var process = global$k.process;
|
|
@@ -252,7 +252,7 @@ var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
|
252
252
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
253
253
|
&& !Symbol.sham
|
|
254
254
|
&& typeof Symbol.iterator == 'symbol';var global$j = global$o;
|
|
255
|
-
var getBuiltIn$
|
|
255
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
256
256
|
var isCallable$8 = isCallable$b;
|
|
257
257
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
258
258
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
@@ -262,7 +262,7 @@ var Object$3 = global$j.Object;
|
|
|
262
262
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
263
263
|
return typeof it == 'symbol';
|
|
264
264
|
} : function (it) {
|
|
265
|
-
var $Symbol = getBuiltIn$
|
|
265
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
266
266
|
return isCallable$8($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
|
|
267
267
|
};var global$i = global$o;
|
|
268
268
|
|
|
@@ -374,7 +374,7 @@ var Symbol$1 = global$c.Symbol;
|
|
|
374
374
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
375
375
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
376
376
|
|
|
377
|
-
var wellKnownSymbol$
|
|
377
|
+
var wellKnownSymbol$5 = function (name) {
|
|
378
378
|
if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
379
379
|
var description = 'Symbol.' + name;
|
|
380
380
|
if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
|
|
@@ -391,10 +391,10 @@ var isObject$4 = isObject$6;
|
|
|
391
391
|
var isSymbol$1 = isSymbol$2;
|
|
392
392
|
var getMethod = getMethod$1;
|
|
393
393
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
394
|
-
var wellKnownSymbol$
|
|
394
|
+
var wellKnownSymbol$4 = wellKnownSymbol$5;
|
|
395
395
|
|
|
396
396
|
var TypeError$4 = global$b.TypeError;
|
|
397
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
397
|
+
var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
|
|
398
398
|
|
|
399
399
|
// `ToPrimitive` abstract operation
|
|
400
400
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
@@ -421,27 +421,27 @@ var toPropertyKey$2 = function (argument) {
|
|
|
421
421
|
};var global$a = global$o;
|
|
422
422
|
var isObject$3 = isObject$6;
|
|
423
423
|
|
|
424
|
-
var document = global$a.document;
|
|
424
|
+
var document$1 = global$a.document;
|
|
425
425
|
// typeof document.createElement is 'object' in old IE
|
|
426
|
-
var EXISTS$1 = isObject$3(document) && isObject$3(document.createElement);
|
|
426
|
+
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
427
427
|
|
|
428
|
-
var documentCreateElement$
|
|
429
|
-
return EXISTS$1 ? document.createElement(it) : {};
|
|
430
|
-
};var DESCRIPTORS$
|
|
428
|
+
var documentCreateElement$2 = function (it) {
|
|
429
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
430
|
+
};var DESCRIPTORS$7 = descriptors;
|
|
431
431
|
var fails$4 = fails$9;
|
|
432
|
-
var createElement = documentCreateElement$
|
|
432
|
+
var createElement = documentCreateElement$2;
|
|
433
433
|
|
|
434
434
|
// Thanks to IE8 for its funny defineProperty
|
|
435
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
435
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
|
|
436
436
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
437
437
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
438
438
|
get: function () { return 7; }
|
|
439
439
|
}).a != 7;
|
|
440
|
-
});var DESCRIPTORS$
|
|
440
|
+
});var DESCRIPTORS$6 = descriptors;
|
|
441
441
|
var call = functionCall;
|
|
442
442
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
443
443
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
444
|
-
var toIndexedObject$
|
|
444
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
445
445
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
446
446
|
var hasOwn$5 = hasOwnProperty_1;
|
|
447
447
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
@@ -451,19 +451,19 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
451
451
|
|
|
452
452
|
// `Object.getOwnPropertyDescriptor` method
|
|
453
453
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
454
|
-
var f$
|
|
455
|
-
O = toIndexedObject$
|
|
454
|
+
var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
455
|
+
O = toIndexedObject$4(O);
|
|
456
456
|
P = toPropertyKey$1(P);
|
|
457
457
|
if (IE8_DOM_DEFINE$1) try {
|
|
458
458
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
459
459
|
} catch (error) { /* empty */ }
|
|
460
460
|
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
461
|
-
};var objectDefineProperty = {};var DESCRIPTORS$
|
|
461
|
+
};var objectDefineProperty = {};var DESCRIPTORS$5 = descriptors;
|
|
462
462
|
var fails$3 = fails$9;
|
|
463
463
|
|
|
464
464
|
// V8 ~ Chrome 36-
|
|
465
465
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
466
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
466
|
+
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
|
467
467
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
468
468
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
469
469
|
value: 42,
|
|
@@ -476,14 +476,14 @@ var String$1 = global$9.String;
|
|
|
476
476
|
var TypeError$3 = global$9.TypeError;
|
|
477
477
|
|
|
478
478
|
// `Assert: Type(argument) is Object`
|
|
479
|
-
var anObject$
|
|
479
|
+
var anObject$4 = function (argument) {
|
|
480
480
|
if (isObject$2(argument)) return argument;
|
|
481
481
|
throw TypeError$3(String$1(argument) + ' is not an object');
|
|
482
482
|
};var global$8 = global$o;
|
|
483
|
-
var DESCRIPTORS$
|
|
483
|
+
var DESCRIPTORS$4 = descriptors;
|
|
484
484
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
485
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
486
|
-
var anObject$
|
|
485
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
486
|
+
var anObject$3 = anObject$4;
|
|
487
487
|
var toPropertyKey = toPropertyKey$2;
|
|
488
488
|
|
|
489
489
|
var TypeError$2 = global$8.TypeError;
|
|
@@ -497,10 +497,10 @@ var WRITABLE = 'writable';
|
|
|
497
497
|
|
|
498
498
|
// `Object.defineProperty` method
|
|
499
499
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
500
|
-
var f$
|
|
501
|
-
anObject$
|
|
500
|
+
var f$3 = objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
501
|
+
anObject$3(O);
|
|
502
502
|
P = toPropertyKey(P);
|
|
503
|
-
anObject$
|
|
503
|
+
anObject$3(Attributes);
|
|
504
504
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
505
505
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
506
506
|
if (current && current[WRITABLE]) {
|
|
@@ -513,21 +513,21 @@ var f$2 = objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? fun
|
|
|
513
513
|
}
|
|
514
514
|
} return $defineProperty(O, P, Attributes);
|
|
515
515
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
516
|
-
anObject$
|
|
516
|
+
anObject$3(O);
|
|
517
517
|
P = toPropertyKey(P);
|
|
518
|
-
anObject$
|
|
518
|
+
anObject$3(Attributes);
|
|
519
519
|
if (IE8_DOM_DEFINE) try {
|
|
520
520
|
return $defineProperty(O, P, Attributes);
|
|
521
521
|
} catch (error) { /* empty */ }
|
|
522
522
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError$2('Accessors not supported');
|
|
523
523
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
524
524
|
return O;
|
|
525
|
-
};var DESCRIPTORS$
|
|
526
|
-
var definePropertyModule$
|
|
525
|
+
};var DESCRIPTORS$3 = descriptors;
|
|
526
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
527
527
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
528
528
|
|
|
529
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$
|
|
530
|
-
return definePropertyModule$
|
|
529
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$3 ? function (object, key, value) {
|
|
530
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
531
531
|
} : function (object, key, value) {
|
|
532
532
|
object[key] = value;
|
|
533
533
|
return object;
|
|
@@ -555,17 +555,17 @@ var uid = uid$2;
|
|
|
555
555
|
|
|
556
556
|
var keys = shared$1('keys');
|
|
557
557
|
|
|
558
|
-
var sharedKey$
|
|
558
|
+
var sharedKey$2 = function (key) {
|
|
559
559
|
return keys[key] || (keys[key] = uid(key));
|
|
560
|
-
};var hiddenKeys$
|
|
560
|
+
};var hiddenKeys$4 = {};var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
561
561
|
var global$6 = global$o;
|
|
562
562
|
var uncurryThis$6 = functionUncurryThis;
|
|
563
563
|
var isObject$1 = isObject$6;
|
|
564
564
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
565
565
|
var hasOwn$4 = hasOwnProperty_1;
|
|
566
566
|
var shared = sharedStore;
|
|
567
|
-
var sharedKey = sharedKey$
|
|
568
|
-
var hiddenKeys$
|
|
567
|
+
var sharedKey$1 = sharedKey$2;
|
|
568
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
569
569
|
|
|
570
570
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
571
571
|
var TypeError$1 = global$6.TypeError;
|
|
@@ -603,8 +603,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
603
603
|
return wmhas(store, it);
|
|
604
604
|
};
|
|
605
605
|
} else {
|
|
606
|
-
var STATE = sharedKey('state');
|
|
607
|
-
hiddenKeys$
|
|
606
|
+
var STATE = sharedKey$1('state');
|
|
607
|
+
hiddenKeys$3[STATE] = true;
|
|
608
608
|
set = function (it, metadata) {
|
|
609
609
|
if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
610
610
|
metadata.facade = it;
|
|
@@ -625,17 +625,17 @@ var internalState = {
|
|
|
625
625
|
has: has,
|
|
626
626
|
enforce: enforce,
|
|
627
627
|
getterFor: getterFor
|
|
628
|
-
};var DESCRIPTORS$
|
|
628
|
+
};var DESCRIPTORS$2 = descriptors;
|
|
629
629
|
var hasOwn$3 = hasOwnProperty_1;
|
|
630
630
|
|
|
631
631
|
var FunctionPrototype = Function.prototype;
|
|
632
632
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
633
|
-
var getDescriptor = DESCRIPTORS$
|
|
633
|
+
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
634
634
|
|
|
635
635
|
var EXISTS = hasOwn$3(FunctionPrototype, 'name');
|
|
636
636
|
// additional protection from minified / mangled / dropped function names
|
|
637
637
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
638
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
638
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
639
639
|
|
|
640
640
|
var functionName = {
|
|
641
641
|
EXISTS: EXISTS,
|
|
@@ -722,14 +722,14 @@ var toLength$1 = function (argument) {
|
|
|
722
722
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
723
723
|
var lengthOfArrayLike$2 = function (obj) {
|
|
724
724
|
return toLength(obj.length);
|
|
725
|
-
};var toIndexedObject$
|
|
725
|
+
};var toIndexedObject$3 = toIndexedObject$5;
|
|
726
726
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
727
727
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
728
728
|
|
|
729
729
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
730
730
|
var createMethod$2 = function (IS_INCLUDES) {
|
|
731
731
|
return function ($this, el, fromIndex) {
|
|
732
|
-
var O = toIndexedObject$
|
|
732
|
+
var O = toIndexedObject$3($this);
|
|
733
733
|
var length = lengthOfArrayLike$1(O);
|
|
734
734
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
735
735
|
var value;
|
|
@@ -755,25 +755,25 @@ var arrayIncludes = {
|
|
|
755
755
|
indexOf: createMethod$2(false)
|
|
756
756
|
};var uncurryThis$5 = functionUncurryThis;
|
|
757
757
|
var hasOwn$1 = hasOwnProperty_1;
|
|
758
|
-
var toIndexedObject$
|
|
758
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
759
759
|
var indexOf = arrayIncludes.indexOf;
|
|
760
|
-
var hiddenKeys$
|
|
760
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
761
761
|
|
|
762
762
|
var push$2 = uncurryThis$5([].push);
|
|
763
763
|
|
|
764
764
|
var objectKeysInternal = function (object, names) {
|
|
765
|
-
var O = toIndexedObject$
|
|
765
|
+
var O = toIndexedObject$2(object);
|
|
766
766
|
var i = 0;
|
|
767
767
|
var result = [];
|
|
768
768
|
var key;
|
|
769
|
-
for (key in O) !hasOwn$1(hiddenKeys$
|
|
769
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
|
|
770
770
|
// Don't enum bug & hidden keys
|
|
771
771
|
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
772
772
|
~indexOf(result, key) || push$2(result, key);
|
|
773
773
|
}
|
|
774
774
|
return result;
|
|
775
775
|
};// IE8- don't enum bug keys
|
|
776
|
-
var enumBugKeys$
|
|
776
|
+
var enumBugKeys$3 = [
|
|
777
777
|
'constructor',
|
|
778
778
|
'hasOwnProperty',
|
|
779
779
|
'isPrototypeOf',
|
|
@@ -782,37 +782,37 @@ var enumBugKeys$2 = [
|
|
|
782
782
|
'toString',
|
|
783
783
|
'valueOf'
|
|
784
784
|
];var internalObjectKeys$1 = objectKeysInternal;
|
|
785
|
-
var enumBugKeys$
|
|
785
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
786
786
|
|
|
787
|
-
var hiddenKeys = enumBugKeys$
|
|
787
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
788
788
|
|
|
789
789
|
// `Object.getOwnPropertyNames` method
|
|
790
790
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
791
791
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
792
|
-
var f$
|
|
793
|
-
return internalObjectKeys$1(O, hiddenKeys);
|
|
792
|
+
var f$2 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
793
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
794
794
|
};var objectGetOwnPropertySymbols = {};// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
795
|
-
var f = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;var getBuiltIn$
|
|
795
|
+
var f$1 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;var getBuiltIn$2 = getBuiltIn$5;
|
|
796
796
|
var uncurryThis$4 = functionUncurryThis;
|
|
797
797
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
798
798
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
799
|
-
var anObject = anObject$
|
|
799
|
+
var anObject$2 = anObject$4;
|
|
800
800
|
|
|
801
801
|
var concat = uncurryThis$4([].concat);
|
|
802
802
|
|
|
803
803
|
// all object keys, includes non-enumerable and symbols
|
|
804
|
-
var ownKeys$1 = getBuiltIn$
|
|
805
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
804
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
805
|
+
var keys = getOwnPropertyNamesModule.f(anObject$2(it));
|
|
806
806
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
807
807
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
808
808
|
};var hasOwn = hasOwnProperty_1;
|
|
809
809
|
var ownKeys = ownKeys$1;
|
|
810
810
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
811
|
-
var definePropertyModule = objectDefineProperty;
|
|
811
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
812
812
|
|
|
813
813
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
814
814
|
var keys = ownKeys(source);
|
|
815
|
-
var defineProperty = definePropertyModule.f;
|
|
815
|
+
var defineProperty = definePropertyModule$2.f;
|
|
816
816
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
817
817
|
for (var i = 0; i < keys.length; i++) {
|
|
818
818
|
var key = keys[i];
|
|
@@ -914,9 +914,9 @@ var functionBindContext = function (fn, that) {
|
|
|
914
914
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
915
915
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
916
916
|
return classof$3(argument) == 'Array';
|
|
917
|
-
};var wellKnownSymbol$
|
|
917
|
+
};var wellKnownSymbol$3 = wellKnownSymbol$5;
|
|
918
918
|
|
|
919
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
919
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
920
920
|
var test = {};
|
|
921
921
|
|
|
922
922
|
test[TO_STRING_TAG$1] = 'z';
|
|
@@ -925,9 +925,9 @@ var toStringTagSupport = String(test) === '[object z]';var global$3 = global$o;
|
|
|
925
925
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
926
926
|
var isCallable$1 = isCallable$b;
|
|
927
927
|
var classofRaw = classofRaw$1;
|
|
928
|
-
var wellKnownSymbol$
|
|
928
|
+
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
929
929
|
|
|
930
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
930
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
931
931
|
var Object$1 = global$3.Object;
|
|
932
932
|
|
|
933
933
|
// ES3 wrong here
|
|
@@ -954,12 +954,12 @@ var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
954
954
|
var fails$1 = fails$9;
|
|
955
955
|
var isCallable = isCallable$b;
|
|
956
956
|
var classof$1 = classof$2;
|
|
957
|
-
var getBuiltIn = getBuiltIn$
|
|
957
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
958
958
|
var inspectSource = inspectSource$3;
|
|
959
959
|
|
|
960
960
|
var noop = function () { /* empty */ };
|
|
961
961
|
var empty = [];
|
|
962
|
-
var construct = getBuiltIn('Reflect', 'construct');
|
|
962
|
+
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
963
963
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
964
964
|
var exec = uncurryThis$2(constructorRegExp.exec);
|
|
965
965
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
@@ -1005,9 +1005,9 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
1005
1005
|
var isArray = isArray$1;
|
|
1006
1006
|
var isConstructor = isConstructor$1;
|
|
1007
1007
|
var isObject = isObject$6;
|
|
1008
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
1008
|
+
var wellKnownSymbol$1 = wellKnownSymbol$5;
|
|
1009
1009
|
|
|
1010
|
-
var SPECIES = wellKnownSymbol('species');
|
|
1010
|
+
var SPECIES = wellKnownSymbol$1('species');
|
|
1011
1011
|
var Array$1 = global$2.Array;
|
|
1012
1012
|
|
|
1013
1013
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
@@ -1122,13 +1122,13 @@ var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */)
|
|
|
1122
1122
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1123
1123
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1124
1124
|
} : [].forEach;'use strict';
|
|
1125
|
-
var $$
|
|
1125
|
+
var $$2 = _export;
|
|
1126
1126
|
var forEach$1 = arrayForEach;
|
|
1127
1127
|
|
|
1128
1128
|
// `Array.prototype.forEach` method
|
|
1129
1129
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1130
1130
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1131
|
-
$$
|
|
1131
|
+
$$2({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1132
1132
|
forEach: forEach$1
|
|
1133
1133
|
});var es_object_toString = {};'use strict';
|
|
1134
1134
|
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
@@ -1181,9 +1181,9 @@ var domIterables = {
|
|
|
1181
1181
|
TextTrackList: 0,
|
|
1182
1182
|
TouchList: 0
|
|
1183
1183
|
};// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1184
|
-
var documentCreateElement = documentCreateElement$
|
|
1184
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1185
1185
|
|
|
1186
|
-
var classList = documentCreateElement('span').classList;
|
|
1186
|
+
var classList = documentCreateElement$1('span').classList;
|
|
1187
1187
|
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1188
1188
|
|
|
1189
1189
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;var global$1 = global$o;
|
|
@@ -1208,17 +1208,17 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
handlePrototype(DOMTokenListPrototype);var es_object_entries = {};var internalObjectKeys = objectKeysInternal;
|
|
1211
|
-
var enumBugKeys = enumBugKeys$
|
|
1211
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1212
1212
|
|
|
1213
1213
|
// `Object.keys` method
|
|
1214
1214
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1215
1215
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1216
|
-
var objectKeys$
|
|
1217
|
-
return internalObjectKeys(O, enumBugKeys);
|
|
1218
|
-
};var DESCRIPTORS = descriptors;
|
|
1216
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1217
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1218
|
+
};var DESCRIPTORS$1 = descriptors;
|
|
1219
1219
|
var uncurryThis = functionUncurryThis;
|
|
1220
|
-
var objectKeys = objectKeys$
|
|
1221
|
-
var toIndexedObject = toIndexedObject$
|
|
1220
|
+
var objectKeys$1 = objectKeys$2;
|
|
1221
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1222
1222
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
1223
1223
|
|
|
1224
1224
|
var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
|
|
@@ -1227,15 +1227,15 @@ var push = uncurryThis([].push);
|
|
|
1227
1227
|
// `Object.{ entries, values }` methods implementation
|
|
1228
1228
|
var createMethod = function (TO_ENTRIES) {
|
|
1229
1229
|
return function (it) {
|
|
1230
|
-
var O = toIndexedObject(it);
|
|
1231
|
-
var keys = objectKeys(O);
|
|
1230
|
+
var O = toIndexedObject$1(it);
|
|
1231
|
+
var keys = objectKeys$1(O);
|
|
1232
1232
|
var length = keys.length;
|
|
1233
1233
|
var i = 0;
|
|
1234
1234
|
var result = [];
|
|
1235
1235
|
var key;
|
|
1236
1236
|
while (length > i) {
|
|
1237
1237
|
key = keys[i++];
|
|
1238
|
-
if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
|
|
1238
|
+
if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) {
|
|
1239
1239
|
push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
@@ -1250,16 +1250,16 @@ var objectToArray = {
|
|
|
1250
1250
|
// `Object.values` method
|
|
1251
1251
|
// https://tc39.es/ecma262/#sec-object.values
|
|
1252
1252
|
values: createMethod(false)
|
|
1253
|
-
};var
|
|
1253
|
+
};var $$1 = _export;
|
|
1254
1254
|
var $entries = objectToArray.entries;
|
|
1255
1255
|
|
|
1256
1256
|
// `Object.entries` method
|
|
1257
1257
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
1258
|
-
|
|
1258
|
+
$$1({ target: 'Object', stat: true }, {
|
|
1259
1259
|
entries: function entries(O) {
|
|
1260
1260
|
return $entries(O);
|
|
1261
1261
|
}
|
|
1262
|
-
});var script = vue.defineComponent({
|
|
1262
|
+
});var script$1 = vue.defineComponent({
|
|
1263
1263
|
name: 'FwCard',
|
|
1264
1264
|
props: {
|
|
1265
1265
|
/**
|
|
@@ -1276,7 +1276,7 @@ $({ target: 'Object', stat: true }, {
|
|
|
1276
1276
|
type: String
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
});var _hoisted_1 = {
|
|
1279
|
+
});var _hoisted_1$1 = {
|
|
1280
1280
|
"class": "fw-card shadow rounded-lg"
|
|
1281
1281
|
};
|
|
1282
1282
|
var _hoisted_2 = {
|
|
@@ -1294,9 +1294,305 @@ var _hoisted_5 = {
|
|
|
1294
1294
|
key: 1,
|
|
1295
1295
|
"class": "p-8"
|
|
1296
1296
|
};
|
|
1297
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1298
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [_ctx.title || _ctx.prefixTitle ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_2, [_ctx.prefixTitle ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(_ctx.prefixTitle), 1)) : vue.createCommentVNode("", true), _ctx.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true), _ctx.$slots["default"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [vue.renderSlot(_ctx.$slots, "default")])) : vue.createCommentVNode("", true)]);
|
|
1299
|
+
}script$1.render = render$1;var es_array_includes = {};var objectDefineProperties = {};var DESCRIPTORS = descriptors;
|
|
1300
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1301
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1302
|
+
var anObject$1 = anObject$4;
|
|
1303
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1304
|
+
var objectKeys = objectKeys$2;
|
|
1305
|
+
|
|
1306
|
+
// `Object.defineProperties` method
|
|
1307
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1308
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1309
|
+
var f = objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1310
|
+
anObject$1(O);
|
|
1311
|
+
var props = toIndexedObject(Properties);
|
|
1312
|
+
var keys = objectKeys(Properties);
|
|
1313
|
+
var length = keys.length;
|
|
1314
|
+
var index = 0;
|
|
1315
|
+
var key;
|
|
1316
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
1317
|
+
return O;
|
|
1318
|
+
};var getBuiltIn = getBuiltIn$5;
|
|
1319
|
+
|
|
1320
|
+
var html$1 = getBuiltIn('document', 'documentElement');/* global ActiveXObject -- old IE, WSH */
|
|
1321
|
+
|
|
1322
|
+
var anObject = anObject$4;
|
|
1323
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1324
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1325
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1326
|
+
var html = html$1;
|
|
1327
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1328
|
+
var sharedKey = sharedKey$2;
|
|
1329
|
+
|
|
1330
|
+
var GT = '>';
|
|
1331
|
+
var LT = '<';
|
|
1332
|
+
var PROTOTYPE = 'prototype';
|
|
1333
|
+
var SCRIPT = 'script';
|
|
1334
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1335
|
+
|
|
1336
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1337
|
+
|
|
1338
|
+
var scriptTag = function (content) {
|
|
1339
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1343
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1344
|
+
activeXDocument.write(scriptTag(''));
|
|
1345
|
+
activeXDocument.close();
|
|
1346
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1347
|
+
activeXDocument = null; // avoid memory leak
|
|
1348
|
+
return temp;
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1352
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1353
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1354
|
+
var iframe = documentCreateElement('iframe');
|
|
1355
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1356
|
+
var iframeDocument;
|
|
1357
|
+
iframe.style.display = 'none';
|
|
1358
|
+
html.appendChild(iframe);
|
|
1359
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1360
|
+
iframe.src = String(JS);
|
|
1361
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1362
|
+
iframeDocument.open();
|
|
1363
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1364
|
+
iframeDocument.close();
|
|
1365
|
+
return iframeDocument.F;
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
// Check for document.domain and active x support
|
|
1369
|
+
// No need to use active x approach when document.domain is not set
|
|
1370
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1371
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1372
|
+
// avoid IE GC bug
|
|
1373
|
+
var activeXDocument;
|
|
1374
|
+
var NullProtoObject = function () {
|
|
1375
|
+
try {
|
|
1376
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1377
|
+
} catch (error) { /* ignore */ }
|
|
1378
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1379
|
+
? document.domain && activeXDocument
|
|
1380
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1381
|
+
: NullProtoObjectViaIFrame()
|
|
1382
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1383
|
+
var length = enumBugKeys.length;
|
|
1384
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1385
|
+
return NullProtoObject();
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1389
|
+
|
|
1390
|
+
// `Object.create` method
|
|
1391
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1392
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1393
|
+
var result;
|
|
1394
|
+
if (O !== null) {
|
|
1395
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1396
|
+
result = new EmptyConstructor();
|
|
1397
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1398
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1399
|
+
result[IE_PROTO] = O;
|
|
1400
|
+
} else result = NullProtoObject();
|
|
1401
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1402
|
+
};var wellKnownSymbol = wellKnownSymbol$5;
|
|
1403
|
+
var create = objectCreate;
|
|
1404
|
+
var definePropertyModule = objectDefineProperty;
|
|
1405
|
+
|
|
1406
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
1407
|
+
var ArrayPrototype = Array.prototype;
|
|
1408
|
+
|
|
1409
|
+
// Array.prototype[@@unscopables]
|
|
1410
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1411
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1412
|
+
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
1413
|
+
configurable: true,
|
|
1414
|
+
value: create(null)
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1419
|
+
var addToUnscopables$1 = function (key) {
|
|
1420
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1421
|
+
};'use strict';
|
|
1422
|
+
var $ = _export;
|
|
1423
|
+
var $includes = arrayIncludes.includes;
|
|
1424
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1425
|
+
|
|
1426
|
+
// `Array.prototype.includes` method
|
|
1427
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1428
|
+
$({ target: 'Array', proto: true }, {
|
|
1429
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1430
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1431
|
+
}
|
|
1432
|
+
});
|
|
1433
|
+
|
|
1434
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1435
|
+
addToUnscopables('includes');var script = vue.defineComponent({
|
|
1436
|
+
name: 'FwButton',
|
|
1437
|
+
emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
|
|
1438
|
+
props: {
|
|
1439
|
+
/**
|
|
1440
|
+
* A `router-link` path or object
|
|
1441
|
+
*/
|
|
1442
|
+
to: {
|
|
1443
|
+
type: [String, Object]
|
|
1444
|
+
},
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* A URL to link to using a native anchor element
|
|
1448
|
+
*/
|
|
1449
|
+
href: String,
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* The size of the button. Accepts: 'sm', 'md', 'lg', 'xl', '2xl'
|
|
1453
|
+
*/
|
|
1454
|
+
size: {
|
|
1455
|
+
type: String,
|
|
1456
|
+
"default": 'lg',
|
|
1457
|
+
validator: function validator(value) {
|
|
1458
|
+
return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
|
|
1459
|
+
}
|
|
1460
|
+
},
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* The colour variant of the button.
|
|
1464
|
+
* Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
|
|
1465
|
+
*/
|
|
1466
|
+
variant: {
|
|
1467
|
+
type: String,
|
|
1468
|
+
"default": 'primary',
|
|
1469
|
+
validator: function validator(value) {
|
|
1470
|
+
return ['primary', 'secondary', 'tertiary', 'error', 'success'].includes(value);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
setup: function setup(props, ctx) {
|
|
1475
|
+
var buttonClasses = vue.ref({
|
|
1476
|
+
primary: {
|
|
1477
|
+
text: 'text-tertiary hover:text-primary active:text-primary',
|
|
1478
|
+
background: 'bg-primary hover:bg-tertiary active:bg-tertiary',
|
|
1479
|
+
border: 'border-primary focus:ring-primary'
|
|
1480
|
+
},
|
|
1481
|
+
secondary: {
|
|
1482
|
+
text: 'text-secondary hover:text-tertiary active:text-tertiary',
|
|
1483
|
+
background: 'bg-tertiary hover:bg-secondary active:bg-secondary',
|
|
1484
|
+
border: 'border-secondary focus:ring-secondary'
|
|
1485
|
+
},
|
|
1486
|
+
tertiary: {
|
|
1487
|
+
text: 'text-tertiary hover:text-secondary active:text-secondary',
|
|
1488
|
+
background: 'bg-secondary hover:bg-tertiary active:bg-tertiary',
|
|
1489
|
+
border: 'border-tertiary focus:ring-tertiary'
|
|
1490
|
+
},
|
|
1491
|
+
success: {
|
|
1492
|
+
text: 'text-white hover:text-success active:text-success',
|
|
1493
|
+
background: 'bg-success hover:bg-white active:bg-white',
|
|
1494
|
+
border: 'border-success focus:ring-success'
|
|
1495
|
+
},
|
|
1496
|
+
error: {
|
|
1497
|
+
text: 'text-white hover:text-error active:text-error',
|
|
1498
|
+
background: 'bg-error hover:bg-white active:bg-white',
|
|
1499
|
+
border: 'border-error focus:ring-error'
|
|
1500
|
+
}
|
|
1501
|
+
});
|
|
1502
|
+
var sizes = vue.ref({
|
|
1503
|
+
sm: 'px-16 py-0.5 text-sm leading-tight',
|
|
1504
|
+
md: 'px-24 py-1 text-md leading-tight',
|
|
1505
|
+
lg: 'px-32 py-1.5 text-lg leading-tight',
|
|
1506
|
+
xl: 'px-40 py-2 text-xl leading-none',
|
|
1507
|
+
'2xl': 'px-48 py-3 text-2xl leading-normal'
|
|
1508
|
+
});
|
|
1509
|
+
var textColorClass = vue.computed(function () {
|
|
1510
|
+
return buttonClasses.value[props.variant].text;
|
|
1511
|
+
});
|
|
1512
|
+
var bgColorClass = vue.computed(function () {
|
|
1513
|
+
return buttonClasses.value[props.variant].background;
|
|
1514
|
+
});
|
|
1515
|
+
var sizeClass = vue.computed(function () {
|
|
1516
|
+
return sizes.value[props.size];
|
|
1517
|
+
});
|
|
1518
|
+
var borderClass = vue.computed(function () {
|
|
1519
|
+
return buttonClasses.value[props.variant].border;
|
|
1520
|
+
});
|
|
1521
|
+
/**
|
|
1522
|
+
* @event Click - Native click
|
|
1523
|
+
*/
|
|
1524
|
+
|
|
1525
|
+
var onClick = function onClick(e) {
|
|
1526
|
+
return ctx.emit('click', e);
|
|
1527
|
+
};
|
|
1528
|
+
/**
|
|
1529
|
+
* @event mouseover - Native hover
|
|
1530
|
+
*/
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
var onMouseover = function onMouseover(e) {
|
|
1534
|
+
return ctx.emit('mouseover', e);
|
|
1535
|
+
};
|
|
1536
|
+
/**
|
|
1537
|
+
* @event mouseout - Native hover out
|
|
1538
|
+
*/
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
var onMouseout = function onMouseout(e) {
|
|
1542
|
+
return ctx.emit('mouseout', e);
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
* @event focusin - Native focusin
|
|
1546
|
+
*/
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
var onFocusin = function onFocusin(e) {
|
|
1550
|
+
return ctx.emit('focusin', e);
|
|
1551
|
+
};
|
|
1552
|
+
/**
|
|
1553
|
+
* @event focusout - Native focusout
|
|
1554
|
+
*/
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
var onFocusout = function onFocusout(e) {
|
|
1558
|
+
return ctx.emit('focusout', e);
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
return {
|
|
1562
|
+
textColorClass: textColorClass,
|
|
1563
|
+
bgColorClass: bgColorClass,
|
|
1564
|
+
sizeClass: sizeClass,
|
|
1565
|
+
borderClass: borderClass,
|
|
1566
|
+
onClick: onClick,
|
|
1567
|
+
onMouseover: onMouseover,
|
|
1568
|
+
onMouseout: onMouseout,
|
|
1569
|
+
onFocusin: onFocusin,
|
|
1570
|
+
onFocusout: onFocusout
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
});var _hoisted_1 = ["to", "href"];
|
|
1297
1574
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1298
|
-
return vue.openBlock(), vue.createElementBlock("
|
|
1299
|
-
|
|
1575
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
1576
|
+
"class": vue.normalizeClass(["fw-button rounded-full border-2 focus:outline-none ring-offset-2 focus:ring", [_ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass]]),
|
|
1577
|
+
to: _ctx.to,
|
|
1578
|
+
href: _ctx.href,
|
|
1579
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
1580
|
+
return _ctx.onClick && _ctx.onClick.apply(_ctx, arguments);
|
|
1581
|
+
}),
|
|
1582
|
+
onFocusin: _cache[1] || (_cache[1] = function () {
|
|
1583
|
+
return _ctx.onFocusin && _ctx.onFocusin.apply(_ctx, arguments);
|
|
1584
|
+
}),
|
|
1585
|
+
onFocusout: _cache[2] || (_cache[2] = function () {
|
|
1586
|
+
return _ctx.onFocusout && _ctx.onFocusout.apply(_ctx, arguments);
|
|
1587
|
+
}),
|
|
1588
|
+
onMouseover: _cache[3] || (_cache[3] = function () {
|
|
1589
|
+
return _ctx.onMouseover && _ctx.onMouseover.apply(_ctx, arguments);
|
|
1590
|
+
}),
|
|
1591
|
+
onMouseout: _cache[4] || (_cache[4] = function () {
|
|
1592
|
+
return _ctx.onMouseout && _ctx.onMouseout.apply(_ctx, arguments);
|
|
1593
|
+
})
|
|
1594
|
+
}, [vue.renderSlot(_ctx.$slots, "default")], 42, _hoisted_1);
|
|
1595
|
+
}script.render = render;var components$1=/*#__PURE__*/Object.freeze({__proto__:null,FwCard:script$1,FwButton:script});var install = function install(app) {
|
|
1300
1596
|
Object.entries(components$1).forEach(function (_ref) {
|
|
1301
1597
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
1302
1598
|
componentName = _ref2[0],
|
|
@@ -1304,7 +1600,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1304
1600
|
|
|
1305
1601
|
app.component(componentName, component);
|
|
1306
1602
|
});
|
|
1307
|
-
};var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,FwCard:script});Object.entries(components).forEach(function (_ref) {
|
|
1603
|
+
};var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,FwCard:script$1,FwButton:script});Object.entries(components).forEach(function (_ref) {
|
|
1308
1604
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
1309
1605
|
componentName = _ref2[0],
|
|
1310
1606
|
component = _ref2[1];
|