@frollo/frollo-web-ui 1.2.9 → 3.0.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.
Files changed (67) hide show
  1. package/cjs/index.js +1116 -618
  2. package/esm/{add-to-unscopables-a5032b1d.js → add-to-unscopables-3f461c07.js} +3 -3
  3. package/esm/array-iteration-98e2cf9a.js +93 -0
  4. package/esm/array-method-is-strict-544b103f.js +14 -0
  5. package/esm/array-species-create-5fc23c89.js +98 -0
  6. package/esm/{classof-088c9833.js → classof-a45668b6.js} +2 -2
  7. package/esm/create-property-558a3c24.js +15 -0
  8. package/esm/{es.array.find-54b8f84b.js → es.array.find-36d8f2f0.js} +6 -6
  9. package/esm/{es.array.includes-9a6e4066.js → es.array.includes-df8e6e35.js} +4 -4
  10. package/esm/{es.function.name-2fa3a718.js → es.function.name-b642b74f.js} +1 -1
  11. package/esm/{es.number.constructor-b7faae1f.js → es.number.constructor-f279ce82.js} +3 -3
  12. package/esm/{function-name-c49146fc.js → function-name-e2f6ea36.js} +1 -1
  13. package/esm/fw-animations.js +7 -7
  14. package/esm/{fw-button-6aa9b68f.js → fw-button-df5c923f.js} +2 -2
  15. package/esm/fw-button.js +8 -8
  16. package/esm/fw-card-8d3f4ab5.js +95 -0
  17. package/esm/fw-card.js +2 -95
  18. package/esm/fw-checkbox.js +2 -2
  19. package/esm/fw-dropdown.js +10 -9
  20. package/esm/fw-image-ec7b02c5.js +770 -0
  21. package/esm/fw-image.js +19 -847
  22. package/esm/fw-input.js +6 -6
  23. package/esm/{fw-loading-spinner-649aa589.js → fw-loading-spinner-9b7c6855.js} +1 -1
  24. package/esm/fw-loading.js +5 -5
  25. package/esm/fw-modal.js +228 -11
  26. package/esm/fw-navigation-menu.js +8 -8
  27. package/esm/fw-progress-bar.js +5 -5
  28. package/esm/fw-table.js +8 -7
  29. package/esm/fw-tabs.js +9 -8
  30. package/esm/fw-tag.js +5 -5
  31. package/esm/fw-toast.js +372 -0
  32. package/esm/fw-transactions-card.js +118 -0
  33. package/esm/{index-403af654.js → index-4605e00e.js} +130 -88
  34. package/esm/index.js +82 -47
  35. package/esm/{is-forced-fd46b5f2.js → is-forced-ddf227e6.js} +2 -2
  36. package/esm/{object-keys-3c73c404.js → object-keys-6a890c6f.js} +2 -2
  37. package/esm/{to-string-c2bd1f4d.js → to-string-685748aa.js} +2 -2
  38. package/esm/uniqueId-fe08534a.js +279 -0
  39. package/esm/web.timers-4a6aaab8.js +82 -0
  40. package/frollo-web-ui.esm.js +1208 -668
  41. package/icons/bullseye.svg +3 -0
  42. package/icons/icons.stories.ts +3 -3
  43. package/icons/index.ts +7 -1
  44. package/icons/solid-check.svg +3 -0
  45. package/icons/solid-xmark.svg +3 -0
  46. package/index.d.ts +261 -22
  47. package/package.json +2 -1
  48. package/styles/web-components.scss +8 -0
  49. package/types/components/fw-modal/fw-modal.vue.d.ts +30 -0
  50. package/types/components/fw-modal/index.types.d.ts +2 -0
  51. package/types/components/fw-toast/fw-toast.vue.d.ts +121 -0
  52. package/types/components/fw-toast/index.d.ts +2 -0
  53. package/types/components/fw-toast/index.types.d.ts +13 -0
  54. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -0
  55. package/types/components/fw-transactions-card/index.d.ts +2 -0
  56. package/types/components/fw-transactions-card/index.types.d.ts +6 -0
  57. package/types/components/index.d.ts +2 -0
  58. package/types/components/index.types.d.ts +2 -0
  59. package/types/icons/index.d.ts +4 -1
  60. package/types/index.browser-umd.d.ts +1 -0
  61. package/types/services/index.d.ts +1 -0
  62. package/types/services/modal.d.ts +2 -2
  63. package/types/services/toast.d.ts +9 -0
  64. package/web-components/index.js +21435 -0
  65. package/esm/array-iteration-4f83e223.js +0 -186
  66. package/esm/create-property-da6d232b.js +0 -26
  67. package/esm/index-61020c18.js +0 -475
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { FwImage as script$f } from './fw-image.js';
2
- export { FwImage } from './fw-image.js';
3
- import './es.array.find-54b8f84b.js';
4
- import { d as descriptors, f as functionUncurryThis } from './function-name-c49146fc.js';
5
- import { o as objectKeys$1, _ as _export } from './object-keys-3c73c404.js';
6
- import { t as toIndexedObject$1, o as objectPropertyIsEnumerable } from './is-forced-fd46b5f2.js';
1
+ import { s as script$f } from './fw-image-ec7b02c5.js';
2
+ export { s as FwImage } from './fw-image-ec7b02c5.js';
3
+ import './es.array.find-36d8f2f0.js';
4
+ import { d as descriptors, f as functionUncurryThis } from './function-name-e2f6ea36.js';
5
+ import { o as objectKeys$1, _ as _export } from './object-keys-6a890c6f.js';
6
+ import { t as toIndexedObject$1, o as objectPropertyIsEnumerable } from './is-forced-ddf227e6.js';
7
7
  import './fw-form.js';
