@frollo/frollo-web-ui 5.0.3 → 5.0.4

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 (46) hide show
  1. package/cjs/index.js +11296 -1047
  2. package/esm/es.date.to-string-1ffba857.js +23 -0
  3. package/esm/fw-accordion.js +1 -1
  4. package/esm/fw-animations.js +2 -2
  5. package/esm/fw-bar-chart.js +2 -2
  6. package/esm/{fw-button-b7a12ae1.js → fw-button-99dba2bc.js} +1 -1
  7. package/esm/fw-button.js +3 -3
  8. package/esm/fw-date-picker.js +10336 -0
  9. package/esm/fw-drawer.js +3 -3
  10. package/esm/{fw-dropdown-765dbbba.js → fw-dropdown-b476e015.js} +1 -1
  11. package/esm/fw-dropdown.js +2 -2
  12. package/esm/{fw-image-660d3e75.js → fw-image-ae643123.js} +1 -1
  13. package/esm/fw-image.js +2 -2
  14. package/esm/{fw-input-7d25de48.js → fw-input-fdc8fe1b.js} +1 -1
  15. package/esm/fw-input.js +2 -2
  16. package/esm/{fw-loading-spinner-3fda633e.js → fw-loading-spinner-cc1ca2fa.js} +1 -1
  17. package/esm/fw-modal.js +3 -3
  18. package/esm/fw-navigation-menu.js +3 -3
  19. package/esm/fw-provider-list.js +10 -9
  20. package/esm/fw-sidebar-menu.js +3 -3
  21. package/esm/{fw-table-row-d390fe77.js → fw-table-row-e8520a1d.js} +2 -2
  22. package/esm/fw-table.js +3 -3
  23. package/esm/{fw-tag-9ef5331a.js → fw-tag-a8a83c0a.js} +3 -3
  24. package/esm/fw-tag.js +5 -5
  25. package/esm/fw-toast.js +1 -1
  26. package/esm/fw-transactions-card.js +2 -2
  27. package/esm/get-root-colours-865a52ba.js +37 -0
  28. package/esm/{index-04d3cb23.js → index-0a63f2c3.js} +130 -102
  29. package/esm/{index-8c78a422.js → index-6423a6ab.js} +38 -33
  30. package/esm/{index-c15f5641.js → index-be5b4afa.js} +2 -6
  31. package/esm/index.js +64 -66
  32. package/frollo-web-ui.esm.js +11390 -1011
  33. package/icons/calendar-day.svg +3 -0
  34. package/icons/calendar.svg +3 -0
  35. package/icons/index.ts +5 -1
  36. package/index.d.ts +196 -4
  37. package/package.json +3 -1
  38. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +177 -0
  39. package/types/components/fw-date-picker/index.d.ts +2 -0
  40. package/types/components/fw-date-picker/index.types.d.ts +16 -0
  41. package/types/components/index.d.ts +1 -0
  42. package/types/components/index.types.d.ts +1 -0
  43. package/types/helpers/get-root-colours.d.ts +8 -0
  44. package/types/icons/index.d.ts +3 -1
  45. package/web-components/index.js +11538 -1155
  46. package/esm/get-root-colours-e2a1cb28.js +0 -21
@@ -1,5 +1,5 @@
1
1
  import './delete-property-or-throw-cd4c57d6.js';
2
- import { d as descriptors, h as fails$2, q as anObject$2, b as defineBuiltIn$3, f as functionUncurryThis, n as functionCall, A as hasOwnProperty_1, B as objectIsPrototypeOf, C as functionName } from './is-forced-fc680e39.js';
2
+ import { d as descriptors, h as fails$2, q as anObject$2, b as defineBuiltIn$2, n as functionCall, A as hasOwnProperty_1, B as objectIsPrototypeOf, C as functionName } from './is-forced-fc680e39.js';
3
3
  import { _ as _export } from './export-8a363004.js';
4
4
  import { a as arrayIteration } from './array-iteration-ec356eb3.js';
5
5
  import { a as arrayMethodHasSpeciesSupport$1 } from './array-method-has-species-support-8a4b1310.js';
