@licklist/design 0.67.2-dev.0 → 0.67.2-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +5 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +3 -6
- package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +9 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +3 -5
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +0 -4
- package/src/iframe/event/event-card/IframeEventCard.tsx +16 -2
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
- package/src/sortable-tree/SortableTreeItem.tsx +1 -7
- package/yarn.lock +74 -74
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,YAAY,iBAA0B;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,YAAY,iBAA0B;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,4CAwJxE,CAAC"}
|
|
@@ -74,11 +74,13 @@ var SaleDeadline = function(param) {
|
|
|
74
74
|
var _useState = _sliced_to_array(useState(SALE_DEADLINE_BEFORE_TYPE), 2), deadlineType = _useState[0], setDeadlineType = _useState[1];
|
|
75
75
|
var saleDeadline = watch("saleDeadline");
|
|
76
76
|
useEffect(function() {
|
|
77
|
-
if (saleDeadline) {
|
|
78
|
-
setDeadlineType(
|
|
77
|
+
if (saleDeadline > 0) {
|
|
78
|
+
setDeadlineType(SALE_DEADLINE_AFTER_TYPE);
|
|
79
79
|
}
|
|
80
80
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
81
|
-
}, [
|
|
81
|
+
}, [
|
|
82
|
+
saleDeadline
|
|
83
|
+
]);
|
|
82
84
|
return /*#__PURE__*/ jsxs(Form.Group, {
|
|
83
85
|
className: "sales-deadline",
|
|
84
86
|
children: [
|
package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,qBAAqB,8HAO/B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,qBAAqB,8HAO/B,0BAA0B,4CAkM5B,CAAC"}
|
package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js
CHANGED
|
@@ -133,7 +133,7 @@ function _ts_generator(thisArg, body) {
|
|
|
133
133
|
}
|
|
134
134
|
var SelectEventProductSet = function(param) {
|
|
135
135
|
var productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, showEditProductSet = param.showEditProductSet, setShowEditProductSet = param.setShowEditProductSet, occurrenceStartAtDate = param.occurrenceStartAtDate;
|
|
136
|
-
var _productSets_find
|
|
136
|
+
var _productSets_find;
|
|
137
137
|
var t = useTranslation([
|
|
138
138
|
"Design"
|
|
139
139
|
]).t;
|
|
@@ -142,9 +142,6 @@ var SelectEventProductSet = function(param) {
|
|
|
142
142
|
var productSetsId = useId();
|
|
143
143
|
var productSetId = watch("productSetId");
|
|
144
144
|
var editedProductSet = watch("editedProductSet");
|
|
145
|
-
(_productSets_find = productSets.find(function(productSet) {
|
|
146
|
-
return productSet.id === productSetId;
|
|
147
|
-
})) === null || _productSets_find === void 0 ? void 0 : _productSets_find.parentMenuId;
|
|
148
145
|
var onEditProductSet = useCallback(function() {
|
|
149
146
|
setEditProductSetId(String(productSetId));
|
|
150
147
|
setShowEditProductSet(true);
|
|
@@ -207,9 +204,9 @@ var SelectEventProductSet = function(param) {
|
|
|
207
204
|
setValue("productSetId", value);
|
|
208
205
|
};
|
|
209
206
|
var showOverrideProductSet = !showEditProductSet && productSetId;
|
|
210
|
-
var isOverrideProductSet = (
|
|
207
|
+
var isOverrideProductSet = (_productSets_find = productSets.find(function(productSet) {
|
|
211
208
|
return productSet.id === productSetId;
|
|
212
|
-
})) === null ||
|
|
209
|
+
})) === null || _productSets_find === void 0 ? void 0 : _productSets_find.isOverride;
|
|
213
210
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
214
211
|
var onSubmit = function(value) {
|
|
215
212
|
setShowEditProductSet(false);
|
|
@@ -17,6 +17,6 @@ interface IframeEventCardProps {
|
|
|
17
17
|
imageClassName?: string;
|
|
18
18
|
showMoreInfo?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare function IframeEventCard({ title, type, cost, date, imageSrc, colour, goToDetails, description, isListView, className, shortDate, titleId, descriptionId, imageClassName, showMoreInfo, }: IframeEventCardProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function IframeEventCard({ title, type, cost, date, imageSrc, colour, goToDetails, description, isListView, className, shortDate, titleId, descriptionId, imageClassName, showMoreInfo, snippetSetting, }: IframeEventCardProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=IframeEventCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,
|
|
1
|
+
{"version":3,"file":"IframeEventCard.d.ts","sourceRoot":"","sources":["../../../../src/iframe/event/event-card/IframeEventCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AASpF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE,oBAAoB,2CAuGtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Card } from 'react-bootstrap';
|
|
2
|
+
import { Card, Button } from 'react-bootstrap';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -11,7 +11,7 @@ import { ReactComponent as SvgTicket } from '../../../assets/iframe/ticket.svg.j
|
|
|
11
11
|
|
|
12
12
|
var DESCRIPTION_MAX_LENGTH = 150;
|
|
13
13
|
function IframeEventCard(param) {
|
|
14
|
-
var title = param.title, type = param.type, cost = param.cost, date = param.date, imageSrc = param.imageSrc, colour = param.colour, goToDetails = param.goToDetails, description = param.description, _param_isListView = param.isListView, isListView = _param_isListView === void 0 ? false : _param_isListView, className = param.className, shortDate = param.shortDate, titleId = param.titleId, descriptionId = param.descriptionId, imageClassName = param.imageClassName, showMoreInfo = param.showMoreInfo;
|
|
14
|
+
var title = param.title, type = param.type, cost = param.cost, date = param.date, imageSrc = param.imageSrc, colour = param.colour, goToDetails = param.goToDetails, description = param.description, _param_isListView = param.isListView, isListView = _param_isListView === void 0 ? false : _param_isListView, className = param.className, shortDate = param.shortDate, titleId = param.titleId, descriptionId = param.descriptionId, imageClassName = param.imageClassName, showMoreInfo = param.showMoreInfo, snippetSetting = param.snippetSetting;
|
|
15
15
|
var formatNumber = useIntl().formatNumber;
|
|
16
16
|
var t = useTranslation("Design").t;
|
|
17
17
|
var onClick = function() {
|
|
@@ -25,7 +25,7 @@ function IframeEventCard(param) {
|
|
|
25
25
|
className: clsx("iframe-event-card", {
|
|
26
26
|
"list-view": isListView
|
|
27
27
|
}, className),
|
|
28
|
-
onClick: goToDetails ? onClick : undefined,
|
|
28
|
+
onClick: goToDetails || !snippetSetting.displayBookingButtonOnEventList ? onClick : undefined,
|
|
29
29
|
children: [
|
|
30
30
|
showMoreInfo && /*#__PURE__*/ jsx("div", {
|
|
31
31
|
className: "iframe-event-card__info-icon",
|
|
@@ -119,6 +119,12 @@ function IframeEventCard(param) {
|
|
|
119
119
|
content: formatContent(description, DESCRIPTION_MAX_LENGTH),
|
|
120
120
|
id: descriptionId
|
|
121
121
|
})
|
|
122
|
+
}),
|
|
123
|
+
!!snippetSetting.displayBookingButtonOnEventList && showMoreInfo && /*#__PURE__*/ jsx(Button, {
|
|
124
|
+
className: "step-save-btn w-25 mt-4",
|
|
125
|
+
type: "button",
|
|
126
|
+
onClick: onClick,
|
|
127
|
+
children: t("book")
|
|
122
128
|
})
|
|
123
129
|
]
|
|
124
130
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAC;AAiBpE,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAkB,EAClB,YAAmB,EACnB,SAAiB,EACjB,cAAqB,EACrB,iBAAsB,EACtB,UAAe,EACf,UAAU,EACV,UAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,2CA+TvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.67.2-dev.
|
|
3
|
+
"version": "0.67.2-dev.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.28.6-dev.
|
|
45
|
+
"@licklist/core": "0.28.6-dev.3",
|
|
46
46
|
"@licklist/eslint-config": "0.5.5",
|
|
47
47
|
"@licklist/plugins": "0.32.0-dev.0",
|
|
48
48
|
"lodash": "4.17.21",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.28.6-dev.
|
|
64
|
+
"@licklist/core": "0.28.6-dev.3",
|
|
65
65
|
"@licklist/eslint-config": "0.5.5",
|
|
66
66
|
"@licklist/plugins": "0.30.4-dev.3",
|
|
67
67
|
"@mdx-js/react": "1.6.22",
|
|
@@ -35,13 +35,11 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
|
|
|
35
35
|
const saleDeadline = watch("saleDeadline");
|
|
36
36
|
|
|
37
37
|
useEffect(() => {
|
|
38
|
-
if (saleDeadline) {
|
|
39
|
-
setDeadlineType(
|
|
40
|
-
saleDeadline < 0 ? SALE_DEADLINE_BEFORE_TYPE : SALE_DEADLINE_AFTER_TYPE,
|
|
41
|
-
);
|
|
38
|
+
if (saleDeadline > 0) {
|
|
39
|
+
setDeadlineType(SALE_DEADLINE_AFTER_TYPE);
|
|
42
40
|
}
|
|
43
41
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44
|
-
}, []);
|
|
42
|
+
}, [saleDeadline]);
|
|
45
43
|
|
|
46
44
|
return (
|
|
47
45
|
<Form.Group className="sales-deadline">
|
package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx
CHANGED
|
@@ -42,10 +42,6 @@ export const SelectEventProductSet = ({
|
|
|
42
42
|
const productSetId = watch("productSetId");
|
|
43
43
|
const editedProductSet = watch("editedProductSet");
|
|
44
44
|
|
|
45
|
-
const selectedProductSet = productSets.find(
|
|
46
|
-
(productSet) => productSet.id === productSetId,
|
|
47
|
-
)?.parentMenuId;
|
|
48
|
-
|
|
49
45
|
const onEditProductSet = useCallback(
|
|
50
46
|
() => {
|
|
51
47
|
setEditProductSetId(String(productSetId));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card } from "react-bootstrap";
|
|
1
|
+
import { Button, Card } from "react-bootstrap";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import clsx from "clsx";
|
|
@@ -47,6 +47,7 @@ export function IframeEventCard({
|
|
|
47
47
|
descriptionId,
|
|
48
48
|
imageClassName,
|
|
49
49
|
showMoreInfo,
|
|
50
|
+
snippetSetting,
|
|
50
51
|
}: IframeEventCardProps) {
|
|
51
52
|
const { formatNumber } = useIntl();
|
|
52
53
|
const { t } = useTranslation("Design");
|
|
@@ -69,7 +70,11 @@ export function IframeEventCard({
|
|
|
69
70
|
{ "list-view": isListView },
|
|
70
71
|
className,
|
|
71
72
|
)}
|
|
72
|
-
onClick={
|
|
73
|
+
onClick={
|
|
74
|
+
goToDetails || !snippetSetting.displayBookingButtonOnEventList
|
|
75
|
+
? onClick
|
|
76
|
+
: undefined
|
|
77
|
+
}
|
|
73
78
|
>
|
|
74
79
|
{showMoreInfo && <div className="iframe-event-card__info-icon">i</div>}
|
|
75
80
|
{imageSrc && (
|
|
@@ -133,6 +138,15 @@ export function IframeEventCard({
|
|
|
133
138
|
/>
|
|
134
139
|
</Card.Text>
|
|
135
140
|
)}
|
|
141
|
+
{!!snippetSetting.displayBookingButtonOnEventList && showMoreInfo && (
|
|
142
|
+
<Button
|
|
143
|
+
className="step-save-btn w-25 mt-4"
|
|
144
|
+
type="button"
|
|
145
|
+
onClick={onClick}
|
|
146
|
+
>
|
|
147
|
+
{t("book")}
|
|
148
|
+
</Button>
|
|
149
|
+
)}
|
|
136
150
|
</div>
|
|
137
151
|
</Card.Body>
|
|
138
152
|
</Card>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState, useContext } from "react";
|
|
2
2
|
import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
|
|
3
3
|
import { uniqueId } from "lodash";
|
|
4
|
-
import { Badge
|
|
4
|
+
import { Badge } from "react-bootstrap";
|
|
5
5
|
import {
|
|
6
6
|
Controller,
|
|
7
7
|
useFieldArray,
|
package/yarn.lock
CHANGED
|
@@ -2587,9 +2587,9 @@ __metadata:
|
|
|
2587
2587
|
languageName: node
|
|
2588
2588
|
linkType: hard
|
|
2589
2589
|
|
|
2590
|
-
"@licklist/core@npm:0.28.6-dev.
|
|
2591
|
-
version: 0.28.6-dev.
|
|
2592
|
-
resolution: "@licklist/core@npm:0.28.6-dev.
|
|
2590
|
+
"@licklist/core@npm:0.28.6-dev.3":
|
|
2591
|
+
version: 0.28.6-dev.3
|
|
2592
|
+
resolution: "@licklist/core@npm:0.28.6-dev.3"
|
|
2593
2593
|
dependencies:
|
|
2594
2594
|
"@sentry/browser": "npm:6.2.0"
|
|
2595
2595
|
axios: "npm:0.26.0"
|
|
@@ -2609,7 +2609,7 @@ __metadata:
|
|
|
2609
2609
|
react-dom: 17.0.2
|
|
2610
2610
|
react-i18next: 11.8.8
|
|
2611
2611
|
react-intl: 6.6.8
|
|
2612
|
-
checksum: 10c0/
|
|
2612
|
+
checksum: 10c0/f3a24b85a5bb36e4a291d01ec00d480b01ed03fa3009645ea89577d224ad566007fce7dc2cd1a53ad10e9f4d5a2e3397e70d3a941f67d541e419f3835bb50860
|
|
2613
2613
|
languageName: node
|
|
2614
2614
|
linkType: hard
|
|
2615
2615
|
|
|
@@ -2624,7 +2624,7 @@ __metadata:
|
|
|
2624
2624
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2625
2625
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2626
2626
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2627
|
-
"@licklist/core": "npm:0.28.6-dev.
|
|
2627
|
+
"@licklist/core": "npm:0.28.6-dev.3"
|
|
2628
2628
|
"@licklist/eslint-config": "npm:0.5.5"
|
|
2629
2629
|
"@licklist/plugins": "npm:0.30.4-dev.3"
|
|
2630
2630
|
"@mdx-js/react": "npm:1.6.22"
|
|
@@ -2748,7 +2748,7 @@ __metadata:
|
|
|
2748
2748
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2749
2749
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2750
2750
|
peerDependencies:
|
|
2751
|
-
"@licklist/core": 0.28.6-dev.
|
|
2751
|
+
"@licklist/core": 0.28.6-dev.3
|
|
2752
2752
|
"@licklist/eslint-config": 0.5.5
|
|
2753
2753
|
"@licklist/plugins": 0.32.0-dev.0
|
|
2754
2754
|
lodash: 4.17.21
|
|
@@ -3226,114 +3226,114 @@ __metadata:
|
|
|
3226
3226
|
languageName: node
|
|
3227
3227
|
linkType: hard
|
|
3228
3228
|
|
|
3229
|
-
"@rollup/rollup-android-arm-eabi@npm:4.22.
|
|
3230
|
-
version: 4.22.
|
|
3231
|
-
resolution: "@rollup/rollup-android-arm-eabi@npm:4.22.
|
|
3229
|
+
"@rollup/rollup-android-arm-eabi@npm:4.22.2":
|
|
3230
|
+
version: 4.22.2
|
|
3231
|
+
resolution: "@rollup/rollup-android-arm-eabi@npm:4.22.2"
|
|
3232
3232
|
conditions: os=android & cpu=arm
|
|
3233
3233
|
languageName: node
|
|
3234
3234
|
linkType: hard
|
|
3235
3235
|
|
|
3236
|
-
"@rollup/rollup-android-arm64@npm:4.22.
|
|
3237
|
-
version: 4.22.
|
|
3238
|
-
resolution: "@rollup/rollup-android-arm64@npm:4.22.
|
|
3236
|
+
"@rollup/rollup-android-arm64@npm:4.22.2":
|
|
3237
|
+
version: 4.22.2
|
|
3238
|
+
resolution: "@rollup/rollup-android-arm64@npm:4.22.2"
|
|
3239
3239
|
conditions: os=android & cpu=arm64
|
|
3240
3240
|
languageName: node
|
|
3241
3241
|
linkType: hard
|
|
3242
3242
|
|
|
3243
|
-
"@rollup/rollup-darwin-arm64@npm:4.22.
|
|
3244
|
-
version: 4.22.
|
|
3245
|
-
resolution: "@rollup/rollup-darwin-arm64@npm:4.22.
|
|
3243
|
+
"@rollup/rollup-darwin-arm64@npm:4.22.2":
|
|
3244
|
+
version: 4.22.2
|
|
3245
|
+
resolution: "@rollup/rollup-darwin-arm64@npm:4.22.2"
|
|
3246
3246
|
conditions: os=darwin & cpu=arm64
|
|
3247
3247
|
languageName: node
|
|
3248
3248
|
linkType: hard
|
|
3249
3249
|
|
|
3250
|
-
"@rollup/rollup-darwin-x64@npm:4.22.
|
|
3251
|
-
version: 4.22.
|
|
3252
|
-
resolution: "@rollup/rollup-darwin-x64@npm:4.22.
|
|
3250
|
+
"@rollup/rollup-darwin-x64@npm:4.22.2":
|
|
3251
|
+
version: 4.22.2
|
|
3252
|
+
resolution: "@rollup/rollup-darwin-x64@npm:4.22.2"
|
|
3253
3253
|
conditions: os=darwin & cpu=x64
|
|
3254
3254
|
languageName: node
|
|
3255
3255
|
linkType: hard
|
|
3256
3256
|
|
|
3257
|
-
"@rollup/rollup-linux-arm-gnueabihf@npm:4.22.
|
|
3258
|
-
version: 4.22.
|
|
3259
|
-
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.22.
|
|
3257
|
+
"@rollup/rollup-linux-arm-gnueabihf@npm:4.22.2":
|
|
3258
|
+
version: 4.22.2
|
|
3259
|
+
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.22.2"
|
|
3260
3260
|
conditions: os=linux & cpu=arm & libc=glibc
|
|
3261
3261
|
languageName: node
|
|
3262
3262
|
linkType: hard
|
|
3263
3263
|
|
|
3264
|
-
"@rollup/rollup-linux-arm-musleabihf@npm:4.22.
|
|
3265
|
-
version: 4.22.
|
|
3266
|
-
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.22.
|
|
3264
|
+
"@rollup/rollup-linux-arm-musleabihf@npm:4.22.2":
|
|
3265
|
+
version: 4.22.2
|
|
3266
|
+
resolution: "@rollup/rollup-linux-arm-musleabihf@npm:4.22.2"
|
|
3267
3267
|
conditions: os=linux & cpu=arm & libc=musl
|
|
3268
3268
|
languageName: node
|
|
3269
3269
|
linkType: hard
|
|
3270
3270
|
|
|
3271
|
-
"@rollup/rollup-linux-arm64-gnu@npm:4.22.
|
|
3272
|
-
version: 4.22.
|
|
3273
|
-
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.22.
|
|
3271
|
+
"@rollup/rollup-linux-arm64-gnu@npm:4.22.2":
|
|
3272
|
+
version: 4.22.2
|
|
3273
|
+
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.22.2"
|
|
3274
3274
|
conditions: os=linux & cpu=arm64 & libc=glibc
|
|
3275
3275
|
languageName: node
|
|
3276
3276
|
linkType: hard
|
|
3277
3277
|
|
|
3278
|
-
"@rollup/rollup-linux-arm64-musl@npm:4.22.
|
|
3279
|
-
version: 4.22.
|
|
3280
|
-
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.22.
|
|
3278
|
+
"@rollup/rollup-linux-arm64-musl@npm:4.22.2":
|
|
3279
|
+
version: 4.22.2
|
|
3280
|
+
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.22.2"
|
|
3281
3281
|
conditions: os=linux & cpu=arm64 & libc=musl
|
|
3282
3282
|
languageName: node
|
|
3283
3283
|
linkType: hard
|
|
3284
3284
|
|
|
3285
|
-
"@rollup/rollup-linux-powerpc64le-gnu@npm:4.22.
|
|
3286
|
-
version: 4.22.
|
|
3287
|
-
resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.22.
|
|
3285
|
+
"@rollup/rollup-linux-powerpc64le-gnu@npm:4.22.2":
|
|
3286
|
+
version: 4.22.2
|
|
3287
|
+
resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.22.2"
|
|
3288
3288
|
conditions: os=linux & cpu=ppc64 & libc=glibc
|
|
3289
3289
|
languageName: node
|
|
3290
3290
|
linkType: hard
|
|
3291
3291
|
|
|
3292
|
-
"@rollup/rollup-linux-riscv64-gnu@npm:4.22.
|
|
3293
|
-
version: 4.22.
|
|
3294
|
-
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.22.
|
|
3292
|
+
"@rollup/rollup-linux-riscv64-gnu@npm:4.22.2":
|
|
3293
|
+
version: 4.22.2
|
|
3294
|
+
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.22.2"
|
|
3295
3295
|
conditions: os=linux & cpu=riscv64 & libc=glibc
|
|
3296
3296
|
languageName: node
|
|
3297
3297
|
linkType: hard
|
|
3298
3298
|
|
|
3299
|
-
"@rollup/rollup-linux-s390x-gnu@npm:4.22.
|
|
3300
|
-
version: 4.22.
|
|
3301
|
-
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.22.
|
|
3299
|
+
"@rollup/rollup-linux-s390x-gnu@npm:4.22.2":
|
|
3300
|
+
version: 4.22.2
|
|
3301
|
+
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.22.2"
|
|
3302
3302
|
conditions: os=linux & cpu=s390x & libc=glibc
|
|
3303
3303
|
languageName: node
|
|
3304
3304
|
linkType: hard
|
|
3305
3305
|
|
|
3306
|
-
"@rollup/rollup-linux-x64-gnu@npm:4.22.
|
|
3307
|
-
version: 4.22.
|
|
3308
|
-
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.22.
|
|
3306
|
+
"@rollup/rollup-linux-x64-gnu@npm:4.22.2":
|
|
3307
|
+
version: 4.22.2
|
|
3308
|
+
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.22.2"
|
|
3309
3309
|
conditions: os=linux & cpu=x64 & libc=glibc
|
|
3310
3310
|
languageName: node
|
|
3311
3311
|
linkType: hard
|
|
3312
3312
|
|
|
3313
|
-
"@rollup/rollup-linux-x64-musl@npm:4.22.
|
|
3314
|
-
version: 4.22.
|
|
3315
|
-
resolution: "@rollup/rollup-linux-x64-musl@npm:4.22.
|
|
3313
|
+
"@rollup/rollup-linux-x64-musl@npm:4.22.2":
|
|
3314
|
+
version: 4.22.2
|
|
3315
|
+
resolution: "@rollup/rollup-linux-x64-musl@npm:4.22.2"
|
|
3316
3316
|
conditions: os=linux & cpu=x64 & libc=musl
|
|
3317
3317
|
languageName: node
|
|
3318
3318
|
linkType: hard
|
|
3319
3319
|
|
|
3320
|
-
"@rollup/rollup-win32-arm64-msvc@npm:4.22.
|
|
3321
|
-
version: 4.22.
|
|
3322
|
-
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.22.
|
|
3320
|
+
"@rollup/rollup-win32-arm64-msvc@npm:4.22.2":
|
|
3321
|
+
version: 4.22.2
|
|
3322
|
+
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.22.2"
|
|
3323
3323
|
conditions: os=win32 & cpu=arm64
|
|
3324
3324
|
languageName: node
|
|
3325
3325
|
linkType: hard
|
|
3326
3326
|
|
|
3327
|
-
"@rollup/rollup-win32-ia32-msvc@npm:4.22.
|
|
3328
|
-
version: 4.22.
|
|
3329
|
-
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.22.
|
|
3327
|
+
"@rollup/rollup-win32-ia32-msvc@npm:4.22.2":
|
|
3328
|
+
version: 4.22.2
|
|
3329
|
+
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.22.2"
|
|
3330
3330
|
conditions: os=win32 & cpu=ia32
|
|
3331
3331
|
languageName: node
|
|
3332
3332
|
linkType: hard
|
|
3333
3333
|
|
|
3334
|
-
"@rollup/rollup-win32-x64-msvc@npm:4.22.
|
|
3335
|
-
version: 4.22.
|
|
3336
|
-
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.22.
|
|
3334
|
+
"@rollup/rollup-win32-x64-msvc@npm:4.22.2":
|
|
3335
|
+
version: 4.22.2
|
|
3336
|
+
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.22.2"
|
|
3337
3337
|
conditions: os=win32 & cpu=x64
|
|
3338
3338
|
languageName: node
|
|
3339
3339
|
linkType: hard
|
|
@@ -17898,25 +17898,25 @@ __metadata:
|
|
|
17898
17898
|
linkType: hard
|
|
17899
17899
|
|
|
17900
17900
|
"rollup@npm:^4.13.0":
|
|
17901
|
-
version: 4.22.
|
|
17902
|
-
resolution: "rollup@npm:4.22.
|
|
17903
|
-
dependencies:
|
|
17904
|
-
"@rollup/rollup-android-arm-eabi": "npm:4.22.
|
|
17905
|
-
"@rollup/rollup-android-arm64": "npm:4.22.
|
|
17906
|
-
"@rollup/rollup-darwin-arm64": "npm:4.22.
|
|
17907
|
-
"@rollup/rollup-darwin-x64": "npm:4.22.
|
|
17908
|
-
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.22.
|
|
17909
|
-
"@rollup/rollup-linux-arm-musleabihf": "npm:4.22.
|
|
17910
|
-
"@rollup/rollup-linux-arm64-gnu": "npm:4.22.
|
|
17911
|
-
"@rollup/rollup-linux-arm64-musl": "npm:4.22.
|
|
17912
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "npm:4.22.
|
|
17913
|
-
"@rollup/rollup-linux-riscv64-gnu": "npm:4.22.
|
|
17914
|
-
"@rollup/rollup-linux-s390x-gnu": "npm:4.22.
|
|
17915
|
-
"@rollup/rollup-linux-x64-gnu": "npm:4.22.
|
|
17916
|
-
"@rollup/rollup-linux-x64-musl": "npm:4.22.
|
|
17917
|
-
"@rollup/rollup-win32-arm64-msvc": "npm:4.22.
|
|
17918
|
-
"@rollup/rollup-win32-ia32-msvc": "npm:4.22.
|
|
17919
|
-
"@rollup/rollup-win32-x64-msvc": "npm:4.22.
|
|
17901
|
+
version: 4.22.2
|
|
17902
|
+
resolution: "rollup@npm:4.22.2"
|
|
17903
|
+
dependencies:
|
|
17904
|
+
"@rollup/rollup-android-arm-eabi": "npm:4.22.2"
|
|
17905
|
+
"@rollup/rollup-android-arm64": "npm:4.22.2"
|
|
17906
|
+
"@rollup/rollup-darwin-arm64": "npm:4.22.2"
|
|
17907
|
+
"@rollup/rollup-darwin-x64": "npm:4.22.2"
|
|
17908
|
+
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.22.2"
|
|
17909
|
+
"@rollup/rollup-linux-arm-musleabihf": "npm:4.22.2"
|
|
17910
|
+
"@rollup/rollup-linux-arm64-gnu": "npm:4.22.2"
|
|
17911
|
+
"@rollup/rollup-linux-arm64-musl": "npm:4.22.2"
|
|
17912
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "npm:4.22.2"
|
|
17913
|
+
"@rollup/rollup-linux-riscv64-gnu": "npm:4.22.2"
|
|
17914
|
+
"@rollup/rollup-linux-s390x-gnu": "npm:4.22.2"
|
|
17915
|
+
"@rollup/rollup-linux-x64-gnu": "npm:4.22.2"
|
|
17916
|
+
"@rollup/rollup-linux-x64-musl": "npm:4.22.2"
|
|
17917
|
+
"@rollup/rollup-win32-arm64-msvc": "npm:4.22.2"
|
|
17918
|
+
"@rollup/rollup-win32-ia32-msvc": "npm:4.22.2"
|
|
17919
|
+
"@rollup/rollup-win32-x64-msvc": "npm:4.22.2"
|
|
17920
17920
|
"@types/estree": "npm:1.0.5"
|
|
17921
17921
|
fsevents: "npm:~2.3.2"
|
|
17922
17922
|
dependenciesMeta:
|
|
@@ -17956,7 +17956,7 @@ __metadata:
|
|
|
17956
17956
|
optional: true
|
|
17957
17957
|
bin:
|
|
17958
17958
|
rollup: dist/bin/rollup
|
|
17959
|
-
checksum: 10c0/
|
|
17959
|
+
checksum: 10c0/1e2bfde5497ebec161e9fb6dd56cf1455454f3ccc8b104e4147c67a46a71fe123c6405cc1a79a49954729a91c1141b4e00ff49c4ae79523939b45137675b288e
|
|
17960
17960
|
languageName: node
|
|
17961
17961
|
linkType: hard
|
|
17962
17962
|
|