8
8
  import { FwInput as script } from './fw-input.js';
9
9
  export { FwInput } from './fw-input.js';
@@ -11,15 +11,14 @@ import { FwCheckbox as script$1 } from './fw-checkbox.js';
11
11
  export { FwCheckbox } from './fw-checkbox.js';
12
12
  import { FwDropdown as script$2 } from './fw-dropdown.js';
13
13
  export { FwDropdown } from './fw-dropdown.js';
14
- import { FwCard as script$3 } from './fw-card.js';
15
- export { FwCard } from './fw-card.js';
14
+ import './fw-card.js';
16
15
  import './fw-button.js';
17
16
  import { FwNavigationMenu as script$5 } from './fw-navigation-menu.js';
18
17
  export { FwNavigationMenu } from './fw-navigation-menu.js';
19
18
  import { FwTabs as script$6, FwTab as script$7 } from './fw-tabs.js';
20
19
  export { FwTab, FwTabs } from './fw-tabs.js';
21
- import { s as script$8, u as uniqueId } from './index-61020c18.js';
22
- export { s as FwModal } from './index-61020c18.js';
20
+ import { FwModal as script$8 } from './fw-modal.js';
21
+ export { FwModal } from './fw-modal.js';
23
22
  import { FwProgressBar as script$9 } from './fw-progress-bar.js';
24
23
  export { FwProgressBar } from './fw-progress-bar.js';
25
24
  import { FwTag as script$a } from './fw-tag.js';
@@ -28,30 +27,41 @@ import { FwTable as script$b, FwTableHead as script$c, FwTableRow as script$d }
28
27
  export { FwTable, FwTableHead, FwTableRow } from './fw-table.js';
29
28
  import { FwAccordion as script$e } from './fw-accordion.js';
30
29
  export { FwAccordion } from './fw-accordion.js';
30
+ import './fw-image.js';
31
31
  import { FwLoadingCard as script$h, FwLoadingTable as script$i } from './fw-loading.js';
32
32
  export { FwLoadingCard, FwLoadingTable } from './fw-loading.js';
33
+ import { FwToast as script$j } from './fw-toast.js';
34
+ export { FwToast } from './fw-toast.js';
35
+ import { FwTransactionsCard as script$k } from './fw-transactions-card.js';
36
+ export { FwTransactionsCard } from './fw-transactions-card.js';
33
37
  import { FwEmailPulse as __default__, FwSuccessPulse as __default__$1 } from './fw-animations.js';
34
38
  export { FwEmailPulse, FwSuccessPulse } from './fw-animations.js';
35
39
  import { F as Form } from './vee-validate.esm-a17a23c3.js';
36
40
  export { F as FwForm } from './vee-validate.esm-a17a23c3.js';