@@ -8,19 +8,47 @@ import './es.array.includes-a06445a5.js';
8
8
  import './es.string.includes-ade04f96.js';
9
9
  import { o as objectCreate } from './object-create-bc771493.js';
10
10
  import { t as toString$1 } from './es.number.constructor-98bae04f.js';
11
+ import './es.date.to-string-1ffba857.js';
11
12
  import { r as regexpFlags } from './es.array.map-ae6c9437.js';
12
13
  import './es.function.name-6daefaeb.js';
13
14
  import './es.array.concat-fe990345.js';
14
- import { _ as __default__, s as script$4, a as script$5 } from './fw-table-row-d390fe77.js';
15
+ import { _ as __default__, s as script$4, a as script$5 } from './fw-table-row-e8520a1d.js';
15
16
  import { defineComponent, ref, computed, createTextVNode, createElementVNode, resolveComponent, openBlock, createElementBlock, toDisplayString, createVNode, withCtx, createBlock, createCommentVNode } from 'vue';
16
- import { s as script$1 } from './fw-input-7d25de48.js';
17
- import { _ as __default__$1 } from './fw-tag-9ef5331a.js';
18
- import { s as script$3 } from './fw-button-b7a12ae1.js';
19
- import { s as script$2 } from './fw-dropdown-765dbbba.js';
20
- import { f as render$1, g as render$2, i as render$3 } from './index-04d3cb23.js';
17
+ import { s as script$1 } from './fw-input-fdc8fe1b.js';
18
+ import { _ as __default__$1 } from './fw-tag-a8a83c0a.js';
19
+ import { s as script$3 } from './fw-button-99dba2bc.js';
20
+ import { s as script$2 } from './fw-dropdown-b476e015.js';
21
+ import { f as render$1, g as render$2, i as render$3 } from './index-0a63f2c3.js';
21
22
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
22
23
 
