q2-tecton-elements 1.21.2 → 1.22.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 (152) hide show
  1. package/dist/cjs/installCanvasRenderer-b4d10c92.js +38433 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/q2-badge_2.cjs.entry.js +5 -3
  4. package/dist/cjs/q2-calendar.cjs.entry.js +75 -55
  5. package/dist/cjs/q2-carousel.cjs.entry.js +3 -3
  6. package/dist/cjs/q2-chart-bar.cjs.entry.js +4679 -0
  7. package/dist/cjs/q2-chart-donut.cjs.entry.js +357 -35592
  8. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  10. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  12. package/dist/collection/collection-manifest.json +1 -0
  13. package/dist/collection/components/q2-calendar/index.js +43 -2
  14. package/dist/collection/components/q2-chart-bar/index.js +466 -0
  15. package/dist/collection/components/q2-chart-bar/styles.css +85 -0
  16. package/dist/collection/components/q2-chart-donut/index.js +3 -3
  17. package/dist/collection/components/q2-checkbox/styles.css +5 -1
  18. package/dist/collection/components/q2-editable-field/styles.css +1 -1
  19. package/dist/collection/components/q2-input/formatting/phone.js +2 -2
  20. package/dist/collection/components/q2-input/index.js +21 -0
  21. package/dist/collection/components/q2-input/styles.css +2 -2
  22. package/dist/collection/components/q2-radio/styles.css +1 -1
  23. package/dist/collection/utils/charting.js +182 -0
  24. package/dist/components/click-elsewhere.d.ts +11 -0
  25. package/dist/components/click-elsewhere.js +6 -0
  26. package/dist/components/index.d.ts +62 -0
  27. package/dist/components/index.js +42 -0
  28. package/dist/components/index10.js +84 -0
  29. package/dist/components/index11.js +383 -0
  30. package/dist/components/index12.js +125 -0
  31. package/dist/components/index13.js +602 -0
  32. package/dist/components/index2.js +100 -0
  33. package/dist/components/index3.js +90 -0
  34. package/dist/components/index4.js +62 -0
  35. package/dist/components/index5.js +146 -0
  36. package/dist/components/index6.js +145 -0
  37. package/dist/components/index7.js +2960 -0
  38. package/dist/components/index8.js +3356 -0
  39. package/dist/components/index9.js +101 -0
  40. package/dist/components/installCanvasRenderer.js +38282 -0
  41. package/dist/components/q2-avatar.d.ts +11 -0
  42. package/dist/components/q2-avatar.js +6 -0
  43. package/dist/components/q2-badge.d.ts +11 -0
  44. package/dist/components/q2-badge.js +6 -0
  45. package/dist/components/q2-btn.d.ts +11 -0
  46. package/dist/components/q2-btn.js +6 -0
  47. package/dist/components/q2-calendar.d.ts +11 -0
  48. package/dist/components/q2-calendar.js +3755 -0
  49. package/dist/components/q2-card.d.ts +11 -0
  50. package/dist/components/q2-card.js +187 -0
  51. package/dist/components/q2-carousel-pane.d.ts +11 -0
  52. package/dist/components/q2-carousel-pane.js +97 -0
  53. package/dist/components/q2-carousel.d.ts +11 -0
  54. package/dist/components/q2-carousel.js +5379 -0
  55. package/dist/components/q2-chart-bar.d.ts +11 -0
  56. package/dist/components/q2-chart-bar.js +4710 -0
  57. package/dist/components/q2-chart-donut.d.ts +11 -0
  58. package/dist/components/q2-chart-donut.js +4887 -0
  59. package/dist/components/q2-checkbox-group.d.ts +11 -0
  60. package/dist/components/q2-checkbox-group.js +114 -0
  61. package/dist/components/q2-checkbox.d.ts +11 -0
  62. package/dist/components/q2-checkbox.js +138 -0
  63. package/dist/components/q2-dropdown-item.d.ts +11 -0
  64. package/dist/components/q2-dropdown-item.js +6 -0
  65. package/dist/components/q2-dropdown.d.ts +11 -0
  66. package/dist/components/q2-dropdown.js +345 -0
  67. package/dist/components/q2-editable-field.d.ts +11 -0
  68. package/dist/components/q2-editable-field.js +220 -0
  69. package/dist/components/q2-icon.d.ts +11 -0
  70. package/dist/components/q2-icon.js +6 -0
  71. package/dist/components/q2-input.d.ts +11 -0
  72. package/dist/components/q2-input.js +6 -0
  73. package/dist/components/q2-loading-element.d.ts +11 -0
  74. package/dist/components/q2-loading-element.js +52 -0
  75. package/dist/components/q2-loading.d.ts +11 -0
  76. package/dist/components/q2-loading.js +6 -0
  77. package/dist/components/q2-loc.d.ts +11 -0
  78. package/dist/components/q2-loc.js +40 -0
  79. package/dist/components/q2-message.d.ts +11 -0
  80. package/dist/components/q2-message.js +6 -0
  81. package/dist/components/q2-month-picker.d.ts +11 -0
  82. package/dist/components/q2-month-picker.js +189 -0
  83. package/dist/components/q2-optgroup.d.ts +11 -0
  84. package/dist/components/q2-optgroup.js +75 -0
  85. package/dist/components/q2-option-list.d.ts +11 -0
  86. package/dist/components/q2-option-list.js +6 -0
  87. package/dist/components/q2-option.d.ts +11 -0
  88. package/dist/components/q2-option.js +81 -0
  89. package/dist/components/q2-pagination.d.ts +11 -0
  90. package/dist/components/q2-pagination.js +184 -0
  91. package/dist/components/q2-pill.d.ts +11 -0
  92. package/dist/components/q2-pill.js +216 -0
  93. package/dist/components/q2-popover.d.ts +11 -0
  94. package/dist/components/q2-popover.js +6 -0
  95. package/dist/components/q2-radio-group.d.ts +11 -0
  96. package/dist/components/q2-radio-group.js +191 -0
  97. package/dist/components/q2-radio.d.ts +11 -0
  98. package/dist/components/q2-radio.js +105 -0
  99. package/dist/components/q2-section.d.ts +11 -0
  100. package/dist/components/q2-section.js +218 -0
  101. package/dist/components/q2-select.d.ts +11 -0
  102. package/dist/components/q2-select.js +817 -0
  103. package/dist/components/q2-stepper-pane.d.ts +11 -0
  104. package/dist/components/q2-stepper-pane.js +92 -0
  105. package/dist/components/q2-stepper-vertical.d.ts +11 -0
  106. package/dist/components/q2-stepper-vertical.js +311 -0
  107. package/dist/components/q2-stepper.d.ts +11 -0
  108. package/dist/components/q2-stepper.js +252 -0
  109. package/dist/components/q2-tab-container.d.ts +11 -0
  110. package/dist/components/q2-tab-container.js +288 -0
  111. package/dist/components/q2-tab-pane.d.ts +11 -0
  112. package/dist/components/q2-tab-pane.js +58 -0
  113. package/dist/components/q2-tag.d.ts +11 -0
  114. package/dist/components/q2-tag.js +156 -0
  115. package/dist/components/q2-textarea.d.ts +11 -0
  116. package/dist/components/q2-textarea.js +265 -0
  117. package/dist/components/q2-tooltip.d.ts +11 -0
  118. package/dist/components/q2-tooltip.js +112 -0
  119. package/dist/components/shapes.js +91 -0
  120. package/dist/components/tecton-tab-pane.d.ts +11 -0
  121. package/dist/components/tecton-tab-pane.js +111 -0
  122. package/dist/esm/installCanvasRenderer-0143b52d.js +38282 -0
  123. package/dist/esm/loader.js +1 -1
  124. package/dist/esm/q2-badge_2.entry.js +5 -3
  125. package/dist/esm/q2-calendar.entry.js +75 -55
  126. package/dist/esm/q2-carousel.entry.js +3 -3
  127. package/dist/esm/q2-chart-bar.entry.js +4675 -0
  128. package/dist/esm/q2-chart-donut.entry.js +171 -35406
  129. package/dist/esm/q2-checkbox.entry.js +1 -1
  130. package/dist/esm/q2-editable-field.entry.js +1 -1
  131. package/dist/esm/q2-radio.entry.js +1 -1
  132. package/dist/esm/q2-tecton-elements.js +1 -1
  133. package/dist/q2-tecton-elements/p-1f85cced.js +39 -0
  134. package/dist/q2-tecton-elements/{p-89608314.entry.js → p-4625184b.entry.js} +1 -1
  135. package/dist/q2-tecton-elements/{p-9772b15f.entry.js → p-520c40f6.entry.js} +1 -1
  136. package/dist/q2-tecton-elements/p-6b52a262.entry.js +1 -0
  137. package/dist/q2-tecton-elements/p-c4640b55.entry.js +1 -0
  138. package/dist/q2-tecton-elements/{p-7e8f43d1.entry.js → p-cf41970f.entry.js} +1 -1
  139. package/dist/q2-tecton-elements/p-e4dc9ac0.entry.js +1 -0
  140. package/dist/q2-tecton-elements/p-f35bf6a3.entry.js +1 -0
  141. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  142. package/dist/types/components/q2-calendar/index.d.ts +3 -0
  143. package/dist/types/components/q2-chart-bar/index.d.ts +40 -0
  144. package/dist/types/components/q2-chart-donut/index.d.ts +7 -10
  145. package/dist/types/components/q2-input/index.d.ts +1 -0
  146. package/dist/types/components.d.ts +50 -3
  147. package/dist/types/utils/charting.d.ts +14 -0
  148. package/package.json +6 -3
  149. package/dist/q2-tecton-elements/p-0766a694.entry.js +0 -1
  150. package/dist/q2-tecton-elements/p-5f064e1e.entry.js +0 -39
  151. package/dist/q2-tecton-elements/p-8d25ec52.entry.js +0 -1
  152. /package/dist/types/workspace/workspace/{tecton-production_release_1.21.x → tecton-production_release_1.22.x}/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +0 -0
