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,30 +4,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarGrid = BookingCalendarGrid;
|
7
|
-
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
8
|
var _classes = require("./classes");
|
11
|
-
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
13
|
-
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
|
16
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
|
-
|
18
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
19
|
-
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
17
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
20
18
|
function BookingCalendarGrid(props) {
|
21
19
|
const {
|
22
20
|
className,
|
23
21
|
gridItemClassName,
|
24
22
|
containerRef,
|
25
23
|
dataRowsCount,
|
26
|
-
items
|
24
|
+
items,
|
25
|
+
width
|
27
26
|
} = props;
|
28
|
-
const style = React.useMemo(() => ({
|
27
|
+
const style = React.useMemo(() => _objectSpread({
|
29
28
|
gridRowEnd: `span ${dataRowsCount}`
|
30
|
-
}
|
29
|
+
}, width ? {
|
30
|
+
width: `${width}px`
|
31
|
+
} : {}), [dataRowsCount, width]);
|
31
32
|
return /*#__PURE__*/React.createElement("div", {
|
32
33
|
className: (0, _classnames.default)(_classes.bookingCalendarGridDefaultClasses.className, className),
|
33
34
|
style: style,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarGrid.js","names":["BookingCalendarGrid","props","className","gridItemClassName","containerRef","dataRowsCount","items","
|
1
|
+
{"version":3,"file":"BookingCalendarGrid.js","names":["React","_interopRequireWildcard","require","_classes","_classnames","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","BookingCalendarGrid","props","className","gridItemClassName","containerRef","dataRowsCount","items","width","style","useMemo","gridRowEnd","createElement","classNames","bookingCalendarGridDefaultClasses","ref","map","item","left","opacity"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport {\r\n BookingCalendarGridClasses,\r\n bookingCalendarGridDefaultClasses,\r\n} from './classes';\r\nimport classNames from 'classnames';\r\nimport { GridItem } from '../utils';\r\n\r\nexport interface BookingCalendarGridProps extends BookingCalendarGridClasses {\r\n items: GridItem[];\r\n containerRef?: (elem: HTMLElement) => void;\r\n dataRowsCount: number;\r\n width: number;\r\n}\r\n\r\nexport function BookingCalendarGrid(props: BookingCalendarGridProps) {\r\n const {\r\n className,\r\n gridItemClassName,\r\n containerRef,\r\n dataRowsCount,\r\n items,\r\n width,\r\n } = props;\r\n const style = React.useMemo(\r\n () => ({\r\n gridRowEnd: `span ${dataRowsCount}`,\r\n ...(width ? { width: `${width}px` } : {}),\r\n }),\r\n [dataRowsCount, width]\r\n );\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarGridDefaultClasses.className,\r\n className\r\n )}\r\n style={style}\r\n ref={containerRef}\r\n >\r\n {items.map((item, key) => (\r\n <div\r\n className={classNames(\r\n bookingCalendarGridDefaultClasses.gridItemClassName,\r\n gridItemClassName\r\n )}\r\n key={key}\r\n style={{\r\n left: `${item.left * 100}%`,\r\n opacity: 0.7 * item.opacity + 0.1,\r\n }}\r\n />\r\n ))}\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAIA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAoC,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OA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AGF,IAAI,CAACE,OAAO,GAAG;IAChC;EAAE,CACH,CACF,CACE,CAAC;AAEV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","names":["bookingCalendarGridDefaultClasses","className","gridItemClassName"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarGrid/classes.ts"],"sourcesContent":["export interface BookingCalendarGridClasses {\r\n className?: string;\r\n gridItemClassName?: string;\r\n}\r\n\r\nexport const bookingCalendarGridDefaultClasses: BookingCalendarGridClasses = {\r\n className: 'bookingCalendar__grid',\r\n gridItemClassName: 'bookingCalendar__grid__item',\r\n};\r\n"],"mappings":";;;;;;AAKO,MAAMA,iCAA6D,GAAG;EAC3EC,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"classes.js","names":["bookingCalendarGridDefaultClasses","className","gridItemClassName","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarGrid/classes.ts"],"sourcesContent":["export interface BookingCalendarGridClasses {\r\n className?: string;\r\n gridItemClassName?: string;\r\n}\r\n\r\nexport const bookingCalendarGridDefaultClasses: BookingCalendarGridClasses = {\r\n className: 'bookingCalendar__grid',\r\n gridItemClassName: 'bookingCalendar__grid__item',\r\n};\r\n"],"mappings":";;;;;;AAKO,MAAMA,iCAA6D,GAAG;EAC3EC,SAAS,EAAE,uBAAuB;EAClCC,iBAAiB,EAAE;AACrB,CAAC;AAACC,OAAA,CAAAH,iCAAA,GAAAA,iCAAA"}
|
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarItem = BookingCalendarItem;
|
7
|
-
|
8
7
|
var React = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
8
|
var _BookingCalendarRenderItem = require("../bookingCalendarRenderItem/BookingCalendarRenderItem");
|
11
|
-
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
13
|
-
|
14
10
|
var _utils = require("./../utils");
|
15
|
-
|
16
11
|
var _classes = require("./classes");
|
17
|
-
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
-
|
20
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
21
|
-
|
22
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
23
|
-
|
24
15
|
function BookingCalendarItem(props) {
|
25
16
|
const {
|
26
17
|
className,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarItem.js","names":["BookingCalendarItem","props","className","marginStart","width","BookingCalendarRenderItem","DefaultBookingCalendarRenderItem","style","
|
1
|
+
{"version":3,"file":"BookingCalendarItem.js","names":["React","_interopRequireWildcard","require","_BookingCalendarRenderItem","_classnames","_interopRequireDefault","_utils","_classes","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarItem","props","className","marginStart","width","BookingCalendarRenderItem","DefaultBookingCalendarRenderItem","style","useMemo","getItemPositionStyle","createElement","classNames","bookingCalendarItemDefaultClasses"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport {\r\n BookingCalendarRenderItem as DefaultBookingCalendarRenderItem,\r\n BookingCalendarRenderItemProps,\r\n} from '../bookingCalendarRenderItem/BookingCalendarRenderItem';\r\nimport { BookingCalendarItemT } from '../common';\r\nimport classNames from 'classnames';\r\nimport { getItemPositionStyle } from './../utils';\r\nimport {\r\n BookingCalendarItemClasses,\r\n bookingCalendarItemDefaultClasses,\r\n} from './classes';\r\nimport { Duration, Moment } from 'moment';\r\n\r\nexport interface BookingCalendarItemBaseProps<T extends BookingCalendarItemT> {\r\n item: T;\r\n itemIndex: number;\r\n laneIndex: number;\r\n from: Moment;\r\n till: Moment;\r\n step: Duration;\r\n /**\r\n * Number between [0,1] that tells how far from previous item (or start) this item starts\r\n */\r\n marginStart: number;\r\n\r\n /**\r\n * Number between [0,1] that tells what part of the lane the item starts at\r\n */\r\n start: number;\r\n /**\r\n * Like start but can be negative (go offscreen)\r\n */\r\n realStart: number;\r\n /**\r\n * Actual start date shown on grid\r\n */\r\n realFrom: Moment;\r\n /**\r\n * Some part of the item was cut from the beginning\r\n */\r\n startIsCut: boolean;\r\n /**\r\n * Number between [0,1] that tells what part of the lane the item takes\r\n */\r\n width: number;\r\n /**\r\n * Number between [0,1] that tells what part of the lane the item ends at\r\n */\r\n end: number;\r\n /**\r\n * Like end but can be more than 1 (go offscreen)\r\n */\r\n realEnd: number;\r\n /**\r\n * Actual end date shown on grid\r\n */\r\n realTill: Moment;\r\n /**\r\n * Some part of the item was cut from the end\r\n */\r\n endIsCut: boolean;\r\n\r\n BookingCalendarRenderItem?: React.ComponentType<\r\n BookingCalendarRenderItemProps<T>\r\n >;\r\n}\r\n\r\nexport interface BookingCalendarItemProps<T extends BookingCalendarItemT>\r\n extends BookingCalendarItemClasses,\r\n BookingCalendarItemBaseProps<T> {}\r\n\r\nexport function BookingCalendarItem<T extends BookingCalendarItemT>(\r\n props: BookingCalendarItemProps<T>\r\n) {\r\n const {\r\n className,\r\n marginStart,\r\n width,\r\n BookingCalendarRenderItem = DefaultBookingCalendarRenderItem,\r\n } = props;\r\n const style = React.useMemo(() => getItemPositionStyle(marginStart, width), [\r\n marginStart,\r\n width,\r\n ]);\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarItemDefaultClasses.className,\r\n className\r\n )}\r\n style={style}\r\n >\r\n <BookingCalendarRenderItem {...props} />\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AAKA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAGmB,SAAAG,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAX,wBAAAO,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAhB,GAAA,QAAAgB,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAnB,GAAA,EAAAgB,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAf,GAAA,EAAAgB,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAhB,GAAA,CAAAgB,GAAA,SAAAL,MAAA,CAAAT,OAAA,GAAAF,GAAA,MAAAQ,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAArB,GAAA,EAAAW,MAAA,YAAAA,MAAA;AA6DZ,SAASW,mBAAmBA,CACjCC,KAAkC,EAClC;EACA,MAAM;IACJC,SAAS;IACTC,WAAW;IACXC,KAAK;IACLC,yBAAyB,GAAGC;EAC9B,CAAC,GAAGL,KAAK;EACT,MAAMM,KAAK,GAAGrC,KAAK,CAACsC,OAAO,CAAC,MAAM,IAAAC,2BAAoB,EAACN,WAAW,EAAEC,KAAK,CAAC,EAAE,CAC1ED,WAAW,EACXC,KAAK,CACN,CAAC;EACF,oBACElC,KAAA,CAAAwC,aAAA;IACER,SAAS,EAAE,IAAAS,mBAAU,EACnBC,0CAAiC,CAACV,SAAS,EAC3CA,SACF,CAAE;IACFK,KAAK,EAAEA;EAAM,gBAEbrC,KAAA,CAAAwC,aAAA,CAACL,yBAAyB,EAAKJ,KAAQ,CACpC,CAAC;AAEV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","names":["bookingCalendarItemDefaultClasses","className"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarItem/classes.ts"],"sourcesContent":["export interface BookingCalendarItemClasses {\r\n className?: string;\r\n}\r\n\r\nexport const bookingCalendarItemDefaultClasses: BookingCalendarItemClasses = {\r\n className: 'bookingCalendar__item',\r\n};\r\n"],"mappings":";;;;;;AAIO,MAAMA,iCAA6D,GAAG;EAC3EC,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"classes.js","names":["bookingCalendarItemDefaultClasses","className","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarItem/classes.ts"],"sourcesContent":["export interface BookingCalendarItemClasses {\r\n className?: string;\r\n}\r\n\r\nexport const bookingCalendarItemDefaultClasses: BookingCalendarItemClasses = {\r\n className: 'bookingCalendar__item',\r\n};\r\n"],"mappings":";;;;;;AAIO,MAAMA,iCAA6D,GAAG;EAC3EC,SAAS,EAAE;AACb,CAAC;AAACC,OAAA,CAAAF,iCAAA,GAAAA,iCAAA"}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
6
|
var _BookingCalendarItem = require("./BookingCalendarItem");
|
8
|
-
|
9
7
|
Object.keys(_BookingCalendarItem).forEach(function (key) {
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
11
9
|
if (key in exports && exports[key] === _BookingCalendarItem[key]) return;
|
@@ -16,9 +14,7 @@ Object.keys(_BookingCalendarItem).forEach(function (key) {
|
|
16
14
|
}
|
17
15
|
});
|
18
16
|
});
|
19
|
-
|
20
17
|
var _classes = require("./classes");
|
21
|
-
|
22
18
|
Object.keys(_classes).forEach(function (key) {
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
24
20
|
if (key in exports && exports[key] === _classes[key]) return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarItem/index.ts"],"sourcesContent":["export * from './BookingCalendarItem';\r\nexport * from './classes';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingCalendarItem","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_classes"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarItem/index.ts"],"sourcesContent":["export * from './BookingCalendarItem';\r\nexport * from './classes';\r\n"],"mappings":";;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,oBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,oBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,oBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
@@ -4,25 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarLane = BookingCalendarLane;
|
7
|
-
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
9
|
var _BookingCalendarItem = require("../bookingCalendarItem/BookingCalendarItem");
|
13
|
-
|
14
10
|
var _utils = require("../utils");
|
15
|
-
|
16
11
|
var _classes = require("./classes");
|
17
|
-
|
18
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
19
|
-
|
20
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
21
|
-
|
22
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
23
|
-
|
24
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
25
|
-
|
26
16
|
function BookingCalendarLane(props) {
|
27
17
|
const {
|
28
18
|
className,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarLane.js","names":["BookingCalendarLane","props","className","items","laneIndex","from","till","step","BookingCalendarItem","DefaultBookingCalendarItem","BookingCalendarRenderItem","calculatedItems","
|
1
|
+
{"version":3,"file":"BookingCalendarLane.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_BookingCalendarItem","_utils","_classes","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","BookingCalendarLane","props","className","items","laneIndex","from","till","step","BookingCalendarItem","DefaultBookingCalendarItem","BookingCalendarRenderItem","calculatedItems","useMemo","calculateItemsDimensions","createElement","classNames","bookingCalendarLaneDefaultClasses","map","item","itemIndex","width"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport { Duration, Moment } from 'moment';\r\nimport * as React from 'react';\r\nimport {\r\n BookingCalendarItem as DefaultBookingCalendarItem,\r\n BookingCalendarItemProps,\r\n} from '../bookingCalendarItem/BookingCalendarItem';\r\nimport { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';\r\nimport { calculateItemsDimensions } from '../utils';\r\nimport { BookingCalendarItemT } from './../common';\r\nimport {\r\n bookingCalendarLaneDefaultClasses,\r\n BookingCalendarLaneClasses,\r\n} from './classes';\r\n\r\nexport interface BookingCalendarLaneProps<T extends BookingCalendarItemT>\r\n extends BookingCalendarLaneClasses {\r\n items: T[];\r\n laneIndex: number;\r\n from: Moment;\r\n till: Moment;\r\n step: Duration;\r\n BookingCalendarItem?: React.ComponentType<BookingCalendarItemProps<T>>;\r\n BookingCalendarRenderItem?: React.ComponentType<\r\n BookingCalendarRenderItemProps<T>\r\n >;\r\n}\r\n\r\nexport function BookingCalendarLane<T extends BookingCalendarItemT>(\r\n props: BookingCalendarLaneProps<T>\r\n) {\r\n const {\r\n className,\r\n items,\r\n laneIndex,\r\n from,\r\n till,\r\n step,\r\n BookingCalendarItem = DefaultBookingCalendarItem,\r\n BookingCalendarRenderItem,\r\n } = props;\r\n const calculatedItems = React.useMemo(\r\n () => calculateItemsDimensions(items, from, till),\r\n [items, from, till]\r\n );\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarLaneDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n {calculatedItems?.map((item, itemIndex) =>\r\n item.width > 0 ? (\r\n <BookingCalendarItem\r\n BookingCalendarRenderItem={BookingCalendarRenderItem}\r\n key={itemIndex}\r\n itemIndex={itemIndex}\r\n laneIndex={laneIndex}\r\n from={from}\r\n till={till}\r\n step={step}\r\n {...item}\r\n />\r\n ) : null\r\n )}\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAGmB,SAAAM,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IA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AS,EAAE,IAAAa,mBAAU,EACnBC,0CAAiC,CAACd,SAAS,EAC3CA,SACF;EAAE,GAEDS,eAAe,aAAfA,eAAe,uBAAfA,eAAe,CAAEM,GAAG,CAAC,CAACC,IAAI,EAAEC,SAAS,KACpCD,IAAI,CAACE,KAAK,GAAG,CAAC,gBACZxD,KAAA,CAAAkD,aAAA,CAACN,mBAAmB,EAAAjB,QAAA;IAClBmB,yBAAyB,EAAEA,yBAA0B;IACrDzB,GAAG,EAAEkC,SAAU;IACfA,SAAS,EAAEA,SAAU;IACrBf,SAAS,EAAEA,SAAU;IACrBC,IAAI,EAAEA,IAAK;IACXC,IAAI,EAAEA,IAAK;IACXC,IAAI,EAAEA;EAAK,GACPW,IAAI,CACT,CAAC,GACA,IACN,CACG,CAAC;AAEV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","names":["bookingCalendarLaneDefaultClasses","className"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLane/classes.ts"],"sourcesContent":["export interface BookingCalendarLaneClasses {\r\n className?: string;\r\n}\r\n\r\nexport const bookingCalendarLaneDefaultClasses: BookingCalendarLaneClasses = {\r\n className: 'bookingCalendar__lane',\r\n};\r\n"],"mappings":";;;;;;AAIO,MAAMA,iCAA6D,GAAG;EAC3EC,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"classes.js","names":["bookingCalendarLaneDefaultClasses","className","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLane/classes.ts"],"sourcesContent":["export interface BookingCalendarLaneClasses {\r\n className?: string;\r\n}\r\n\r\nexport const bookingCalendarLaneDefaultClasses: BookingCalendarLaneClasses = {\r\n className: 'bookingCalendar__lane',\r\n};\r\n"],"mappings":";;;;;;AAIO,MAAMA,iCAA6D,GAAG;EAC3EC,SAAS,EAAE;AACb,CAAC;AAACC,OAAA,CAAAF,iCAAA,GAAAA,iCAAA"}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
6
|
var _BookingCalendarLane = require("./BookingCalendarLane");
|
8
|
-
|
9
7
|
Object.keys(_BookingCalendarLane).forEach(function (key) {
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
11
9
|
if (key in exports && exports[key] === _BookingCalendarLane[key]) return;
|
@@ -16,9 +14,7 @@ Object.keys(_BookingCalendarLane).forEach(function (key) {
|
|
16
14
|
}
|
17
15
|
});
|
18
16
|
});
|
19
|
-
|
20
17
|
var _classes = require("./classes");
|
21
|
-
|
22
18
|
Object.keys(_classes).forEach(function (key) {
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
24
20
|
if (key in exports && exports[key] === _classes[key]) return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLane/index.ts"],"sourcesContent":["export * from './BookingCalendarLane';\r\nexport * from './classes';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingCalendarLane","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_classes"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLane/index.ts"],"sourcesContent":["export * from './BookingCalendarLane';\r\nexport * from './classes';\r\n"],"mappings":";;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,oBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,oBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,oBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js
CHANGED
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarLaneHeader = BookingCalendarLaneHeader;
|
7
|
-
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
9
|
var _classes = require("./classes");
|
13
|
-
|
14
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
15
|
-
|
16
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
|
-
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
-
|
20
13
|
function BookingCalendarLaneHeader(props) {
|
21
14
|
const {
|
22
15
|
className,
|
package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarLaneHeader.js","names":["BookingCalendarLaneHeader","props","className","laneKey","classNames","bookingCalendarLaneHeaderDefaultClasses"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport {\r\n bookingCalendarLaneHeaderDefaultClasses,\r\n BookingCalendarLaneHeaderClasses,\r\n} from './classes';\r\n\r\nexport interface BookingCalendarLaneHeaderProps<TLaneData>\r\n extends BookingCalendarLaneHeaderClasses {\r\n laneKey: string | number;\r\n data: TLaneData;\r\n}\r\n\r\nexport function BookingCalendarLaneHeader<TLaneData>(\r\n props: BookingCalendarLaneHeaderProps<TLaneData>\r\n) {\r\n const { className, laneKey } = props;\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarLaneHeaderDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n {laneKey}.\r\n </div>\r\n );\r\n}\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"BookingCalendarLaneHeader.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_classes","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarLaneHeader","props","className","laneKey","createElement","classNames","bookingCalendarLaneHeaderDefaultClasses"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport {\r\n bookingCalendarLaneHeaderDefaultClasses,\r\n BookingCalendarLaneHeaderClasses,\r\n} from './classes';\r\n\r\nexport interface BookingCalendarLaneHeaderProps<TLaneData>\r\n extends BookingCalendarLaneHeaderClasses {\r\n laneKey: string | number;\r\n data: TLaneData;\r\n}\r\n\r\nexport function BookingCalendarLaneHeader<TLaneData>(\r\n props: BookingCalendarLaneHeaderProps<TLaneData>\r\n) {\r\n const { className, laneKey } = props;\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarLaneHeaderDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n {laneKey}.\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAGmB,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAAA,SAAAhB,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAQZ,SAASiB,yBAAyBA,CACvCC,KAAgD,EAChD;EACA,MAAM;IAAEC,SAAS;IAAEC;EAAQ,CAAC,GAAGF,KAAK;EACpC,oBACE1B,KAAA,CAAA6B,aAAA;IACEF,SAAS,EAAE,IAAAG,mBAAU,EACnBC,gDAAuC,CAACJ,SAAS,EACjDA,SACF;EAAE,GAEDC,OAAO,EAAC,GACN,CAAC;AAEV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","names":["bookingCalendarLaneHeaderDefaultClasses","className"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLaneHeader/classes.ts"],"sourcesContent":["export interface BookingCalendarLaneHeaderClasses {\r\n className?: string;\r\n}\r\n\r\nexport const bookingCalendarLaneHeaderDefaultClasses: BookingCalendarLaneHeaderClasses = {\r\n className: 'bookingCalendar__laneHeader',\r\n};\r\n"],"mappings":";;;;;;AAIO,MAAMA,uCAAyE,GAAG;EACvFC,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"classes.js","names":["bookingCalendarLaneHeaderDefaultClasses","className","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLaneHeader/classes.ts"],"sourcesContent":["export interface BookingCalendarLaneHeaderClasses {\r\n className?: string;\r\n}\r\n\r\nexport const bookingCalendarLaneHeaderDefaultClasses: BookingCalendarLaneHeaderClasses = {\r\n className: 'bookingCalendar__laneHeader',\r\n};\r\n"],"mappings":";;;;;;AAIO,MAAMA,uCAAyE,GAAG;EACvFC,SAAS,EAAE;AACb,CAAC;AAACC,OAAA,CAAAF,uCAAA,GAAAA,uCAAA"}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
6
|
var _BookingCalendarLaneHeader = require("./BookingCalendarLaneHeader");
|
8
|
-
|
9
7
|
Object.keys(_BookingCalendarLaneHeader).forEach(function (key) {
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
11
9
|
if (key in exports && exports[key] === _BookingCalendarLaneHeader[key]) return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLaneHeader/index.ts"],"sourcesContent":["export * from './BookingCalendarLaneHeader';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingCalendarLaneHeader","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLaneHeader/index.ts"],"sourcesContent":["export * from './BookingCalendarLaneHeader';\r\n"],"mappings":";;;;;AAAA,IAAAA,0BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,0BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,0BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,0BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js
CHANGED
@@ -4,25 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarLanesHeader = BookingCalendarLanesHeader;
|
7
|
-
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
9
|
var _utils = require("../utils");
|
13
|
-
|
14
10
|
var _bookingCalendarLane = require("../bookingCalendarLane");
|
15
|
-
|
16
11
|
var _BookingCalendarLanesHeaderRenderItem = require("./BookingCalendarLanesHeaderRenderItem");
|
17
|
-
|
18
12
|
var _ = require(".");
|
19
|
-
|
20
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
21
|
-
|
22
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
23
|
-
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
|
-
|
26
16
|
function BookingCalendarLanesHeader(props) {
|
27
17
|
const {
|
28
18
|
className,
|
@@ -32,11 +22,9 @@ function BookingCalendarLanesHeader(props) {
|
|
32
22
|
till,
|
33
23
|
onRangeChange
|
34
24
|
} = props;
|
35
|
-
|
36
25
|
if (!step || !from || !till) {
|
37
26
|
return null;
|
38
27
|
}
|
39
|
-
|
40
28
|
const items = React.useMemo(() => (0, _utils.generateControlItems)(from, till, step, from === null || from === void 0 ? void 0 : from.clone().startOf('day')), [from, till, step]);
|
41
29
|
const BookingCalendarLanesHeaderRenderItem = React.useMemo(() => (0, _BookingCalendarLanesHeaderRenderItem.BookingCalendarLanesHeaderRenderItemFactory)(onRangeChange), [onRangeChange]);
|
42
30
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarLanesHeader.js","names":["BookingCalendarLanesHeader","props","className","laneClassName","step","from","till","onRangeChange","items","
|
1
|
+
{"version":3,"file":"BookingCalendarLanesHeader.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_utils","_bookingCalendarLane","_BookingCalendarLanesHeaderRenderItem","_","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarLanesHeader","props","className","laneClassName","step","from","till","onRangeChange","items","useMemo","generateControlItems","clone","startOf","BookingCalendarLanesHeaderRenderItem","BookingCalendarLanesHeaderRenderItemFactory","createElement","classNames","bookingCalendarLanesHeaderDefaultClasses","BookingCalendarLane","laneIndex","BookingCalendarRenderItem"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarDateRange, BookingCalendarItemT } from '../common';\r\nimport { Duration, Moment } from 'moment';\r\nimport { BookingCalendarLanesHeaderClasses } from './classes';\r\nimport { generateControlItems } from '../utils';\r\nimport { BookingCalendarLane } from '../bookingCalendarLane';\r\nimport { BookingCalendarLanesHeaderRenderItemFactory } from './BookingCalendarLanesHeaderRenderItem';\r\nimport { bookingCalendarLanesHeaderDefaultClasses } from '.';\r\n\r\nexport interface BookingCalendarLanesHeaderProps<\r\n T extends BookingCalendarItemT\r\n> extends BookingCalendarLanesHeaderClasses {\r\n step: Duration;\r\n from: Moment;\r\n till: Moment;\r\n onRangeChange?: (range: BookingCalendarDateRange) => void;\r\n}\r\n\r\nexport function BookingCalendarLanesHeader<T extends BookingCalendarItemT>(\r\n props: BookingCalendarLanesHeaderProps<T>\r\n) {\r\n const { className, laneClassName, step, from, till, onRangeChange } = props;\r\n if (!step || !from || !till) {\r\n return null;\r\n }\r\n const items = React.useMemo(\r\n () => generateControlItems(from, till, step, from?.clone().startOf('day')),\r\n [from, till, step]\r\n );\r\n const BookingCalendarLanesHeaderRenderItem = React.useMemo(\r\n () => BookingCalendarLanesHeaderRenderItemFactory(onRangeChange),\r\n [onRangeChange]\r\n );\r\n return (\r\n <div\r\n className={classNames(\r\n bookingCalendarLanesHeaderDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n <BookingCalendarLane\r\n className={classNames(\r\n bookingCalendarLanesHeaderDefaultClasses.laneClassName,\r\n laneClassName\r\n )}\r\n items={items}\r\n from={from}\r\n till={till}\r\n laneIndex={-1}\r\n BookingCalendarRenderItem={BookingCalendarLanesHeaderRenderItem}\r\n step={step}\r\n />\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,qCAAA,GAAAL,OAAA;AACA,IAAAM,CA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0BAA0BA,CACxCC,KAAyC,EACzC;EACA,MAAM;IAAEC,SAAS;IAAEC,aAAa;IAAEC,IAAI;IAAEC,IAAI;IAAEC,IAAI;IAAEC;EAAc,CAAC,GAAGN,KAAK;EAC3E,IAAI,CAACG,IAAI,IAAI,CAACC,IAAI,IAAI,CAACC,IAAI,EAAE;IAC3B,OAAO,IAAI;EACb;EACA,MAAME,KAAK,GAAGpC,KAAK,CAACqC,OAAO,CACzB,MAAM,IAAAC,2BAAoB,EAACL,IAAI,EAAEC,IAAI,EAAEF,IAAI,EAAEC,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEM,KAAK,CAAC,CAAC,CAACC,OAAO,CAAC,KAAK,CAAC,CAAC,EAC1E,CAACP,IAAI,EAAEC,IAAI,EAAEF,IAAI,CACnB,CAAC;EACD,MAAMS,oCAAoC,GAAGzC,KAAK,CAACqC,OAAO,CACxD,MAAM,IAAAK,iFAA2C,EAACP,aAAa,CAAC,EAChE,CAACA,aAAa,CAChB,CAAC;EACD,oBACEnC,KAAA,CAAA2C,aAAA;IACEb,SAAS,EAAE,IAAAc,mBAAU,EACnBC,0CAAwC,CAACf,SAAS,EAClDA,SACF;EAAE,gBAEF9B,KAAA,CAAA2C,aAAA,CAACxC,oBAAA,CAAA2C,mBAAmB;IAClBhB,SAAS,EAAE,IAAAc,mBAAU,EACnBC,0CAAwC,CAACd,aAAa,EACtDA,aACF,CAAE;IACFK,KAAK,EAAEA,KAAM;IACbH,IAAI,EAAEA,IAAK;IACXC,IAAI,EAAEA,IAAK;IACXa,SAAS,EAAE,CAAC,CAAE;IACdC,yBAAyB,EAAEP,oCAAqC;IAChET,IAAI,EAAEA;EAAK,CACZ,CACE,CAAC;AAEV"}
|
@@ -4,21 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarLanesHeaderRenderItemFactory = void 0;
|
7
|
-
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
9
|
var _classes = require("../bookingCalendarRenderItem/classes");
|
13
|
-
|
14
10
|
var _Button = require("../../button/Button");
|
15
|
-
|
16
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
|
-
|
18
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
19
|
-
|
20
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
|
-
|
22
14
|
const BookingCalendarLanesHeaderRenderItemFactory = onRangeChange => function BookingCalendarLanesHeaderRenderItem(props) {
|
23
15
|
const {
|
24
16
|
item,
|
@@ -45,6 +37,5 @@ const BookingCalendarLanesHeaderRenderItemFactory = onRangeChange => function Bo
|
|
45
37
|
className: "bookingCalendar__lanesHeader__renderItem__button__mutedText"
|
46
38
|
}, item.from.format('Do'))))) : null;
|
47
39
|
};
|
48
|
-
|
49
40
|
exports.BookingCalendarLanesHeaderRenderItemFactory = BookingCalendarLanesHeaderRenderItemFactory;
|
50
41
|
//# sourceMappingURL=BookingCalendarLanesHeaderRenderItem.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarLanesHeaderRenderItem.js","names":["BookingCalendarLanesHeaderRenderItemFactory","onRangeChange","BookingCalendarLanesHeaderRenderItem","props","item","className","startIsCut","endIsCut","realFrom","realTill","onClick","
|
1
|
+
{"version":3,"file":"BookingCalendarLanesHeaderRenderItem.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_classes","_Button","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarLanesHeaderRenderItemFactory","onRangeChange","BookingCalendarLanesHeaderRenderItem","props","item","className","startIsCut","endIsCut","realFrom","realTill","onClick","useCallback","from","till","createElement","classNames","bookingCalendarRenderItemDefaultClasses","Button","noShadow","type","Fragment","format","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem';\r\nimport { bookingCalendarRenderItemDefaultClasses } from '../bookingCalendarRenderItem/classes';\r\nimport { BookingCalendarItemT } from '../common';\r\nimport { Button } from '../../button/Button';\r\nimport { BookingCalendarDateRange } from '..';\r\n\r\nexport const BookingCalendarLanesHeaderRenderItemFactory = (\r\n onRangeChange: (range: BookingCalendarDateRange) => void\r\n) =>\r\n function BookingCalendarLanesHeaderRenderItem<T extends BookingCalendarItemT>(\r\n props: BookingCalendarRenderItemProps<T>\r\n ) {\r\n const { item, className, startIsCut, endIsCut, realFrom, realTill } = props;\r\n const onClick = React.useCallback(\r\n () => onRangeChange({ from: item.from, till: item.till }),\r\n [item]\r\n );\r\n return item ? (\r\n <div\r\n className={classNames(\r\n bookingCalendarRenderItemDefaultClasses.className,\r\n className\r\n )}\r\n >\r\n <Button\r\n className=\"bookingCalendar__lanesHeader__renderItem__button\"\r\n noShadow={true}\r\n onClick={onClick}\r\n type=\"primary\"\r\n >\r\n {startIsCut || endIsCut ? (\r\n <>\r\n {item.from.format('ddd, Do')}\r\n <br />\r\n <span className=\"bookingCalendar__lanesHeader__renderItem__button__mutedText bookingCalendar__lanesHeader__renderItem__button__mutedText--split\">\r\n <span>{startIsCut && realFrom.format('M/D H:mm')}</span>\r\n <span>{endIsCut && realTill.format('M/D H:mm')}</span>\r\n </span>\r\n </>\r\n ) : (\r\n <>\r\n {item.from.format('ddd')}\r\n <br />\r\n <span className=\"bookingCalendar__lanesHeader__renderItem__button__mutedText\">\r\n {item.from.format('Do')}\r\n </span>\r\n </>\r\n )}\r\n </Button>\r\n </div>\r\n ) : null;\r\n };\r\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAA6C,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,C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AAS,EAAC,kDAAkD;IAC5Da,QAAQ,EAAE,IAAK;IACfR,OAAO,EAAEA,OAAQ;IACjBS,IAAI,EAAC;EAAS,GAEbb,UAAU,IAAIC,QAAQ,gBACrBjC,KAAA,CAAAwC,aAAA,CAAAxC,KAAA,CAAA8C,QAAA,QACGhB,IAAI,CAACQ,IAAI,CAACS,MAAM,CAAC,SAAS,CAAC,eAC5B/C,KAAA,CAAAwC,aAAA,WAAK,CAAC,eACNxC,KAAA,CAAAwC,aAAA;IAAMT,SAAS,EAAC;EAAgI,gBAC9I/B,KAAA,CAAAwC,aAAA,eAAOR,UAAU,IAAIE,QAAQ,CAACa,MAAM,CAAC,UAAU,CAAQ,CAAC,eACxD/C,KAAA,CAAAwC,aAAA,eAAOP,QAAQ,IAAIE,QAAQ,CAACY,MAAM,CAAC,UAAU,CAAQ,CACjD,CACN,CAAC,gBAEH/C,KAAA,CAAAwC,aAAA,CAAAxC,KAAA,CAAA8C,QAAA,QACGhB,IAAI,CAACQ,IAAI,CAACS,MAAM,CAAC,KAAK,CAAC,eACxB/C,KAAA,CAAAwC,aAAA,WAAK,CAAC,eACNxC,KAAA,CAAAwC,aAAA;IAAMT,SAAS,EAAC;EAA6D,GAC1ED,IAAI,CAACQ,IAAI,CAACS,MAAM,CAAC,IAAI,CAClB,CACN,CAEE,CACL,CAAC,GACJ,IAAI;AACV,CAAC;AAACC,OAAA,CAAAtB,2CAAA,GAAAA,2CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","names":["bookingCalendarLanesHeaderDefaultClasses","className","laneClassName"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/classes.ts"],"sourcesContent":["export interface BookingCalendarLanesHeaderClasses {\r\n className?: string;\r\n laneClassName?: string;\r\n}\r\n\r\nexport const bookingCalendarLanesHeaderDefaultClasses: BookingCalendarLanesHeaderClasses = {\r\n className: 'bookingCalendar__lanesHeader',\r\n laneClassName: 'bookingCalendar__lanesHeader__lane',\r\n};\r\n"],"mappings":";;;;;;AAKO,MAAMA,wCAA2E,GAAG;EACzFC,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"classes.js","names":["bookingCalendarLanesHeaderDefaultClasses","className","laneClassName","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/classes.ts"],"sourcesContent":["export interface BookingCalendarLanesHeaderClasses {\r\n className?: string;\r\n laneClassName?: string;\r\n}\r\n\r\nexport const bookingCalendarLanesHeaderDefaultClasses: BookingCalendarLanesHeaderClasses = {\r\n className: 'bookingCalendar__lanesHeader',\r\n laneClassName: 'bookingCalendar__lanesHeader__lane',\r\n};\r\n"],"mappings":";;;;;;AAKO,MAAMA,wCAA2E,GAAG;EACzFC,SAAS,EAAE,8BAA8B;EACzCC,aAAa,EAAE;AACjB,CAAC;AAACC,OAAA,CAAAH,wCAAA,GAAAA,wCAAA"}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
6
|
var _BookingCalendarLanesHeader = require("./BookingCalendarLanesHeader");
|
8
|
-
|
9
7
|
Object.keys(_BookingCalendarLanesHeader).forEach(function (key) {
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
11
9
|
if (key in exports && exports[key] === _BookingCalendarLanesHeader[key]) return;
|
@@ -16,9 +14,7 @@ Object.keys(_BookingCalendarLanesHeader).forEach(function (key) {
|
|
16
14
|
}
|
17
15
|
});
|
18
16
|
});
|
19
|
-
|
20
17
|
var _classes = require("./classes");
|
21
|
-
|
22
18
|
Object.keys(_classes).forEach(function (key) {
|
23
19
|
if (key === "default" || key === "__esModule") return;
|
24
20
|
if (key in exports && exports[key] === _classes[key]) return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/index.ts"],"sourcesContent":["export * from './BookingCalendarLanesHeader';\r\nexport * from './classes';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingCalendarLanesHeader","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_classes"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarLanesHeader/index.ts"],"sourcesContent":["export * from './BookingCalendarLanesHeader';\r\nexport * from './classes';\r\n"],"mappings":";;;;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,2BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,2BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,2BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js
CHANGED
@@ -4,22 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.BookingCalendarRenderItem = BookingCalendarRenderItem;
|
7
|
-
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
|
10
8
|
var React = _interopRequireWildcard(require("react"));
|
11
|
-
|
12
9
|
var _classes = require("./classes");
|
13
|
-
|
14
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
15
|
-
|
16
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
|
-
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
-
|
20
13
|
function BookingCalendarRenderItem(props) {
|
21
14
|
var _item$from, _item$from$format, _item$till, _item$till$format;
|
22
|
-
|
23
15
|
const {
|
24
16
|
item,
|
25
17
|
className,
|
@@ -35,7 +27,6 @@ function BookingCalendarRenderItem(props) {
|
|
35
27
|
() => step.asMilliseconds() / till.diff(from),
|
36
28
|
[step, from, till]
|
37
29
|
);*/
|
38
|
-
|
39
30
|
return item ? /*#__PURE__*/React.createElement("div", {
|
40
31
|
className: (0, _classnames.default)(_classes.bookingCalendarRenderItemDefaultClasses.className, className, {
|
41
32
|
[_classes.bookingCalendarRenderItemDefaultClasses.cutStartClassname]: startIsCut,
|
package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BookingCalendarRenderItem.js","names":["BookingCalendarRenderItem","props","item","className","laneIndex","itemIndex","width","endIsCut","startIsCut","alwaysShowContent","children","from","format","till","classNames","bookingCalendarRenderItemDefaultClasses","cutStartClassname","cutEndClassname"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarItemProps } from '../bookingCalendarItem';\r\nimport { BookingCalendarItemT } from './../common';\r\nimport {\r\n bookingCalendarRenderItemDefaultClasses,\r\n BookingCalendarRenderItemClasses,\r\n} from './classes';\r\n\r\nexport interface BookingCalendarRenderItemProps<T extends BookingCalendarItemT>\r\n extends BookingCalendarItemProps<T>,\r\n BookingCalendarRenderItemClasses {\r\n alwaysShowContent?: boolean;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport function BookingCalendarRenderItem<T extends BookingCalendarItemT>(\r\n props: BookingCalendarRenderItemProps<T>\r\n) {\r\n const {\r\n item,\r\n className,\r\n laneIndex,\r\n itemIndex,\r\n width,\r\n endIsCut,\r\n startIsCut,\r\n alwaysShowContent,\r\n children = (\r\n <>\r\n {laneIndex}-{itemIndex}\r\n <br />\r\n {item.from?.format?.('M/D H:mm')}\r\n <br />\r\n {item.till?.format?.('M/D H:mm')}\r\n </>\r\n ),\r\n } = props;\r\n /*const stepWidth = React.useMemo(\r\n () => step.asMilliseconds() / till.diff(from),\r\n [step, from, till]\r\n );*/\r\n return item ? (\r\n <div\r\n className={classNames(\r\n bookingCalendarRenderItemDefaultClasses.className,\r\n className,\r\n {\r\n [bookingCalendarRenderItemDefaultClasses.cutStartClassname]: startIsCut,\r\n [bookingCalendarRenderItemDefaultClasses.cutEndClassname]: endIsCut,\r\n }\r\n )}\r\n >\r\n {(alwaysShowContent || width > 0.1) && children}\r\n </div>\r\n ) : null;\r\n}\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"BookingCalendarRenderItem.js","names":["_classnames","_interopRequireDefault","require","React","_interopRequireWildcard","_classes","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","BookingCalendarRenderItem","props","_item$from","_item$from$format","_item$till","_item$till$format","item","className","laneIndex","itemIndex","width","endIsCut","startIsCut","alwaysShowContent","children","createElement","Fragment","from","format","till","classNames","bookingCalendarRenderItemDefaultClasses","cutStartClassname","cutEndClassname"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.tsx"],"sourcesContent":["import classNames from 'classnames';\r\nimport * as React from 'react';\r\nimport { BookingCalendarItemProps } from '../bookingCalendarItem';\r\nimport { BookingCalendarItemT } from './../common';\r\nimport {\r\n bookingCalendarRenderItemDefaultClasses,\r\n BookingCalendarRenderItemClasses,\r\n} from './classes';\r\n\r\nexport interface BookingCalendarRenderItemProps<T extends BookingCalendarItemT>\r\n extends BookingCalendarItemProps<T>,\r\n BookingCalendarRenderItemClasses {\r\n alwaysShowContent?: boolean;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport function BookingCalendarRenderItem<T extends BookingCalendarItemT>(\r\n props: BookingCalendarRenderItemProps<T>\r\n) {\r\n const {\r\n item,\r\n className,\r\n laneIndex,\r\n itemIndex,\r\n width,\r\n endIsCut,\r\n startIsCut,\r\n alwaysShowContent,\r\n children = (\r\n <>\r\n {laneIndex}-{itemIndex}\r\n <br />\r\n {item.from?.format?.('M/D H:mm')}\r\n <br />\r\n {item.till?.format?.('M/D H:mm')}\r\n </>\r\n ),\r\n } = props;\r\n /*const stepWidth = React.useMemo(\r\n () => step.asMilliseconds() / till.diff(from),\r\n [step, from, till]\r\n );*/\r\n return item ? (\r\n <div\r\n className={classNames(\r\n bookingCalendarRenderItemDefaultClasses.className,\r\n className,\r\n {\r\n [bookingCalendarRenderItemDef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S,gDAAuC,CAACE,eAAe,GAAGZ;IAC7D,CACF;EAAE,GAED,CAACE,iBAAiB,IAAIH,KAAK,GAAG,GAAG,KAAKI,QACpC,CAAC,GACJ,IAAI;AACV"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","names":["bookingCalendarRenderItemDefaultClasses","className","cutStartClassname","cutEndClassname"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarRenderItem/classes.ts"],"sourcesContent":["export interface BookingCalendarRenderItemClasses {\r\n className?: string;\r\n cutStartClassname?: string;\r\n cutEndClassname?: string;\r\n}\r\n\r\nexport const bookingCalendarRenderItemDefaultClasses: BookingCalendarRenderItemClasses = {\r\n className: 'bookingCalendar__renderItem',\r\n cutStartClassname: 'bookingCalendar__renderItem--cutStart',\r\n cutEndClassname: 'bookingCalendar__renderItem--cutEnd',\r\n};\r\n"],"mappings":";;;;;;AAMO,MAAMA,uCAAyE,GAAG;EACvFC,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"classes.js","names":["bookingCalendarRenderItemDefaultClasses","className","cutStartClassname","cutEndClassname","exports"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarRenderItem/classes.ts"],"sourcesContent":["export interface BookingCalendarRenderItemClasses {\r\n className?: string;\r\n cutStartClassname?: string;\r\n cutEndClassname?: string;\r\n}\r\n\r\nexport const bookingCalendarRenderItemDefaultClasses: BookingCalendarRenderItemClasses = {\r\n className: 'bookingCalendar__renderItem',\r\n cutStartClassname: 'bookingCalendar__renderItem--cutStart',\r\n cutEndClassname: 'bookingCalendar__renderItem--cutEnd',\r\n};\r\n"],"mappings":";;;;;;AAMO,MAAMA,uCAAyE,GAAG;EACvFC,SAAS,EAAE,6BAA6B;EACxCC,iBAAiB,EAAE,uCAAuC;EAC1DC,eAAe,EAAE;AACnB,CAAC;AAACC,OAAA,CAAAJ,uCAAA,GAAAA,uCAAA"}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
6
|
var _BookingCalendarRenderItem = require("./BookingCalendarRenderItem");
|
8
|
-
|
9
7
|
Object.keys(_BookingCalendarRenderItem).forEach(function (key) {
|
10
8
|
if (key === "default" || key === "__esModule") return;
|
11
9
|
if (key in exports && exports[key] === _BookingCalendarRenderItem[key]) return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarRenderItem/index.ts"],"sourcesContent":["export * from './BookingCalendarRenderItem';\r\n"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingCalendarRenderItem","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/lib/components/bookingCalendar/bookingCalendarRenderItem/index.ts"],"sourcesContent":["export * from './BookingCalendarRenderItem';\r\n"],"mappings":";;;;;AAAA,IAAAA,0BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,0BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,0BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,0BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|