guestbell-forms 3.0.18 → 3.0.19

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 (199) hide show
  1. package/.babelrc.js +1 -1
  2. package/build/components/base/input/BaseInput.js +8 -96
  3. package/build/components/base/input/BaseInput.js.map +1 -1
  4. package/build/components/base/input/index.js +0 -2
  5. package/build/components/base/input/index.js.map +1 -1
  6. package/build/components/bookingCalendar/BookingCalendar.js +7 -30
  7. package/build/components/bookingCalendar/BookingCalendar.js.map +1 -1
  8. package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js +2 -22
  9. package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js.map +1 -1
  10. package/build/components/bookingCalendar/bookingCalendarControls/classes.js.map +1 -1
  11. package/build/components/bookingCalendar/bookingCalendarControls/index.js +0 -4
  12. package/build/components/bookingCalendar/bookingCalendarControls/index.js.map +1 -1
  13. package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js +6 -19
  14. package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js.map +1 -1
  15. package/build/components/bookingCalendar/bookingCalendarDatePicker/classes.js.map +1 -1
  16. package/build/components/bookingCalendar/bookingCalendarDatePicker/index.js +0 -4
  17. package/build/components/bookingCalendar/bookingCalendarDatePicker/index.js.map +1 -1
  18. package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.d.ts +2 -1
  19. package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.js +11 -10
  20. package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.js.map +1 -1
  21. package/build/components/bookingCalendar/bookingCalendarGrid/classes.js.map +1 -1
  22. package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.js +0 -9
  23. package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.js.map +1 -1
  24. package/build/components/bookingCalendar/bookingCalendarItem/classes.js.map +1 -1
  25. package/build/components/bookingCalendar/bookingCalendarItem/index.js +0 -4
  26. package/build/components/bookingCalendar/bookingCalendarItem/index.js.map +1 -1
  27. package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.js +0 -10
  28. package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.js.map +1 -1
  29. package/build/components/bookingCalendar/bookingCalendarLane/classes.js.map +1 -1
  30. package/build/components/bookingCalendar/bookingCalendarLane/index.js +0 -4
  31. package/build/components/bookingCalendar/bookingCalendarLane/index.js.map +1 -1
  32. package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js +0 -7
  33. package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js.map +1 -1
  34. package/build/components/bookingCalendar/bookingCalendarLaneHeader/classes.js.map +1 -1
  35. package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.js +0 -2
  36. package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.js.map +1 -1
  37. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js +0 -12
  38. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js.map +1 -1
  39. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js +0 -9
  40. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js.map +1 -1
  41. package/build/components/bookingCalendar/bookingCalendarLanesHeader/classes.js.map +1 -1
  42. package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.js +0 -4
  43. package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.js.map +1 -1
  44. package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js +0 -9
  45. package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js.map +1 -1
  46. package/build/components/bookingCalendar/bookingCalendarRenderItem/classes.js.map +1 -1
  47. package/build/components/bookingCalendar/bookingCalendarRenderItem/index.js +0 -2
  48. package/build/components/bookingCalendar/bookingCalendarRenderItem/index.js.map +1 -1
  49. package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js +0 -30
  50. package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map +1 -1
  51. package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js +0 -7
  52. package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js.map +1 -1
  53. package/build/components/bookingCalendar/bookingCalendarTimeAxis/classes.js.map +1 -1
  54. package/build/components/bookingCalendar/classes.js.map +1 -1
  55. package/build/components/bookingCalendar/common.js +0 -9
  56. package/build/components/bookingCalendar/common.js.map +1 -1
  57. package/build/components/bookingCalendar/index.js +0 -6
  58. package/build/components/bookingCalendar/index.js.map +1 -1
  59. package/build/components/bookingCalendar/utils.js +5 -50
  60. package/build/components/bookingCalendar/utils.js.map +1 -1
  61. package/build/components/button/Button.js +9 -37
  62. package/build/components/button/Button.js.map +1 -1
  63. package/build/components/button/index.js +0 -4
  64. package/build/components/button/index.js.map +1 -1
  65. package/build/components/checkbox/Checkbox.js +5 -35
  66. package/build/components/checkbox/Checkbox.js.map +1 -1
  67. package/build/components/checkbox/index.js +0 -4
  68. package/build/components/checkbox/index.js.map +1 -1
  69. package/build/components/dropdown/Dropdown.js +1 -15
  70. package/build/components/dropdown/Dropdown.js.map +1 -1
  71. package/build/components/dropdown/index.js +0 -4
  72. package/build/components/dropdown/index.js.map +1 -1
  73. package/build/components/dynamicSubmit/DynamicSubmit.js +7 -39
  74. package/build/components/dynamicSubmit/DynamicSubmit.js.map +1 -1
  75. package/build/components/dynamicSubmit/index.js +0 -4
  76. package/build/components/dynamicSubmit/index.js.map +1 -1
  77. package/build/components/externalValidationComponent/ExternalValidationComponent.js +6 -17
  78. package/build/components/externalValidationComponent/ExternalValidationComponent.js.map +1 -1
  79. package/build/components/externalValidationComponent/index.js +0 -4
  80. package/build/components/externalValidationComponent/index.js.map +1 -1
  81. package/build/components/form/Form.js +8 -46
  82. package/build/components/form/Form.js.map +1 -1
  83. package/build/components/form/FormContext.js +0 -4
  84. package/build/components/form/FormContext.js.map +1 -1
  85. package/build/components/form/FormValidationSummary.js +3 -25
  86. package/build/components/form/FormValidationSummary.js.map +1 -1
  87. package/build/components/form/index.js +0 -10
  88. package/build/components/form/index.js.map +1 -1
  89. package/build/components/form/withFormContext.js +0 -6
  90. package/build/components/form/withFormContext.js.map +1 -1
  91. package/build/components/inputGroup/InputGroup.js +5 -15
  92. package/build/components/inputGroup/InputGroup.js.map +1 -1
  93. package/build/components/inputGroup/index.js +0 -4
  94. package/build/components/inputGroup/index.js.map +1 -1
  95. package/build/components/inputHeader/InputHeader.js +16 -75
  96. package/build/components/inputHeader/InputHeader.js.map +1 -1
  97. package/build/components/inputHeader/InputHeaderContext.js +0 -4
  98. package/build/components/inputHeader/InputHeaderContext.js.map +1 -1
  99. package/build/components/inputHeader/index.js +0 -4
  100. package/build/components/inputHeader/index.js.map +1 -1
  101. package/build/components/inputHeader/withInputHeaderContext.js +0 -6
  102. package/build/components/inputHeader/withInputHeaderContext.js.map +1 -1
  103. package/build/components/money/Money.js +20 -64
  104. package/build/components/money/Money.js.map +1 -1
  105. package/build/components/money/index.js +0 -4
  106. package/build/components/money/index.js.map +1 -1
  107. package/build/components/numberInput/NumberInput.js +13 -44
  108. package/build/components/numberInput/NumberInput.js.map +1 -1
  109. package/build/components/numberInput/index.js +0 -4
  110. package/build/components/numberInput/index.js.map +1 -1
  111. package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js +13 -62
  112. package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js.map +1 -1
  113. package/build/components/openingHours/openingHoursDay/index.js +0 -4
  114. package/build/components/openingHours/openingHoursDay/index.js.map +1 -1
  115. package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js +18 -49
  116. package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js.map +1 -1
  117. package/build/components/openingHours/openingHoursSpecial/index.js +0 -4
  118. package/build/components/openingHours/openingHoursSpecial/index.js.map +1 -1
  119. package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.js +16 -53
  120. package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.js.map +1 -1
  121. package/build/components/openingHours/openingHoursWeek/index.js +0 -4
  122. package/build/components/openingHours/openingHoursWeek/index.js.map +1 -1
  123. package/build/components/openingHours/utils/OpeningHoursUtil.js +3 -21
  124. package/build/components/openingHours/utils/OpeningHoursUtil.js.map +1 -1
  125. package/build/components/radio/Radio.js +4 -19
  126. package/build/components/radio/Radio.js.map +1 -1
  127. package/build/components/radio/index.js +0 -4
  128. package/build/components/radio/index.js.map +1 -1
  129. package/build/components/radioContainer/RadioContainer.js +2 -13
  130. package/build/components/radioContainer/RadioContainer.js.map +1 -1
  131. package/build/components/radioContainer/index.js +0 -4
  132. package/build/components/radioContainer/index.js.map +1 -1
  133. package/build/components/select/Select.js +6 -53
  134. package/build/components/select/Select.js.map +1 -1
  135. package/build/components/select/index.js +0 -4
  136. package/build/components/select/index.js.map +1 -1
  137. package/build/components/submit/Submit.js +5 -28
  138. package/build/components/submit/Submit.js.map +1 -1
  139. package/build/components/submit/index.js +0 -4
  140. package/build/components/submit/index.js.map +1 -1
  141. package/build/components/submit/subComponents/SubmitValidationSummary.js +0 -9
  142. package/build/components/submit/subComponents/SubmitValidationSummary.js.map +1 -1
  143. package/build/components/tags/Tags.js +34 -119
  144. package/build/components/tags/Tags.js.map +1 -1
  145. package/build/components/tags/index.js +0 -4
  146. package/build/components/tags/index.js.map +1 -1
  147. package/build/components/tags/subComponents/TagsSuggestions.js +0 -14
  148. package/build/components/tags/subComponents/TagsSuggestions.js.map +1 -1
  149. package/build/components/text/Text.js +10 -42
  150. package/build/components/text/Text.js.map +1 -1
  151. package/build/components/text/index.js +0 -4
  152. package/build/components/text/index.js.map +1 -1
  153. package/build/components/textArea/TextArea.js +8 -31
  154. package/build/components/textArea/TextArea.js.map +1 -1
  155. package/build/components/textArea/index.js +0 -4
  156. package/build/components/textArea/index.js.map +1 -1
  157. package/build/components/themeProvider/ThemeContext.js +0 -4
  158. package/build/components/themeProvider/ThemeContext.js.map +1 -1
  159. package/build/components/themeProvider/ThemeProvider.js +2 -6
  160. package/build/components/themeProvider/ThemeProvider.js.map +1 -1
  161. package/build/components/themeProvider/index.js +0 -8
  162. package/build/components/themeProvider/index.js.map +1 -1
  163. package/build/components/themeProvider/withThemeContext.js +0 -8
  164. package/build/components/themeProvider/withThemeContext.js.map +1 -1
  165. package/build/components/time/Time.js +17 -73
  166. package/build/components/time/Time.js.map +1 -1
  167. package/build/components/time/index.js +0 -4
  168. package/build/components/time/index.js.map +1 -1
  169. package/build/components/timeSpan/TimeSpan.js +17 -99
  170. package/build/components/timeSpan/TimeSpan.js.map +1 -1
  171. package/build/components/timeSpan/index.js +0 -4
  172. package/build/components/timeSpan/index.js.map +1 -1
  173. package/build/components/utils/Guid.js +0 -3
  174. package/build/components/utils/Guid.js.map +1 -1
  175. package/build/components/utils/ShallowEqual.js +5 -10
  176. package/build/components/utils/ShallowEqual.js.map +1 -1
  177. package/build/components/utils/TimeUtil.js +1 -3
  178. package/build/components/utils/TimeUtil.js.map +1 -1
  179. package/build/dist/guestbell-forms.css.map +1 -1
  180. package/build/dist/guestbell-forms.js +21 -84
  181. package/build/dist/guestbell-forms.js.map +1 -1
  182. package/build/dist/guestbell-forms.min.js +1 -1
  183. package/build/dist/guestbell-forms.min.js.map +1 -1
  184. package/build/dist/report.html +13 -41
  185. package/build/index.js +0 -48
  186. package/build/index.js.map +1 -1
  187. package/build/validators/EmailValidator.js +0 -4
  188. package/build/validators/EmailValidator.js.map +1 -1
  189. package/build/validators/LatitudeValidator.js +0 -8
  190. package/build/validators/LatitudeValidator.js.map +1 -1
  191. package/build/validators/LongitudeValidator.js +0 -8
  192. package/build/validators/LongitudeValidator.js.map +1 -1
  193. package/build/validators/NumberValidator.js +0 -15
  194. package/build/validators/NumberValidator.js.map +1 -1
  195. package/build/validators/UrlValidator.js +2 -5
  196. package/build/validators/UrlValidator.js.map +1 -1
  197. package/build/validators/index.js +0 -7
  198. package/build/validators/index.js.map +1 -1
  199. package/package.json +19 -19
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  const guid = () => {
9
8
  const s4 = () => Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
10
-
11
9
  return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;
12
10
  };