37
- import { s as script$4 } from './fw-button-6aa9b68f.js';
38
- export { s as FwButton } from './fw-button-6aa9b68f.js';
41
+ import { s as script$3 } from './fw-card-8d3f4ab5.js';
42
+ export { s as FwCard } from './fw-card-8d3f4ab5.js';
43
+ import { s as script$4 } from './fw-button-df5c923f.js';
44
+ export { s as FwButton } from './fw-button-df5c923f.js';
39
45
  import { s as script$g } from './fw-loading-bar-da7d53fb.js';
40
46
  export { s as FwLoadingBar } from './fw-loading-bar-da7d53fb.js';
41
- import { s as script$j } from './fw-loading-spinner-649aa589.js';
42
- export { s as FwLoadingSpinner } from './fw-loading-spinner-649aa589.js';
43
- import { createApp } from 'vue';
44
- import './es.array.includes-9a6e4066.js';
45
- import './add-to-unscopables-a5032b1d.js';
46
- import './es.number.constructor-b7faae1f.js';
47
- import './to-string-c2bd1f4d.js';
48
- import './classof-088c9833.js';
49
- import './array-iteration-4f83e223.js';
50
- import './create-property-da6d232b.js';
51
- import './index-403af654.js';
47
+ import { s as script$l } from './fw-loading-spinner-9b7c6855.js';
48
+ export { s as FwLoadingSpinner } from './fw-loading-spinner-9b7c6855.js';
49
+ import { reactive, createApp, h } from 'vue';
50
+ import './es.array.includes-df8e6e35.js';
51
+ import './add-to-unscopables-3f461c07.js';
52
+ import './es.number.constructor-f279ce82.js';
53
+ import './to-string-685748aa.js';
54
+ import './classof-a45668b6.js';
55
+ import './array-iteration-98e2cf9a.js';
56
+ import './array-species-create-5fc23c89.js';
57
+ import './create-property-558a3c24.js';
58
+ import './web.timers-4a6aaab8.js';
59
+ import './array-method-is-strict-544b103f.js';
60
+ import './index-4605e00e.js';
52
61
  import './check-94a5917a.js';
53
62
  import './style-inject.es-1f59c1d0.js';
54
- import './es.function.name-2fa3a718.js';
63
+ import './es.function.name-b642b74f.js';
64
+ import './uniqueId-fe08534a.js';
55
65
 
