@limetech/lime-elements 34.0.2-next.9 → 34.1.0-next.12

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 (134) hide show
  1. package/dist/cjs/{_arrayIncludesWith-d69e30af.js → _arrayIncludesWith-36a6fafb.js} +7 -6
  2. package/dist/cjs/{_assignValue-493aac17.js → _assignValue-c9fc3712.js} +2 -2
  3. package/dist/cjs/{_defineProperty-c081d04c.js → _defineProperty-8351e789.js} +4 -3
  4. package/dist/cjs/eq-9a943b00.js +75 -0
  5. package/dist/cjs/{isArrayLike-2bebb99c.js → isArrayLike-ac53bdac.js} +1 -30
  6. package/dist/cjs/{isEqual-1ce0c121.js → isEqual-e3b9c27c.js} +21 -19
  7. package/dist/cjs/{eq-3b43a5ca.js → isObject-e28b7997.js} +0 -71
  8. package/dist/cjs/isObjectLike-3e3f0cba.js +31 -0
  9. package/dist/cjs/{isSymbol-4666002c.js → isSymbol-d22b2798.js} +3 -3
  10. package/dist/cjs/lime-elements.cjs.js +1 -1
  11. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +188 -0
  12. package/dist/cjs/limel-color-picker.cjs.entry.js +51 -0
  13. package/dist/cjs/{limel-flatpickr-adapter_2.cjs.entry.js → limel-flatpickr-adapter.cjs.entry.js} +8 -801
  14. package/dist/cjs/limel-form.cjs.entry.js +23 -16
  15. package/dist/cjs/limel-input-field.cjs.entry.js +713 -0
  16. package/dist/cjs/limel-list_3.cjs.entry.js +2414 -0
  17. package/dist/cjs/limel-menu.cjs.entry.js +5 -4
  18. package/dist/cjs/limel-picker.cjs.entry.js +5 -1
  19. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-slider.cjs.entry.js +96 -13
  22. package/dist/cjs/limel-tab-bar.cjs.entry.js +7 -5
  23. package/dist/cjs/limel-table.cjs.entry.js +9 -7
  24. package/dist/cjs/{limel-tooltip.cjs.entry.js → limel-tooltip_2.cjs.entry.js} +16 -0
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/cjs/{pickBy-64252559.js → pickBy-88b0430a.js} +10 -10
  27. package/dist/cjs/toNumber-062ea29c.js +99 -0
  28. package/dist/cjs/{zipObject-2f430e94.js → zipObject-4050a45f.js} +1 -1
  29. package/dist/collection/collection-manifest.json +2 -0
  30. package/dist/collection/components/color-picker/color-picker-palette.css +1231 -0
  31. package/dist/collection/components/color-picker/color-picker-palette.js +135 -0
  32. package/dist/collection/components/color-picker/color-picker.css +100 -0
  33. package/dist/collection/components/color-picker/color-picker.js +189 -0
  34. package/dist/collection/components/color-picker/swatches.js +29 -0
  35. package/dist/collection/components/form/form.css +4 -0
  36. package/dist/collection/components/form/form.js +23 -0
  37. package/dist/collection/components/form/templates/array-field-collapsible-item.js +1 -1
  38. package/dist/collection/components/form/templates/array-field.js +2 -2
  39. package/dist/collection/components/list/list.css +2 -1
  40. package/dist/collection/components/list/list.js +1 -0
  41. package/dist/collection/components/picker/picker.js +23 -1
  42. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +7 -5
  43. package/dist/collection/components/progress-flow/progress-flow.css +0 -4
  44. package/dist/collection/components/slider/slider.js +96 -13
  45. package/dist/esm/{_arrayIncludesWith-3f5ce249.js → _arrayIncludesWith-b5d3fd9e.js} +5 -4
  46. package/dist/esm/{_assignValue-94fb6adc.js → _assignValue-08fe10bc.js} +2 -2
  47. package/dist/esm/{_defineProperty-cbf98a2a.js → _defineProperty-8c869077.js} +2 -1
  48. package/dist/esm/eq-c1c7f528.js +72 -0
  49. package/dist/esm/{isArrayLike-14db8f02.js → isArrayLike-dd37ba9a.js} +2 -30
  50. package/dist/esm/{isEqual-4d982635.js → isEqual-4f22635f.js} +5 -3
  51. package/dist/esm/{eq-f40dd1d6.js → isObject-c74e273c.js} +1 -70
  52. package/dist/esm/isObjectLike-38996507.js +29 -0
  53. package/dist/esm/{isSymbol-84252d8e.js → isSymbol-5bf20921.js} +2 -2
  54. package/dist/esm/lime-elements.js +1 -1
  55. package/dist/esm/limel-color-picker-palette_2.entry.js +183 -0
  56. package/dist/esm/limel-color-picker.entry.js +47 -0
  57. package/dist/esm/{limel-flatpickr-adapter_2.entry.js → limel-flatpickr-adapter.entry.js} +8 -800
  58. package/dist/esm/limel-form.entry.js +19 -12
  59. package/dist/esm/limel-input-field.entry.js +709 -0
  60. package/dist/esm/limel-list_3.entry.js +2408 -0
  61. package/dist/esm/limel-menu.entry.js +5 -4
  62. package/dist/esm/limel-picker.entry.js +5 -1
  63. package/dist/esm/limel-progress-flow-item.entry.js +1 -1
  64. package/dist/esm/limel-progress-flow.entry.js +1 -1
  65. package/dist/esm/limel-slider.entry.js +96 -13
  66. package/dist/esm/limel-tab-bar.entry.js +7 -5
  67. package/dist/esm/limel-table.entry.js +9 -7
  68. package/dist/esm/{limel-tooltip.entry.js → limel-tooltip_2.entry.js} +16 -1
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/esm/{pickBy-c485c1b5.js → pickBy-8a849e46.js} +5 -5
  71. package/dist/esm/toNumber-a6ed64f0.js +97 -0
  72. package/dist/esm/{zipObject-53fcafb3.js → zipObject-22e88ce9.js} +1 -1
  73. package/dist/lime-elements/lime-elements.esm.js +1 -1
  74. package/dist/lime-elements/p-090bc949.js +1 -0
  75. package/dist/lime-elements/p-13f0e4f4.entry.js +1 -0
  76. package/dist/lime-elements/{p-425a0596.js → p-1a64b531.js} +1 -1
  77. package/dist/lime-elements/p-1cf833c8.entry.js +16 -0
  78. package/dist/lime-elements/p-365098fe.js +1 -0
  79. package/dist/lime-elements/p-373cefb7.entry.js +1 -0
  80. package/dist/lime-elements/p-379955f4.js +1 -0
  81. package/dist/lime-elements/p-426d11b4.js +1 -0
  82. package/dist/lime-elements/p-440084ea.js +1 -0
  83. package/dist/lime-elements/p-468e940e.entry.js +16 -0
  84. package/dist/lime-elements/p-4bc5d3fc.entry.js +1 -0
  85. package/dist/lime-elements/p-50132e1d.entry.js +1 -0
  86. package/dist/lime-elements/p-511d71e0.entry.js +1 -0
  87. package/dist/lime-elements/p-58cbe99d.entry.js +1 -0
  88. package/dist/lime-elements/p-7f43b0c4.js +1 -0
  89. package/dist/lime-elements/p-81258617.entry.js +1 -0
  90. package/dist/lime-elements/p-858c6b82.js +1 -0
  91. package/dist/lime-elements/{p-d070f0e7.entry.js → p-a4c532a7.entry.js} +1 -1
  92. package/dist/lime-elements/{p-7ed4e81f.entry.js → p-bcafdb7a.entry.js} +2 -2
  93. package/dist/lime-elements/p-c93050d6.js +1 -0
  94. package/dist/lime-elements/p-d529bb7d.js +1 -0
  95. package/dist/lime-elements/p-eda23c05.js +1 -0
  96. package/dist/lime-elements/{p-ff0217b3.entry.js → p-f2c706b8.entry.js} +1 -1
  97. package/dist/lime-elements/p-f5a3e526.entry.js +1 -0
  98. package/dist/lime-elements/p-f83213b8.js +1 -0
  99. package/dist/lime-elements/{p-03c28bee.entry.js → p-fbe6100e.entry.js} +1 -1
  100. package/dist/types/components/color-picker/color-picker-palette.d.ts +32 -0
  101. package/dist/types/components/color-picker/color-picker.d.ts +54 -0
  102. package/dist/types/components/color-picker/swatches.d.ts +4 -0
  103. package/dist/types/components/form/form.d.ts +4 -0
  104. package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +1 -1
  105. package/dist/types/components/picker/picker.d.ts +4 -0
  106. package/dist/types/components/slider/slider.d.ts +8 -0
  107. package/dist/types/components.d.ts +130 -0
  108. package/package.json +1 -1
  109. package/dist/cjs/limel-list_2.cjs.entry.js +0 -484
  110. package/dist/cjs/limel-popover.cjs.entry.js +0 -116
  111. package/dist/cjs/limel-portal.cjs.entry.js +0 -1935
  112. package/dist/cjs/limel-tooltip-content.cjs.entry.js +0 -22
  113. package/dist/esm/limel-list_2.entry.js +0 -479
  114. package/dist/esm/limel-popover.entry.js +0 -112
  115. package/dist/esm/limel-portal.entry.js +0 -1931
  116. package/dist/esm/limel-tooltip-content.entry.js +0 -18
  117. package/dist/lime-elements/p-227d2c5a.entry.js +0 -1
  118. package/dist/lime-elements/p-33f3e1db.entry.js +0 -16
  119. package/dist/lime-elements/p-3ce2d46a.js +0 -1
  120. package/dist/lime-elements/p-77afe6dd.entry.js +0 -1
  121. package/dist/lime-elements/p-7c4d91f5.js +0 -1
  122. package/dist/lime-elements/p-845e645a.entry.js +0 -1
  123. package/dist/lime-elements/p-8bbe3720.js +0 -1
  124. package/dist/lime-elements/p-8d1ab246.entry.js +0 -1
  125. package/dist/lime-elements/p-8e4ff107.js +0 -1
  126. package/dist/lime-elements/p-acfbf7ac.js +0 -1
  127. package/dist/lime-elements/p-bbc1bb01.entry.js +0 -1
  128. package/dist/lime-elements/p-c0765c9b.js +0 -1
  129. package/dist/lime-elements/p-e28a4246.entry.js +0 -1
  130. package/dist/lime-elements/p-e5738ec6.entry.js +0 -1
  131. package/dist/lime-elements/p-ee7355e7.js +0 -1
  132. package/dist/lime-elements/p-f4495f59.entry.js +0 -1
  133. package/dist/lime-elements/p-fbe32287.entry.js +0 -16
  134. package/dist/lime-elements/p-fc610f15.js +0 -1