13
-
14
11
  var _default = guid;
15
12
  exports.default = _default;
16
13
  //# sourceMappingURL=Guid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Guid.js","names":["guid","s4","Math","floor","random","toString","substring"],"sources":["../../../src/lib/components/utils/Guid.ts"],"sourcesContent":["const guid = () => {\r\n const s4 = () =>\r\n Math.floor((1 + Math.random()) * 0x10000)\r\n .toString(16)\r\n .substring(1);\r\n return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;\r\n};\r\n\r\nexport default guid;\r\n"],"mappings":";;;;;;;AAAA,MAAMA,IAAI,GAAG,MAAM;EACjB,MAAMC,EAAE,GAAG,MACTC,IAAI,CAACC,KAAL,CAAW,CAAC,IAAID,IAAI,CAACE,MAAL,EAAL,IAAsB,OAAjC,EACGC,QADH,CACY,EADZ,EAEGC,SAFH,CAEa,CAFb,CADF;;EAIA,OAAQ,GAAEL,EAAE,KAAKA,EAAE,EAAG,IAAGA,EAAE,EAAG,IAAGA,EAAE,EAAG,IAAGA,EAAE,EAAG,IAAGA,EAAE,KAAKA,EAAE,EAAT,GAAcA,EAAE,EAAG,EAApE;AACD,CAND;;eAQeD,I"}