@@ -21,6 +21,7 @@ function requiredArgs(required, args) {
21
21
  }
22
22
  }
23
23
 
24
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
24
25
  /**
25
26
  * @name toDate
26
27
  * @category Common Helpers
@@ -56,7 +57,7 @@ function toDate(argument) {
56
57
  requiredArgs(1, arguments);
57
58
  var argStr = Object.prototype.toString.call(argument); // Clone the date
58
59
 
59
- if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
60
+ if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
60
61
  // Prevent the date to lose the milliseconds when passed to new Date() in IE10
61
62
  return new Date(argument.getTime());
62
63
  } else if (typeof argument === 'number' || argStr === '[object Number]') {
@@ -220,6 +221,7 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
220
221
  return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
221
222
  }
222
223
 
224
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
223
225
  /**
224
226
  * @name isDate
225
227
  * @category Common Helpers
@@ -255,7 +257,7 @@ function isSameDay(dirtyDateLeft, dirtyDateRight) {
255
257
 
256
258
  function isDate(value) {
257
259
  requiredArgs(1, arguments);
258
- return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
260
+ return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
259
261
  }
260
262
 
261
263
  /**
@@ -493,7 +495,7 @@ function addLeadingZeros(number, targetLength) {
493
495
 
494
496
  var formatters$1 = {
495
497
  // Year
496
- y: function (date, token) {
498
+ y: function y(date, token) {
497
499
  // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
498
500
  // | Year | y | yy | yyy | yyyy | yyyyy |
499
501
  // |----------|-------|----|-------|-------|-------|
@@ -508,16 +510,16 @@ var formatters$1 = {
508
510
  return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
509
511
  },
510
512
  // Month
511
- M: function (date, token) {
513
+ M: function M(date, token) {
512
514
  var month = date.getUTCMonth();
513
515
  return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
514
516
  },
515
517
  // Day of the month
516
- d: function (date, token) {
518
+ d: function d(date, token) {
517
519
  return addLeadingZeros(date.getUTCDate(), token.length);
518
520
  },
519
521
  // AM or PM
520
- a: function (date, token) {
522
+ a: function a(date, token) {
521
523
  var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
522
524
 
523
525
  switch (token) {
@@ -537,23 +539,23 @@ var formatters$1 = {
537
539
  }
538
540
  },
539
541
  // Hour [1-12]
540
- h: function (date, token) {
542
+ h: function h(date, token) {
541
543
  return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
542
544
  },
543
545
  // Hour [0-23]
544
- H: function (date, token) {
546
+ H: function H(date, token) {
545
547
  return addLeadingZeros(date.getUTCHours(), token.length);
546
548
  },
547
549
  // Minute
548
- m: function (date, token) {
550
+ m: function m(date, token) {
549
551
  return addLeadingZeros(date.getUTCMinutes(), token.length);
550
552
  },
551
553
  // Second
552
- s: function (date, token) {
554
+ s: function s(date, token) {
553
555
  return addLeadingZeros(date.getUTCSeconds(), token.length);
554
556
  },
555
557
  // Fraction of second
556
- S: function (date, token) {
558
+ S: function S(date, token) {
557
559
  var numberOfDigits = token.length;
558
560
  var milliseconds = date.getUTCMilliseconds();
559
561
  var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
@@ -619,7 +621,7 @@ var dayPeriodEnum = {
619
621
  */
