@limetech/lime-elements 35.0.0 → 35.0.1-next.3

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 (93) 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/{dateFormatter-34b77ead.js → dateFormatter-05d80b12.js} +1 -1
  6. package/dist/cjs/identity-6dc34885.js +44 -0
  7. package/dist/cjs/{isEqual-e3b9c27c.js → isEqual-d2a13a24.js} +13 -55
  8. package/dist/cjs/lime-elements.cjs.js +1 -1
  9. package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
  10. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +4 -3
  11. package/dist/cjs/limel-date-picker.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-dialog.cjs.entry.js +26 -9
  13. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +70 -66
  14. package/dist/cjs/limel-form.cjs.entry.js +20439 -20437
  15. package/dist/cjs/limel-header.cjs.entry.js +3 -3
  16. package/dist/cjs/limel-menu.cjs.entry.js +4 -3
  17. package/dist/cjs/limel-picker.cjs.entry.js +2 -1
  18. package/dist/cjs/limel-tab-bar.cjs.entry.js +6 -4
  19. package/dist/cjs/limel-table.cjs.entry.js +6 -4
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/{moment-5c6581b7.js → moment-5cfac5cd.js} +1 -1
  22. package/dist/cjs/{pickBy-88b0430a.js → pickBy-3ef47bf2.js} +6 -5
  23. package/dist/cjs/{zipObject-4050a45f.js → zipObject-93a471fa.js} +1 -1
  24. package/dist/collection/collection-manifest.json +1 -1
  25. package/dist/collection/components/dialog/dialog.js +29 -11
  26. package/dist/collection/components/header/header.css +21 -16
  27. package/dist/collection/components/header/header.js +4 -4
  28. package/dist/collection/components/picker/picker.js +2 -1
  29. package/dist/esm/{_arrayIncludesWith-b5d3fd9e.js → _arrayIncludesWith-969bccda.js} +4 -3
  30. package/dist/esm/{_assignValue-08fe10bc.js → _assignValue-fb2bf80a.js} +1 -1
  31. package/dist/esm/_defineProperty-2105cb48.js +11 -0
  32. package/dist/esm/{_defineProperty-8c869077.js → _getNative-93d6bfe9.js} +1 -9
  33. package/dist/esm/{dateFormatter-ed618478.js → dateFormatter-2cad0292.js} +1 -1
  34. package/dist/esm/identity-87aa3962.js +41 -0
  35. package/dist/esm/{isArrayLike-dd37ba9a.js → isArrayLike-385e0f31.js} +1 -1
  36. package/dist/esm/{isEqual-4f22635f.js → isEqual-c5a636a4.js} +3 -43
  37. package/dist/esm/lime-elements.js +1 -1
  38. package/dist/esm/limel-code-editor.entry.js +2 -2
  39. package/dist/esm/limel-color-picker-palette_2.entry.js +4 -3
  40. package/dist/esm/limel-date-picker.entry.js +2 -2
  41. package/dist/esm/limel-dialog.entry.js +26 -9
  42. package/dist/esm/limel-flatpickr-adapter.entry.js +71 -67
  43. package/dist/esm/limel-form.entry.js +20477 -20475
  44. package/dist/esm/limel-header.entry.js +3 -3
  45. package/dist/esm/limel-menu.entry.js +4 -3
  46. package/dist/esm/limel-picker.entry.js +2 -1
  47. package/dist/esm/limel-tab-bar.entry.js +6 -4
  48. package/dist/esm/limel-table.entry.js +7 -5
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/{moment-29c213b7.js → moment-367e51c5.js} +1 -1
  51. package/dist/esm/{pickBy-8a849e46.js → pickBy-d359eb12.js} +4 -3
  52. package/dist/esm/polyfills/css-shim.js +1 -1
  53. package/dist/esm/{zipObject-22e88ce9.js → zipObject-2bb1968e.js} +1 -1
  54. package/dist/lime-elements/lime-elements.esm.js +1 -1
  55. package/dist/lime-elements/p-1a9a961a.entry.js +11 -0
  56. package/dist/lime-elements/p-2754e134.entry.js +1 -0
  57. package/dist/lime-elements/{p-2ff40ce6.js → p-3af5f9ad.js} +1 -1
  58. package/dist/lime-elements/p-4c3358cb.js +1 -0
  59. package/dist/lime-elements/{p-eae8c615.entry.js → p-4d5a874a.entry.js} +1 -1
  60. package/dist/lime-elements/p-5fdb83c9.js +1 -0
  61. package/dist/lime-elements/p-669626e5.js +1 -0
  62. package/dist/lime-elements/p-6966b5df.entry.js +1 -0
  63. package/dist/lime-elements/p-7cda574b.js +1 -0
  64. package/dist/lime-elements/{p-80327bb8.entry.js → p-84f933f7.entry.js} +2 -2
  65. package/dist/lime-elements/{p-96f4b892.entry.js → p-8827628d.entry.js} +6 -6
  66. package/dist/lime-elements/{p-7f43b0c4.js → p-9acf7b5d.js} +1 -1
  67. package/dist/lime-elements/p-ad8cb388.js +1 -0
  68. package/dist/lime-elements/p-ade76f1d.js +1 -0
  69. package/dist/lime-elements/p-af0ec482.entry.js +16 -0
  70. package/dist/lime-elements/p-b0046fcd.entry.js +1 -0
  71. package/dist/lime-elements/{p-090bc949.js → p-b28128d2.js} +1 -1
  72. package/dist/lime-elements/p-b95e80c9.entry.js +1 -0
  73. package/dist/lime-elements/{p-72e03943.js → p-d76f896d.js} +1 -1
  74. package/dist/lime-elements/p-e80dd2ff.entry.js +1 -0
  75. package/dist/lime-elements/p-f9bfbeb3.entry.js +82 -0
  76. package/dist/lime-elements/p-fa607ed3.js +1 -0
  77. package/dist/types/components/dialog/dialog.d.ts +4 -5
  78. package/dist/types/components/dialog/dialog.types.d.ts +4 -0
  79. package/dist/types/components.d.ts +3 -3
  80. package/package.json +16 -16
  81. package/dist/lime-elements/p-04b5bc13.entry.js +0 -82
  82. package/dist/lime-elements/p-101af376.entry.js +0 -1
  83. package/dist/lime-elements/p-1a64b531.js +0 -1
  84. package/dist/lime-elements/p-358706b6.entry.js +0 -1
  85. package/dist/lime-elements/p-379955f4.js +0 -1
  86. package/dist/lime-elements/p-426d11b4.js +0 -1
  87. package/dist/lime-elements/p-440084ea.js +0 -1
  88. package/dist/lime-elements/p-5b7a8c61.entry.js +0 -20
  89. package/dist/lime-elements/p-716a6acd.entry.js +0 -16
  90. package/dist/lime-elements/p-87a1e1cb.entry.js +0 -1
  91. package/dist/lime-elements/p-c4b38454.entry.js +0 -1
  92. package/dist/lime-elements/p-da962c64.entry.js +0 -1
  93. 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;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