1
+ {"version":3,"file":"Guid.js","names":["guid","s4","Math","floor","random","toString","substring","_default","exports","default"],"sources":["../../../src/lib/components/utils/Guid.ts"],"sourcesContent":["const guid = () => {\r\n const s4 = () =>\r\n Math.floor((1 + Math.random()) * 0x10000)\r\n .toString(16)\r\n .substring(1);\r\n return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;\r\n};\r\n\r\nexport default guid;\r\n"],"mappings":";;;;;;AAAA,MAAMA,IAAI,GAAGA,CAAA,KAAM;EACjB,MAAMC,EAAE,GAAGA,CAAA,KACTC,IAAI,CAACC,KAAK,CAAC,CAAC,CAAC,GAAGD,IAAI,CAACE,MAAM,CAAC,CAAC,IAAI,OAAO,CAAC,CACtCC,QAAQ,CAAC,EAAE,CAAC,CACZC,SAAS,CAAC,CAAC,CAAC;EACjB,OAAQ,GAAEL,EAAE,CAAC,CAAC,GAAGA,EAAE,CAAC,CAAE,IAAGA,EAAE,CAAC,CAAE,IAAGA,EAAE,CAAC,CAAE,IAAGA,EAAE,CAAC,CAAE,IAAGA,EAAE,CAAC,CAAC,GAAGA,EAAE,CAAC,CAAC,GAAGA,EAAE,CAAC,CAAE,EAAC;AACvE,CAAC;AAAC,IAAAM,QAAA,GAEaP,IAAI;AAAAQ,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.shallowEqual = shallowEqual;
7
-
8
7
  /**
9
8
  * Copyright (c) 2013-present, Facebook, Inc.
10
9
  *
@@ -17,13 +16,14 @@ exports.shallowEqual = shallowEqual;
17
16
  */
18
17
 
19
18
  /*eslint-disable no-self-compare */
19
+
20
20
  const hasOwnProperty = Object.prototype.hasOwnProperty;
21
+
21
22
  /**
22
23
  * inlined Object.is polyfill to avoid requiring consumers ship their own
23
24
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
24
25
  */
25
26
  // tslint:disable-next-line:no-any
26
-
27
27
  function is(x, y) {
28
28
  // SameValue algorithm
29
29
  if (x === y) {
@@ -36,36 +36,31 @@ function is(x, y) {
36
36
  return x !== x && y !== y;
37
37
  }
38
38
  }
39
+
39
40
  /**
40
41
  * Performs equality by iterating through keys on an object and returning false
41
42
  * when any key has values which are not strictly equal between the arguments.
42
43
  * Returns true when the values of all keys are strictly equal.
43
44
  */
44
-
45
-
46
45
  function shallowEqual(objA, objB, ignoreKey) {
47
46
  if (is(objA, objB)) {
48
47
  return true;
49
48
  }
50
-
51
49
  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
52
50
  return false;
53
51
  }
54
-
55
52
  const keysA = Object.keys(objA).filter(k => k !== ignoreKey);
56
53
  const keysB = Object.keys(objB).filter(k => k !== ignoreKey);
57
-
58
54
  if (keysA.length !== keysB.length) {
59
55
  return false;
60
- } // Test for A's keys different from B.
61
-
56
+ }
62
57
 
58
+ // Test for A's keys different from B.
63
59
  for (let i = 0; i < keysA.length; i++) {
64
60
  if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
65
61
  return false;
66
62
  }
67
63
  }
