@limetech/lime-elements 35.0.0 → 35.0.1-next.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/dist/cjs/{_arrayIncludesWith-36a6fafb.js → _arrayIncludesWith-29083f83.js} +5 -4
  2. package/dist/cjs/{_assignValue-c9fc3712.js → _assignValue-7c18d8d6.js} +1 -1
  3. package/dist/cjs/_defineProperty-8f56146d.js +13 -0
  4. package/dist/cjs/{_defineProperty-8351e789.js → _getNative-60328036.js} +0 -9
  5. package/dist/cjs/identity-6dc34885.js +44 -0
  6. package/dist/cjs/{isEqual-e3b9c27c.js → isEqual-d2a13a24.js} +13 -55
  7. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +4 -3
  8. package/dist/cjs/limel-dialog.cjs.entry.js +26 -9
  9. package/dist/cjs/limel-form.cjs.entry.js +20438 -20436
  10. package/dist/cjs/limel-menu.cjs.entry.js +4 -3
  11. package/dist/cjs/limel-tab-bar.cjs.entry.js +6 -4
  12. package/dist/cjs/limel-table.cjs.entry.js +6 -4
  13. package/dist/cjs/{pickBy-88b0430a.js → pickBy-3ef47bf2.js} +6 -5
  14. package/dist/cjs/{zipObject-4050a45f.js → zipObject-93a471fa.js} +1 -1
  15. package/dist/collection/components/dialog/dialog.js +29 -11
  16. package/dist/esm/{_arrayIncludesWith-b5d3fd9e.js → _arrayIncludesWith-969bccda.js} +4 -3
  17. package/dist/esm/{_assignValue-08fe10bc.js → _assignValue-fb2bf80a.js} +1 -1
  18. package/dist/esm/_defineProperty-2105cb48.js +11 -0
  19. package/dist/esm/{_defineProperty-8c869077.js → _getNative-93d6bfe9.js} +1 -9
  20. package/dist/esm/identity-87aa3962.js +41 -0
  21. package/dist/esm/{isArrayLike-dd37ba9a.js → isArrayLike-385e0f31.js} +1 -1
  22. package/dist/esm/{isEqual-4f22635f.js → isEqual-c5a636a4.js} +3 -43
  23. package/dist/esm/limel-color-picker-palette_2.entry.js +4 -3
  24. package/dist/esm/limel-dialog.entry.js +26 -9
  25. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  26. package/dist/esm/limel-form.entry.js +20476 -20474
  27. package/dist/esm/limel-menu.entry.js +4 -3
  28. package/dist/esm/limel-tab-bar.entry.js +6 -4
  29. package/dist/esm/limel-table.entry.js +7 -5
  30. package/dist/esm/{pickBy-8a849e46.js → pickBy-d359eb12.js} +4 -3
  31. package/dist/esm/{zipObject-22e88ce9.js → zipObject-2bb1968e.js} +1 -1
  32. package/dist/lime-elements/lime-elements.esm.js +1 -1
  33. package/dist/lime-elements/p-2754e134.entry.js +1 -0
  34. package/dist/lime-elements/p-4c3358cb.js +1 -0
  35. package/dist/lime-elements/p-5fdb83c9.js +1 -0
  36. package/dist/lime-elements/p-669626e5.js +1 -0
  37. package/dist/lime-elements/p-7cda574b.js +1 -0
  38. package/dist/lime-elements/{p-96f4b892.entry.js → p-8827628d.entry.js} +6 -6
  39. package/dist/lime-elements/{p-7f43b0c4.js → p-9acf7b5d.js} +1 -1
  40. package/dist/lime-elements/p-ad8cb388.js +1 -0
  41. package/dist/lime-elements/p-ade76f1d.js +1 -0
  42. package/dist/lime-elements/{p-090bc949.js → p-b28128d2.js} +1 -1
  43. package/dist/lime-elements/p-b422045e.entry.js +11 -0
  44. package/dist/lime-elements/p-b95e80c9.entry.js +1 -0
  45. package/dist/lime-elements/p-e80dd2ff.entry.js +1 -0
  46. package/dist/lime-elements/p-f9bfbeb3.entry.js +82 -0
  47. package/dist/lime-elements/p-fa607ed3.js +1 -0
  48. package/dist/lime-elements/{p-716a6acd.entry.js → p-fbc5d7e8.entry.js} +1 -1
  49. package/dist/types/components/dialog/dialog.d.ts +4 -5
  50. package/dist/types/components/dialog/dialog.types.d.ts +4 -0
  51. package/dist/types/components.d.ts +3 -3
  52. package/package.json +1 -1
  53. package/dist/lime-elements/p-04b5bc13.entry.js +0 -82
  54. package/dist/lime-elements/p-1a64b531.js +0 -1
  55. package/dist/lime-elements/p-358706b6.entry.js +0 -1
  56. package/dist/lime-elements/p-379955f4.js +0 -1
  57. package/dist/lime-elements/p-426d11b4.js +0 -1
  58. package/dist/lime-elements/p-440084ea.js +0 -1
  59. package/dist/lime-elements/p-5b7a8c61.entry.js +0 -20
  60. package/dist/lime-elements/p-87a1e1cb.entry.js +0 -1
  61. package/dist/lime-elements/p-c4b38454.entry.js +0 -1
  62. package/dist/lime-elements/p-f83213b8.js +0 -1
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const isEqual = require('./isEqual-e3b9c27c.js');
4
- const _defineProperty = require('./_defineProperty-8351e789.js');
3
+ const identity = require('./identity-6dc34885.js');
4
+ const _defineProperty = require('./_defineProperty-8f56146d.js');
5
+ const isEqual = require('./isEqual-d2a13a24.js');
5
6
  const isObject = require('./isObject-e28b7997.js');