4
- const moment = require('./moment-5c6581b7.js');
4
+ const moment = require('./moment-5cfac5cd.js');
5
5
 
6
6
  _commonjsHelpers.createCommonjsModule(function (module, exports) {
7
7
  (function (global, factory) {
@@ -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;
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-2a28697b.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.15.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lime-elements.cjs.js', document.baseURI).href));
@@ -1329,7 +1329,7 @@ var codemirror = _commonjsHelpers.createCommonjsModule(function (module, exports
1329
1329
  // Add a span to a line.
1330
1330
  function addMarkedSpan(line, span, op) {
1331
1331
  var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet));
1332
- if (inThisOp && inThisOp.has(line.markedSpans)) {
1332
+ if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
1333
1333
  line.markedSpans.push(span);
1334
1334
  } else {
1335
1335
  line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
@@ -9847,7 +9847,7 @@ var codemirror = _commonjsHelpers.createCommonjsModule(function (module, exports
9847
9847
 
9848
9848
  addLegacyProps(CodeMirror);
9849
9849
 
9850
- CodeMirror.version = "5.65.2";
9850
+ CodeMirror.version = "5.65.3";
9851
9851
 
9852
9852
  return CodeMirror;
9853
9853
 
@@ -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
 
@@ -5,10 +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 device = require('./device-c5841113.js');
8
- const dateFormatter = require('./dateFormatter-34b77ead.js');
8
+ const dateFormatter = require('./dateFormatter-05d80b12.js');
9
9
  const component = require('./component-ae3bfacf.js');
10
10
  require('./_commonjsHelpers-0c557e26.js');
11
- require('./moment-5c6581b7.js');
11
+ require('./moment-5cfac5cd.js');
12
12
  require('./component-67144c1c.js');
13
13
  require('./component-cf490570.js');
14
14
  require('./ponyfill-98ca4766.js');
@@ -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;
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-2a28697b.js');
6
6
  const translations = require('./translations-5a8d7f6c.js');
7
7
  const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
8
- const dateFormatter = require('./dateFormatter-34b77ead.js');
9
- const moment = require('./moment-5c6581b7.js');
8
+ const dateFormatter = require('./dateFormatter-05d80b12.js');
9
+ const moment = require('./moment-5cfac5cd.js');
10
10
  const device = require('./device-c5841113.js');
11
11
  const eq = require('./eq-9a943b00.js');
12
12
  const isArrayLike$1 = require('./isArrayLike-ac53bdac.js');
@@ -777,7 +777,8 @@ function FlatpickrInstance(element, instanceConfig) {
777
777
  }
778
778
  function getClosestActiveElement() {
779
779
  var _a;
780
- return ((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode()).activeElement || document.activeElement;
780
+ return (((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode())
781
+ .activeElement || document.activeElement);
781
782
  }
782
783
  function bindToInstance(fn) {
783
784
  return fn.bind(self);
@@ -1102,7 +1103,7 @@ function FlatpickrInstance(element, instanceConfig) {
1102
1103
  ? self.config.appendTo
1103
1104
  : window.document.body).appendChild(self.calendarContainer);
1104
1105
  }
1105
- function createDay(className, date, dayNumber, i) {
1106
+ function createDay(className, date, _dayNumber, i) {
1106
1107
  var dateIsEnabled = isEnabled(date, true), dayElement = createElement$1("span", className, date.getDate().toString());
1107
1108
  dayElement.dateObj = date;
1108
1109
  dayElement.$i = i;
@@ -1138,7 +1139,7 @@ function FlatpickrInstance(element, instanceConfig) {
1138
1139
  if (self.weekNumbers &&
1139
1140
  self.config.showMonths === 1 &&
1140
1141
  className !== "prevMonthDay" &&
1141
- dayNumber % 7 === 1) {
1142
+ i % 7 === 6) {
1142
1143
  self.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + self.config.getWeek(date) + "</span>");
1143
1144
  }
1144
1145
  triggerEvent("onDayCreate", dayElement);
@@ -1702,8 +1703,9 @@ function FlatpickrInstance(element, instanceConfig) {
1702
1703
  }
1703
1704
  function onBlur(e) {
1704
1705
  var isInput = e.target === self._input;
1706
+ var valueChanged = self._input.value.trimEnd() !== getDateStr();
1705
1707
  if (isInput &&
1706
- (self.selectedDates.length > 0 || self._input.value.length > 0) &&
1708
+ valueChanged &&
1707
1709
  !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {
1708
1710
  self.setDate(self._input.value, true, e.target === self.altInput
1709
1711
  ? self.config.altFormat
@@ -2524,7 +2526,8 @@ function FlatpickrInstance(element, instanceConfig) {
2524
2526
  function isDateSelected(date) {
2525
2527
  for (var i = 0; i < self.selectedDates.length; i++) {
2526
2528
  var selectedDate = self.selectedDates[i];
2527
- if (selectedDate instanceof Date && compareDates(selectedDate, date) === 0)
2529
+ if (selectedDate instanceof Date &&
2530
+ compareDates(selectedDate, date) === 0)
2528
2531
  return "" + i;
2529
2532
  }
2530
2533
  return false;
@@ -2562,7 +2565,9 @@ function FlatpickrInstance(element, instanceConfig) {
2562
2565
  ? self.currentMonth + 1 > self.config.maxDate.getMonth()
2563
2566
  : self.currentYear > self.config.maxDate.getFullYear());
2564
2567
  }
2565
- function getDateStr(format) {
2568
+ function getDateStr(specificFormat) {
2569
+ var format = specificFormat ||
2570
+ (self.config.altInput ? self.config.altFormat : self.config.dateFormat);
2566
2571
  return self.selectedDates
2567
2572
  .map(function (dObj) { return self.formatDate(dObj, format); })
2568
2573
  .filter(function (d, i, arr) {
@@ -3211,7 +3216,15 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3211
3216
  };
3212
3217
  var Kurdish = {
3213
3218
  weekdays: {
3214
- shorthand: ["یەکشەممە", "دووشەممە", "سێشەممە", "چوارشەممە", "پێنجشەممە", "هەینی", "شەممە"],
3219
+ shorthand: [
3220
+ "یەکشەممە",
3221
+ "دووشەممە",
3222
+ "سێشەممە",
3223
+ "چوارشەممە",
3224
+ "پێنجشەممە",
3225
+ "هەینی",
3226
+ "شەممە",
3227
+ ],
3215
3228
  longhand: [
3216
3229
  "یەکشەممە",
3217
3230
  "دووشەممە",
@@ -4279,15 +4292,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4279
4292
  };
4280
4293
  var Armenian = {
4281
4294
  weekdays: {
4282
- shorthand: [
4283
- "Կիր",
4284
- "Երկ",
4285
- "Երք",
4286
- "Չրք",
4287
- "Հնգ",
4288
- "Ուրբ",
4289
- "Շբթ",
4290
- ],
4295
+ shorthand: ["Կիր", "Երկ", "Երք", "Չրք", "Հնգ", "Ուրբ", "Շբթ"],
4291
4296
  longhand: [
4292
4297
  "Կիրակի",
4293
4298
  "Եկուշաբթի",
@@ -5026,15 +5031,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5026
5031
  var Malaysian = {
5027
5032
  weekdays: {
5028
5033
  shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
5029
- longhand: [
5030
- "Ahad",
5031
- "Isnin",
5032
- "Selasa",
5033
- "Rabu",
5034
- "Khamis",
5035
- "Jumaat",
5036
- "Sabtu",
5037
- ],
5034
+ longhand: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
5038
5035
  },
5039
5036
  months: {
5040
5037
  shorthand: [
@@ -5190,62 +5187,62 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5190
5187
  };
5191
5188
  fp$E.l10ns.nl = Dutch;
5192
5189
 
5193
- var fp$F = typeof window !== 'undefined' && window.flatpickr !== undefined
5190
+ var fp$F = typeof window !== "undefined" && window.flatpickr !== undefined
5194
5191
  ? window.flatpickr
5195
5192
  : {
5196
5193
  l10ns: {},
5197
5194
  };
5198
5195
  var NorwegianNynorsk = {
5199
5196
  weekdays: {
5200
- shorthand: ['Sø.', 'Må.', 'Ty.', 'On.', 'To.', 'Fr.', 'La.'],
5197
+ shorthand: ["Sø.", "Må.", "Ty.", "On.", "To.", "Fr.", "La."],
5201
5198
  longhand: [
5202
- 'Søndag',
5203
- 'Måndag',
5204
- 'Tysdag',
5205
- 'Onsdag',
5206
- 'Torsdag',
5207
- 'Fredag',
5208
- 'Laurdag',
5199
+ "Søndag",
5200
+ "Måndag",
5201
+ "Tysdag",
5202
+ "Onsdag",
5203
+ "Torsdag",
5204
+ "Fredag",
5205
+ "Laurdag",
5209
5206
  ],
5210
5207
  },
5211
5208
  months: {
5212
5209
  shorthand: [
5213
- 'Jan',
5214
- 'Feb',
5215
- 'Mars',
5216
- 'Apr',
5217
- 'Mai',
5218
- 'Juni',
5219
- 'Juli',
5220
- 'Aug',
5221
- 'Sep',
5222
- 'Okt',
5223
- 'Nov',
5224
- 'Des',
5210
+ "Jan",
5211
+ "Feb",
5212
+ "Mars",
5213
+ "Apr",
5214
+ "Mai",
5215
+ "Juni",
5216
+ "Juli",
5217
+ "Aug",
5218
+ "Sep",
5219
+ "Okt",
5220
+ "Nov",
5221
+ "Des",
5225
5222
  ],
5226
5223
  longhand: [
5227
- 'Januar',
5228
- 'Februar',
5229
- 'Mars',
5230
- 'April',
5231
- 'Mai',
5232
- 'Juni',
5233
- 'Juli',
5234
- 'August',
5235
- 'September',
5236
- 'Oktober',
5237
- 'November',
5238
- 'Desember',
5224
+ "Januar",
5225
+ "Februar",
5226
+ "Mars",
5227
+ "April",
5228
+ "Mai",
5229
+ "Juni",
5230
+ "Juli",
5231
+ "August",
5232
+ "September",
5233
+ "Oktober",
5234
+ "November",
5235
+ "Desember",
5239
5236
  ],
5240
5237
  },
5241
5238
  firstDayOfWeek: 1,
5242
- rangeSeparator: ' til ',
5243
- weekAbbreviation: 'Veke',
5244
- scrollTitle: 'Scroll for å endre',
5245
- toggleTitle: 'Klikk for å veksle',
5239
+ rangeSeparator: " til ",
5240
+ weekAbbreviation: "Veke",
5241
+ scrollTitle: "Scroll for å endre",
5242
+ toggleTitle: "Klikk for å veksle",
5246
5243
  time_24hr: true,
5247
5244
  ordinal: function () {
5248
- return '.';
5245
+ return ".";
5249
5246
  },
5250
5247
  };
5251
5248
  fp$F.l10ns.nn = NorwegianNynorsk;
@@ -5807,6 +5804,13 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5807
5804
  "Dhjetor",
5808
5805
  ],
5809
5806
  },
5807
+ firstDayOfWeek: 1,
5808
+ rangeSeparator: " deri ",
5809
+ weekAbbreviation: "Java",
5810
+ yearAriaLabel: "Viti",
5811
+ monthAriaLabel: "Muaji",
5812
+ hourAriaLabel: "Ora",
5813
+ minuteAriaLabel: "Minuta",
5810
5814
  time_24hr: true,
5811
5815
  };
5812
5816
  fp$P.l10ns.sq = Albanian;
@@ -5916,7 +5920,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5916
5920
  "december",
5917
5921
  ],
5918
5922
  },
5919
- rangeSeparator: ' till ',
5923
+ rangeSeparator: " till ",
5920
5924
  time_24hr: true,
5921
5925
  ordinal: function () {
5922
5926
  return ".";