620
622
  var formatters = {
621
623
  // Era
622
- G: function (date, token, localize) {
624
+ G: function G(date, token, localize) {
623
625
  var era = date.getUTCFullYear() > 0 ? 1 : 0;
624
626
 
625
627
  switch (token) {
@@ -646,7 +648,7 @@ var formatters = {
646
648
  }
647
649
  },
648
650
  // Year
649
- y: function (date, token, localize) {
651
+ y: function y(date, token, localize) {
650
652
  // Ordinal number
651
653
  if (token === 'yo') {
652
654
  var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
@@ -660,7 +662,7 @@ var formatters = {
660
662
  return formatters$1.y(date, token);
661
663
  },
662
664
  // Local week-numbering year
663
- Y: function (date, token, localize, options) {
665
+ Y: function Y(date, token, localize, options) {
664
666
  var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
665
667
 
666
668
  var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
@@ -681,7 +683,7 @@ var formatters = {
681
683
  return addLeadingZeros(weekYear, token.length);
682
684
  },
683
685
  // ISO week-numbering year
684
- R: function (date, token) {
686
+ R: function R(date, token) {
685
687
  var isoWeekYear = getUTCISOWeekYear(date); // Padding
686
688
 
687
689
  return addLeadingZeros(isoWeekYear, token.length);
@@ -695,12 +697,12 @@ var formatters = {
695
697
  // | BC 2 | 2 | -1 |
696
698
  // Also `yy` always returns the last two digits of a year,
697
699
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
698
- u: function (date, token) {
700
+ u: function u(date, token) {
699
701
  var year = date.getUTCFullYear();
700
702
  return addLeadingZeros(year, token.length);
701
703
  },
702
704
  // Quarter
703
- Q: function (date, token, localize) {
705
+ Q: function Q(date, token, localize) {
704
706
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
705
707
 
706
708
  switch (token) {
@@ -742,7 +744,7 @@ var formatters = {
742
744
  }
743
745
  },
744
746
  // Stand-alone quarter
745
- q: function (date, token, localize) {
747
+ q: function q(date, token, localize) {
746
748
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
747
749
 
748
750
  switch (token) {
@@ -784,7 +786,7 @@ var formatters = {
784
786
  }
785
787
  },
786
788
  // Month
787
- M: function (date, token, localize) {
789
+ M: function M(date, token, localize) {
788
790
  var month = date.getUTCMonth();
789
791
 
790
792
  switch (token) {
@@ -822,7 +824,7 @@ var formatters = {
822
824
  }
823
825
  },
824
826
  // Stand-alone month
825
- L: function (date, token, localize) {
827
+ L: function L(date, token, localize) {
826
828
  var month = date.getUTCMonth();
827
829
 
828
830
  switch (token) {
@@ -864,7 +866,7 @@ var formatters = {
864
866
  }
865
867
  },
866
868
  // Local week of year
867
- w: function (date, token, localize, options) {
869
+ w: function w(date, token, localize, options) {
868
870
  var week = getUTCWeek(date, options);
869
871
 
870
872
  if (token === 'wo') {
@@ -876,7 +878,7 @@ var formatters = {
876
878
  return addLeadingZeros(week, token.length);
877
879
  },
878
880
  // ISO week of year
879
- I: function (date, token, localize) {
881
+ I: function I(date, token, localize) {
880
882
  var isoWeek = getUTCISOWeek(date);
881
883
 
882
884
  if (token === 'Io') {
@@ -888,7 +890,7 @@ var formatters = {
888
890
  return addLeadingZeros(isoWeek, token.length);
889
891
  },
890
892
  // Day of the month
891
- d: function (date, token, localize) {
893
+ d: function d(date, token, localize) {
892
894
  if (token === 'do') {
893
895
  return localize.ordinalNumber(date.getUTCDate(), {
894
896
  unit: 'date'
@@ -898,7 +900,7 @@ var formatters = {
898
900
  return formatters$1.d(date, token);
899
901
  },
900
902
  // Day of year
901
- D: function (date, token, localize) {
903
+ D: function D(date, token, localize) {
902
904
  var dayOfYear = getUTCDayOfYear(date);
903
905
 
904
906
  if (token === 'Do') {
@@ -910,7 +912,7 @@ var formatters = {
910
912
  return addLeadingZeros(dayOfYear, token.length);
911
913
  },
912
914
  // Day of week
913
- E: function (date, token, localize) {
915
+ E: function E(date, token, localize) {
914
916
  var dayOfWeek = date.getUTCDay();
915
917
 
916
918
  switch (token) {
@@ -947,7 +949,7 @@ var formatters = {
947
949
  }
948
950
  },
949
951
  // Local day of week
950
- e: function (date, token, localize, options) {
952
+ e: function e(date, token, localize, options) {
951
953
  var dayOfWeek = date.getUTCDay();
952
954
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
953
955
 
@@ -996,7 +998,7 @@ var formatters = {
996
998
  }
997
999
  },
998
1000
  // Stand-alone local day of week
999
- c: function (date, token, localize, options) {
1001
+ c: function c(date, token, localize, options) {
1000
1002
  var dayOfWeek = date.getUTCDay();
1001
1003
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
1002
1004
 
@@ -1045,7 +1047,7 @@ var formatters = {
1045
1047
  }
1046
1048
  },
1047
1049
  // ISO day of week
1048
- i: function (date, token, localize) {
1050
+ i: function i(date, token, localize) {
1049
1051
  var dayOfWeek = date.getUTCDay();
1050
1052
  var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
1051
1053
 
@@ -1095,7 +1097,7 @@ var formatters = {
1095
1097
  }
1096
1098
  },
1097
1099
  // AM or PM
1098
- a: function (date, token, localize) {
1100
+ a: function a(date, token, localize) {
1099
1101
  var hours = date.getUTCHours();
1100
1102
  var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1101
1103
 
@@ -1128,7 +1130,7 @@ var formatters = {
1128
1130
  }
1129
1131
  },
1130
1132
  // AM, PM, midnight, noon
1131
- b: function (date, token, localize) {
1133
+ b: function b(date, token, localize) {
1132
1134
  var hours = date.getUTCHours();
1133
1135
  var dayPeriodEnumValue;
1134
1136
 
@@ -1169,7 +1171,7 @@ var formatters = {
1169
1171
  }
1170
1172
  },
1171
1173
  // in the morning, in the afternoon, in the evening, at night
1172
- B: function (date, token, localize) {
1174
+ B: function B(date, token, localize) {
1173
1175
  var hours = date.getUTCHours();
1174
1176
  var dayPeriodEnumValue;
1175
1177
 
@@ -1207,7 +1209,7 @@ var formatters = {
1207
1209
  }
1208
1210
  },
1209
1211
  // Hour [1-12]
1210
- h: function (date, token, localize) {
1212
+ h: function h(date, token, localize) {
1211
1213
  if (token === 'ho') {
1212
1214
  var hours = date.getUTCHours() % 12;
1213
1215
  if (hours === 0) hours = 12;
@@ -1219,7 +1221,7 @@ var formatters = {
1219
1221
  return formatters$1.h(date, token);
1220
1222
  },
1221
1223
  // Hour [0-23]
1222
- H: function (date, token, localize) {
1224
+ H: function H(date, token, localize) {
1223
1225
  if (token === 'Ho') {
1224
1226
  return localize.ordinalNumber(date.getUTCHours(), {
1225
1227
  unit: 'hour'
@@ -1229,7 +1231,7 @@ var formatters = {
1229
1231
  return formatters$1.H(date, token);
1230
1232
  },
1231
1233
  // Hour [0-11]
1232
- K: function (date, token, localize) {
1234
+ K: function K(date, token, localize) {
1233
1235
  var hours = date.getUTCHours() % 12;
1234
1236
 
1235
1237
  if (token === 'Ko') {
@@ -1241,7 +1243,7 @@ var formatters = {
1241
1243
  return addLeadingZeros(hours, token.length);
1242
1244
  },
1243
1245
  // Hour [1-24]
1244
- k: function (date, token, localize) {
1246
+ k: function k(date, token, localize) {
1245
1247
  var hours = date.getUTCHours();
1246
1248
  if (hours === 0) hours = 24;
1247
1249
 
@@ -1254,7 +1256,7 @@ var formatters = {
1254
1256
  return addLeadingZeros(hours, token.length);
1255
1257
  },
1256
1258
  // Minute
1257
- m: function (date, token, localize) {
1259
+ m: function m(date, token, localize) {
1258
1260
  if (token === 'mo') {
1259
1261
  return localize.ordinalNumber(date.getUTCMinutes(), {
1260
1262
  unit: 'minute'
@@ -1264,7 +1266,7 @@ var formatters = {
1264
1266
  return formatters$1.m(date, token);
1265
1267
  },
1266
1268
  // Second
1267
- s: function (date, token, localize) {
1269
+ s: function s(date, token, localize) {
1268
1270
  if (token === 'so') {
1269
1271
  return localize.ordinalNumber(date.getUTCSeconds(), {
1270
1272
  unit: 'second'
@@ -1274,11 +1276,11 @@ var formatters = {
1274
1276
  return formatters$1.s(date, token);
1275
1277
  },
1276
1278
  // Fraction of second
1277
- S: function (date, token) {
1279
+ S: function S(date, token) {
1278
1280
  return formatters$1.S(date, token);
1279
1281
  },
1280
1282
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1281
- X: function (date, token, _localize, options) {
1283
+ X: function X(date, token, _localize, options) {
1282
1284
  var originalDate = options._originalDate || date;
1283
1285
  var timezoneOffset = originalDate.getTimezoneOffset();
1284
1286
 
@@ -1310,7 +1312,7 @@ var formatters = {
1310
1312
  }
1311
1313
  },
1312
1314
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1313
- x: function (date, token, _localize, options) {
1315
+ x: function x(date, token, _localize, options) {
1314
1316
  var originalDate = options._originalDate || date;
1315
1317
  var timezoneOffset = originalDate.getTimezoneOffset();
1316
1318
 
@@ -1338,7 +1340,7 @@ var formatters = {
1338
1340
  }
1339
1341
  },
1340
1342
  // Timezone (GMT)
1341
- O: function (date, token, _localize, options) {
1343
+ O: function O(date, token, _localize, options) {
1342
1344
  var originalDate = options._originalDate || date;
1343
1345
  var timezoneOffset = originalDate.getTimezoneOffset();
1344
1346
 
@@ -1356,7 +1358,7 @@ var formatters = {
1356
1358
  }
1357
1359
  },
1358
1360
  // Timezone (specific non-location)
1359
- z: function (date, token, _localize, options) {
1361
+ z: function z(date, token, _localize, options) {
1360
1362
  var originalDate = options._originalDate || date;
1361
1363
  var timezoneOffset = originalDate.getTimezoneOffset();
1362
1364
 
@@ -1374,13 +1376,13 @@ var formatters = {
1374
1376
  }
1375
1377
  },
1376
1378
  // Seconds timestamp
1377
- t: function (date, token, _localize, options) {
1379
+ t: function t(date, token, _localize, options) {
1378
1380
  var originalDate = options._originalDate || date;
1379
1381
  var timestamp = Math.floor(originalDate.getTime() / 1000);
1380
1382
  return addLeadingZeros(timestamp, token.length);
1381
1383
  },
1382
1384
  // Milliseconds timestamp
1383
- T: function (date, token, _localize, options) {
1385
+ T: function T(date, token, _localize, options) {
1384
1386
  var originalDate = options._originalDate || date;
1385
1387
  var timestamp = originalDate.getTime();
1386
1388
  return addLeadingZeros(timestamp, token.length);
@@ -1419,7 +1421,7 @@ function formatTimezone(offset, dirtyDelimiter) {
1419
1421
  return sign + hours + delimiter + minutes;
1420
1422
  }
1421
1423
 
1422
- var dateLongFormatter = function (pattern, formatLong) {
1424
+ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1423
1425
  switch (pattern) {
1424
1426
  case 'P':
1425
1427
  return formatLong.date({
@@ -1444,7 +1446,7 @@ var dateLongFormatter = function (pattern, formatLong) {
1444
1446
  }
1445
1447
  };
1446
1448
 
1447
- var timeLongFormatter = function (pattern, formatLong) {
1449
+ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1448
1450
  switch (pattern) {
1449
1451
  case 'p':
1450
1452
  return formatLong.time({
@@ -1469,7 +1471,7 @@ var timeLongFormatter = function (pattern, formatLong) {
1469
1471
  }
1470
1472
  };
1471
1473
 
1472
- var dateTimeLongFormatter = function (pattern, formatLong) {
1474
+ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
1473
1475
  var matchResult = pattern.match(/(P+)(p+)?/) || [];
1474
1476
  var datePattern = matchResult[1];
1475
1477
  var timePattern = matchResult[2];
@@ -1599,7 +1601,7 @@ var formatDistanceLocale = {
1599
1601
  }
1600
1602
  };
1601
1603
 
1602
- var formatDistance = function (token, count, options) {
1604
+ var formatDistance = function formatDistance(token, count, options) {
1603
1605
  var result;
1604
1606
  var tokenValue = formatDistanceLocale[token];
1605
1607
 
@@ -1674,7 +1676,7 @@ var formatRelativeLocale = {
1674
1676
  other: 'P'
1675
1677
  };
1676
1678
 
1677
- var formatRelative = function (token, _date, _baseDate, _options) {
1679
+ var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
1678
1680
  return formatRelativeLocale[token];
1679
1681
  };
1680
1682
 
@@ -1791,7 +1793,7 @@ var formattingDayPeriodValues = {
1791
1793
  }
1792
1794
  };
1793
1795
 
1794
- var ordinalNumber = function (dirtyNumber, _options) {
1796
+ var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1795
1797
  var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
1796
1798
  // if they are different for different grammatical genders,
1797
1799
  // use `options.unit`.
@@ -1826,7 +1828,7 @@ var localize = {
1826
1828
  quarter: buildLocalizeFn({
1827
1829
  values: quarterValues,
1828
1830
  defaultWidth: 'wide',
1829
- argumentCallback: function (quarter) {
1831
+ argumentCallback: function argumentCallback(quarter) {
1830
1832
  return quarter - 1;
1831
1833
  }
1832
1834
  }),
@@ -1970,7 +1972,7 @@ var match = {
1970
1972
  ordinalNumber: buildMatchPatternFn({
1971
1973
  matchPattern: matchOrdinalNumberPattern,
1972
1974
  parsePattern: parseOrdinalNumberPattern,
1973
- valueCallback: function (value) {
1975
+ valueCallback: function valueCallback(value) {
1974
1976
  return parseInt(value, 10);
1975
1977
  }
1976
1978
  }),
@@ -1985,7 +1987,7 @@ var match = {
1985
1987
  defaultMatchWidth: 'wide',
1986
1988
  parsePatterns: parseQuarterPatterns,
1987
1989
  defaultParseWidth: 'any',
1988
- valueCallback: function (index) {
1990
+ valueCallback: function valueCallback(index) {
1989
1991
  return index + 1;
1990
1992
  }
1991
1993
  }),
@@ -3168,7 +3170,11 @@ const Q2Calendar = class {
3168
3170
  const validDays = getValidDaysOfWeek(this.daysOfWeekChecksum);
3169
3171
  const { typedValue } = this;
3170
3172
  const { isValid: isValid$1, inputDate, isAvailable } = validateInput(this.typedValue, validDays, this.validDates, this.invalidDates, this.startDate, this.endDate, this.defaultFormatString, this.assume);
3171
- if (isValid$1 ||
3173
+ if (!typedValue && (inputDate === null || inputDate === void 0 ? void 0 : inputDate.toString()) === 'Invalid Date') {
3174
+ // initial/clear state
3175
+ this.setHints({ isValid: true, message: this.defaultHintMessage, messageType: 'info' });
3176
+ }
3177
+ else if (isValid$1 ||
3172
3178
  (typedValue &&
3173
3179
  typedValue.length > 4 && // at least mm/dd provided
3174
3180
  inputDate &&
@@ -3306,6 +3312,7 @@ const Q2Calendar = class {
3306
3312
  this.readonly = undefined;
3307
3313
  this.invalid = undefined;
3308
3314
  this.typeable = undefined;
3315
+ this.clearable = undefined;
3309
3316
  this.placeholder = undefined;
3310
3317
  this.buttonLabel = undefined;
3311
3318
  this.disabledMsg = undefined;
@@ -3352,6 +3359,14 @@ const Q2Calendar = class {
3352
3359
  componentDidLoad() {
3353
3360
  overrideFocus(this.hostElement);
3354
3361
  }
3362
+ get canClear() {
3363
+ if (this.isTypeable) {
3364
+ return this.clearable && !!this.typedValue;
3365
+ }
3366
+ else {
3367
+ return this.clearable && !!this.value;
3368
+ }
3369
+ }
3355
3370
  get currentWeeks() {
3356
3371
  const weeks = this.dateList.reduce((accum, item, index) => {
3357
3372
  const chunkIndex = Math.floor(index / 7);
@@ -3455,6 +3470,11 @@ const Q2Calendar = class {
3455
3470
  return;
3456
3471
  this.inputField.shadowRoot.querySelector('.input-field').focus();
3457
3472
  }
3473
+ handleClear() {
3474
+ this.value = null;
3475
+ this.typedValue = '';
3476
+ this.setHints({ isValid: true, message: this.defaultHintMessage, messageType: 'info' });
3477
+ }
3458
3478
  //////// Observers //////////
3459
3479
  ariaLabelObserver() {
3460
3480
  handleAriaLabel(this);
@@ -3606,7 +3626,7 @@ const Q2Calendar = class {
3606
3626
  });
3607
3627
  }
3608
3628
  calendarField() {
3609
- return (h("q2-input", { ref: el => (this.inputField = el), class: "calendar-input-field", value: this.formattedValue, label: loc(this.label), hideLabel: this.hideLabel, disabled: !!this.disabled, readonly: !!this.readonly, placeholder: this.computedPlaceholder, optional: !!this.optional, ariaExpanded: `${!!this.dropdownOpen}`, errors: (this.localizedErrors.length > 0 && this.localizedErrors) ||
3629
+ return (h("q2-input", { ref: el => (this.inputField = el), class: "calendar-input-field", value: this.formattedValue, label: loc(this.label), hideLabel: this.hideLabel, disabled: !!this.disabled, readonly: !!this.readonly, clearable: this.canClear, placeholder: this.computedPlaceholder, optional: !!this.optional, ariaExpanded: `${!!this.dropdownOpen}`, errors: (this.localizedErrors.length > 0 && this.localizedErrors) ||
3610
3630
  (this.invalid && ['tecton.element.calendar.invalid']) ||
3611
3631
  [], onClick: this.onInputClick, onChange: this.onInputChange, onInput: this.onInputInput, onKeyDown: this.onInputKeydown, onKeyUp: this.onInputKeyup, onBlur: this.onInputBlur, "icon-right": "calendar", "format-modifier": this.isTypeable ? this.formatModifier : '', pseudo: !this.isTypeable, type: "date", "hide-messages": true, "test-id": "inputAndCalendarToggle" }));
3612
3632
  }
@@ -149,15 +149,15 @@ function getWindow() {
149
149
  }
150
150
 
151
151
  /**
152
- * Dom7 4.0.4
152
+ * Dom7 4.0.6
153
153
  * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
154
154
  * https://framework7.io/docs/dom7.html
155
155
  *
156
- * Copyright 2022, Vladimir Kharlampidi
156
+ * Copyright 2023, Vladimir Kharlampidi
157
157
  *
158
158
  * Licensed under MIT
159
159
  *
160
- * Released on: January 11, 2022
160
+ * Released on: February 2, 2023
161
161
  */
162
162
 
163
163
  /* eslint-disable no-proto */