68
-
69
64
  return true;
70
65
  }
71
66
  //# sourceMappingURL=ShallowEqual.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShallowEqual.js","names":["hasOwnProperty","Object","prototype","is","x","y","shallowEqual","objA","objB","ignoreKey","keysA","keys","filter","k","keysB","length","i","call"],"sources":["../../../src/lib/components/utils/ShallowEqual.ts"],"sourcesContent":["/**\r\n * Copyright (c) 2013-present, Facebook, Inc.\r\n *\r\n * This source code is licensed under the MIT license found in the\r\n * LICENSE file in the root directory of this source tree.\r\n *\r\n * @providesModule shallowEqual\r\n * @typechecks\r\n * @flow\r\n */\r\n\r\n/*eslint-disable no-self-compare */\r\n\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\r\n\r\n/**\r\n * inlined Object.is polyfill to avoid requiring consumers ship their own\r\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\r\n */\r\n// tslint:disable-next-line:no-any\r\nfunction is(x: any, y: any): boolean {\r\n // SameValue algorithm\r\n if (x === y) {\r\n // Steps 1-5, 7-10\r\n // Steps 6.b-6.e: +0 != -0\r\n // Added the nonzero y check to make Flow happy, but it is redundant\r\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\r\n } else {\r\n // Step 6.a: NaN == NaN\r\n return x !== x && y !== y;\r\n }\r\n}\r\n\r\n/**\r\n * Performs equality by iterating through keys on an object and returning false\r\n * when any key has values which are not strictly equal between the arguments.\r\n * Returns true when the values of all keys are strictly equal.\r\n */\r\nexport function shallowEqual<T extends object>(\r\n objA: T,\r\n objB: T,\r\n ignoreKey?: keyof T\r\n): boolean {\r\n if (is(objA, objB)) {\r\n return true;\r\n }\r\n\r\n if (\r\n typeof objA !== 'object' ||\r\n objA === null ||\r\n typeof objB !== 'object' ||\r\n objB === null\r\n ) {\r\n return false;\r\n }\r\n\r\n const keysA = Object.keys(objA).filter(k => k !== ignoreKey);\r\n const keysB = Object.keys(objB).filter(k => k !== ignoreKey);\r\n\r\n if (keysA.length !== keysB.length) {\r\n return false;\r\n }\r\n\r\n // Test for A's keys different from B.\r\n for (let i = 0; i < keysA.length; i++) {\r\n if (\r\n !hasOwnProperty.call(objB, keysA[i]) ||\r\n !is(objA[keysA[i]], objB[keysA[i]])\r\n ) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA,MAAMA,cAAc,GAAGC,MAAM,CAACC,SAAP,CAAiBF,cAAxC;AAEA;AACA;AACA;AACA;AACA;;AACA,SAASG,EAAT,CAAYC,CAAZ,EAAoBC,CAApB,EAAqC;EACnC;EACA,IAAID,CAAC,KAAKC,CAAV,EAAa;IACX;IACA;IACA;IACA,OAAOD,CAAC,KAAK,CAAN,IAAWC,CAAC,KAAK,CAAjB,IAAsB,IAAID,CAAJ,KAAU,IAAIC,CAA3C;EACD,CALD,MAKO;IACL;IACA,OAAOD,CAAC,KAAKA,CAAN,IAAWC,CAAC,KAAKA,CAAxB;EACD;AACF;AAED;AACA;AACA;AACA;AACA;;;AACO,SAASC,YAAT,CACLC,IADK,EAELC,IAFK,EAGLC,SAHK,EAII;EACT,IAAIN,EAAE,CAACI,IAAD,EAAOC,IAAP,CAAN,EAAoB;IAClB,OAAO,IAAP;EACD;;EAED,IACE,OAAOD,IAAP,KAAgB,QAAhB,IACAA,IAAI,KAAK,IADT,IAEA,OAAOC,IAAP,KAAgB,QAFhB,IAGAA,IAAI,KAAK,IAJX,EAKE;IACA,OAAO,KAAP;EACD;;EAED,MAAME,KAAK,GAAGT,MAAM,CAACU,IAAP,CAAYJ,IAAZ,EAAkBK,MAAlB,CAAyBC,CAAC,IAAIA,CAAC,KAAKJ,SAApC,CAAd;EACA,MAAMK,KAAK,GAAGb,MAAM,CAACU,IAAP,CAAYH,IAAZ,EAAkBI,MAAlB,CAAyBC,CAAC,IAAIA,CAAC,KAAKJ,SAApC,CAAd;;EAEA,IAAIC,KAAK,CAACK,MAAN,KAAiBD,KAAK,CAACC,MAA3B,EAAmC;IACjC,OAAO,KAAP;EACD,CAnBQ,CAqBT;;;EACA,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGN,KAAK,CAACK,MAA1B,EAAkCC,CAAC,EAAnC,EAAuC;IACrC,IACE,CAAChB,cAAc,CAACiB,IAAf,CAAoBT,IAApB,EAA0BE,KAAK,CAACM,CAAD,CAA/B,CAAD,IACA,CAACb,EAAE,CAACI,IAAI,CAACG,KAAK,CAACM,CAAD,CAAN,CAAL,EAAiBR,IAAI,CAACE,KAAK,CAACM,CAAD,CAAN,CAArB,CAFL,EAGE;MACA,OAAO,KAAP;IACD;EACF;;EAED,OAAO,IAAP;AACD"}
