pds-dev-kit-web-test 2.5.338 → 2.5.339
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/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1 -1
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +291 -0
- package/dist/src/sub/DynamicLayout/mocks.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/mocks.js +14 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +93 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +188 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +357 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +11 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +16 -1
- package/package.json +1 -1
@@ -0,0 +1,188 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
4
|
+
return cooked;
|
5
|
+
};
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
7
|
+
__assign = Object.assign || function(t) {
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
9
|
+
s = arguments[i];
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
11
|
+
t[p] = s[p];
|
12
|
+
}
|
13
|
+
return t;
|
14
|
+
};
|
15
|
+
return __assign.apply(this, arguments);
|
16
|
+
};
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
18
|
+
if (k2 === undefined) k2 = k;
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
22
|
+
}
|
23
|
+
Object.defineProperty(o, k2, desc);
|
24
|
+
}) : (function(o, m, k, k2) {
|
25
|
+
if (k2 === undefined) k2 = k;
|
26
|
+
o[k2] = m[k];
|
27
|
+
}));
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
30
|
+
}) : function(o, v) {
|
31
|
+
o["default"] = v;
|
32
|
+
});
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
34
|
+
if (mod && mod.__esModule) return mod;
|
35
|
+
var result = {};
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
37
|
+
__setModuleDefault(result, mod);
|
38
|
+
return result;
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.CustomPagination = void 0;
|
42
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
43
|
+
var components_1 = require("../../../../../../../../DynamicLayout/components");
|
44
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
45
|
+
var CustomPagination = function (_a) {
|
46
|
+
var effectVisibleStyle = _a.effectVisibleStyle, _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, onBulletClick = _a.onBulletClick;
|
47
|
+
var bullets = Array.from({ length: total }, function (_, i) { return i; });
|
48
|
+
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), "$offset": offset, "$size": size, effectVisibleStyle: effectVisibleStyle }, { children: (function () {
|
49
|
+
switch (type) {
|
50
|
+
case 'NONE':
|
51
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
52
|
+
case 'DESIGN1':
|
53
|
+
case 'DESIGN2':
|
54
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) }))] })));
|
55
|
+
case 'DESIGN3':
|
56
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: "/ ".concat(total) }))] })));
|
57
|
+
case 'DESIGN4':
|
58
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
|
59
|
+
case 'DESIGN5':
|
60
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: total }))] })));
|
61
|
+
case 'DESIGN6':
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] }));
|
63
|
+
case 'DESIGN7':
|
64
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] }));
|
65
|
+
case 'DESIGN8':
|
66
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] })));
|
67
|
+
case 'DESIGN9':
|
68
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] })));
|
69
|
+
case 'DESIGN10':
|
70
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
|
71
|
+
case 'DESIGN11':
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: "DARK" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total }))] })));
|
73
|
+
case 'DESIGN12':
|
74
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
75
|
+
case 'DESIGN13':
|
76
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
77
|
+
case 'DESIGN14':
|
78
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
79
|
+
case 'DESIGN15':
|
80
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
81
|
+
case 'DESIGN16':
|
82
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
83
|
+
case 'DESIGN17':
|
84
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
85
|
+
default:
|
86
|
+
return (0, jsx_runtime_1.jsx)("div", { children: "Default Design" });
|
87
|
+
}
|
88
|
+
})() })));
|
89
|
+
};
|
90
|
+
exports.CustomPagination = CustomPagination;
|
91
|
+
var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"], ["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"])), function (_a) {
|
92
|
+
var _b = _a.alignItems, alignItems = _b === void 0 ? 'center' : _b;
|
93
|
+
return alignItems;
|
94
|
+
}, function (_a) {
|
95
|
+
var _b = _a.direction, direction = _b === void 0 ? 'row' : _b;
|
96
|
+
return direction;
|
97
|
+
}, function (_a) {
|
98
|
+
var _b = _a.gap, gap = _b === void 0 ? '0' : _b;
|
99
|
+
return gap;
|
100
|
+
}, function (_a) {
|
101
|
+
var _b = _a.justifyContent, justifyContent = _b === void 0 ? 'center' : _b;
|
102
|
+
return justifyContent;
|
103
|
+
});
|
104
|
+
var S_Pagination = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n /* ", "; */\n"], ["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n /* ", "; */\n"])), function (_a) {
|
105
|
+
var $offset = _a.$offset;
|
106
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
|
107
|
+
}, function (_a) {
|
108
|
+
var _b, _c;
|
109
|
+
var $size = _a.$size, $offset = _a.$offset;
|
110
|
+
return "scale(".concat($size, ") translate(").concat((_b = $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
|
111
|
+
}, function (_a) {
|
112
|
+
var $offset = _a.$offset;
|
113
|
+
return $offset.transformOrigin || 'center center';
|
114
|
+
}, function (_a) {
|
115
|
+
var effectVisibleStyle = _a.effectVisibleStyle;
|
116
|
+
return effectVisibleStyle && __assign({}, effectVisibleStyle);
|
117
|
+
});
|
118
|
+
var body2Bold = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
119
|
+
var theme = _a.theme;
|
120
|
+
return theme.desktopFontSize.body2;
|
121
|
+
}, function (_a) {
|
122
|
+
var theme = _a.theme;
|
123
|
+
return theme.fontWeight.bold;
|
124
|
+
}, function (_a) {
|
125
|
+
var theme = _a.theme;
|
126
|
+
return theme.desktopLineHeight.body2;
|
127
|
+
});
|
128
|
+
var body2Regular = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
129
|
+
var theme = _a.theme;
|
130
|
+
return theme.desktopFontSize.body2;
|
131
|
+
}, function (_a) {
|
132
|
+
var theme = _a.theme;
|
133
|
+
return theme.fontWeight.normal;
|
134
|
+
}, function (_a) {
|
135
|
+
var theme = _a.theme;
|
136
|
+
return theme.desktopLineHeight.body2;
|
137
|
+
});
|
138
|
+
var sysTextWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
139
|
+
var theme = _a.theme;
|
140
|
+
return theme.ui_cpnt_textlabel_sys_white;
|
141
|
+
});
|
142
|
+
var sysTextBlack = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
143
|
+
var theme = _a.theme;
|
144
|
+
return theme.ui_cpnt_textlabel_sys_black;
|
145
|
+
});
|
146
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n\n ", ";\n"], ["\n ", ";\n\n ", ";\n"])), function (_a) {
|
147
|
+
var styleTheme = _a.styleTheme;
|
148
|
+
return styleTheme &&
|
149
|
+
{
|
150
|
+
body2Bold: body2Bold,
|
151
|
+
body2Regular: body2Regular
|
152
|
+
}[styleTheme];
|
153
|
+
}, function (_a) {
|
154
|
+
var colorTheme = _a.colorTheme;
|
155
|
+
return colorTheme
|
156
|
+
? {
|
157
|
+
sysTextWhite: sysTextWhite,
|
158
|
+
sysTextBlack: sysTextBlack
|
159
|
+
}[colorTheme]
|
160
|
+
: sysTextWhite;
|
161
|
+
});
|
162
|
+
var verticalDivider = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 16px;\n width: 1px;\n"], ["\n height: 16px;\n width: 1px;\n"])));
|
163
|
+
var horizontalDivider = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 1px;\n width: 100%;\n"], ["\n height: 1px;\n width: 100%;\n"])));
|
164
|
+
var S_Divider = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n opacity: 0.6;\n ", ";\n"], ["\n background-color: ", ";\n opacity: 0.6;\n ", ";\n"])), function (_a) {
|
165
|
+
var color = _a.color;
|
166
|
+
return (color === 'WHITE' ? '#ffffff' : '#000000');
|
167
|
+
}, function (_a) {
|
168
|
+
var type = _a.type;
|
169
|
+
return (type === 'VERTICAL' ? verticalDivider : horizontalDivider);
|
170
|
+
});
|
171
|
+
var whiteBullet = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: #ffffff;\n opacity: ", ";\n"], ["\n background-color: #ffffff;\n opacity: ", ";\n"])), function (_a) {
|
172
|
+
var isActive = _a.isActive;
|
173
|
+
return (isActive ? 1 : 0.2);
|
174
|
+
});
|
175
|
+
var darkBullet = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: #000000;\n opacity: ", ";\n"], ["\n background-color: #000000;\n opacity: ", ";\n"])), function (_a) {
|
176
|
+
var isActive = _a.isActive;
|
177
|
+
return (isActive ? 1 : 0.3);
|
178
|
+
});
|
179
|
+
var S_Dot = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n ", ";\n"], ["\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n ", ";\n"])), function (_a) {
|
180
|
+
var color = _a.color;
|
181
|
+
return (color === 'WHITE' ? whiteBullet : darkBullet);
|
182
|
+
});
|
183
|
+
var S_Bar = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n cursor: pointer;\n height: 2px;\n width: 40px;\n ", ";\n"], ["\n cursor: pointer;\n height: 2px;\n width: 40px;\n ", ";\n"])), function (_a) {
|
184
|
+
var color = _a.color;
|
185
|
+
return (color === 'WHITE' ? whiteBullet : darkBullet);
|
186
|
+
});
|
187
|
+
exports.default = exports.CustomPagination;
|
188
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { FlattenSimpleInterpolation } from 'styled-components';
|
2
|
+
import type { CB_CONTENT_PROP_CONTENTSLIST } from '../types';
|
3
|
+
import type { CustomPaginationProps } from './components/CustomPagination';
|
4
|
+
import type { CB_STYLE_PROP_CONTENTSLIST_SPECS, ContentsListPropsKeys } from './types';
|
5
|
+
import type { Device } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
6
|
+
type StyleProps = {
|
7
|
+
props: CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
8
|
+
device: Device;
|
9
|
+
};
|
10
|
+
type ContentProps = {
|
11
|
+
props: CB_CONTENT_PROP_CONTENTSLIST;
|
12
|
+
};
|
13
|
+
type PaginationProps = {
|
14
|
+
props: CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
15
|
+
device: Device;
|
16
|
+
};
|
17
|
+
type CssFragment = FlattenSimpleInterpolation;
|
18
|
+
export declare function parseGridStyleProp({ props, device }: StyleProps): {
|
19
|
+
stylePropCss: CssFragment;
|
20
|
+
hoverStylePropCss: CssFragment;
|
21
|
+
};
|
22
|
+
export declare function parseGridContentProp({ props }: ContentProps): {
|
23
|
+
contentPropCss: CssFragment;
|
24
|
+
};
|
25
|
+
export declare function parsePaginationStyleProp({ props, device }: PaginationProps): {
|
26
|
+
normalStyle: CustomPaginationProps;
|
27
|
+
hoverStyle: CustomPaginationProps;
|
28
|
+
};
|
29
|
+
export declare function getCustomPaginationPropKey(key: ContentsListPropsKeys): "" | "size" | "type" | "offset";
|
30
|
+
export {};
|
@@ -0,0 +1,357 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
4
|
+
return cooked;
|
5
|
+
};
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
7
|
+
__assign = Object.assign || function(t) {
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
9
|
+
s = arguments[i];
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
11
|
+
t[p] = s[p];
|
12
|
+
}
|
13
|
+
return t;
|
14
|
+
};
|
15
|
+
return __assign.apply(this, arguments);
|
16
|
+
};
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.getCustomPaginationPropKey = exports.parsePaginationStyleProp = exports.parseGridContentProp = exports.parseGridStyleProp = void 0;
|
19
|
+
var styled_components_1 = require("styled-components");
|
20
|
+
function getStyleTypePropStyleValues(value) {
|
21
|
+
switch (value) {
|
22
|
+
case 'DESIGN1': {
|
23
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: red;\n height: 100%;\n width: 100%;\n "], ["\n background-color: red;\n height: 100%;\n width: 100%;\n "])));
|
24
|
+
}
|
25
|
+
case 'DESIGN2': {
|
26
|
+
var overlayEffect = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "], ["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "])));
|
27
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "], ["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "])), overlayEffect, overlayEffect);
|
28
|
+
}
|
29
|
+
default: {
|
30
|
+
return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
function getItemSpacingPropStyleValues(value) {
|
35
|
+
switch (value) {
|
36
|
+
case 'NARROW': {
|
37
|
+
return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n grid-column-gap: 8px;\n "], ["\n grid-column-gap: 8px;\n "])));
|
38
|
+
}
|
39
|
+
case 'NORMAL': {
|
40
|
+
return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
|
41
|
+
}
|
42
|
+
case 'WIDE': {
|
43
|
+
return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n grid-column-gap: 36px;\n "], ["\n grid-column-gap: 36px;\n "])));
|
44
|
+
}
|
45
|
+
default: {
|
46
|
+
return (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
function getItemLineHeightPropStyleValues(value) {
|
51
|
+
return (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n grid-row-gap: ", "px;\n "], ["\n grid-row-gap: ", "px;\n "])), value);
|
52
|
+
}
|
53
|
+
function getItemHeightFitContentPropStyleValues(value) {
|
54
|
+
return (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n overflow-y: ", ";\n "], ["\n overflow-y: ", ";\n "])), value ? 'visible' : 'auto');
|
55
|
+
}
|
56
|
+
function parseStylePropertyStyles(key, value) {
|
57
|
+
switch (key) {
|
58
|
+
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE':
|
59
|
+
return getStyleTypePropStyleValues(value);
|
60
|
+
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING':
|
61
|
+
return getItemSpacingPropStyleValues(value);
|
62
|
+
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT':
|
63
|
+
return getItemLineHeightPropStyleValues(value);
|
64
|
+
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT':
|
65
|
+
return getItemHeightFitContentPropStyleValues(value);
|
66
|
+
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL':
|
67
|
+
break;
|
68
|
+
}
|
69
|
+
return undefined;
|
70
|
+
}
|
71
|
+
function getColumnsPropStyleValues(value) {
|
72
|
+
return (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n grid-template-columns: repeat(", ", 1fr);\n "], ["\n grid-template-columns: repeat(", ", 1fr);\n "])), value);
|
73
|
+
}
|
74
|
+
function parseContentPropertyStyles(key, value) {
|
75
|
+
switch (key) {
|
76
|
+
case 'CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS':
|
77
|
+
return getColumnsPropStyleValues(value);
|
78
|
+
}
|
79
|
+
return undefined;
|
80
|
+
}
|
81
|
+
function parseGridStyleProp(_a) {
|
82
|
+
var props = _a.props, device = _a.device;
|
83
|
+
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
84
|
+
return availableSpecCodes.reduce(function (acc, currentKey) {
|
85
|
+
var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
|
86
|
+
var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
|
87
|
+
var value = props[keyWithDevice];
|
88
|
+
var hoverValue = props[keyWithHover];
|
89
|
+
var styles = parseStylePropertyStyles(currentKey, value);
|
90
|
+
var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue);
|
91
|
+
if (hoverValue === null || hoverValue === undefined) {
|
92
|
+
return {
|
93
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
|
94
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), acc.hoverStylePropCss)
|
95
|
+
};
|
96
|
+
}
|
97
|
+
return {
|
98
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
|
99
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
|
100
|
+
};
|
101
|
+
}, {
|
102
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""]))),
|
103
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
|
104
|
+
});
|
105
|
+
}
|
106
|
+
exports.parseGridStyleProp = parseGridStyleProp;
|
107
|
+
function parseGridContentProp(_a) {
|
108
|
+
var props = _a.props;
|
109
|
+
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
110
|
+
return availableSpecCodes.reduce(function (acc, currentKey) {
|
111
|
+
var value = props[currentKey];
|
112
|
+
var styles = parseContentPropertyStyles(currentKey, value);
|
113
|
+
return {
|
114
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
|
115
|
+
};
|
116
|
+
}, {
|
117
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject([""], [""])))
|
118
|
+
});
|
119
|
+
}
|
120
|
+
exports.parseGridContentProp = parseGridContentProp;
|
121
|
+
function parsePaginationStyleProp(_a) {
|
122
|
+
var props = _a.props, device = _a.device;
|
123
|
+
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
124
|
+
return availableSpecCodes.reduce(function (acc, currentKey) {
|
125
|
+
var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
|
126
|
+
var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
|
127
|
+
var customPaginationPropertyKey = getCustomPaginationPropKey(currentKey);
|
128
|
+
if (customPaginationPropertyKey === 'type') {
|
129
|
+
var value = props[keyWithDevice];
|
130
|
+
var hoverValue = props[keyWithHover];
|
131
|
+
return {
|
132
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
133
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
134
|
+
};
|
135
|
+
}
|
136
|
+
if (customPaginationPropertyKey === 'offset') {
|
137
|
+
var value = props[keyWithDevice];
|
138
|
+
var hoverValue = props[keyWithHover];
|
139
|
+
return {
|
140
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
|
141
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
|
142
|
+
};
|
143
|
+
}
|
144
|
+
if (customPaginationPropertyKey === 'size') {
|
145
|
+
var value = props[keyWithDevice];
|
146
|
+
var hoverValue = props[keyWithHover];
|
147
|
+
return {
|
148
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
|
149
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
|
150
|
+
};
|
151
|
+
}
|
152
|
+
return {
|
153
|
+
normalStyle: __assign({}, acc.normalStyle),
|
154
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
155
|
+
};
|
156
|
+
}, {
|
157
|
+
normalStyle: {},
|
158
|
+
hoverStyle: {}
|
159
|
+
});
|
160
|
+
}
|
161
|
+
exports.parsePaginationStyleProp = parsePaginationStyleProp;
|
162
|
+
function getCustomPaginationPropKey(key) {
|
163
|
+
switch (key) {
|
164
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE":
|
165
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:HOVER":
|
166
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE":
|
167
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE:HOVER":
|
168
|
+
return 'type';
|
169
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION":
|
170
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER":
|
171
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE":
|
172
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER":
|
173
|
+
return 'offset';
|
174
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE":
|
175
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER":
|
176
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE":
|
177
|
+
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER":
|
178
|
+
return 'size';
|
179
|
+
default:
|
180
|
+
return '';
|
181
|
+
}
|
182
|
+
}
|
183
|
+
exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
|
184
|
+
function getCustomPaginationOffset(value) {
|
185
|
+
var OUTSET1 = {
|
186
|
+
top: '0px',
|
187
|
+
left: '0px',
|
188
|
+
translateX: 0,
|
189
|
+
translateY: -100,
|
190
|
+
transformOrigin: 'top left'
|
191
|
+
};
|
192
|
+
switch (value) {
|
193
|
+
case 'OUTSET1':
|
194
|
+
return OUTSET1;
|
195
|
+
case 'OUTSET2':
|
196
|
+
return {
|
197
|
+
top: '0px',
|
198
|
+
left: '50%',
|
199
|
+
translateX: -50,
|
200
|
+
translateY: -100,
|
201
|
+
transformOrigin: 'top left'
|
202
|
+
};
|
203
|
+
case 'OUTSET3':
|
204
|
+
return {
|
205
|
+
top: '0px',
|
206
|
+
right: '0px',
|
207
|
+
translateX: 0,
|
208
|
+
translateY: -100,
|
209
|
+
transformOrigin: 'top right'
|
210
|
+
};
|
211
|
+
case 'OUTSET4':
|
212
|
+
return {
|
213
|
+
top: '0px',
|
214
|
+
left: '100%',
|
215
|
+
translateX: 0,
|
216
|
+
translateY: 0,
|
217
|
+
transformOrigin: 'left top'
|
218
|
+
};
|
219
|
+
case 'OUTSET5':
|
220
|
+
return {
|
221
|
+
top: '50%',
|
222
|
+
left: '100%',
|
223
|
+
translateX: 0,
|
224
|
+
translateY: -50,
|
225
|
+
transformOrigin: 'left top'
|
226
|
+
};
|
227
|
+
case 'OUTSET6':
|
228
|
+
return {
|
229
|
+
top: '100%',
|
230
|
+
left: '100%',
|
231
|
+
translateX: 0,
|
232
|
+
translateY: -100,
|
233
|
+
transformOrigin: 'left top'
|
234
|
+
};
|
235
|
+
case 'OUTSET7':
|
236
|
+
return {
|
237
|
+
top: '100%',
|
238
|
+
left: '100%',
|
239
|
+
translateX: -100,
|
240
|
+
translateY: 0,
|
241
|
+
transformOrigin: 'top left'
|
242
|
+
};
|
243
|
+
case 'OUTSET8':
|
244
|
+
return {
|
245
|
+
top: '100%',
|
246
|
+
left: '50%',
|
247
|
+
translateX: -50,
|
248
|
+
translateY: 0,
|
249
|
+
transformOrigin: 'top left'
|
250
|
+
};
|
251
|
+
case 'OUTSET9':
|
252
|
+
return {
|
253
|
+
top: '100%',
|
254
|
+
left: '0px',
|
255
|
+
translateX: 0,
|
256
|
+
translateY: 0,
|
257
|
+
transformOrigin: 'top left'
|
258
|
+
};
|
259
|
+
case 'OUTSET10':
|
260
|
+
return {
|
261
|
+
top: '100%',
|
262
|
+
left: '0px',
|
263
|
+
translateX: -100,
|
264
|
+
translateY: -100,
|
265
|
+
transformOrigin: 'right top'
|
266
|
+
};
|
267
|
+
case 'OUTSET11':
|
268
|
+
return {
|
269
|
+
top: '50%',
|
270
|
+
left: '0px',
|
271
|
+
translateX: -100,
|
272
|
+
translateY: -50,
|
273
|
+
transformOrigin: 'right top'
|
274
|
+
};
|
275
|
+
case 'OUTSET12':
|
276
|
+
return {
|
277
|
+
top: '0px',
|
278
|
+
left: '0px',
|
279
|
+
translateX: -100,
|
280
|
+
translateY: 0,
|
281
|
+
transformOrigin: 'right top'
|
282
|
+
};
|
283
|
+
case 'INSET13':
|
284
|
+
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
285
|
+
case 'INSET14':
|
286
|
+
return {
|
287
|
+
top: '0px',
|
288
|
+
left: '50%',
|
289
|
+
translateX: -50,
|
290
|
+
translateY: 0,
|
291
|
+
transformOrigin: 'left top'
|
292
|
+
};
|
293
|
+
case 'INSET15':
|
294
|
+
return {
|
295
|
+
top: '0px',
|
296
|
+
left: '100%',
|
297
|
+
translateX: -100,
|
298
|
+
translateY: 0,
|
299
|
+
transformOrigin: 'left top'
|
300
|
+
};
|
301
|
+
case 'INSET16':
|
302
|
+
return {
|
303
|
+
top: '50%',
|
304
|
+
left: '100%',
|
305
|
+
translateX: -100,
|
306
|
+
translateY: -50,
|
307
|
+
transformOrigin: 'left top'
|
308
|
+
};
|
309
|
+
case 'INSET17':
|
310
|
+
return {
|
311
|
+
top: '100%',
|
312
|
+
left: '100%',
|
313
|
+
translateX: -100,
|
314
|
+
translateY: -100,
|
315
|
+
transformOrigin: 'left top'
|
316
|
+
};
|
317
|
+
case 'INSET18':
|
318
|
+
return {
|
319
|
+
top: '100%',
|
320
|
+
left: '50%',
|
321
|
+
translateX: -50,
|
322
|
+
translateY: -100,
|
323
|
+
transformOrigin: 'left top'
|
324
|
+
};
|
325
|
+
case 'INSET19':
|
326
|
+
return {
|
327
|
+
top: '100%',
|
328
|
+
left: '0px',
|
329
|
+
translateX: 0,
|
330
|
+
translateY: -100,
|
331
|
+
transformOrigin: 'top left'
|
332
|
+
};
|
333
|
+
case 'INSET20':
|
334
|
+
return {
|
335
|
+
top: '50%',
|
336
|
+
left: '0px',
|
337
|
+
translateX: 0,
|
338
|
+
translateY: -50,
|
339
|
+
transformOrigin: 'top left'
|
340
|
+
};
|
341
|
+
default:
|
342
|
+
return OUTSET1;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
function getCustomPaginationSize(value) {
|
346
|
+
switch (value) {
|
347
|
+
case 'SMALL':
|
348
|
+
return 1;
|
349
|
+
case 'MEDIUM':
|
350
|
+
return 2;
|
351
|
+
case 'LARGE':
|
352
|
+
return 3;
|
353
|
+
default:
|
354
|
+
return 1;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as ContentsList } from './ContentsList';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ContentsList = void 0;
|
7
|
+
var ContentsList_1 = require("./ContentsList");
|
8
|
+
Object.defineProperty(exports, "ContentsList", { enumerable: true, get: function () { return __importDefault(ContentsList_1).default; } });
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import type { NUMBER_INTEGER } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
2
|
+
export type ContentsListPropsKeys = keyof CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
3
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE = 'DESIGN1' | 'DESIGN2';
|
4
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE = 'WIDE' | 'NORMAL' | 'NARROW';
|
5
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER;
|
6
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean;
|
7
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = 'NONE' | 'USE';
|
8
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17';
|
9
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET13' | 'INSET14' | 'INSET15' | 'INSET16' | 'INSET17' | 'INSET18' | 'INSET19' | 'INSET20';
|
10
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE';
|
11
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE = {
|
12
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
|
13
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING: CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
|
14
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT: CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
15
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT: CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
16
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL: CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
|
17
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
|
18
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
|
19
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
|
20
|
+
};
|
21
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPECS = CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE & {
|
22
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
|
23
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
|
24
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
|
25
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
|
26
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
|
27
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
|
28
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
29
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
30
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
31
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
32
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
33
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
34
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
|
35
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
|
36
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
|
37
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
|
38
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
|
39
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
|
40
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
|
41
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
|
42
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
|
43
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
|
44
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
|
45
|
+
'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
|
46
|
+
};
|