6
7
  const isArray = require('./isArray-d188a04f.js');
7
8
  const isArrayLike = require('./isArrayLike-ac53bdac.js');
@@ -96,7 +97,7 @@ function constant(value) {
96
97
  * @param {Function} string The `toString` result.
97
98
  * @returns {Function} Returns `func`.
98
99
  */
99
- var baseSetToString = !_defineProperty.defineProperty ? isEqual.identity : function(func, string) {
100
+ var baseSetToString = !_defineProperty.defineProperty ? identity.identity : function(func, string) {
100
101
  return _defineProperty.defineProperty(func, 'toString', {
101
102
  'configurable': true,
102
103
  'enumerable': false,
@@ -242,7 +243,7 @@ function overRest(func, start, transform) {
242
243
  * @returns {Function} Returns the new function.
243
244
  */
244
245
  function baseRest(func, start) {
245
- return setToString(overRest(func, start, isEqual.identity), func + '');
246
+ return setToString(overRest(func, start, identity.identity), func + '');
246
247
  }
247
248
 
248
249
  /** Built-in value references. */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const _defineProperty = require('./_defineProperty-8351e789.js');
3
+ const _defineProperty = require('./_defineProperty-8f56146d.js');
4
4
  const eq = require('./eq-9a943b00.js');
5
5
 
6
6
  /**
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const _getNative = require('./_getNative-60328036.js');
4
+
5
+ var defineProperty = (function() {
6
+ try {
7
+ var func = _getNative.getNative(Object, 'defineProperty');
8
+ func({}, '', {});
9
+ return func;
10
+ } catch (e) {}
11
+ }());
12
+
13
+ exports.defineProperty = defineProperty;
@@ -114,14 +114,5 @@ function getNative(object, key) {
114
114
  return baseIsNative(value) ? value : undefined;
115
115
  }
116
116
 
117
- var defineProperty = (function() {
118
- try {
119
- var func = getNative(Object, 'defineProperty');
120
- func({}, '', {});
121
- return func;
122
- } catch (e) {}
123
- }());
124
-
125
- exports.defineProperty = defineProperty;
126
117
  exports.getNative = getNative;
127
118
  exports.toSource = toSource;
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * A specialized version of `_.map` for arrays without support for iteratee
5
+ * shorthands.
6
+ *
7
+ * @private
8
+ * @param {Array} [array] The array to iterate over.
9
+ * @param {Function} iteratee The function invoked per iteration.
10
+ * @returns {Array} Returns the new mapped array.
11
+ */
12
+ function arrayMap(array, iteratee) {
13
+ var index = -1,
14
+ length = array == null ? 0 : array.length,
15
+ result = Array(length);
16
+
17
+ while (++index < length) {
18
+ result[index] = iteratee(array[index], index, array);
19
+ }
20
+ return result;
21
+ }
22
+
23
+ /**
24
+ * This method returns the first argument it receives.
25
+ *
26
+ * @static
27
+ * @since 0.1.0
28
+ * @memberOf _
29
+ * @category Util
30
+ * @param {*} value Any value.
31
+ * @returns {*} Returns `value`.
32
+ * @example
33
+ *
34
+ * var object = { 'a': 1 };
35
+ *
36
+ * console.log(_.identity(object) === object);
37
+ * // => true
38
+ */
39
+ function identity(value) {
40
+ return value;
41
+ }
42
+
43
+ exports.arrayMap = arrayMap;
44
+ exports.identity = identity;
@@ -1,54 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  const eq = require('./eq-9a943b00.js');
4
- const _defineProperty = require('./_defineProperty-8351e789.js');
4
+ const _getNative = require('./_getNative-60328036.js');
5
5
  const isObject = require('./isObject-e28b7997.js');
6
6
  const isArray = require('./isArray-d188a04f.js');
7
7
  const isObjectLike = require('./isObjectLike-3e3f0cba.js');
8
8
  const isArrayLike = require('./isArrayLike-ac53bdac.js');
9
9
 
10
- /**
11
- * A specialized version of `_.map` for arrays without support for iteratee
12
- * shorthands.
13
- *
14
- * @private
15
- * @param {Array} [array] The array to iterate over.
16
- * @param {Function} iteratee The function invoked per iteration.
17
- * @returns {Array} Returns the new mapped array.
18
- */
19
- function arrayMap(array, iteratee) {
20
- var index = -1,
21
- length = array == null ? 0 : array.length,
22
- result = Array(length);
23
-
24
- while (++index < length) {
25
- result[index] = iteratee(array[index], index, array);
26
- }
27
- return result;
28
- }
29
-
30
- /**
31
- * This method returns the first argument it receives.
32
- *
33
- * @static
34
- * @since 0.1.0
35
- * @memberOf _
36
- * @category Util
37
- * @param {*} value Any value.
38
- * @returns {*} Returns `value`.
39
- * @example
40
- *
41
- * var object = { 'a': 1 };
42
- *
43
- * console.log(_.identity(object) === object);
44
- * // => true
45
- */
46
- function identity(value) {
47
- return value;
48
- }
49
-
50
10
  /* Built-in method references that are verified to be native. */
51
- var WeakMap = _defineProperty.getNative(isObject.root, 'WeakMap');
11
+ var WeakMap = _getNative.getNative(isObject.root, 'WeakMap');
52
12
 
53
13
  /** Used for built-in method references. */
54
14
  var objectProto$8 = Object.prototype;
@@ -417,7 +377,7 @@ function keys(object) {
417
377
  }
418
378
 
419
379
  /* Built-in method references that are verified to be native. */
420
- var nativeCreate = _defineProperty.getNative(Object, 'create');
380
+ var nativeCreate = _getNative.getNative(Object, 'create');
421
381
 
422
382
  /**
423
383
  * Removes all key-value entries from the hash.
@@ -679,7 +639,7 @@ ListCache.prototype.has = listCacheHas;
679
639
  ListCache.prototype.set = listCacheSet;
680
640
 
681
641
  /* Built-in method references that are verified to be native. */
682
- var Map = _defineProperty.getNative(isObject.root, 'Map');
642
+ var Map = _getNative.getNative(isObject.root, 'Map');
683
643
 
684
644
  /**
685
645
  * Removes all key-value entries from the map.
@@ -1033,13 +993,13 @@ function getAllKeys(object) {
1033
993
  }
1034
994
 
1035
995
  /* Built-in method references that are verified to be native. */
1036
- var DataView = _defineProperty.getNative(isObject.root, 'DataView');
996
+ var DataView = _getNative.getNative(isObject.root, 'DataView');
1037
997
 
1038
998
  /* Built-in method references that are verified to be native. */
1039
- var Promise$1 = _defineProperty.getNative(isObject.root, 'Promise');
999
+ var Promise$1 = _getNative.getNative(isObject.root, 'Promise');
1040
1000
 
1041
1001
  /* Built-in method references that are verified to be native. */
1042
- var Set = _defineProperty.getNative(isObject.root, 'Set');
1002
+ var Set = _getNative.getNative(isObject.root, 'Set');
1043
1003
 
1044
1004
  /** `Object#toString` result references. */
1045
1005
  var mapTag$1 = '[object Map]',
@@ -1051,11 +1011,11 @@ var mapTag$1 = '[object Map]',
1051
1011
  var dataViewTag$1 = '[object DataView]';
1052
1012
 
1053
1013
  /** Used to detect maps, sets, and weakmaps. */
1054
- var dataViewCtorString = _defineProperty.toSource(DataView),
1055
- mapCtorString = _defineProperty.toSource(Map),
1056
- promiseCtorString = _defineProperty.toSource(Promise$1),
1057
- setCtorString = _defineProperty.toSource(Set),
1058
- weakMapCtorString = _defineProperty.toSource(WeakMap);
1014
+ var dataViewCtorString = _getNative.toSource(DataView),
1015
+ mapCtorString = _getNative.toSource(Map),
1016
+ promiseCtorString = _getNative.toSource(Promise$1),
1017
+ setCtorString = _getNative.toSource(Set),
1018
+ weakMapCtorString = _getNative.toSource(WeakMap);
1059
1019
 
1060
1020
  /**
1061
1021
  * Gets the `toStringTag` of `value`.
@@ -1075,7 +1035,7 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1) ||
1075
1035
  getTag = function(value) {
1076
1036
  var result = isObject.baseGetTag(value),
1077
1037
  Ctor = result == objectTag$1 ? value.constructor : undefined,
1078
- ctorString = Ctor ? _defineProperty.toSource(Ctor) : '';
1038
+ ctorString = Ctor ? _getNative.toSource(Ctor) : '';
1079
1039
 
1080
1040
  if (ctorString) {
1081
1041
  switch (ctorString) {
@@ -1620,7 +1580,6 @@ exports.Set = Set;
1620
1580
  exports.SetCache = SetCache;
1621
1581
  exports.Stack = Stack;
1622
1582
  exports.arrayLikeKeys = arrayLikeKeys;
1623
- exports.arrayMap = arrayMap;
1624
1583
  exports.arrayPush = arrayPush;
1625
1584
  exports.baseGetAllKeys = baseGetAllKeys;
1626
1585
  exports.baseIsEqual = baseIsEqual;
@@ -1629,7 +1588,6 @@ exports.baseUnary = baseUnary;
1629
1588
  exports.cacheHas = cacheHas;
1630
1589
  exports.getSymbols = getSymbols;
1631
1590
  exports.getTag = getTag$1;
1632
- exports.identity = identity;
1633
1591
  exports.isArguments = isArguments;
1634
1592
  exports.isBuffer = isBuffer;
1635
1593
  exports.isEqual = isEqual;
@@ -5,9 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-2a28697b.js');
6
6
  const randomString = require('./random-string-4c3b7f1c.js');
7
7
  const keycodes = require('./keycodes-3949f425.js');
8
- const zipObject = require('./zipObject-4050a45f.js');
9
- require('./_assignValue-c9fc3712.js');
10
- require('./_defineProperty-8351e789.js');
8
+ const zipObject = require('./zipObject-93a471fa.js');
9
+ require('./_assignValue-7c18d8d6.js');
10
+ require('./_defineProperty-8f56146d.js');
11
+ require('./_getNative-60328036.js');
11
12
  require('./eq-9a943b00.js');
12
13
  require('./isObject-e28b7997.js');
13
14
 
@@ -9,6 +9,13 @@ const component = require('./component-67144c1c.js');
9
9
  const ponyfill = require('./ponyfill-98ca4766.js');
10
10
  const component$1 = require('./component-cf490570.js');
11
11
  const animationframe = require('./animationframe-e4c1798e.js');
12
+ const isEqual = require('./isEqual-d2a13a24.js');
13
+ require('./eq-9a943b00.js');
14
+ require('./isObject-e28b7997.js');
15
+ require('./_getNative-60328036.js');
16
+ require('./isArray-d188a04f.js');
17
+ require('./isObjectLike-3e3f0cba.js');
18
+ require('./isArrayLike-ac53bdac.js');
12
19
 
13
20
  /**
14
21
  * @license
@@ -972,14 +979,7 @@ const Dialog = class {
972
979
  this.mdcDialog.listen('MDCDialog:opened', this.handleMdcOpened);
973
980
  this.mdcDialog.listen('MDCDialog:closed', this.handleMdcClosed);
974
981
  this.mdcDialog.listen('MDCDialog:closing', this.handleMdcClosing);
975
- this.mdcDialog.scrimClickAction = '';
976
- if (this.closingActions.scrimClick) {
977
- this.mdcDialog.scrimClickAction = 'close';
978
- }
979
- this.mdcDialog.escapeKeyAction = '';
980
- if (this.closingActions.escapeKey) {
981
- this.mdcDialog.escapeKeyAction = 'close';
982
- }
982
+ this.setClosingActions();
983
983
  }
984
984
  disconnectedCallback() {
985
985
  this.mdcDialog.unlisten('MDCDialog:opened', this.handleMdcOpened);
@@ -1007,6 +1007,12 @@ const Dialog = class {
1007
1007
  this.mdcDialog.close();
1008
1008
  }
1009
1009
  }
1010
+ closingActionsChanged(newValue, oldValue) {
1011
+ if (isEqual.isEqual(newValue, oldValue)) {
1012
+ return;
1013
+ }
1014
+ this.setClosingActions();
1015
+ }
1010
1016
  handleMdcOpened() {
1011
1017
  // When the opening-animation has completed, dispatch a
1012
1018
  // resize-event so that any content that depends on
@@ -1042,9 +1048,20 @@ const Dialog = class {
1042
1048
  return (index.h("footer", { class: "mdc-dialog__actions" }, index.h("slot", { name: "button" })));
1043
1049
  }
1044
1050
  }
1051
+ setClosingActions() {
1052
+ this.mdcDialog.scrimClickAction = '';
1053
+ if (this.closingActions.scrimClick) {
1054
+ this.mdcDialog.scrimClickAction = 'close';
1055
+ }
1056
+ this.mdcDialog.escapeKeyAction = '';
1057
+ if (this.closingActions.escapeKey) {
1058
+ this.mdcDialog.escapeKeyAction = 'close';
1059
+ }
1060
+ }
1045
1061
  get host() { return index.getElement(this); }
1046
1062
  static get watchers() { return {
1047
- "open": ["watchHandler"]
1063
+ "open": ["watchHandler"],
1064
+ "closingActions": ["closingActionsChanged"]
1048
1065
  }; }
1049
1066
  };
1050
1067
  Dialog.style = dialogCss;