1
+ {"version":3,"file":"ShallowEqual.js","names":["hasOwnProperty","Object","prototype","is","x","y","shallowEqual","objA","objB","ignoreKey","keysA","keys","filter","k","keysB","length","i","call"],"sources":["../../../src/lib/components/utils/ShallowEqual.ts"],"sourcesContent":["/**\r\n * Copyright (c) 2013-present, Facebook, Inc.\r\n *\r\n * This source code is licensed under the MIT license found in the\r\n * LICENSE file in the root directory of this source tree.\r\n *\r\n * @providesModule shallowEqual\r\n * @typechecks\r\n * @flow\r\n */\r\n\r\n/*eslint-disable no-self-compare */\r\n\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\r\n\r\n/**\r\n * inlined Object.is polyfill to avoid requiring consumers ship their own\r\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\r\n */\r\n// tslint:disable-next-line:no-any\r\nfunction is(x: any, y: any): boolean {\r\n // SameValue algorithm\r\n if (x === y) {\r\n // Steps 1-5, 7-10\r\n // Steps 6.b-6.e: +0 != -0\r\n // Added the nonzero y check to make Flow happy, but it is redundant\r\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\r\n } else {\r\n // Step 6.a: NaN == NaN\r\n return x !== x && y !== y;\r\n }\r\n}\r\n\r\n/**\r\n * Performs equality by iterating through keys on an object and returning false\r\n * when any key has values which are not strictly equal between the arguments.\r\n * Returns true when the values of all keys are strictly equal.\r\n */\r\nexport function shallowEqual<T extends object>(\r\n objA: T,\r\n objB: T,\r\n ignoreKey?: keyof T\r\n): boolean {\r\n if (is(objA, objB)) {\r\n return true;\r\n }\r\n\r\n if (\r\n typeof objA !== 'object' ||\r\n objA === null ||\r\n typeof objB !== 'object' ||\r\n objB === null\r\n ) {\r\n return false;\r\n }\r\n\r\n const keysA = Object.keys(objA).filter(k => k !== ignoreKey);\r\n const keysB = Object.keys(objB).filter(k => k !== ignoreKey);\r\n\r\n if (keysA.length !== keysB.length) {\r\n return false;\r\n }\r\n\r\n // Test for A's keys different from B.\r\n for (let i = 0; i < keysA.length; i++) {\r\n if (\r\n !hasOwnProperty.call(objB, keysA[i]) ||\r\n !is(objA[keysA[i]], objB[keysA[i]])\r\n ) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,MAAMA,cAAc,GAAGC,MAAM,CAACC,SAAS,CAACF,cAAc;;AAEtD;AACA;AACA;AACA;AACA;AACA,SAASG,EAAEA,CAACC,CAAM,EAAEC,CAAM,EAAW;EACnC;EACA,IAAID,CAAC,KAAKC,CAAC,EAAE;IACX;IACA;IACA;IACA,OAAOD,CAAC,KAAK,CAAC,IAAIC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAGD,CAAC,KAAK,CAAC,GAAGC,CAAC;EAC9C,CAAC,MAAM;IACL;IACA,OAAOD,CAAC,KAAKA,CAAC,IAAIC,CAAC,KAAKA,CAAC;EAC3B;AACF;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,YAAYA,CAC1BC,IAAO,EACPC,IAAO,EACPC,SAAmB,EACV;EACT,IAAIN,EAAE,CAACI,IAAI,EAAEC,IAAI,CAAC,EAAE;IAClB,OAAO,IAAI;EACb;EAEA,IACE,OAAOD,IAAI,KAAK,QAAQ,IACxBA,IAAI,KAAK,IAAI,IACb,OAAOC,IAAI,KAAK,QAAQ,IACxBA,IAAI,KAAK,IAAI,EACb;IACA,OAAO,KAAK;EACd;EAEA,MAAME,KAAK,GAAGT,MAAM,CAACU,IAAI,CAACJ,IAAI,CAAC,CAACK,MAAM,CAACC,CAAC,IAAIA,CAAC,KAAKJ,SAAS,CAAC;EAC5D,MAAMK,KAAK,GAAGb,MAAM,CAACU,IAAI,CAACH,IAAI,CAAC,CAACI,MAAM,CAACC,CAAC,IAAIA,CAAC,KAAKJ,SAAS,CAAC;EAE5D,IAAIC,KAAK,CAACK,MAAM,KAAKD,KAAK,CAACC,MAAM,EAAE;IACjC,OAAO,KAAK;EACd;;EAEA;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGN,KAAK,CAACK,MAAM,EAAEC,CAAC,EAAE,EAAE;IACrC,IACE,CAAChB,cAAc,CAACiB,IAAI,CAACT,IAAI,EAAEE,KAAK,CAACM,CAAC,CAAC,CAAC,IACpC,CAACb,EAAE,CAACI,IAAI,CAACG,KAAK,CAACM,CAAC,CAAC,CAAC,EAAER,IAAI,CAACE,KAAK,CAACM,CAAC,CAAC,CAAC,CAAC,EACnC;MACA,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb"}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  // Libs
8
+
9
9
  class TimeUtil {
10
10
  dayDiff(start, end) {
11
11
  const startOfDay = start.clone().subtract(start.hours(), 'hours').subtract(start.minutes(), 'minutes').subtract(start.seconds(), 'seconds').subtract(start.milliseconds(), 'milliseconds');
@@ -13,9 +13,7 @@ class TimeUtil {
13
13
  const diffDays = Math.floor(timeDiff / (1000 * 3600 * 24));
14
14
  return diffDays;
15
15
  }
16
-
17
16
  }
18
-
19
17
  const util = new TimeUtil();
20
18
  var _default = util;
21
19
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"TimeUtil.js","names":["TimeUtil","dayDiff","start","end","startOfDay","clone","subtract","hours","minutes","seconds","milliseconds","timeDiff","Math","abs","asMilliseconds","diffDays","floor","util"],"sources":["../../../src/lib/components/utils/TimeUtil.ts"],"sourcesContent":["// Libs\r\n\r\nimport { Duration } from 'moment';\r\n\r\nclass TimeUtil {\r\n public dayDiff(start: Duration, end: Duration) {\r\n const startOfDay = start\r\n .clone()\r\n .subtract(start.hours(), 'hours')\r\n .subtract(start.minutes(), 'minutes')\r\n .subtract(start.seconds(), 'seconds')\r\n .subtract(start.milliseconds(), 'milliseconds');\r\n const timeDiff = Math.abs(\r\n end.asMilliseconds() - startOfDay.asMilliseconds()\r\n );\r\n const diffDays = Math.floor(timeDiff / (1000 * 3600 * 24));\r\n return diffDays;\r\n }\r\n}\r\n\r\nconst util = new TimeUtil();\r\nexport default util;\r\n"],"mappings":";;;;;;;AAAA;AAIA,MAAMA,QAAN,CAAe;EACNC,OAAO,CAACC,KAAD,EAAkBC,GAAlB,EAAiC;IAC7C,MAAMC,UAAU,GAAGF,KAAK,CACrBG,KADgB,GAEhBC,QAFgB,CAEPJ,KAAK,CAACK,KAAN,EAFO,EAEQ,OAFR,EAGhBD,QAHgB,CAGPJ,KAAK,CAACM,OAAN,EAHO,EAGU,SAHV,EAIhBF,QAJgB,CAIPJ,KAAK,CAACO,OAAN,EAJO,EAIU,SAJV,EAKhBH,QALgB,CAKPJ,KAAK,CAACQ,YAAN,EALO,EAKe,cALf,CAAnB;IAMA,MAAMC,QAAQ,GAAGC,IAAI,CAACC,GAAL,CACfV,GAAG,CAACW,cAAJ,KAAuBV,UAAU,CAACU,cAAX,EADR,CAAjB;IAGA,MAAMC,QAAQ,GAAGH,IAAI,CAACI,KAAL,CAAWL,QAAQ,IAAI,OAAO,IAAP,GAAc,EAAlB,CAAnB,CAAjB;IACA,OAAOI,QAAP;EACD;;AAbY;;AAgBf,MAAME,IAAI,GAAG,IAAIjB,QAAJ,EAAb;eACeiB,I"}
1
+ {"version":3,"file":"TimeUtil.js","names":["TimeUtil","dayDiff","start","end","startOfDay","clone","subtract","hours","minutes","seconds","milliseconds","timeDiff","Math","abs","asMilliseconds","diffDays","floor","util","_default","exports","default"],"sources":["../../../src/lib/components/utils/TimeUtil.ts"],"sourcesContent":["// Libs\r\n\r\nimport { Duration } from 'moment';\r\n\r\nclass TimeUtil {\r\n public dayDiff(start: Duration, end: Duration) {\r\n const startOfDay = start\r\n .clone()\r\n .subtract(start.hours(), 'hours')\r\n .subtract(start.minutes(), 'minutes')\r\n .subtract(start.seconds(), 'seconds')\r\n .subtract(start.milliseconds(), 'milliseconds');\r\n const timeDiff = Math.abs(\r\n end.asMilliseconds() - startOfDay.asMilliseconds()\r\n );\r\n const diffDays = Math.floor(timeDiff / (1000 * 3600 * 24));\r\n return diffDays;\r\n }\r\n}\r\n\r\nconst util = new TimeUtil();\r\nexport default util;\r\n"],"mappings":";;;;;;AAAA;;AAIA,MAAMA,QAAQ,CAAC;EACNC,OAAOA,CAACC,KAAe,EAAEC,GAAa,EAAE;IAC7C,MAAMC,UAAU,GAAGF,KAAK,CACrBG,KAAK,CAAC,CAAC,CACPC,QAAQ,CAACJ,KAAK,CAACK,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAChCD,QAAQ,CAACJ,KAAK,CAACM,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CACpCF,QAAQ,CAACJ,KAAK,CAACO,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CACpCH,QAAQ,CAACJ,KAAK,CAACQ,YAAY,CAAC,CAAC,EAAE,cAAc,CAAC;IACjD,MAAMC,QAAQ,GAAGC,IAAI,CAACC,GAAG,CACvBV,GAAG,CAACW,cAAc,CAAC,CAAC,GAAGV,UAAU,CAACU,cAAc,CAAC,CACnD,CAAC;IACD,MAAMC,QAAQ,GAAGH,IAAI,CAACI,KAAK,CAACL,QAAQ,IAAI,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;IAC1D,OAAOI,QAAQ;EACjB;AACF;AAEA,MAAME,IAAI,GAAG,IAAIjB,QAAQ,CAAC,CAAC;AAAC,IAAAkB,QAAA,GACbD,IAAI;AAAAE,OAAA,CAAAC,OAAA,GAAAF,QAAA"}