@@ -42,7 +42,12 @@ export class Slider {
42
42
  */
43
43
  this.valuemin = 0;
44
44
  this.changeHandler = (event) => {
45
- this.change.emit(event.detail.value / this.factor);
45
+ let value = event.detail.value;
46
+ const step = this.multiplyByFactor(this.step);
47
+ if (!this.isMultipleOfStep(value, step)) {
48
+ value = this.roundToStep(value, step);
49
+ }
50
+ this.change.emit(value / this.factor);
46
51
  };
47
52
  this.inputHandler = this.inputHandler.bind(this);
48
53
  this.getContainerClassList = this.getContainerClassList.bind(this);
@@ -54,10 +59,11 @@ export class Slider {
54
59
  this.initialize();
55
60
  }
56
61
  initialize() {
57
- const element = this.rootElement.shadowRoot.querySelector('.mdc-slider');
58
- if (!element) {
62
+ const inputElement = this.getInputElement();
63
+ if (!inputElement) {
59
64
  return;
60
65
  }
66
+ const value = this.getValue();
61
67
  /*
62
68
  For some reason the input element's `value` attribute is removed
63
69
  (probably by Stencil) when the element is first rendered. But if the
@@ -65,20 +71,40 @@ export class Slider {
65
71
  MDCSlider crashes.
66
72
  So we add the attribute right before initializing MDCSlider. /Ads
67
73
  */
68
- element
69
- .querySelector('input')
70
- .setAttribute('value', `${this.multiplyByFactor(this.getValue())}`);
71
- this.mdcSlider = new MDCSlider(element);
72
- this.mdcSlider.listen('MDCSlider:change', this.changeHandler);
73
- this.mdcSlider.listen('MDCSlider:input', this.inputHandler);
74
+ inputElement.setAttribute('value', `${this.multiplyByFactor(value)}`);
75
+ /*
76
+ When creating the `mdcSlider` component, its important that the value set in
77
+ the input field obeys the range and the step size.
78
+
79
+ The MDCSlider will throw an exception unless the value in the input element
80
+ is dividible by the step value and is in the provided range.
81
+ If an exception occurs, this component will crash and it will be impossible to change
82
+ its value.
83
+ The logic below ensures that the component will render even though the
84
+ provided value is wrong.
85
+ This could be considered wrong, but it at least fixes so that it's possible
86
+ to change the value from the UI.
87
+ */
88
+ const greaterThanOrEqualMin = value >= this.valuemin;
89
+ const lessThanOrEqualMax = value <= this.valuemax;
90
+ if (!greaterThanOrEqualMin) {
91
+ const newMin = this.multiplyByFactor(value);
92
+ inputElement.setAttribute('min', `${newMin}`);
93
+ }
94
+ if (!lessThanOrEqualMax) {
95
+ const newMax = this.multiplyByFactor(value);
96
+ inputElement.setAttribute('max', `${newMax}`);
97
+ }
98
+ if (!this.isMultipleOfStep(value, this.step)) {
99
+ inputElement.removeAttribute('step');
100
+ }
101
+ this.createMDCSlider();
74
102
  }
75
103
  componentWillLoad() {
76
104
  this.setPercentageClass(this.value);
77
105
  }
78
106
  disconnectedCallback() {
79
- this.mdcSlider.unlisten('MDCSlider:change', this.changeHandler);
80
- this.mdcSlider.unlisten('MDCSlider:input', this.inputHandler);
81
- this.mdcSlider.destroy();
107
+ this.destroyMDCSlider();
82
108
  }
83
109
  getContainerClassList() {
84
110
  return {
@@ -139,7 +165,16 @@ export class Slider {
139
165
  if (!this.mdcSlider) {
140
166
  return;
141
167
  }
142
- this.mdcSlider.setValue(this.multiplyByFactor(this.getValue()));
168
+ const value = this.multiplyByFactor(this.getValue());
169
+ this.mdcSlider.setValue(value);
170
+ if (this.isStepConfigured()) {
171
+ return;
172
+ }
173
+ const step = this.multiplyByFactor(this.step);
174
+ if (!this.isMultipleOfStep(value, step)) {
175
+ return;
176
+ }
177
+ this.reCreateSliderWithStep();
143
178
  }
144
179
  updateDisabledState() {
145
180
  if (!this.mdcSlider) {
@@ -163,6 +198,54 @@ export class Slider {
163
198
  setPercentageClass(value) {
164
199
  this.percentageClass = getPercentageClass((value - this.valuemin) / (this.valuemax - this.valuemin));
165
200
  }
201
+ isMultipleOfStep(value, step) {
202
+ if (!step) {
203
+ return true;
204
+ }
205
+ return value % step === 0;
206
+ }
207
+ roundToStep(value, step) {
208
+ return Math.round(value / step) * step;
209
+ }
210
+ getRootElement() {
211
+ return this.rootElement.shadowRoot.querySelector('.mdc-slider');
212
+ }
213
+ getInputElement() {
214
+ const element = this.getRootElement();
215
+ if (!element) {
216
+ return;
217
+ }
218
+ return element.querySelector('input');
219
+ }
220
+ isStepConfigured() {
221
+ if (!this.step) {
222
+ return true;
223
+ }
224
+ const input = this.getInputElement();
225
+ if (!input) {
226
+ return true;
227
+ }
228
+ return input.hasAttribute('step');
229
+ }
230
+ reCreateSliderWithStep() {
231
+ const inputElement = this.getInputElement();
232
+ const step = `${this.multiplyByFactor(this.step)}`;
233
+ inputElement.setAttribute('step', step);
234
+ this.destroyMDCSlider();
235
+ this.createMDCSlider();
236
+ }
237
+ createMDCSlider() {
238
+ const element = this.getRootElement();
239
+ this.mdcSlider = new MDCSlider(element);
240
+ this.mdcSlider.listen('MDCSlider:change', this.changeHandler);
241
+ this.mdcSlider.listen('MDCSlider:input', this.inputHandler);
242
+ }
243
+ destroyMDCSlider() {
244
+ this.mdcSlider.unlisten('MDCSlider:change', this.changeHandler);
245
+ this.mdcSlider.unlisten('MDCSlider:input', this.inputHandler);
246
+ this.mdcSlider.destroy();
247
+ this.mdcSlider = undefined;
248
+ }
166
249
  static get is() { return "limel-slider"; }
167
250
  static get encapsulation() { return "shadow"; }
168
251
  static get originalStyleUrls() { return {
@@ -1,8 +1,9 @@
1
- import { v as identity, c as isArguments, p as arrayPush } from './isEqual-4d982635.js';
2
- import { d as defineProperty } from './_defineProperty-cbf98a2a.js';
3
- import { S as Symbol } from './eq-f40dd1d6.js';
1
+ import { v as identity, c as isArguments, p as arrayPush } from './isEqual-4f22635f.js';
2
+ import { d as defineProperty } from './_defineProperty-8c869077.js';
3
+ import { S as Symbol } from './isObject-c74e273c.js';
4
4
  import { i as isArray } from './isArray-80298bc7.js';
5
- import { i as isObjectLike, a as isArrayLike } from './isArrayLike-14db8f02.js';
5
+ import { i as isArrayLike } from './isArrayLike-dd37ba9a.js';
6
+ import { i as isObjectLike } from './isObjectLike-38996507.js';
6
7
 
7
8
  /**
8
9
  * A faster alternative to `Function#apply`, this function invokes `func`
@@ -1,5 +1,5 @@
1
- import { d as defineProperty } from './_defineProperty-cbf98a2a.js';
2
- import { e as eq } from './eq-f40dd1d6.js';
1
+ import { d as defineProperty } from './_defineProperty-8c869077.js';
2
+ import { e as eq } from './eq-c1c7f528.js';
3
3
 
4
4
  /**
5
5
  * The base implementation of `assignValue` and `assignMergeValue` without
@@ -1,4 +1,5 @@
1
- import { r as root, i as isObject, a as isFunction } from './eq-f40dd1d6.js';
1
+ import { i as isFunction } from './eq-c1c7f528.js';
2
+ import { r as root, i as isObject } from './isObject-c74e273c.js';
2
3
 
3
4
  /** Used to detect overreaching core-js shims. */
4
5
  var coreJsData = root['__core-js_shared__'];
@@ -0,0 +1,72 @@
1
+ import { i as isObject, b as baseGetTag } from './isObject-c74e273c.js';
2
+
3
+ /** `Object#toString` result references. */
4
+ var asyncTag = '[object AsyncFunction]',
5
+ funcTag = '[object Function]',
6
+ genTag = '[object GeneratorFunction]',
7
+ proxyTag = '[object Proxy]';
8
+
9
+ /**
10
+ * Checks if `value` is classified as a `Function` object.
11
+ *
12
+ * @static
13
+ * @memberOf _
14
+ * @since 0.1.0
15
+ * @category Lang
16
+ * @param {*} value The value to check.
17
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
18
+ * @example
19
+ *
20
+ * _.isFunction(_);
21
+ * // => true
22
+ *
23
+ * _.isFunction(/abc/);
24
+ * // => false
25
+ */
26
+ function isFunction(value) {
27
+ if (!isObject(value)) {
28
+ return false;
29
+ }
30
+ // The use of `Object#toString` avoids issues with the `typeof` operator
31
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
32
+ var tag = baseGetTag(value);
33
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
34
+ }
35
+
36
+ /**
37
+ * Performs a
38
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
39
+ * comparison between two values to determine if they are equivalent.
40
+ *
41
+ * @static
42
+ * @memberOf _
43
+ * @since 4.0.0
44
+ * @category Lang
45
+ * @param {*} value The value to compare.
46
+ * @param {*} other The other value to compare.
47
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
48
+ * @example
49
+ *
50
+ * var object = { 'a': 1 };
51
+ * var other = { 'a': 1 };
52
+ *
53
+ * _.eq(object, object);
54
+ * // => true
55
+ *
56
+ * _.eq(object, other);
57
+ * // => false
58
+ *
59
+ * _.eq('a', 'a');
60
+ * // => true
61
+ *
62
+ * _.eq('a', Object('a'));
63
+ * // => false
64
+ *
65
+ * _.eq(NaN, NaN);
66
+ * // => true
67
+ */
68
+ function eq(value, other) {
69
+ return value === other || (value !== value && other !== other);
70
+ }
71
+
72
+ export { eq as e, isFunction as i };
@@ -1,32 +1,4 @@
1
- import { a as isFunction } from './eq-f40dd1d6.js';
2
-
3
- /**
4
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5
- * and has a `typeof` result of "object".
6
- *
7
- * @static
8
- * @memberOf _
9
- * @since 4.0.0
10
- * @category Lang
11
- * @param {*} value The value to check.
12
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
13
- * @example
14
- *
15
- * _.isObjectLike({});
16
- * // => true
17
- *
18
- * _.isObjectLike([1, 2, 3]);
19
- * // => true
20
- *
21
- * _.isObjectLike(_.noop);
22
- * // => false
23
- *
24
- * _.isObjectLike(null);
25
- * // => false
26
- */
27
- function isObjectLike(value) {
28
- return value != null && typeof value == 'object';
29
- }
1
+ import { i as isFunction } from './eq-c1c7f528.js';
30
2
 
31
3
  /** Used as references for various `Number` constants. */
32
4
  var MAX_SAFE_INTEGER$1 = 9007199254740991;
@@ -115,4 +87,4 @@ function isArrayLike(value) {
115
87
  return value != null && isLength(value.length) && !isFunction(value);
116
88
  }
117
89
 
118
- export { isArrayLike as a, isLength as b, isIndex as c, isObjectLike as i };
90
+ export { isLength as a, isIndex as b, isArrayLike as i };
@@ -1,7 +1,9 @@
1
- import { r as root, b as baseGetTag, f as freeGlobal, e as eq, S as Symbol } from './eq-f40dd1d6.js';
2
- import { g as getNative, t as toSource } from './_defineProperty-cbf98a2a.js';
1
+ import { e as eq } from './eq-c1c7f528.js';
2
+ import { g as getNative, t as toSource } from './_defineProperty-8c869077.js';
3
+ import { r as root, b as baseGetTag, f as freeGlobal, S as Symbol } from './isObject-c74e273c.js';
3
4
  import { i as isArray } from './isArray-80298bc7.js';
4
- import { i as isObjectLike, b as isLength, c as isIndex, a as isArrayLike } from './isArrayLike-14db8f02.js';
5
+ import { i as isObjectLike } from './isObjectLike-38996507.js';
6
+ import { a as isLength, b as isIndex, i as isArrayLike } from './isArrayLike-dd37ba9a.js';
5
7
 
6
8
  /**
7
9
  * A specialized version of `_.map` for arrays without support for iteratee
@@ -127,73 +127,4 @@ function isObject(value) {
127
127
  return value != null && (type == 'object' || type == 'function');
128
128
  }
129
129
 
130
- /** `Object#toString` result references. */
131
- var asyncTag = '[object AsyncFunction]',
132
- funcTag = '[object Function]',
133
- genTag = '[object GeneratorFunction]',
134
- proxyTag = '[object Proxy]';
135
-
136
- /**
137
- * Checks if `value` is classified as a `Function` object.
138
- *
139
- * @static
140
- * @memberOf _
141
- * @since 0.1.0
142
- * @category Lang
143
- * @param {*} value The value to check.
144
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
145
- * @example
146
- *
147
- * _.isFunction(_);
148
- * // => true
149
- *
150
- * _.isFunction(/abc/);
151
- * // => false
152
- */
153
- function isFunction(value) {
154
- if (!isObject(value)) {
155
- return false;
156
- }
157
- // The use of `Object#toString` avoids issues with the `typeof` operator
158
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
159
- var tag = baseGetTag(value);
160
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
161
- }
162
-
163
- /**
164
- * Performs a
165
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
166
- * comparison between two values to determine if they are equivalent.
167
- *
168
- * @static
169
- * @memberOf _
170
- * @since 4.0.0
171
- * @category Lang
172
- * @param {*} value The value to compare.
173
- * @param {*} other The other value to compare.
174
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
175
- * @example
176
- *
177
- * var object = { 'a': 1 };
178
- * var other = { 'a': 1 };
179
- *
180
- * _.eq(object, object);
181
- * // => true
182
- *
183
- * _.eq(object, other);
184
- * // => false
185
- *
186
- * _.eq('a', 'a');
187
- * // => true
188
- *
189
- * _.eq('a', Object('a'));
190
- * // => false
191
- *
192
- * _.eq(NaN, NaN);
193
- * // => true
194
- */
195
- function eq(value, other) {
196
- return value === other || (value !== value && other !== other);
197
- }
198
-
199
- export { Symbol as S, isFunction as a, baseGetTag as b, eq as e, freeGlobal as f, isObject as i, root as r };
130
+ export { Symbol as S, baseGetTag as b, freeGlobal as f, isObject as i, root as r };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
3
+ * and has a `typeof` result of "object".
4
+ *
5
+ * @static
6
+ * @memberOf _
7
+ * @since 4.0.0
8
+ * @category Lang
9
+ * @param {*} value The value to check.
10
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
11
+ * @example
12
+ *
13
+ * _.isObjectLike({});
14
+ * // => true
15
+ *
16
+ * _.isObjectLike([1, 2, 3]);
17
+ * // => true
18
+ *
19
+ * _.isObjectLike(_.noop);
20
+ * // => false
21
+ *
22
+ * _.isObjectLike(null);
23
+ * // => false
24
+ */
25
+ function isObjectLike(value) {
26
+ return value != null && typeof value == 'object';
27
+ }
28
+
29
+ export { isObjectLike as i };
@@ -1,5 +1,5 @@
1
- import { b as baseGetTag } from './eq-f40dd1d6.js';
2
- import { i as isObjectLike } from './isArrayLike-14db8f02.js';
1
+ import { b as baseGetTag } from './isObject-c74e273c.js';
2
+ import { i as isObjectLike } from './isObjectLike-38996507.js';
3
3
 
4
4
  /** `Object#toString` result references. */
5
5
  var symbolTag = '[object Symbol]';
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["limel-picker",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-tab-panel",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-popover",[[1,"limel-popover",{"open":[4]}]]],["limel-progress-flow",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-banner",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-table",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"]}]]],["limel-checkbox",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"checked":[516],"required":[516],"modified":[32]}]]],["limel-circular-progress",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["limel-code-editor",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form",[[1,"limel-form",{"schema":[16],"value":[16],"propsFactory":[16]}]]],["limel-grid",[[1,"limel-grid"]]],["limel-linear-progress",[[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-slider",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-snackbar",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-switch",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-tab-bar",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-tooltip",[[1,"limel-tooltip",{"label":[513],"helperLabel":[513,"helper-label"],"elementId":[513,"element-id"],"open":[32]}]]],["limel-header",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-menu-list",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-popover-surface",[[1,"limel-popover-surface",{"contentCollection":[16]}]]],["limel-icon",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-flatpickr-adapter_2",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"isFocused":[32],"isModified":[32],"showCompletions":[32]}],[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1]}]]],["limel-chip-set",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"disabled":[516],"readonly":[516],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}]]],["limel-tooltip-content",[[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"]}]]],["limel-icon-button",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516],"relayout":[64]}]]],["limel-spinner",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-badge",[[1,"limel-badge",{"label":[514]}]]],["limel-portal",[[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-list_2",[[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}]]]], options);
16
+ return bootstrapLazy([["limel-color-picker",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["limel-picker",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-tab-panel",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-progress-flow",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-banner",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-table",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"]}]]],["limel-checkbox",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"checked":[516],"required":[516],"modified":[32]}]]],["limel-circular-progress",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["limel-code-editor",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16]}]]],["limel-grid",[[1,"limel-grid"]]],["limel-linear-progress",[[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-slider",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-snackbar",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-switch",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-tab-bar",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-header",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-flatpickr-adapter",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1]}]]],["limel-menu-list",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-popover-surface",[[1,"limel-popover-surface",{"contentCollection":[16]}]]],["limel-icon",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-input-field",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"isFocused":[32],"isModified":[32],"showCompletions":[32]}]]],["limel-color-picker-palette_2",[[1,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}],[1,"limel-popover",{"open":[4]}]]],["limel-badge",[[1,"limel-badge",{"label":[514]}]]],["limel-chip-set",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"disabled":[516],"readonly":[516],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}]]],["limel-icon-button",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516],"relayout":[64]}]]],["limel-spinner",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-list_3",[[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}],[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-tooltip_2",[[1,"limel-tooltip",{"label":[513],"helperLabel":[513,"helper-label"],"elementId":[513,"element-id"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"]}]]]], options);
17
17
  });