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