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.
- package/.babelrc.js +1 -1
- package/build/components/base/input/BaseInput.js +8 -96
- package/build/components/base/input/BaseInput.js.map +1 -1
- package/build/components/base/input/index.js +0 -2
- package/build/components/base/input/index.js.map +1 -1
- package/build/components/bookingCalendar/BookingCalendar.js +7 -30
- package/build/components/bookingCalendar/BookingCalendar.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js +2 -22
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarControls/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js +6 -19
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarDatePicker/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.d.ts +2 -1
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.js +11 -10
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarGrid/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.js +0 -9
- package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarItem/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarItem/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarItem/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.js +0 -10
- package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLane/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLane/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarLane/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js +0 -7
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.js +0 -2
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js +0 -12
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js +0 -9
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.js +0 -4
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js +0 -9
- package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarRenderItem/classes.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarRenderItem/index.js +0 -2
- package/build/components/bookingCalendar/bookingCalendarRenderItem/index.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js +0 -30
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js +0 -7
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/classes.js.map +1 -1
- package/build/components/bookingCalendar/classes.js.map +1 -1
- package/build/components/bookingCalendar/common.js +0 -9
- package/build/components/bookingCalendar/common.js.map +1 -1
- package/build/components/bookingCalendar/index.js +0 -6
- package/build/components/bookingCalendar/index.js.map +1 -1
- package/build/components/bookingCalendar/utils.js +5 -50
- package/build/components/bookingCalendar/utils.js.map +1 -1
- package/build/components/button/Button.js +9 -37
- package/build/components/button/Button.js.map +1 -1
- package/build/components/button/index.js +0 -4
- package/build/components/button/index.js.map +1 -1
- package/build/components/checkbox/Checkbox.js +5 -35
- package/build/components/checkbox/Checkbox.js.map +1 -1
- package/build/components/checkbox/index.js +0 -4
- package/build/components/checkbox/index.js.map +1 -1
- package/build/components/dropdown/Dropdown.js +1 -15
- package/build/components/dropdown/Dropdown.js.map +1 -1
- package/build/components/dropdown/index.js +0 -4
- package/build/components/dropdown/index.js.map +1 -1
- package/build/components/dynamicSubmit/DynamicSubmit.js +7 -39
- package/build/components/dynamicSubmit/DynamicSubmit.js.map +1 -1
- package/build/components/dynamicSubmit/index.js +0 -4
- package/build/components/dynamicSubmit/index.js.map +1 -1
- package/build/components/externalValidationComponent/ExternalValidationComponent.js +6 -17
- package/build/components/externalValidationComponent/ExternalValidationComponent.js.map +1 -1
- package/build/components/externalValidationComponent/index.js +0 -4
- package/build/components/externalValidationComponent/index.js.map +1 -1
- package/build/components/form/Form.js +8 -46
- package/build/components/form/Form.js.map +1 -1
- package/build/components/form/FormContext.js +0 -4
- package/build/components/form/FormContext.js.map +1 -1
- package/build/components/form/FormValidationSummary.js +3 -25
- package/build/components/form/FormValidationSummary.js.map +1 -1
- package/build/components/form/index.js +0 -10
- package/build/components/form/index.js.map +1 -1
- package/build/components/form/withFormContext.js +0 -6
- package/build/components/form/withFormContext.js.map +1 -1
- package/build/components/inputGroup/InputGroup.js +5 -15
- package/build/components/inputGroup/InputGroup.js.map +1 -1
- package/build/components/inputGroup/index.js +0 -4
- package/build/components/inputGroup/index.js.map +1 -1
- package/build/components/inputHeader/InputHeader.js +16 -75
- package/build/components/inputHeader/InputHeader.js.map +1 -1
- package/build/components/inputHeader/InputHeaderContext.js +0 -4
- package/build/components/inputHeader/InputHeaderContext.js.map +1 -1
- package/build/components/inputHeader/index.js +0 -4
- package/build/components/inputHeader/index.js.map +1 -1
- package/build/components/inputHeader/withInputHeaderContext.js +0 -6
- package/build/components/inputHeader/withInputHeaderContext.js.map +1 -1
- package/build/components/money/Money.js +20 -64
- package/build/components/money/Money.js.map +1 -1
- package/build/components/money/index.js +0 -4
- package/build/components/money/index.js.map +1 -1
- package/build/components/numberInput/NumberInput.js +13 -44
- package/build/components/numberInput/NumberInput.js.map +1 -1
- package/build/components/numberInput/index.js +0 -4
- package/build/components/numberInput/index.js.map +1 -1
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js +13 -62
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js.map +1 -1
- package/build/components/openingHours/openingHoursDay/index.js +0 -4
- package/build/components/openingHours/openingHoursDay/index.js.map +1 -1
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js +18 -49
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js.map +1 -1
- package/build/components/openingHours/openingHoursSpecial/index.js +0 -4
- package/build/components/openingHours/openingHoursSpecial/index.js.map +1 -1
- package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.js +16 -53
- package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.js.map +1 -1
- package/build/components/openingHours/openingHoursWeek/index.js +0 -4
- package/build/components/openingHours/openingHoursWeek/index.js.map +1 -1
- package/build/components/openingHours/utils/OpeningHoursUtil.js +3 -21
- package/build/components/openingHours/utils/OpeningHoursUtil.js.map +1 -1
- package/build/components/radio/Radio.js +4 -19
- package/build/components/radio/Radio.js.map +1 -1
- package/build/components/radio/index.js +0 -4
- package/build/components/radio/index.js.map +1 -1
- package/build/components/radioContainer/RadioContainer.js +2 -13
- package/build/components/radioContainer/RadioContainer.js.map +1 -1
- package/build/components/radioContainer/index.js +0 -4
- package/build/components/radioContainer/index.js.map +1 -1
- package/build/components/select/Select.js +6 -53
- package/build/components/select/Select.js.map +1 -1
- package/build/components/select/index.js +0 -4
- package/build/components/select/index.js.map +1 -1
- package/build/components/submit/Submit.js +5 -28
- package/build/components/submit/Submit.js.map +1 -1
- package/build/components/submit/index.js +0 -4
- package/build/components/submit/index.js.map +1 -1
- package/build/components/submit/subComponents/SubmitValidationSummary.js +0 -9
- package/build/components/submit/subComponents/SubmitValidationSummary.js.map +1 -1
- package/build/components/tags/Tags.js +34 -119
- package/build/components/tags/Tags.js.map +1 -1
- package/build/components/tags/index.js +0 -4
- package/build/components/tags/index.js.map +1 -1
- package/build/components/tags/subComponents/TagsSuggestions.js +0 -14
- package/build/components/tags/subComponents/TagsSuggestions.js.map +1 -1
- package/build/components/text/Text.js +10 -42
- package/build/components/text/Text.js.map +1 -1
- package/build/components/text/index.js +0 -4
- package/build/components/text/index.js.map +1 -1
- package/build/components/textArea/TextArea.js +8 -31
- package/build/components/textArea/TextArea.js.map +1 -1
- package/build/components/textArea/index.js +0 -4
- package/build/components/textArea/index.js.map +1 -1
- package/build/components/themeProvider/ThemeContext.js +0 -4
- package/build/components/themeProvider/ThemeContext.js.map +1 -1
- package/build/components/themeProvider/ThemeProvider.js +2 -6
- package/build/components/themeProvider/ThemeProvider.js.map +1 -1
- package/build/components/themeProvider/index.js +0 -8
- package/build/components/themeProvider/index.js.map +1 -1
- package/build/components/themeProvider/withThemeContext.js +0 -8
- package/build/components/themeProvider/withThemeContext.js.map +1 -1
- package/build/components/time/Time.js +17 -73
- package/build/components/time/Time.js.map +1 -1
- package/build/components/time/index.js +0 -4
- package/build/components/time/index.js.map +1 -1
- package/build/components/timeSpan/TimeSpan.js +17 -99
- package/build/components/timeSpan/TimeSpan.js.map +1 -1
- package/build/components/timeSpan/index.js +0 -4
- package/build/components/timeSpan/index.js.map +1 -1
- package/build/components/utils/Guid.js +0 -3
- package/build/components/utils/Guid.js.map +1 -1
- package/build/components/utils/ShallowEqual.js +5 -10
- package/build/components/utils/ShallowEqual.js.map +1 -1
- package/build/components/utils/TimeUtil.js +1 -3
- package/build/components/utils/TimeUtil.js.map +1 -1
- package/build/dist/guestbell-forms.css.map +1 -1
- package/build/dist/guestbell-forms.js +21 -84
- package/build/dist/guestbell-forms.js.map +1 -1
- package/build/dist/guestbell-forms.min.js +1 -1
- package/build/dist/guestbell-forms.min.js.map +1 -1
- package/build/dist/report.html +13 -41
- package/build/index.js +0 -48
- package/build/index.js.map +1 -1
- package/build/validators/EmailValidator.js +0 -4
- package/build/validators/EmailValidator.js.map +1 -1
- package/build/validators/LatitudeValidator.js +0 -8
- package/build/validators/LatitudeValidator.js.map +1 -1
- package/build/validators/LongitudeValidator.js +0 -8
- package/build/validators/LongitudeValidator.js.map +1 -1
- package/build/validators/NumberValidator.js +0 -15
- package/build/validators/NumberValidator.js.map +1 -1
- package/build/validators/UrlValidator.js +2 -5
- package/build/validators/UrlValidator.js.map +1 -1
- package/build/validators/index.js +0 -7
- package/build/validators/index.js.map +1 -1
- 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":"
|
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
|
-
}
|
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":"
|
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":"
|
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"}
|