56
66
  function _arrayWithHoles(arr) {
57
67
  if (Array.isArray(arr)) return arr;
@@ -188,9 +198,11 @@ var components = /*#__PURE__*/Object.freeze({
188
198
  FwLoadingBar: script$g,
189
199
  FwLoadingCard: script$h,
190
200
  FwLoadingTable: script$i,
201
+ FwToast: script$j,
202
+ FwTransactionsCard: script$k,
191
203
  FwEmailPulse: __default__,
192
204
  FwSuccessPulse: __default__$1,
193
- FwLoadingSpinner: script$j
205
+ FwLoadingSpinner: script$l
194
206
  });
195
207
 
196
208
  function _defineProperty(obj, key, value) {
@@ -234,33 +246,23 @@ function _objectSpread2(target) {
234
246
  return target;
235
247
  }
236
248
 
237
- var modalService = function modalService(options, element) {
249
+ var modalService = function modalService(options) {
238
250
  var elementToMount = document.createElement('div');
239
- elementToMount.id = uniqueId('fw-modal-app-');
240
- var elAppend = element || document.querySelector('#app');
241
- var modalVNode = undefined;
251
+ var props = reactive(_objectSpread2(_objectSpread2({}, options), {}, {
252
+ modelValue: false
253
+ }));
254
+ createApp({
255
+ render: function render() {
256
+ return h(script$8, props);
257
+ }
258
+ }).mount(elementToMount);
242
259
 
243
260
  var open = function open() {
244
- var _modalVNode;
245
-
246
- modalVNode = createApp(script$8, _objectSpread2({}, options));
247
- elAppend === null || elAppend === void 0 ? void 0 : elAppend.appendChild(elementToMount);
248
- (_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
261
+ props.modelValue = true;
249
262
  };
250
263
 
251
264
  var close = function close() {
252
- if (elementToMount) {
253
- var _elementToMount$query;
254
-
255
- (_elementToMount$query = elementToMount.querySelector('.fw-modal')) === null || _elementToMount$query === void 0 ? void 0 : _elementToMount$query.classList.add('modalFadeIn-leave-active');
256
- setTimeout(function () {
257
- var _modalVNode2;
258
-
259
- (_modalVNode2 = modalVNode) === null || _modalVNode2 === void 0 ? void 0 : _modalVNode2.unmount();
260
- modalVNode = undefined;
261
- elementToMount.remove();
262
- }, 400);
263
- }
265
+ props.modelValue = false;
264
266
  };
265
267
 
266
268
  return {
@@ -269,6 +271,39 @@ var modalService = function modalService(options, element) {
269
271
  };
270
272
  };
271
273
 
274
+ var toastService = function toastService() {
275
+ var createToastApp = function createToastApp(type, options) {
276
+ var elementToMount = document.createElement('div');
277
+ var props = reactive(_objectSpread2(_objectSpread2({}, options), {}, {
278
+ modelValue: true,
279
+ type: type
280
+ }));
281
+ createApp({
282
+ render: function render() {
283
+ return h(script$j, props);
284
+ }
285
+ }).mount(elementToMount);
286
+ };
287
+
288
+ var success = function success(options) {
289
+ createToastApp('success', options);
290
+ };
291
+
292
+ var error = function error(options) {
293
+ createToastApp('error', options);
294
+ };
295
+
296
+ var warning = function warning(options) {
297
+ createToastApp('warning', options);
298
+ };
299
+
300
+ return {
301
+ success: success,
302
+ error: error,
303
+ warning: warning
304
+ };
305
+ };
306
+
272
307
  var install = function install(app) {
273
308
  Object.entries(components).forEach(function (_ref) {
274
309
  var _ref2 = _slicedToArray(_ref, 2),
@@ -279,4 +314,4 @@ var install = function install(app) {
279
314
  });
280
315
  };
281
316
 
282
- export { install as default, modalService };
317
+ export { install as default, modalService, toastService };
@@ -1,4 +1,4 @@
1
- import { f as functionUncurryThis, j as fails$3, r as requireObjectCoercible$1, d as descriptors, b as functionCall, x as toPropertyKey$1, k as hasOwnProperty_1, y as ie8DomDefine, o as objectDefineProperty, l as isCallable$5, z as sharedStore, g as global$2, A as shared$2, B as uid$1, C as isObject$1, n as functionName, v as defineGlobalProperty$1 } from './function-name-c49146fc.js';
1
+ import { f as functionUncurryThis, j as fails$3, r as requireObjectCoercible$1, d as descriptors, b as functionCall, x as toPropertyKey$1, k as hasOwnProperty_1, y as ie8DomDefine, o as objectDefineProperty, l as isCallable$5, z as sharedStore, g as global$2, A as shared$2, B as uid$1, s as isObject$1, n as functionName, v as defineGlobalProperty$1 } from './function-name-e2f6ea36.js';
2
2
 
3
3
  var objectGetOwnPropertyDescriptor = {};
4
4
 
@@ -435,4 +435,4 @@ var POLYFILL = isForced.POLYFILL = 'P';
435
435
 
436
436
  var isForced_1 = isForced;
437
437
 
438
- export { toIntegerOrInfinity$2 as a, createPropertyDescriptor$2 as b, createNonEnumerableProperty$1 as c, defineBuiltIn as d, toAbsoluteIndex$1 as e, objectGetOwnPropertyNames as f, objectGetOwnPropertyDescriptor as g, isForced_1 as h, internalState as i, objectKeysInternal as j, enumBugKeys$1 as k, lengthOfArrayLike$1 as l, classofRaw as m, arrayIncludes as n, objectPropertyIsEnumerable as o, inspectSource$2 as p, indexedObject as q, hiddenKeys$3 as r, sharedKey$1 as s, toIndexedObject$3 as t };
438
+ export { toIntegerOrInfinity$2 as a, createPropertyDescriptor$2 as b, createNonEnumerableProperty$1 as c, defineBuiltIn as d, toAbsoluteIndex$1 as e, classofRaw as f, objectGetOwnPropertyNames as g, objectGetOwnPropertyDescriptor as h, internalState as i, isForced_1 as j, objectKeysInternal as k, lengthOfArrayLike$1 as l, enumBugKeys$1 as m, arrayIncludes as n, objectPropertyIsEnumerable as o, indexedObject as p, hiddenKeys$3 as q, inspectSource$2 as r, sharedKey$1 as s, toIndexedObject$3 as t };
@@ -1,5 +1,5 @@
1
- import { u as getBuiltIn$1, f as functionUncurryThis, c as anObject$1, k as hasOwnProperty_1, o as objectDefineProperty, g as global$1, v as defineGlobalProperty$1 } from './function-name-c49146fc.js';
2
- import { f as objectGetOwnPropertyNames, g as objectGetOwnPropertyDescriptor, c as createNonEnumerableProperty$1, d as defineBuiltIn$1, h as isForced_1, j as objectKeysInternal, k as enumBugKeys$1 } from './is-forced-fd46b5f2.js';
1
+ import { u as getBuiltIn$1, f as functionUncurryThis, c as anObject$1, k as hasOwnProperty_1, o as objectDefineProperty, g as global$1, v as defineGlobalProperty$1 } from './function-name-e2f6ea36.js';
2
+ import { g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor, c as createNonEnumerableProperty$1, d as defineBuiltIn$1, j as isForced_1, k as objectKeysInternal, m as enumBugKeys$1 } from './is-forced-ddf227e6.js';
3
3
 
4
4
  var objectGetOwnPropertySymbols = {};
5
5
 
@@ -1,5 +1,5 @@
1
- import './function-name-c49146fc.js';
2
- import { c as classof$1 } from './classof-088c9833.js';
1
+ import './function-name-e2f6ea36.js';
2
+ import { c as classof$1 } from './classof-a45668b6.js';
3
3
 
4
4
  var classof = classof$1;
5
5
 
@@ -0,0 +1,279 @@
1
+ /** Detect free variable `global` from Node.js. */
2
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
3
+
4
+ /** Detect free variable `self`. */
5
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
6
+
7
+ /** Used as a reference to the global object. */
8
+ var root = freeGlobal || freeSelf || Function('return this')();
9
+
10
+ /** Built-in value references. */
11
+ var Symbol = root.Symbol;
12
+
13
+ /**
14
+ * A specialized version of `_.map` for arrays without support for iteratee
15
+ * shorthands.
16
+ *
17
+ * @private
18
+ * @param {Array} [array] The array to iterate over.
19
+ * @param {Function} iteratee The function invoked per iteration.
20
+ * @returns {Array} Returns the new mapped array.
21
+ */
22
+ function arrayMap(array, iteratee) {
23
+ var index = -1,
24
+ length = array == null ? 0 : array.length,
25
+ result = Array(length);
26
+
27
+ while (++index < length) {
28
+ result[index] = iteratee(array[index], index, array);
29
+ }
30
+ return result;
31
+ }
32
+
33
+ /**
34
+ * Checks if `value` is classified as an `Array` object.
35
+ *
36
+ * @static
37
+ * @memberOf _
38
+ * @since 0.1.0
39
+ * @category Lang
40
+ * @param {*} value The value to check.
41
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
42
+ * @example
43
+ *
44
+ * _.isArray([1, 2, 3]);
45
+ * // => true
46
+ *
47
+ * _.isArray(document.body.children);
48
+ * // => false
49
+ *
50
+ * _.isArray('abc');
51
+ * // => false
52
+ *
53
+ * _.isArray(_.noop);
54
+ * // => false
55
+ */
56
+ var isArray = Array.isArray;
57
+
58
+ /** Used for built-in method references. */
59
+ var objectProto$1 = Object.prototype;
60
+
61
+ /** Used to check objects for own properties. */
62
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
63
+
64
+ /**
65
+ * Used to resolve the
66
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
67
+ * of values.
68
+ */
69
+ var nativeObjectToString$1 = objectProto$1.toString;
70
+
71
+ /** Built-in value references. */
72
+ var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
73
+
74
+ /**
75
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
76
+ *
77
+ * @private
78
+ * @param {*} value The value to query.
79
+ * @returns {string} Returns the raw `toStringTag`.
80
+ */
81
+ function getRawTag(value) {
82
+ var isOwn = hasOwnProperty.call(value, symToStringTag$1),
83
+ tag = value[symToStringTag$1];
84
+
85
+ try {
86
+ value[symToStringTag$1] = undefined;
87
+ var unmasked = true;
88
+ } catch (e) {}
89
+
90
+ var result = nativeObjectToString$1.call(value);
91
+ if (unmasked) {
92
+ if (isOwn) {
93
+ value[symToStringTag$1] = tag;
94
+ } else {
95
+ delete value[symToStringTag$1];
96
+ }
97
+ }
98
+ return result;
99
+ }
100
+
101
+ /** Used for built-in method references. */
102
+ var objectProto = Object.prototype;
103
+
104
+ /**
105
+ * Used to resolve the
106
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
107
+ * of values.
108
+ */
109
+ var nativeObjectToString = objectProto.toString;
110
+
111
+ /**
112
+ * Converts `value` to a string using `Object.prototype.toString`.
113
+ *
114
+ * @private
115
+ * @param {*} value The value to convert.
116
+ * @returns {string} Returns the converted string.
117
+ */
118
+ function objectToString(value) {
119
+ return nativeObjectToString.call(value);
120
+ }
121
+
122
+ /** `Object#toString` result references. */
123
+ var nullTag = '[object Null]',
124
+ undefinedTag = '[object Undefined]';
125
+
126
+ /** Built-in value references. */
127
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
128
+
129
+ /**
130
+ * The base implementation of `getTag` without fallbacks for buggy environments.
131
+ *
132
+ * @private
133
+ * @param {*} value The value to query.
134
+ * @returns {string} Returns the `toStringTag`.
135
+ */
136
+ function baseGetTag(value) {
137
+ if (value == null) {
138
+ return value === undefined ? undefinedTag : nullTag;
139
+ }
140
+ return (symToStringTag && symToStringTag in Object(value))
141
+ ? getRawTag(value)
142
+ : objectToString(value);
143
+ }
144
+
145
+ /**
146
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
147
+ * and has a `typeof` result of "object".
148
+ *
149
+ * @static
150
+ * @memberOf _
151
+ * @since 4.0.0
152
+ * @category Lang
153
+ * @param {*} value The value to check.
154
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
155
+ * @example
156
+ *
157
+ * _.isObjectLike({});
158
+ * // => true
159
+ *
160
+ * _.isObjectLike([1, 2, 3]);
161
+ * // => true
162
+ *
163
+ * _.isObjectLike(_.noop);
164
+ * // => false
165
+ *
166
+ * _.isObjectLike(null);
167
+ * // => false
168
+ */
169
+ function isObjectLike(value) {
170
+ return value != null && typeof value == 'object';
171
+ }
172
+
173
+ /** `Object#toString` result references. */
174
+ var symbolTag = '[object Symbol]';
175
+
176
+ /**
177
+ * Checks if `value` is classified as a `Symbol` primitive or object.
178
+ *
179
+ * @static
180
+ * @memberOf _
181
+ * @since 4.0.0
182
+ * @category Lang
183
+ * @param {*} value The value to check.
184
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
185
+ * @example
186
+ *
187
+ * _.isSymbol(Symbol.iterator);
188
+ * // => true
189
+ *
190
+ * _.isSymbol('abc');
191
+ * // => false
192
+ */
193
+ function isSymbol(value) {
194
+ return typeof value == 'symbol' ||
195
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
196
+ }
197
+
198
+ /** Used as references for various `Number` constants. */
199
+ var INFINITY = 1 / 0;
200
+
201
+ /** Used to convert symbols to primitives and strings. */
202
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
203
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
204
+
205
+ /**
206
+ * The base implementation of `_.toString` which doesn't convert nullish
207
+ * values to empty strings.
208
+ *
209
+ * @private
210
+ * @param {*} value The value to process.
211
+ * @returns {string} Returns the string.
212
+ */
213
+ function baseToString(value) {
214
+ // Exit early for strings to avoid a performance hit in some environments.
215
+ if (typeof value == 'string') {
216
+ return value;
217
+ }
218
+ if (isArray(value)) {
219
+ // Recursively convert values (susceptible to call stack limits).
220
+ return arrayMap(value, baseToString) + '';
221
+ }
222
+ if (isSymbol(value)) {
223
+ return symbolToString ? symbolToString.call(value) : '';
224
+ }
225
+ var result = (value + '');
226
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
227
+ }
228
+
229
+ /**
230
+ * Converts `value` to a string. An empty string is returned for `null`
231
+ * and `undefined` values. The sign of `-0` is preserved.
232
+ *
233
+ * @static
234
+ * @memberOf _
235
+ * @since 4.0.0
236
+ * @category Lang
237
+ * @param {*} value The value to convert.
238
+ * @returns {string} Returns the converted string.
239
+ * @example
240
+ *
241
+ * _.toString(null);
242
+ * // => ''
243
+ *
244
+ * _.toString(-0);
245
+ * // => '-0'
246
+ *
247
+ * _.toString([1, 2, 3]);
248
+ * // => '1,2,3'
249
+ */
250
+ function toString(value) {
251
+ return value == null ? '' : baseToString(value);
252
+ }
253
+
254
+ /** Used to generate unique IDs. */
255
+ var idCounter = 0;
256
+
257
+ /**
258
+ * Generates a unique ID. If `prefix` is given, the ID is appended to it.
259
+ *
260
+ * @static
261
+ * @since 0.1.0
262
+ * @memberOf _
263
+ * @category Util
264
+ * @param {string} [prefix=''] The value to prefix the ID with.
265
+ * @returns {string} Returns the unique ID.
266
+ * @example
267
+ *
268
+ * _.uniqueId('contact_');
269
+ * // => 'contact_104'
270
+ *
271
+ * _.uniqueId();
272
+ * // => '105'
273
+ */
274
+ function uniqueId(prefix) {
275
+ var id = ++idCounter;
276
+ return toString(prefix) + id;
277
+ }
278
+
279
+ export { uniqueId as u };
@@ -0,0 +1,82 @@
1
+ import { F as functionBindNative, f as functionUncurryThis, g as global$3, l as isCallable$1, p as engineUserAgent } from './function-name-e2f6ea36.js';
2
+ import { _ as _export } from './object-keys-6a890c6f.js';
3
+
4
+ var web_timers = {};
5
+
6
+ var web_setInterval = {};
7
+
8
+ var NATIVE_BIND = functionBindNative;
9
+
10
+ var FunctionPrototype = Function.prototype;
11
+ var apply$1 = FunctionPrototype.apply;
12
+ var call = FunctionPrototype.call;
13
+
14
+ // eslint-disable-next-line es-x/no-reflect -- safe
15
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply$1) : function () {
16
+ return call.apply(apply$1, arguments);
17
+ });
18
+
19
+ var uncurryThis = functionUncurryThis;
20
+
21
+ var arraySlice$1 = uncurryThis([].slice);
22
+
23
+ var $TypeError = TypeError;
24
+
25
+ var validateArgumentsLength$1 = function (passed, required) {
26
+ if (passed < required) throw $TypeError('Not enough arguments');
27
+ return passed;
28
+ };
29
+
30
+ var global$2 = global$3;
31
+ var apply = functionApply;
32
+ var isCallable = isCallable$1;
33
+ var userAgent = engineUserAgent;
34
+ var arraySlice = arraySlice$1;
35
+ var validateArgumentsLength = validateArgumentsLength$1;
36
+
37
+ var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
38
+ var Function$1 = global$2.Function;
39
+
40
+ var wrap = function (scheduler) {
41
+ return MSIE ? function (handler, timeout /* , ...arguments */) {
42
+ var boundArgs = validateArgumentsLength(arguments.length, 1) > 2;
43
+ var fn = isCallable(handler) ? handler : Function$1(handler);
44
+ var args = boundArgs ? arraySlice(arguments, 2) : undefined;
45
+ return scheduler(boundArgs ? function () {
46
+ apply(fn, this, args);
47
+ } : fn, timeout);
48
+ } : scheduler;
49
+ };
50
+
51
+ // ie9- setTimeout & setInterval additional parameters fix
52
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
53
+ var schedulersFix = {
54
+ // `setTimeout` method
55
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
56
+ setTimeout: wrap(global$2.setTimeout),
57
+ // `setInterval` method
58
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
59
+ setInterval: wrap(global$2.setInterval)
60
+ };
61
+
62
+ var $$1 = _export;
63
+ var global$1 = global$3;
64
+ var setInterval = schedulersFix.setInterval;
65
+
66
+ // ie9- setInterval additional parameters fix
67
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
68
+ $$1({ global: true, bind: true, forced: global$1.setInterval !== setInterval }, {
69
+ setInterval: setInterval
70
+ });
71
+
72
+ var web_setTimeout = {};
73
+
74
+ var $ = _export;
75
+ var global = global$3;
76
+ var setTimeout = schedulersFix.setTimeout;
77
+
78
+ // ie9- setTimeout additional parameters fix
79
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
80
+ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {
81
+ setTimeout: setTimeout
82
+ });