pds-dev-kit-web-test 2.7.498 → 2.7.500
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/common/assets/icons/fill/Plugin.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Plugin.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +2 -0
- package/dist/src/common/assets/icons/line/Plugin.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Plugin.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +2 -0
- package/dist/src/common/services/i18n/resources/en.json +1 -4
- package/dist/src/common/services/i18n/resources/es.json +1 -4
- package/dist/src/common/services/i18n/resources/fil.json +1 -4
- package/dist/src/common/services/i18n/resources/index.d.ts +0 -21
- package/dist/src/common/services/i18n/resources/ja.json +1 -4
- package/dist/src/common/services/i18n/resources/ko.json +1 -4
- package/dist/src/common/services/i18n/resources/zh-cn.json +1 -4
- package/dist/src/common/services/i18n/resources/zh-tw.json +1 -4
- package/dist/src/common/styles/colorSet/UIColor.json +3 -1
- package/dist/src/common/styles/colorSet/index.d.ts +925 -923
- package/dist/src/common/styles/colorSet/index.js +3 -3
- package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
- package/dist/src/desktop/components/BoxItem/BoxItem.d.ts +1 -1
- package/dist/src/desktop/components/BoxItem/BoxItem.js +23 -11
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.d.ts +1 -1
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +13 -3
- package/dist/src/mobile/components/BoxItem/BoxItem.d.ts +1 -1
- package/dist/src/mobile/components/BoxItem/BoxItem.js +23 -11
- package/dist/src/mobile/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +6 -5
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +18 -14
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +1 -0
- package/dist/src/sub/DynamicLayout/mock_section.json +5 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +7 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +29 -24
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +7 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.js +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropBorder.js +12 -5
- package/package.json +1 -1
- package/release-note.md +2 -2
|
@@ -65,16 +65,16 @@ var createComponent = function (type, getDesignType, getLocation, designType, si
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
function ContentsList(props) {
|
|
68
|
-
var _a, _b, _c, _d;
|
|
69
|
-
var
|
|
68
|
+
var _a, _b, _c, _d, _e, _f;
|
|
69
|
+
var _g = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _g.device, mode = _g.mode, queryData = _g.queryData;
|
|
70
70
|
var index = props.index, compositions = props.compositions, CB_CONTENT_PROP_CONTENTSLIST = props.CB_CONTENT_PROP_CONTENTSLIST, CB_STYLE_PROP_CONTENTSLISTDESIGN = props.CB_STYLE_PROP_CONTENTSLISTDESIGN, CB_STYLE_PROP_CONTENTSLISTPAGINATION = props.CB_STYLE_PROP_CONTENTSLISTPAGINATION, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_LAYOUT_PROP_PADDING = props.CB_LAYOUT_PROP_PADDING, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_LAYOUT_PROP_HEIGHTADJUSTMENT = props.CB_LAYOUT_PROP_HEIGHTADJUSTMENT;
|
|
71
71
|
var
|
|
72
72
|
// CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS,
|
|
73
|
-
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[
|
|
73
|
+
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA, CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MCOLUMNS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MCOLUMNS;
|
|
74
|
+
var _h = (0, react_1.useState)(false), isHovered = _h[0], setIsHovered = _h[1];
|
|
75
|
+
var _j = (0, react_1.useState)(1), currentPage = _j[0], setCurrentPage = _j[1];
|
|
76
|
+
var parsedQueryPath = removeFirstSegment(CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA);
|
|
77
|
+
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[parsedQueryPath];
|
|
78
78
|
// list의 minheight / minwidth를 계산
|
|
79
79
|
var numberOfColumns = device === 'DESKTOP'
|
|
80
80
|
? CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS
|
|
@@ -86,19 +86,19 @@ function ContentsList(props) {
|
|
|
86
86
|
? queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length
|
|
87
87
|
: CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.length) / displayCounts);
|
|
88
88
|
var CB_STYLE_PROP_CONTENTSLIST = __assign(__assign({}, CB_STYLE_PROP_CONTENTSLISTDESIGN), CB_STYLE_PROP_CONTENTSLISTPAGINATION);
|
|
89
|
-
var
|
|
89
|
+
var _k = (0, util_1.parseProperties)(props, device), style = _k.style, hoverStyle = _k.hoverStyle, layout = _k.layout, effect = _k.effect, overlayStyle = _k.overlayStyle;
|
|
90
90
|
var contentPropCss = (0, contentsListUtils_1.parseGridContentProp)({
|
|
91
91
|
props: CB_CONTENT_PROP_CONTENTSLIST,
|
|
92
92
|
device: device
|
|
93
93
|
}).contentPropCss;
|
|
94
|
-
var
|
|
94
|
+
var _l = (0, contentsListUtils_1.parseGridStyleProp)({
|
|
95
95
|
props: CB_STYLE_PROP_CONTENTSLIST,
|
|
96
96
|
device: device
|
|
97
|
-
}), stylePropCss =
|
|
98
|
-
var
|
|
97
|
+
}), stylePropCss = _l.stylePropCss, hoverStylePropCss = _l.hoverStylePropCss;
|
|
98
|
+
var _m = (0, contentsListUtils_1.parsePaginationStyleProp)({
|
|
99
99
|
props: CB_STYLE_PROP_CONTENTSLIST,
|
|
100
100
|
device: device
|
|
101
|
-
}), paginationNormalStyle =
|
|
101
|
+
}), paginationNormalStyle = _m.normalStyle, paginationHoverStyle = _m.hoverStyle;
|
|
102
102
|
// NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
|
|
103
103
|
var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
|
|
104
104
|
var cbRef = (0, react_1.useRef)(null);
|
|
@@ -135,6 +135,9 @@ function ContentsList(props) {
|
|
|
135
135
|
CB_LAYOUT_PROP_PADDING.CB_LAYOUT_PROP_PADDING_SPEC_PADDING.right;
|
|
136
136
|
var paddingTB = CB_LAYOUT_PROP_PADDING.CB_LAYOUT_PROP_PADDING_SPEC_PADDING.top +
|
|
137
137
|
CB_LAYOUT_PROP_PADDING.CB_LAYOUT_PROP_PADDING_SPEC_PADDING.bottom;
|
|
138
|
+
var queryPath = removeFirstSegment(CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA);
|
|
139
|
+
var queryLength = (_f = (_e = queryData === null || queryData === void 0 ? void 0 : queryData[queryPath]) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0;
|
|
140
|
+
// const displayedItemLength = Math.max(0, Math.min(endIndex, queryLength) - startIndex);
|
|
138
141
|
var numberOfRows = Math.ceil(displayCounts / numberOfColumns);
|
|
139
142
|
var listMinWidth = oneCompositionMinWidth * numberOfColumns + (numberOfColumns - 1) * columnGap + paddingLR;
|
|
140
143
|
var listMinHeight = oneCompositionMinHeight * numberOfRows +
|
|
@@ -144,9 +147,9 @@ function ContentsList(props) {
|
|
|
144
147
|
var components = [
|
|
145
148
|
createPagination(paginationNormalStyle, paginationHoverStyle, isHovered)
|
|
146
149
|
].filter(function (component) { return component !== undefined; });
|
|
147
|
-
var
|
|
150
|
+
var _o = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _o.layoutRef, positionRefs = _o.positionRefs,
|
|
148
151
|
// ccbInset,
|
|
149
|
-
componentGroups =
|
|
152
|
+
componentGroups = _o.componentGroups, getPositionStyle = _o.getPositionStyle, getComponentGroupLayout = _o.getComponentGroupLayout;
|
|
150
153
|
var ccbInset = {
|
|
151
154
|
top: '0px',
|
|
152
155
|
right: '0px',
|
|
@@ -166,13 +169,11 @@ function ContentsList(props) {
|
|
|
166
169
|
var isMobile = device === 'MOBILE';
|
|
167
170
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
168
171
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
169
|
-
var orderedCompositions =
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
})
|
|
175
|
-
: compositions.filter(function (comp) { return !comp.ccbManualItemUuid; });
|
|
172
|
+
var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS, true).filter(function (item) { return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; }); })
|
|
173
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
174
|
+
.map(function (item) {
|
|
175
|
+
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
176
|
+
});
|
|
176
177
|
var heightFitContentByDevice = device === 'DESKTOP'
|
|
177
178
|
? CB_LAYOUT_PROP_HEIGHTADJUSTMENT === null || CB_LAYOUT_PROP_HEIGHTADJUSTMENT === void 0 ? void 0 : CB_LAYOUT_PROP_HEIGHTADJUSTMENT.CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT
|
|
178
179
|
: CB_LAYOUT_PROP_HEIGHTADJUSTMENT === null || CB_LAYOUT_PROP_HEIGHTADJUSTMENT === void 0 ? void 0 : CB_LAYOUT_PROP_HEIGHTADJUSTMENT['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE'];
|
|
@@ -201,7 +202,7 @@ function ContentsList(props) {
|
|
|
201
202
|
// NOTE: 위 CSS 프롭과 정리
|
|
202
203
|
style: { gridTemplateRows: "repeat(".concat(numberOfRows, ", 1fr)") } }, { children: (0, createCompositions_1.createCompositions)({
|
|
203
204
|
valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
|
|
204
|
-
queryPath:
|
|
205
|
+
queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
|
|
205
206
|
limit: displayCounts,
|
|
206
207
|
queryData: queryData,
|
|
207
208
|
compositions: orderedCompositions,
|
|
@@ -250,12 +251,16 @@ var S_ContentsListWrapper = styled_components_1.default.div(templateObject_4 ||
|
|
|
250
251
|
var ccbInset = _a.ccbInset;
|
|
251
252
|
return ccbInset.top;
|
|
252
253
|
});
|
|
254
|
+
function removeFirstSegment(path) {
|
|
255
|
+
var segments = path.split('/');
|
|
256
|
+
return segments.slice(1).join('/');
|
|
257
|
+
}
|
|
253
258
|
function getStandardComposition(compositions, valueType) {
|
|
254
259
|
if (valueType === 'DATA') {
|
|
255
|
-
return compositions.find(function (composition) { return
|
|
260
|
+
return compositions.find(function (composition) { return composition.isDefault; });
|
|
256
261
|
}
|
|
257
262
|
// NOTE: 일단 디폴트가 아닌 첫번째를 반환하지만 경우에따라 가장 cols/width가 큰 것을 반환하도록 변경할 수 있음
|
|
258
|
-
return compositions.find(function (composition) { return
|
|
263
|
+
return compositions.find(function (composition) { return !composition.isDefault; });
|
|
259
264
|
}
|
|
260
265
|
function getCompositionMinValue(composition, device) {
|
|
261
266
|
var minCellWidth = 10;
|
|
@@ -72,7 +72,7 @@ size) {
|
|
|
72
72
|
function SlideBanner(props) {
|
|
73
73
|
var _a;
|
|
74
74
|
var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, mode = _b.mode, queryData = _b.queryData;
|
|
75
|
-
var index = props.index, _c = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
|
|
75
|
+
var index = props.index, _c = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA, CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, CB_STYLE_PROP_SLIDEBANNERDESIGN = props.CB_STYLE_PROP_SLIDEBANNERDESIGN, CB_STYLE_PROP_SLIDEBANNERPAGINATION = props.CB_STYLE_PROP_SLIDEBANNERPAGINATION, CB_STYLE_PROP_SLIDEBANNERBUTTON = props.CB_STYLE_PROP_SLIDEBANNERBUTTON, CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD = props.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD, CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR = props.CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE = props.CB_EFFECT_PROP_SLIDEBANNER.CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE;
|
|
76
76
|
var compositions = props.compositions;
|
|
77
77
|
var CB_STYLE_PROP_SLIDEBANNER = __assign(__assign(__assign(__assign(__assign({}, CB_STYLE_PROP_SLIDEBANNERDESIGN), CB_STYLE_PROP_SLIDEBANNERPAGINATION), CB_STYLE_PROP_SLIDEBANNERBUTTON), CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD), CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR);
|
|
78
78
|
var autoPlayEnabled = device === 'DESKTOP'
|
|
@@ -146,14 +146,11 @@ function SlideBanner(props) {
|
|
|
146
146
|
var isMobile = device === 'MOBILE';
|
|
147
147
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
148
148
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
155
|
-
})
|
|
156
|
-
: compositions.filter(function (comp) { return !comp.ccbManualItemUuid; });
|
|
149
|
+
var orderedCompositions = __spreadArray([], CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, true).filter(function (item) { return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; }); })
|
|
150
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
151
|
+
.map(function (item) {
|
|
152
|
+
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
153
|
+
});
|
|
157
154
|
var isEditModeAndHidden = style.visibility === 'hidden' && mode === 'EDIT';
|
|
158
155
|
if (mode === 'EDIT') {
|
|
159
156
|
style.visibility = 'visible';
|
|
@@ -174,7 +171,7 @@ function SlideBanner(props) {
|
|
|
174
171
|
? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle
|
|
175
172
|
: slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, className: "cb-slidebanner", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: 1, styles: isHovered ? slideBannerHoverStyle : slideBannerNormalStyle, effect: CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
|
|
176
173
|
valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
|
|
177
|
-
queryPath:
|
|
174
|
+
queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
|
|
178
175
|
limit: CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS,
|
|
179
176
|
queryData: queryData,
|
|
180
177
|
compositions: orderedCompositions,
|
|
@@ -46,7 +46,7 @@ export type CB_CONTENT_PROP_CONTENTSCAROUSEL = {
|
|
|
46
46
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE: CCB_VALUE_TYPE;
|
|
47
47
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
48
48
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DATASORTING: STRING_PLAIN;
|
|
49
|
-
|
|
49
|
+
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_OFFSET: NUMBER_INTEGER;
|
|
50
50
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS: ManualItem[];
|
|
51
51
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
|
52
52
|
CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
|
@@ -56,7 +56,7 @@ export type CB_CONTENT_PROP_SLIDEBANNER = {
|
|
|
56
56
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE: CCB_VALUE_TYPE;
|
|
57
57
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
58
58
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_DATASORTING: STRING_PLAIN;
|
|
59
|
-
|
|
59
|
+
CB_CONTENT_PROP_SLIDEBANNER_SPEC_OFFSET: NUMBER_INTEGER;
|
|
60
60
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS: ManualItem[];
|
|
61
61
|
CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
|
62
62
|
};
|
|
@@ -65,7 +65,7 @@ export type CB_CONTENT_PROP_CONTENTSLIST = {
|
|
|
65
65
|
CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA: STRING_PLAIN;
|
|
66
66
|
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING: STRING_PLAIN;
|
|
67
67
|
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAFILTER: STRING_PLAIN;
|
|
68
|
-
|
|
68
|
+
CB_CONTENT_PROP_CONTENTSLIST_SPEC_OFFSET: NUMBER_INTEGER;
|
|
69
69
|
CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS: ManualItem[];
|
|
70
70
|
CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
|
|
71
71
|
CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
|
|
@@ -37,22 +37,18 @@ function parseJsonProperties(properties, device) {
|
|
|
37
37
|
};
|
|
38
38
|
if (normalizedProperty.name in types_4.CB_STYLE_PROP_KEYS) {
|
|
39
39
|
var _a = (0, stylePropParsers_1.parseStyleProperties)(normalizedProperty, device), style = _a.style, overlayStyle = _a.overlayStyle;
|
|
40
|
-
// console.log(normalizedProperty.name, ' >>>', overlayStyle, overlayHoverStyle);
|
|
41
40
|
return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style), overlayStyle: __assign(__assign({}, acc.overlayStyle), overlayStyle) });
|
|
42
41
|
}
|
|
43
42
|
if (normalizedProperty.name in types_3.CB_LAYOUT_PROP_KEYS) {
|
|
44
43
|
var style = (0, layoutPropParsers_1.parseLayoutProperties)(normalizedProperty, device).style;
|
|
45
|
-
// console.log(normalizedProperty.name, ' >>>', style);
|
|
46
44
|
return __assign(__assign({}, acc), { layout: __assign(__assign({}, acc.layout), style) });
|
|
47
45
|
}
|
|
48
46
|
if (normalizedProperty.name in types_1.CB_CONTENT_PROP_KEYS) {
|
|
49
47
|
var style = (0, contentPropParsers_1.parseContentProperties)(normalizedProperty, device).style;
|
|
50
|
-
// console.log(normalizedProperty.name, ' >>>', style);
|
|
51
48
|
return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style) });
|
|
52
49
|
}
|
|
53
50
|
if (normalizedProperty.name in types_2.CB_EFFECT_PROP_KEYS) {
|
|
54
51
|
var style = (0, effectPropParsers_1.parseEffectProperties)(normalizedProperty, device).style;
|
|
55
|
-
// console.log(normalizedProperty.name, ' >>>', style);
|
|
56
52
|
return __assign(__assign({}, acc), { effect: __assign(__assign({}, acc.effect), style) });
|
|
57
53
|
}
|
|
58
54
|
return acc;
|
|
@@ -21,17 +21,24 @@ var AVAILABLE_SPECS = [
|
|
|
21
21
|
function parseStylePropBorder(namedProps, device) {
|
|
22
22
|
var specs = namedProps.specs;
|
|
23
23
|
return AVAILABLE_SPECS.reduce(function (acc, cur) {
|
|
24
|
-
var _a, _b, _c;
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
25
|
var baseKey = device === 'DESKTOP' ? cur : "".concat(cur, ":MOBILE");
|
|
26
26
|
var cssPropertyKey = getParsedKey(baseKey);
|
|
27
27
|
var value = specs[baseKey];
|
|
28
28
|
var hoverValue = specs["".concat(baseKey, ":HOVER")];
|
|
29
29
|
var isRadius = cssPropertyKey === 'borderRadius';
|
|
30
30
|
if (value === null || value === undefined) {
|
|
31
|
+
if (device === 'MOBILE') {
|
|
32
|
+
var desktopValue = specs[cur];
|
|
33
|
+
return {
|
|
34
|
+
style: __assign(__assign({}, acc.style), (_a = {}, _a[cssPropertyKey] = desktopValue, _a)),
|
|
35
|
+
hoverStyle: __assign({}, acc.hoverStyle)
|
|
36
|
+
};
|
|
37
|
+
}
|
|
31
38
|
return acc;
|
|
32
39
|
}
|
|
33
40
|
if (isRadius) {
|
|
34
|
-
var
|
|
41
|
+
var _e = value, tl = _e.tl, tr = _e.tr, bl = _e.bl, br = _e.br;
|
|
35
42
|
var hoverValueTypeExpanded = hoverValue;
|
|
36
43
|
if (hoverValueTypeExpanded === null || hoverValueTypeExpanded === undefined) {
|
|
37
44
|
return {
|
|
@@ -46,13 +53,13 @@ function parseStylePropBorder(namedProps, device) {
|
|
|
46
53
|
}
|
|
47
54
|
if (hoverValue === null || hoverValue === undefined) {
|
|
48
55
|
return {
|
|
49
|
-
style: __assign(__assign({}, acc.style), (
|
|
56
|
+
style: __assign(__assign({}, acc.style), (_b = {}, _b[cssPropertyKey] = value, _b)),
|
|
50
57
|
hoverStyle: __assign({}, acc.hoverStyle)
|
|
51
58
|
};
|
|
52
59
|
}
|
|
53
60
|
return {
|
|
54
|
-
style: __assign(__assign({}, acc.style), (
|
|
55
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (
|
|
61
|
+
style: __assign(__assign({}, acc.style), (_c = {}, _c[cssPropertyKey] = value, _c)),
|
|
62
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[cssPropertyKey] = hoverValue, _d))
|
|
56
63
|
};
|
|
57
64
|
}, {
|
|
58
65
|
style: {},
|
package/package.json
CHANGED