24
+ function _typeof(o) {
25
+ "@babel/helpers - typeof";
26
+
27
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
28
+ return typeof o;
29
+ } : function (o) {
30
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
31
+ }, _typeof(o);
32
+ }
33
+
34
+ function _toPrimitive(input, hint) {
35
+ if (_typeof(input) !== "object" || input === null) return input;
36
+ var prim = input[Symbol.toPrimitive];
37
+ if (prim !== undefined) {
38
+ var res = prim.call(input, hint || "default");
39
+ if (_typeof(res) !== "object") return res;
40
+ throw new TypeError("@@toPrimitive must return a primitive value.");
41
+ }
42
+ return (hint === "string" ? String : Number)(input);
43
+ }
44
+
45
+ function _toPropertyKey(arg) {
46
+ var key = _toPrimitive(arg, "string");
47
+ return _typeof(key) === "symbol" ? key : String(key);
48
+ }
49
+
23
50
  function _defineProperty(obj, key, value) {
51
+ key = _toPropertyKey(key);
24
52
  if (key in obj) {
25
53
  Object.defineProperty(obj, key, {
26
54
  value: value,
@@ -31,7 +59,6 @@ function _defineProperty(obj, key, value) {
31
59
  } else {
32
60
  obj[key] = value;
33
61
  }
34
-
35
62
  return obj;
36
63
  }
37
64
 
@@ -92,7 +119,7 @@ var errorToString$1 = INCORRECT_TO_STRING ? function toString() {
92
119
  return !name ? message : !message ? name : name + ': ' + message;
93
120
  } : nativeErrorToString;
94
121
 
95
- var defineBuiltIn$2 = defineBuiltIn$3;
122
+ var defineBuiltIn$1 = defineBuiltIn$2;
96
123
  var errorToString = errorToString$1;
97
124
 
98
125
  var ErrorPrototype = Error.prototype;
@@ -100,29 +127,7 @@ var ErrorPrototype = Error.prototype;
100
127
  // `Error.prototype.toString` method fix
101
128
  // https://tc39.es/ecma262/#sec-error.prototype.tostring
102
129
  if (ErrorPrototype.toString !== errorToString) {
103
- defineBuiltIn$2(ErrorPrototype, 'toString', errorToString);
104
- }
105
-
106
- var es_date_toString = {};
107
-
108
- // TODO: Remove from `core-js@4`
109
- var uncurryThis = functionUncurryThis;
110
- var defineBuiltIn$1 = defineBuiltIn$3;
111
-
112
- var DatePrototype = Date.prototype;
113
- var INVALID_DATE = 'Invalid Date';
114
- var TO_STRING$1 = 'toString';
115
- var un$DateToString = uncurryThis(DatePrototype[TO_STRING$1]);
116
- var getTime = uncurryThis(DatePrototype.getTime);
117
-
118
- // `Date.prototype.toString` method
119
- // https://tc39.es/ecma262/#sec-date.prototype.tostring
120
- if (String(new Date(NaN)) != INVALID_DATE) {
121
- defineBuiltIn$1(DatePrototype, TO_STRING$1, function toString() {
122
- var value = getTime(this);
123
- // eslint-disable-next-line no-self-compare -- NaN check
124
- return value === value ? un$DateToString(this) : INVALID_DATE;
125
- });
130
+ defineBuiltIn$1(ErrorPrototype, 'toString', errorToString);
126
131
  }
127
132
 
128
133
  var es_regexp_toString = {};
@@ -142,7 +147,7 @@ var regexpGetFlags = function (R) {
142
147
 
143
148
  'use strict';
144
149
  var PROPER_FUNCTION_NAME = functionName.PROPER;
145
- var defineBuiltIn = defineBuiltIn$3;
150
+ var defineBuiltIn = defineBuiltIn$2;
146
151
  var anObject = anObject$2;
147
152
  var $toString = toString$1;
148
153
  var fails = fails$2;
@@ -12,16 +12,12 @@ import { a as arraySpeciesCreate$1 } from './array-species-create-b125f4a4.js';
12
12
  import { c as createProperty$1 } from './create-property-c70ecc08.js';
13
13
  import { a as arrayMethodHasSpeciesSupport$1 } from './array-method-has-species-support-8a4b1310.js';
14
14
  import { version as version$1, isProxy, toRaw, defineComponent, ref, shallowRef, onMounted, onBeforeUnmount, watch, h, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, createVNode } from 'vue';
15
- import { u as useColours } from './get-root-colours-e2a1cb28.js';
15
+ import { u as useColours } from './get-root-colours-865a52ba.js';
16
16
  import { u as uniqueId } from './uniqueId-fe08534a.js';
17
17
 
18
18
  function _arrayLikeToArray(arr, len) {
19
19
  if (len == null || len > arr.length) len = arr.length;
20
-
21
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
22
- arr2[i] = arr[i];
23
- }
24
-
20
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
25
21
  return arr2;
26
22
  }
27
23
 
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as _unsupportedIterableToArray, s as script$i } from './index-c15f5641.js';
2
- export { s as FwBarChart } from './index-c15f5641.js';
3
- import { s as script$c } from './fw-image-660d3e75.js';
4
- export { s as FwImage } from './fw-image-660d3e75.js';
1
+ import { _ as _unsupportedIterableToArray, s as script$i } from './index-be5b4afa.js';
2
+ export { s as FwBarChart } from './index-be5b4afa.js';
3
+ import { s as script$c } from './fw-image-ae643123.js';
4
+ export { s as FwImage } from './fw-image-ae643123.js';
5
5
  import './es.array.find-67b3b514.js';
6
6
  import { d as descriptors, f as functionUncurryThis, t as toIndexedObject$1, o as objectPropertyIsEnumerable } from './is-forced-fc680e39.js';
7
7
  import { _ as _export } from './export-8a363004.js';
@@ -36,28 +36,30 @@ import { FwSidebarMenu as script$j } from './fw-sidebar-menu.js';
36
36
  export { FwSidebarMenu } from './fw-sidebar-menu.js';
37
37
  import { FwDrawer as script$k } from './fw-drawer.js';
38
38
  export { FwDrawer } from './fw-drawer.js';
39
- import { s as script$l, _ as _defineProperty } from './index-8c78a422.js';
40
- export { s as FwProviderList } from './index-8c78a422.js';
41
- import { FwEmailPulse as __default__$3, FwSuccessPulse as __default__$4 } from './fw-animations.js';
39
+ import { s as script$l, _ as _defineProperty } from './index-6423a6ab.js';
40
+ export { s as FwProviderList } from './index-6423a6ab.js';
41
+ import { FwDatePicker as __default__$3 } from './fw-date-picker.js';
42
+ export { FwDatePicker } from './fw-date-picker.js';
43
+ import { FwEmailPulse as __default__$4, FwSuccessPulse as __default__$5 } from './fw-animations.js';
42
44
  export { FwEmailPulse, FwSuccessPulse } from './fw-animations.js';
43
45
  import { F as Form } from './vee-validate.esm-a17a23c3.js';
44
46
  export { F as FwForm } from './vee-validate.esm-a17a23c3.js';
45
- import { s as script } from './fw-input-7d25de48.js';
46
- export { s as FwInput } from './fw-input-7d25de48.js';
47
- import { s as script$2 } from './fw-dropdown-765dbbba.js';
48
- export { s as FwDropdown } from './fw-dropdown-765dbbba.js';
47
+ import { s as script } from './fw-input-fdc8fe1b.js';
48
+ export { s as FwInput } from './fw-input-fdc8fe1b.js';
49
+ import { s as script$2 } from './fw-dropdown-b476e015.js';
50
+ export { s as FwDropdown } from './fw-dropdown-b476e015.js';
49
51
  import { s as script$3 } from './fw-card-1b6a67fe.js';
50
52
  export { s as FwCard } from './fw-card-1b6a67fe.js';
51
- import { s as script$4 } from './fw-button-b7a12ae1.js';
52
- export { s as FwButton } from './fw-button-b7a12ae1.js';
53
- import { _ as __default__ } from './fw-tag-9ef5331a.js';
54
- export { _ as FwTag } from './fw-tag-9ef5331a.js';
55
- import { _ as __default__$1, s as script$a, a as script$b } from './fw-table-row-d390fe77.js';
56
- export { _ as FwTable, s as FwTableHead, a as FwTableRow } from './fw-table-row-d390fe77.js';
53
+ import { s as script$4 } from './fw-button-99dba2bc.js';
54
+ export { s as FwButton } from './fw-button-99dba2bc.js';
55
+ import { _ as __default__ } from './fw-tag-a8a83c0a.js';
56
+ export { _ as FwTag } from './fw-tag-a8a83c0a.js';
57
+ import { _ as __default__$1, s as script$a, a as script$b } from './fw-table-row-e8520a1d.js';
58
+ export { _ as FwTable, s as FwTableHead, a as FwTableRow } from './fw-table-row-e8520a1d.js';
57
59
  import { s as script$d } from './fw-loading-bar-f5ca605c.js';
58
60
  export { s as FwLoadingBar } from './fw-loading-bar-f5ca605c.js';
59
- import { s as script$m } from './fw-loading-spinner-3fda633e.js';
60
- export { s as FwLoadingSpinner } from './fw-loading-spinner-3fda633e.js';
61
+ import { s as script$m } from './fw-loading-spinner-cc1ca2fa.js';
62
+ export { s as FwLoadingSpinner } from './fw-loading-spinner-cc1ca2fa.js';
61
63
  import { reactive, createApp, h } from 'vue';
62
64
  import './es.number.constructor-98bae04f.js';
63
65
  import './classof-ee4b3b5b.js';
@@ -72,50 +74,49 @@ import './create-property-c70ecc08.js';
72
74
  import './delete-property-or-throw-cd4c57d6.js';
73
75
  import './es.function.name-6daefaeb.js';
74
76
  import './does-not-exceed-safe-integer-8e0042ec.js';
75
- import './get-root-colours-e2a1cb28.js';
77
+ import './get-root-colours-865a52ba.js';
76
78
  import './uniqueId-fe08534a.js';
77
79
  import './es.array.includes-a06445a5.js';
78
80
  import './add-to-unscopables-31609885.js';
79
81
  import './array-method-is-strict-fc2e0d8d.js';
80
82
  import './web.timers-c5316125.js';
81
- import './index-04d3cb23.js';
83
+ import './index-0a63f2c3.js';
82
84
  import './check-94a5917a.js';
83
85
  import './style-inject.es-1f59c1d0.js';
84
86
  import './es.array.concat-fe990345.js';
85
87
  import './es.string.includes-ade04f96.js';
88
+ import './es.date.to-string-1ffba857.js';
86
89
 
87
90
  function _arrayWithHoles(arr) {
88
91
  if (Array.isArray(arr)) return arr;
89
92
  }
90
93
 
91
- function _iterableToArrayLimit(arr, i) {
92
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
93
-
94
- if (_i == null) return;
95
- var _arr = [];
96
- var _n = true;
97
- var _d = false;
98
-
99
- var _s, _e;
100
-
101
- try {
102
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
103
- _arr.push(_s.value);
104
-
105
- if (i && _arr.length === i) break;
106
- }
107
- } catch (err) {
108
- _d = true;
109
- _e = err;
110
- } finally {
94
+ function _iterableToArrayLimit(r, l) {
95
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
96
+ if (null != t) {
97
+ var e,
98
+ n,
99
+ i,
100
+ u,
101
+ a = [],
102
+ f = !0,
103
+ o = !1;
111
104
  try {
112
- if (!_n && _i["return"] != null) _i["return"]();
105
+ if (i = (t = t.call(r)).next, 0 === l) {
106
+ if (Object(t) !== t) return;
107
+ f = !1;
108
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
109
+ } catch (r) {
110
+ o = !0, n = r;
113
111
  } finally {
114
- if (_d) throw _e;
112
+ try {
113
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
114
+ } finally {
115
+ if (o) throw n;
116
+ }
115
117
  }
118
+ return a;
116
119
  }
117
-
118
- return _arr;
119
120
  }
120
121
 
121
122
  function _nonIterableRest() {
@@ -206,35 +207,32 @@ var components = /*#__PURE__*/Object.freeze({
206
207
  FwSidebarMenu: script$j,
207
208
  FwDrawer: script$k,
208
209
  FwProviderList: script$l,
209
- FwEmailPulse: __default__$3,
210
- FwSuccessPulse: __default__$4,
210
+ FwDatePicker: __default__$3,
211
+ FwEmailPulse: __default__$4,
212
+ FwSuccessPulse: __default__$5,
211
213
  FwLoadingSpinner: script$m
212
214
  });
213
215
 
214
- function ownKeys(object, enumerableOnly) {
215
- var keys = Object.keys(object);
216
-
216
+ function ownKeys(e, r) {
217
+ var t = Object.keys(e);
217
218
  if (Object.getOwnPropertySymbols) {
218
- var symbols = Object.getOwnPropertySymbols(object);
219
- enumerableOnly && (symbols = symbols.filter(function (sym) {
220
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
221
- })), keys.push.apply(keys, symbols);
219
+ var o = Object.getOwnPropertySymbols(e);
220
+ r && (o = o.filter(function (r) {
221
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
222
+ })), t.push.apply(t, o);
222
223
  }
223
-
224
- return keys;
224
+ return t;
225
225
  }
226
-
227
- function _objectSpread2(target) {
228
- for (var i = 1; i < arguments.length; i++) {
229
- var source = null != arguments[i] ? arguments[i] : {};
230
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
231
- _defineProperty(target, key, source[key]);
232
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
233
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
226
+ function _objectSpread2(e) {
227
+ for (var r = 1; r < arguments.length; r++) {
228
+ var t = null != arguments[r] ? arguments[r] : {};
229
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
230
+ _defineProperty(e, r, t[r]);
231
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
232
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
234
233
  });
235
234
  }
236
-
237
- return target;
235
+ return e;
238
236
  }
239
237
 
240
238
  var modalService = function modalService(options) {