@licklist/design 0.76.0-stage.0 → 0.76.0-stage.2
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/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +3 -11
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -2
- package/dist/styles/events/EventCard.scss +1 -3
- package/package.json +1 -1
- package/src/events/event-card/EventCard.tsx +1 -8
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/styles/events/EventCard.scss +1 -3
- package/yarn.lock +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AASjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS3C,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EA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CAAC,EACxB,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,aAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,OAAO,EACP,aAAa,EACb,OAAO,GACR,EAAE,cAAc,2CA0JhB"}
|
|
@@ -6,7 +6,6 @@ import clsx from 'clsx';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import * as Config from '@licklist/core/dist/Config';
|
|
8
8
|
import { FaEye, FaQrcode, FaExternalLinkAlt, FaEdit, FaCopy, FaTrashAlt } from 'react-icons/fa';
|
|
9
|
-
import { TipTapEditor } from '../../tiptap-editor/TipTapEditor.js';
|
|
10
9
|
import { getStatisticInfo, formatContent, EVENT_DESCRIPTION_SIZE } from './utils.js';
|
|
11
10
|
import { ReactComponent as SvgChartBar } from '../../assets/dashboard/chartBar.svg.js';
|
|
12
11
|
|
|
@@ -38,13 +37,13 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
38
37
|
return target;
|
|
39
38
|
}
|
|
40
39
|
function EventCard(param) {
|
|
41
|
-
var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, onOpenQrCode = param.onOpenQrCode, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId
|
|
40
|
+
var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, onOpenQrCode = param.onOpenQrCode, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId; param.descriptionId; var eventID = param.eventID;
|
|
42
41
|
var t = useTranslation('Design').t;
|
|
43
42
|
var _useIntl = useIntl(), formatNumber = _useIntl.formatNumber, formatDate = _useIntl.formatDate;
|
|
44
43
|
var _getStatisticInfo = getStatisticInfo(eventStatistic, date), totalViews = _getStatisticInfo.totalViews, statistics = _object_without_properties(_getStatisticInfo, [
|
|
45
44
|
"totalViews"
|
|
46
45
|
]);
|
|
47
|
-
|
|
46
|
+
useMemo(function() {
|
|
48
47
|
return formatContent(description, EVENT_DESCRIPTION_SIZE);
|
|
49
48
|
}, [
|
|
50
49
|
description
|
|
@@ -93,13 +92,6 @@ function EventCard(param) {
|
|
|
93
92
|
/*#__PURE__*/ jsxs("div", {
|
|
94
93
|
className: "flex-grow-1",
|
|
95
94
|
children: [
|
|
96
|
-
/*#__PURE__*/ jsx(TipTapEditor, {
|
|
97
|
-
viewMode: true,
|
|
98
|
-
disabled: true,
|
|
99
|
-
className: clsx('event-description', !imageUrl && 'no-image'),
|
|
100
|
-
content: memoedContent,
|
|
101
|
-
id: descriptionId
|
|
102
|
-
}),
|
|
103
95
|
/*#__PURE__*/ jsx("div", {
|
|
104
96
|
className: "mt-2 ml-2",
|
|
105
97
|
children: Object.keys(statistics).map(function(key) {
|
|
@@ -171,7 +163,7 @@ function EventCard(param) {
|
|
|
171
163
|
})
|
|
172
164
|
}),
|
|
173
165
|
children: /*#__PURE__*/ jsxs("div", {
|
|
174
|
-
className: "pl-3 text-truncate",
|
|
166
|
+
className: "pl-3 mt-2 text-truncate",
|
|
175
167
|
children: [
|
|
176
168
|
t('Design:productSet'),
|
|
177
169
|
": ",
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -31,6 +31,7 @@ import { ProductWithModifierSetForm } from './ProductWithModifierSetForm.js';
|
|
|
31
31
|
|
|
32
32
|
var ProductWithModifierSetModal = function(param) {
|
|
33
33
|
var show = param.show, onHide = param.onHide, product = param.product, category = param.category, onChange = param.onChange, editOrderModifier = param.editOrderModifier;
|
|
34
|
+
var _product_images, _product_images1;
|
|
34
35
|
var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
|
|
35
36
|
useOnWindowUnmount({
|
|
36
37
|
onBeforeUnload: onBeforeUnload,
|
|
@@ -57,14 +58,14 @@ var ProductWithModifierSetModal = function(param) {
|
|
|
57
58
|
className: "right-block",
|
|
58
59
|
id: "select-event-container",
|
|
59
60
|
children: /*#__PURE__*/ jsxs("div", {
|
|
60
|
-
className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
|
|
61
|
+
className: clsx('manual-booking-container', !(product === null || product === void 0 ? void 0 : (_product_images = product.images) === null || _product_images === void 0 ? void 0 : _product_images.length) && 'tw-mt-8'),
|
|
61
62
|
children: [
|
|
62
63
|
/*#__PURE__*/ jsx("div", {
|
|
63
64
|
className: "manual-booking-header",
|
|
64
65
|
children: /*#__PURE__*/ jsx(TicketDescription, {
|
|
65
66
|
title: product.name,
|
|
66
67
|
description: product.description,
|
|
67
|
-
className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
|
|
68
|
+
className: clsx('iframe-event__product-description', !(product === null || product === void 0 ? void 0 : (_product_images1 = product.images) === null || _product_images1 === void 0 ? void 0 : _product_images1.length) && 'mt-6'),
|
|
68
69
|
classNameProductModal: "d-block",
|
|
69
70
|
images: product.images,
|
|
70
71
|
isRequired: product.isRequired,
|
|
@@ -38,10 +38,9 @@ $event-card-views-gutter: sp(3) !default;
|
|
|
38
38
|
|
|
39
39
|
.card-body {
|
|
40
40
|
padding: 0 0 3rem 0;
|
|
41
|
+
margin-bottom: $event-card-contents-gutter;
|
|
41
42
|
|
|
42
43
|
.event-description {
|
|
43
|
-
min-height: 8rem;
|
|
44
|
-
max-height: 21rem;
|
|
45
44
|
overflow: hidden;
|
|
46
45
|
|
|
47
46
|
&:last-child {
|
|
@@ -50,7 +49,6 @@ $event-card-views-gutter: sp(3) !default;
|
|
|
50
49
|
|
|
51
50
|
&.no-image {
|
|
52
51
|
min-height: 13.75rem;
|
|
53
|
-
max-height: 22rem;
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
}
|
package/package.json
CHANGED
|
@@ -109,13 +109,6 @@ export function EventCard({
|
|
|
109
109
|
)}
|
|
110
110
|
</Card.Title>
|
|
111
111
|
<div className='flex-grow-1'>
|
|
112
|
-
<TipTapEditor
|
|
113
|
-
viewMode
|
|
114
|
-
disabled
|
|
115
|
-
className={clsx('event-description', !imageUrl && 'no-image')}
|
|
116
|
-
content={memoedContent}
|
|
117
|
-
id={descriptionId}
|
|
118
|
-
/>
|
|
119
112
|
<div className='mt-2 ml-2'>
|
|
120
113
|
{Object.keys(statistics).map((key) => (
|
|
121
114
|
<div className='event-card-sale' key={key}>
|
|
@@ -162,7 +155,7 @@ export function EventCard({
|
|
|
162
155
|
</Popover>
|
|
163
156
|
}
|
|
164
157
|
>
|
|
165
|
-
<div className='pl-3 text-truncate'>
|
|
158
|
+
<div className='pl-3 mt-2 text-truncate'>
|
|
166
159
|
{t('Design:productSet')}: {productSetName}
|
|
167
160
|
</div>
|
|
168
161
|
</OverlayTrigger>
|
package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx
CHANGED
|
@@ -48,12 +48,12 @@ export const ProductWithModifierSetModal = ({
|
|
|
48
48
|
</button>
|
|
49
49
|
</div>
|
|
50
50
|
<div className='right-block' id='select-event-container'>
|
|
51
|
-
<div className={clsx('manual-booking-container', !product
|
|
51
|
+
<div className={clsx('manual-booking-container', !product?.images?.length && 'tw-mt-8')}>
|
|
52
52
|
<div className='manual-booking-header'>
|
|
53
53
|
<TicketDescription
|
|
54
54
|
title={product.name}
|
|
55
55
|
description={product.description}
|
|
56
|
-
className={clsx('iframe-event__product-description', !product
|
|
56
|
+
className={clsx('iframe-event__product-description', !product?.images?.length && 'mt-6')}
|
|
57
57
|
classNameProductModal='d-block'
|
|
58
58
|
images={product.images}
|
|
59
59
|
isRequired={product.isRequired}
|
|
@@ -38,10 +38,9 @@ $event-card-views-gutter: sp(3) !default;
|
|
|
38
38
|
|
|
39
39
|
.card-body {
|
|
40
40
|
padding: 0 0 3rem 0;
|
|
41
|
+
margin-bottom: $event-card-contents-gutter;
|
|
41
42
|
|
|
42
43
|
.event-description {
|
|
43
|
-
min-height: 8rem;
|
|
44
|
-
max-height: 21rem;
|
|
45
44
|
overflow: hidden;
|
|
46
45
|
|
|
47
46
|
&:last-child {
|
|
@@ -50,7 +49,6 @@ $event-card-views-gutter: sp(3) !default;
|
|
|
50
49
|
|
|
51
50
|
&.no-image {
|
|
52
51
|
min-height: 13.75rem;
|
|
53
|
-
max-height: 22rem;
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
}
|
package/yarn.lock
CHANGED
|
@@ -5703,11 +5703,11 @@ __metadata:
|
|
|
5703
5703
|
linkType: hard
|
|
5704
5704
|
|
|
5705
5705
|
"@types/node@npm:*":
|
|
5706
|
-
version: 24.0.
|
|
5707
|
-
resolution: "@types/node@npm:24.0.
|
|
5706
|
+
version: 24.0.3
|
|
5707
|
+
resolution: "@types/node@npm:24.0.3"
|
|
5708
5708
|
dependencies:
|
|
5709
5709
|
undici-types: "npm:~7.8.0"
|
|
5710
|
-
checksum: 10c0/
|
|
5710
|
+
checksum: 10c0/9c3c4e87600d1cf11e291c2fd4bfd806a615455463c30a0ef6dc9c801b3423344d9b82b8084e3ccabce485a7421ebb61a66e9676181bd7d9aea4759998a120d5
|
|
5711
5711
|
languageName: node
|
|
5712
5712
|
linkType: hard
|
|
5713
5713
|
|
|
@@ -8084,9 +8084,9 @@ __metadata:
|
|
|
8084
8084
|
linkType: hard
|
|
8085
8085
|
|
|
8086
8086
|
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001125, caniuse-lite@npm:^1.0.30001646, caniuse-lite@npm:^1.0.30001718":
|
|
8087
|
-
version: 1.0.
|
|
8088
|
-
resolution: "caniuse-lite@npm:1.0.
|
|
8089
|
-
checksum: 10c0/
|
|
8087
|
+
version: 1.0.30001723
|
|
8088
|
+
resolution: "caniuse-lite@npm:1.0.30001723"
|
|
8089
|
+
checksum: 10c0/e019503061759b96017c4d27ddd7ca1b48533eabcd0431b51d2e3156f99f6b031075e46c279c0db63424cdfc874bba992caec2db51b922a0f945e686246886f6
|
|
8090
8090
|
languageName: node
|
|
8091
8091
|
linkType: hard
|
|
8092
8092
|
|
|
@@ -9873,9 +9873,9 @@ __metadata:
|
|
|
9873
9873
|
linkType: hard
|
|
9874
9874
|
|
|
9875
9875
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.160":
|
|
9876
|
-
version: 1.5.
|
|
9877
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9878
|
-
checksum: 10c0/
|
|
9876
|
+
version: 1.5.167
|
|
9877
|
+
resolution: "electron-to-chromium@npm:1.5.167"
|
|
9878
|
+
checksum: 10c0/eba07d2d8ae99e1e29f1af380d005c378f71608617ca904cbe4e2b5b72b102b46c5687bdbef855e2214876729655661b2c20248cce425d54c8d40f0785cb998a
|
|
9879
9879
|
languageName: node
|
|
9880
9880
|
linkType: hard
|
|
9881
9881
|
|
|
@@ -14280,11 +14280,11 @@ __metadata:
|
|
|
14280
14280
|
linkType: hard
|
|
14281
14281
|
|
|
14282
14282
|
"markdown-to-jsx@npm:^7.1.3":
|
|
14283
|
-
version: 7.7.
|
|
14284
|
-
resolution: "markdown-to-jsx@npm:7.7.
|
|
14283
|
+
version: 7.7.7
|
|
14284
|
+
resolution: "markdown-to-jsx@npm:7.7.7"
|
|
14285
14285
|
peerDependencies:
|
|
14286
14286
|
react: ">= 0.14.0"
|
|
14287
|
-
checksum: 10c0/
|
|
14287
|
+
checksum: 10c0/d058d5e2657e034a1a4599906fbbcbb61858495c1c97a84711ba01ed3dfea932a8ae3f2ca027de4c62f13c77ad2ddc36c9b7ece66f39d3668699271000c7bab2
|
|
14288
14288
|
languageName: node
|
|
14289
14289
|
linkType: hard
|
|
14290
14290
|
|
|
@@ -17124,12 +17124,12 @@ __metadata:
|
|
|
17124
17124
|
linkType: hard
|
|
17125
17125
|
|
|
17126
17126
|
"pump@npm:^3.0.0":
|
|
17127
|
-
version: 3.0.
|
|
17128
|
-
resolution: "pump@npm:3.0.
|
|
17127
|
+
version: 3.0.3
|
|
17128
|
+
resolution: "pump@npm:3.0.3"
|
|
17129
17129
|
dependencies:
|
|
17130
17130
|
end-of-stream: "npm:^1.1.0"
|
|
17131
17131
|
once: "npm:^1.3.1"
|
|
17132
|
-
checksum: 10c0/
|
|
17132
|
+
checksum: 10c0/ada5cdf1d813065bbc99aa2c393b8f6beee73b5de2890a8754c9f488d7323ffd2ca5f5a0943b48934e3fcbd97637d0337369c3c631aeb9614915db629f1c75c9
|
|
17133
17133
|
languageName: node
|
|
17134
17134
|
linkType: hard
|
|
17135
17135
|
|