pds-dev-kit-web-test 2.5.416 → 2.5.418
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/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/src/common/assets/icons/fill/Cam.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Cam.js +30 -0
- package/dist/src/common/assets/icons/fill/CamOff.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/CamOff.js +30 -0
- package/dist/src/common/assets/icons/fill/Video.js +1 -1
- package/dist/src/common/assets/icons/fill/VideoOff.js +1 -1
- package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
- package/dist/src/common/assets/icons/fill/VideoType.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +3 -0
- package/dist/src/common/assets/icons/fill/index.js +7 -1
- package/dist/src/common/assets/icons/line/Cam.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Cam.js +30 -0
- package/dist/src/common/assets/icons/line/CamOff.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CamOff.js +30 -0
- package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
- package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
- package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Radio.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
- package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextLong.js +30 -0
- package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextShort.js +30 -0
- package/dist/src/common/assets/icons/line/Video.js +1 -1
- package/dist/src/common/assets/icons/line/VideoOff.js +1 -1
- package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
- package/dist/src/common/assets/icons/line/VideoType.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +12 -0
- package/dist/src/common/assets/icons/line/index.js +25 -1
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
- package/dist/src/common/services/i18n/resources/en.json +9 -1
- package/dist/src/common/services/i18n/resources/es.json +9 -1
- package/dist/src/common/services/i18n/resources/fil.json +9 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
- package/dist/src/common/services/i18n/resources/ja.json +9 -1
- package/dist/src/common/services/i18n/resources/ko.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +9 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +9 -1
- package/dist/src/common/styles/colorSet/UIColor.json +14 -1
- package/dist/src/common/styles/colorSet/index.d.ts +31 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +13 -0
- package/dist/src/common/utils/dateHelper.d.ts +13 -0
- package/dist/src/common/utils/dateHelper.js +87 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +26 -4
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +3 -1
- package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
- package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
- package/dist/src/desktop/components/Chip/Chip.js +50 -5
- package/dist/src/desktop/components/Radio/Radio.js +2 -2
- package/dist/src/desktop/components/TextField/TextField.js +41 -15
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +26 -4
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +3 -1
- package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
- package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
- package/dist/src/mobile/components/Chip/Chip.js +50 -5
- package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
- package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
- package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
- package/dist/src/mobile/components/DatePicker/Day.js +94 -0
- package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
- package/dist/src/mobile/components/DatePicker/index.js +8 -0
- package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
- package/dist/src/mobile/components/DatePicker/utils.js +68 -0
- package/dist/src/mobile/components/Radio/Radio.js +2 -2
- package/dist/src/mobile/components/TextField/TextField.js +41 -15
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +3 -2
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +6 -5
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +2 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +4 -3
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +38 -12
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +12 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +77 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/mock_composition.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/mock_composition.js +852 -43
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1047 -274
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +1009 -222
- package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
- package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +810 -2
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +771 -267
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
- package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
- package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +368 -0
- package/dist/src/sub/DynamicLayout/mock_video_cb.js +371 -0
- package/dist/src/sub/DynamicLayout/mocks.d.ts +2 -776
- package/dist/src/sub/DynamicLayout/mocks.js +4266 -11
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +136 -53
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +21 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +4 -55
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +8 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +26 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +46 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +96 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +69 -319
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +8 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +35 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +59 -132
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +176 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +32 -35
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +13 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +73 -24
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +4 -55
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +7 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +26 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +46 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +96 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +64 -67
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +10 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +148 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +25 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +17 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +15 -2
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +10 -1
- package/package.json +2 -3
- package/release-note.md +3 -3
|
@@ -0,0 +1,176 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.Design13 = exports.Design12 = exports.Design11 = exports.Design10 = exports.Design9 = exports.Design8 = exports.Design7 = exports.Design6 = exports.Design5 = exports.Design4 = exports.Design3 = exports.Design2 = exports.Design1 = void 0;
|
|
22
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
+
var components_1 = require("../../../../../../../../DynamicLayout/components");
|
|
24
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
25
|
+
function Design1(_a) {
|
|
26
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: "#333333", textColor: "#333333", activeTextColor: "#FFFFFF", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
28
|
+
}
|
|
29
|
+
exports.Design1 = Design1;
|
|
30
|
+
function Design2(_a) {
|
|
31
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "transparent", activeBackgroundColor: "#333333", textColor: "#333333", activeTextColor: "#FFFFFF", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
33
|
+
}
|
|
34
|
+
exports.Design2 = Design2;
|
|
35
|
+
function Design3(_a) {
|
|
36
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
37
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "circle", backgroundColor: "transparent", activeBackgroundColor: "#333333", textColor: "#333333", activeTextColor: "#FFFFFF", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
38
|
+
}
|
|
39
|
+
exports.Design3 = Design3;
|
|
40
|
+
function Design4(_a) {
|
|
41
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: "#e9eaeb", textColor: "#333333", activeTextColor: "#333333", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
43
|
+
}
|
|
44
|
+
exports.Design4 = Design4;
|
|
45
|
+
function Design5(_a) {
|
|
46
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "transparent", activeBackgroundColor: "#e9eaeb", textColor: "#333333", activeTextColor: "#333333", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
48
|
+
}
|
|
49
|
+
exports.Design5 = Design5;
|
|
50
|
+
function Design6(_a) {
|
|
51
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "circle", backgroundColor: "transparent", activeBackgroundColor: "#e9eaeb", textColor: "#333333", activeTextColor: "#333333", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
53
|
+
}
|
|
54
|
+
exports.Design6 = Design6;
|
|
55
|
+
function Design7(_a) {
|
|
56
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: "#e9eaeb", textColor: "#333333", activeTextColor: "#333333", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { 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_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
58
|
+
}
|
|
59
|
+
exports.Design7 = Design7;
|
|
60
|
+
function Design8(_a) {
|
|
61
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "#e9eaeb", activeBackgroundColor: "#333333", textColor: "#333333", activeTextColor: "#FFFFFF", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
63
|
+
}
|
|
64
|
+
exports.Design8 = Design8;
|
|
65
|
+
function Design9(_a) {
|
|
66
|
+
var total = _a.total, current = _a.current, pages = _a.pages, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), pages === null || pages === void 0 ? void 0 : pages.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", radius: 8, backgroundColor: "transparent", activeBackgroundColor: "transparent", textColor: "#e9eaeb", activeTextColor: "#333333", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
68
|
+
}
|
|
69
|
+
exports.Design9 = Design9;
|
|
70
|
+
function Design10(_a) {
|
|
71
|
+
var total = _a.total, current = _a.current, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
72
|
+
var paginationPages = generatePaginationPages(total, current);
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), paginationPages === null || paginationPages === void 0 ? void 0 : paginationPages.map(function (pageNumber) {
|
|
74
|
+
if (typeof pageNumber === 'string') {
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: "#333333", textColor: "#333333", activeTextColor: "#FFFFFF", isActive: false, disabled: true }, { children: pageNumber }), pageNumber));
|
|
76
|
+
}
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: "#333333", textColor: "#333333", activeTextColor: "#FFFFFF", isActive: pageNumber === current, onClick: function () { return onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber));
|
|
78
|
+
}), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
79
|
+
}
|
|
80
|
+
exports.Design10 = Design10;
|
|
81
|
+
function Design11(_a) {
|
|
82
|
+
var total = _a.total, current = _a.current, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
83
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { 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.jsxs)(S_Text, { children: [current, " / ", total] }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
84
|
+
}
|
|
85
|
+
exports.Design11 = Design11;
|
|
86
|
+
function Design12(_a) {
|
|
87
|
+
var total = _a.total, current = _a.current, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsxs)(S_Text, { children: [current, " / ", total] }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { 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_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
89
|
+
}
|
|
90
|
+
exports.Design12 = Design12;
|
|
91
|
+
function Design13(_a) {
|
|
92
|
+
var total = _a.total, current = _a.current, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
93
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { 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_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
94
|
+
}
|
|
95
|
+
exports.Design13 = Design13;
|
|
96
|
+
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) {
|
|
97
|
+
var _b = _a.alignItems, alignItems = _b === void 0 ? 'center' : _b;
|
|
98
|
+
return alignItems;
|
|
99
|
+
}, function (_a) {
|
|
100
|
+
var _b = _a.direction, direction = _b === void 0 ? 'row' : _b;
|
|
101
|
+
return direction;
|
|
102
|
+
}, function (_a) {
|
|
103
|
+
var _b = _a.gap, gap = _b === void 0 ? '0' : _b;
|
|
104
|
+
return gap;
|
|
105
|
+
}, function (_a) {
|
|
106
|
+
var _b = _a.justifyContent, justifyContent = _b === void 0 ? 'center' : _b;
|
|
107
|
+
return justifyContent;
|
|
108
|
+
});
|
|
109
|
+
var S_Pointer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"], ["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"])), function (_a) {
|
|
110
|
+
var disabled = _a.disabled;
|
|
111
|
+
return (disabled ? 'not-allowed' : 'pointer');
|
|
112
|
+
}, function (_a) {
|
|
113
|
+
var disabled = _a.disabled;
|
|
114
|
+
return (disabled ? 0.4 : 1);
|
|
115
|
+
});
|
|
116
|
+
var S_Page = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border: none;\n border-radius: ", ";\n color: ", ";\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n height: 32px;\n justify-content: center;\n outline: none;\n width: 32px;\n"], ["\n align-items: center;\n background-color: ", ";\n border: none;\n border-radius: ", ";\n color: ", ";\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n height: 32px;\n justify-content: center;\n outline: none;\n width: 32px;\n"])), function (_a) {
|
|
117
|
+
var isActive = _a.isActive, backgroundColor = _a.backgroundColor, activeBackgroundColor = _a.activeBackgroundColor;
|
|
118
|
+
return isActive ? activeBackgroundColor : backgroundColor;
|
|
119
|
+
}, function (_a) {
|
|
120
|
+
var shape = _a.shape, radius = _a.radius;
|
|
121
|
+
if (shape === 'rectangle')
|
|
122
|
+
return undefined;
|
|
123
|
+
return shape === 'round' ? "".concat(radius, "px") : '50%';
|
|
124
|
+
}, function (_a) {
|
|
125
|
+
var isActive = _a.isActive, textColor = _a.textColor, activeTextColor = _a.activeTextColor;
|
|
126
|
+
return (isActive ? activeTextColor : textColor);
|
|
127
|
+
}, function (_a) {
|
|
128
|
+
var theme = _a.theme;
|
|
129
|
+
return theme.desktopFontSize.caption1;
|
|
130
|
+
}, function (_a) {
|
|
131
|
+
var theme = _a.theme, isActive = _a.isActive;
|
|
132
|
+
return isActive ? theme.fontWeight.bold : theme.fontWeight.normal;
|
|
133
|
+
});
|
|
134
|
+
var S_Text = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: #e9eaeb;\n font-size: ", ";\n"], ["\n color: #e9eaeb;\n font-size: ", ";\n"])), function (_a) {
|
|
135
|
+
var theme = _a.theme;
|
|
136
|
+
return theme.desktopFontSize.caption1;
|
|
137
|
+
});
|
|
138
|
+
function generatePaginationPages(total, current) {
|
|
139
|
+
// 총 페이지가 10개 이하면 모든 페이지 표시
|
|
140
|
+
if (total <= 10) {
|
|
141
|
+
return Array.from({ length: total }, function (_, i) { return i + 1; });
|
|
142
|
+
}
|
|
143
|
+
var pages = [];
|
|
144
|
+
// 항상 첫 페이지 표시
|
|
145
|
+
pages.push(1);
|
|
146
|
+
// 현재 페이지가 1~3 범위인 경우
|
|
147
|
+
if (current <= 3) {
|
|
148
|
+
// 2, 3 표시 (1은 이미 추가됨)
|
|
149
|
+
pages.push(2, 3);
|
|
150
|
+
if (total > 3) {
|
|
151
|
+
pages.push('...');
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// 현재 페이지가 마지막 3개 범위인 경우
|
|
155
|
+
else if (current >= total - 2) {
|
|
156
|
+
pages.push('...');
|
|
157
|
+
// 마지막 3개 페이지 표시
|
|
158
|
+
pages.push(total - 2, total - 1);
|
|
159
|
+
}
|
|
160
|
+
// 중간 범위인 경우
|
|
161
|
+
else {
|
|
162
|
+
pages.push('...');
|
|
163
|
+
// 현재 페이지와 양옆 페이지 표시
|
|
164
|
+
pages.push(current - 1, current, current + 1);
|
|
165
|
+
pages.push('...');
|
|
166
|
+
}
|
|
167
|
+
// 항상 마지막 페이지 표시 (마지막 3개 범위가 아닌 경우에만)
|
|
168
|
+
if (current < total - 2 || current === 1) {
|
|
169
|
+
pages.push(total);
|
|
170
|
+
}
|
|
171
|
+
else if (current >= total - 2) {
|
|
172
|
+
pages.push(total);
|
|
173
|
+
}
|
|
174
|
+
return pages;
|
|
175
|
+
}
|
|
176
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -68,13 +68,13 @@ function parseStylePropertyStyles(key, value) {
|
|
|
68
68
|
}
|
|
69
69
|
return undefined;
|
|
70
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);
|
|
71
|
+
function getColumnsPropStyleValues(value, rows) {
|
|
72
|
+
return (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", 1fr);\n "], ["\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", 1fr);\n "])), value, rows);
|
|
73
73
|
}
|
|
74
|
-
function parseContentPropertyStyles(key, value) {
|
|
74
|
+
function parseContentPropertyStyles(key, value, rows) {
|
|
75
75
|
switch (key) {
|
|
76
76
|
case 'CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS':
|
|
77
|
-
return getColumnsPropStyleValues(value);
|
|
77
|
+
return getColumnsPropStyleValues(value, rows);
|
|
78
78
|
}
|
|
79
79
|
return undefined;
|
|
80
80
|
}
|
|
@@ -87,34 +87,31 @@ function parseGridStyleProp(_a) {
|
|
|
87
87
|
var value = props[keyWithDevice];
|
|
88
88
|
var hoverValue = props[keyWithHover];
|
|
89
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
|
-
}
|
|
90
|
+
var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue !== null && hoverValue !== void 0 ? hoverValue : value);
|
|
97
91
|
return {
|
|
98
|
-
stylePropCss: (0, styled_components_1.css)(
|
|
99
|
-
hoverStylePropCss: (0, styled_components_1.css)(
|
|
92
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
|
|
93
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
|
|
100
94
|
};
|
|
101
95
|
}, {
|
|
102
|
-
stylePropCss: (0, styled_components_1.css)(
|
|
103
|
-
hoverStylePropCss: (0, styled_components_1.css)(
|
|
96
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject([""], [""]))),
|
|
97
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject([""], [""])))
|
|
104
98
|
});
|
|
105
99
|
}
|
|
106
100
|
exports.parseGridStyleProp = parseGridStyleProp;
|
|
107
101
|
function parseGridContentProp(_a) {
|
|
108
102
|
var props = _a.props;
|
|
109
103
|
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
|
104
|
+
var columns = props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS || 1;
|
|
105
|
+
var displayCounts = props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS || 1;
|
|
106
|
+
var rows = Math.ceil(displayCounts / columns);
|
|
110
107
|
return availableSpecCodes.reduce(function (acc, currentKey) {
|
|
111
108
|
var value = props[currentKey];
|
|
112
|
-
var styles = parseContentPropertyStyles(currentKey, value);
|
|
109
|
+
var styles = parseContentPropertyStyles(currentKey, value, rows);
|
|
113
110
|
return {
|
|
114
|
-
contentPropCss: (0, styled_components_1.css)(
|
|
111
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
|
|
115
112
|
};
|
|
116
113
|
}, {
|
|
117
|
-
contentPropCss: (0, styled_components_1.css)(
|
|
114
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
|
|
118
115
|
});
|
|
119
116
|
}
|
|
120
117
|
exports.parseGridContentProp = parseGridContentProp;
|
|
@@ -130,7 +127,7 @@ function parsePaginationStyleProp(_a) {
|
|
|
130
127
|
var hoverValue = props[keyWithHover];
|
|
131
128
|
return {
|
|
132
129
|
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
|
133
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
|
130
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
|
134
131
|
};
|
|
135
132
|
}
|
|
136
133
|
if (customPaginationPropertyKey === 'offset') {
|
|
@@ -138,7 +135,7 @@ function parsePaginationStyleProp(_a) {
|
|
|
138
135
|
var hoverValue = props[keyWithHover];
|
|
139
136
|
return {
|
|
140
137
|
normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
|
|
141
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
|
|
138
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
142
139
|
};
|
|
143
140
|
}
|
|
144
141
|
if (customPaginationPropertyKey === 'size') {
|
|
@@ -146,7 +143,7 @@ function parsePaginationStyleProp(_a) {
|
|
|
146
143
|
var hoverValue = props[keyWithHover];
|
|
147
144
|
return {
|
|
148
145
|
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
|
|
149
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
|
|
146
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
150
147
|
};
|
|
151
148
|
}
|
|
152
149
|
return {
|
|
@@ -203,10 +200,10 @@ function getCustomPaginationOffset(value) {
|
|
|
203
200
|
case 'OUTSET3':
|
|
204
201
|
return {
|
|
205
202
|
top: '0px',
|
|
206
|
-
|
|
207
|
-
translateX:
|
|
203
|
+
left: '100%',
|
|
204
|
+
translateX: -100,
|
|
208
205
|
translateY: -100,
|
|
209
|
-
transformOrigin: 'top
|
|
206
|
+
transformOrigin: 'top left'
|
|
210
207
|
};
|
|
211
208
|
case 'OUTSET4':
|
|
212
209
|
return {
|
|
@@ -280,9 +277,9 @@ function getCustomPaginationOffset(value) {
|
|
|
280
277
|
translateY: 0,
|
|
281
278
|
transformOrigin: 'right top'
|
|
282
279
|
};
|
|
283
|
-
case '
|
|
280
|
+
case 'INSET1':
|
|
284
281
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
|
285
|
-
case '
|
|
282
|
+
case 'INSET2':
|
|
286
283
|
return {
|
|
287
284
|
top: '0px',
|
|
288
285
|
left: '50%',
|
|
@@ -290,7 +287,7 @@ function getCustomPaginationOffset(value) {
|
|
|
290
287
|
translateY: 0,
|
|
291
288
|
transformOrigin: 'left top'
|
|
292
289
|
};
|
|
293
|
-
case '
|
|
290
|
+
case 'INSET3':
|
|
294
291
|
return {
|
|
295
292
|
top: '0px',
|
|
296
293
|
left: '100%',
|
|
@@ -298,7 +295,7 @@ function getCustomPaginationOffset(value) {
|
|
|
298
295
|
translateY: 0,
|
|
299
296
|
transformOrigin: 'left top'
|
|
300
297
|
};
|
|
301
|
-
case '
|
|
298
|
+
case 'INSET4':
|
|
302
299
|
return {
|
|
303
300
|
top: '50%',
|
|
304
301
|
left: '100%',
|
|
@@ -306,7 +303,7 @@ function getCustomPaginationOffset(value) {
|
|
|
306
303
|
translateY: -50,
|
|
307
304
|
transformOrigin: 'left top'
|
|
308
305
|
};
|
|
309
|
-
case '
|
|
306
|
+
case 'INSET5':
|
|
310
307
|
return {
|
|
311
308
|
top: '100%',
|
|
312
309
|
left: '100%',
|
|
@@ -314,7 +311,7 @@ function getCustomPaginationOffset(value) {
|
|
|
314
311
|
translateY: -100,
|
|
315
312
|
transformOrigin: 'left top'
|
|
316
313
|
};
|
|
317
|
-
case '
|
|
314
|
+
case 'INSET6':
|
|
318
315
|
return {
|
|
319
316
|
top: '100%',
|
|
320
317
|
left: '50%',
|
|
@@ -322,7 +319,7 @@ function getCustomPaginationOffset(value) {
|
|
|
322
319
|
translateY: -100,
|
|
323
320
|
transformOrigin: 'left top'
|
|
324
321
|
};
|
|
325
|
-
case '
|
|
322
|
+
case 'INSET7':
|
|
326
323
|
return {
|
|
327
324
|
top: '100%',
|
|
328
325
|
left: '0px',
|
|
@@ -330,7 +327,7 @@ function getCustomPaginationOffset(value) {
|
|
|
330
327
|
translateY: -100,
|
|
331
328
|
transformOrigin: 'top left'
|
|
332
329
|
};
|
|
333
|
-
case '
|
|
330
|
+
case 'INSET8':
|
|
334
331
|
return {
|
|
335
332
|
top: '50%',
|
|
336
333
|
left: '0px',
|
|
@@ -347,11 +344,11 @@ function getCustomPaginationSize(value) {
|
|
|
347
344
|
case 'SMALL':
|
|
348
345
|
return 1;
|
|
349
346
|
case 'MEDIUM':
|
|
350
|
-
return
|
|
347
|
+
return 1.5;
|
|
351
348
|
case 'LARGE':
|
|
352
|
-
return
|
|
349
|
+
return 2;
|
|
353
350
|
default:
|
|
354
351
|
return 1;
|
|
355
352
|
}
|
|
356
353
|
}
|
|
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
|
|
354
|
+
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;
|
|
@@ -6,7 +6,7 @@ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER
|
|
|
6
6
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean | null;
|
|
7
7
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = boolean | null;
|
|
8
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' | null;
|
|
9
|
-
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | '
|
|
9
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET1' | 'INSET2' | 'INSET3' | 'INSET4' | 'INSET5' | 'INSET6' | 'INSET7' | 'INSET8' | null;
|
|
10
10
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE' | null;
|
|
11
11
|
export type CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE = {
|
|
12
12
|
CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
|
|
@@ -57,7 +57,8 @@ function Image(props) {
|
|
|
57
57
|
var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
|
|
58
58
|
var index = props.index, CB_CONTENT_PROP_IMAGE = props.CB_CONTENT_PROP_IMAGE, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
59
59
|
var cLinkValue = function () {
|
|
60
|
-
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA'
|
|
60
|
+
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
|
|
61
|
+
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
|
61
62
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
62
63
|
return "ERROR: QueryData NOT FOUND";
|
|
63
64
|
}
|
|
@@ -90,19 +91,26 @@ function Image(props) {
|
|
|
90
91
|
var hasEffect = !isNoneEffectType;
|
|
91
92
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
|
92
93
|
var imgSrc = function () {
|
|
93
|
-
var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA'
|
|
94
|
+
var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA' ||
|
|
95
|
+
CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
94
96
|
if (!isDataConnected) {
|
|
95
97
|
return CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR;
|
|
96
98
|
}
|
|
97
99
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
98
|
-
|
|
100
|
+
// eslint-disable-next-line
|
|
101
|
+
console.warn('ERROR: No query data found');
|
|
102
|
+
return 'ERROR';
|
|
99
103
|
}
|
|
100
104
|
if (!queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA]) {
|
|
101
|
-
|
|
105
|
+
// eslint-disable-next-line
|
|
106
|
+
console.warn("ERROR: ".concat(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA, " NOT found in query data"));
|
|
107
|
+
return 'ERROR';
|
|
102
108
|
}
|
|
103
109
|
return queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
|
|
104
110
|
};
|
|
105
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc()
|
|
111
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc() === 'ERROR'
|
|
112
|
+
? 'https://static.publ.site/pages-sample/img_cb_style_prop_bgmedia_spec_imageselector_01.png'
|
|
113
|
+
: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
|
|
106
114
|
}
|
|
107
115
|
function parseImageCBStyle(style, hoverStyle, mode) {
|
|
108
116
|
var boxStyle = {
|
|
@@ -14,6 +14,29 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
14
|
};
|
|
15
15
|
return __assign.apply(this, arguments);
|
|
16
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
|
+
};
|
|
17
40
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
41
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
42
|
};
|
|
@@ -24,7 +47,7 @@ var createCompositions_1 = require("../../../../../../../DynamicLayout/Compositi
|
|
|
24
47
|
var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
|
|
25
48
|
var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
|
|
26
49
|
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
27
|
-
var styled_components_1 =
|
|
50
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
51
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
29
52
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
30
53
|
var CustomNavigation_1 = require("./components/CustomNavigation");
|
|
@@ -33,10 +56,11 @@ var CustomProgressbar_1 = require("./components/CustomProgressbar");
|
|
|
33
56
|
var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
|
|
34
57
|
var slideBannerUtils_1 = require("./slideBannerUtils");
|
|
35
58
|
function SlideBanner(props) {
|
|
36
|
-
var _a
|
|
59
|
+
var _a;
|
|
60
|
+
var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, mode = _b.mode, queryData = _b.queryData;
|
|
37
61
|
var index = props.index,
|
|
38
62
|
// CONTENT : 슬라이드배너
|
|
39
|
-
|
|
63
|
+
_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,
|
|
40
64
|
// STYLE: 슬라이드배너
|
|
41
65
|
CB_STYLE_PROP_SLIDEBANNER = props.CB_STYLE_PROP_SLIDEBANNER,
|
|
42
66
|
// STYLE: 그림자
|
|
@@ -44,9 +68,8 @@ function SlideBanner(props) {
|
|
|
44
68
|
// EFFECT: 진입
|
|
45
69
|
CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
|
46
70
|
var compositions = props.compositions;
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var _e = (0, react_1.useState)(0), totalPages = _e[0], setTotalPages = _e[1];
|
|
71
|
+
var _d = (0, react_1.useState)(false), isHovered = _d[0], setIsHovered = _d[1];
|
|
72
|
+
var _e = (0, react_1.useState)(1), currentSlide = _e[0], setCurrentSlide = _e[1];
|
|
50
73
|
var _f = (0, react_1.useState)(true), isBeginning = _f[0], setIsBeginning = _f[1];
|
|
51
74
|
var _g = (0, react_1.useState)(false), isEnd = _g[0], setIsEnd = _g[1];
|
|
52
75
|
var progressRef = (0, react_1.useRef)(0);
|
|
@@ -69,6 +92,7 @@ function SlideBanner(props) {
|
|
|
69
92
|
device: device
|
|
70
93
|
}), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
|
|
71
94
|
var _m = (0, util_1.parseProperties)(props, device), style = _m.style, hoverStyle = _m.hoverStyle, layout = _m.layout, effect = _m.effect;
|
|
95
|
+
var loop = isHovered ? slideBannerNormalStyle.loop : slideBannerHoverStyle.loop;
|
|
72
96
|
// NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
|
|
73
97
|
var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
|
|
74
98
|
// NOTE: EFFECT와 관련된 함수들입니다.
|
|
@@ -89,28 +113,29 @@ function SlideBanner(props) {
|
|
|
89
113
|
(_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
|
|
90
114
|
}, [isHovered]);
|
|
91
115
|
var handleSwiper = function (swiper) {
|
|
92
|
-
var totalSlides = swiper.slides.length;
|
|
93
|
-
var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
|
|
94
|
-
var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
|
|
95
|
-
var totalPages = Math.ceil((totalSlides - slidesPerView) / slidesPerGroup) + 1;
|
|
96
|
-
setTotalPages(totalPages);
|
|
97
116
|
setIsBeginning(swiper.isBeginning);
|
|
98
117
|
setIsEnd(swiper.isEnd);
|
|
99
|
-
setCurrentSlide(swiper.activeIndex + 1);
|
|
100
118
|
};
|
|
101
|
-
var
|
|
119
|
+
var handleSlideChangeTransitionEnd = function (swiper) {
|
|
120
|
+
var isLoop = swiper.params.loop || false;
|
|
102
121
|
setIsBeginning(swiper.isBeginning);
|
|
103
122
|
setIsEnd(swiper.isEnd);
|
|
104
|
-
|
|
123
|
+
if (isLoop) {
|
|
124
|
+
// loop 모드에서는 realIndex가 실제 슬라이드 인덱스
|
|
125
|
+
setCurrentSlide(swiper.realIndex + 1);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
// loop가 꺼져있을 때는 activeIndex 사용
|
|
129
|
+
setCurrentSlide(swiper.activeIndex + 1);
|
|
130
|
+
}
|
|
105
131
|
};
|
|
106
|
-
var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (
|
|
132
|
+
var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (_, time, progress) {
|
|
107
133
|
leftTimeMsRef.current = time;
|
|
108
134
|
progressRef.current = progress;
|
|
109
135
|
}, []);
|
|
110
136
|
var handleBulletClick = function (index) {
|
|
111
137
|
if (swiperRef.current) {
|
|
112
|
-
|
|
113
|
-
swiperRef.current.swiper.slideTo(targetIndex);
|
|
138
|
+
swiperRef.current.swiper.slideTo(index);
|
|
114
139
|
}
|
|
115
140
|
};
|
|
116
141
|
var handlePrevBtnClick = function () {
|
|
@@ -123,12 +148,29 @@ function SlideBanner(props) {
|
|
|
123
148
|
swiperRef.current.swiper.slideNext();
|
|
124
149
|
}
|
|
125
150
|
};
|
|
126
|
-
return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
151
|
+
return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { borderBottomLeftRadius: style.borderBottomLeftRadius, borderBottomRightRadius: style.borderBottomRightRadius, borderTopLeftRadius: style.borderTopLeftRadius, borderTopRightRadius: style.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), hoverStyle: __assign(__assign({}, hoverStyle), { borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius, borderBottomRightRadius: hoverStyle.borderBottomRightRadius, borderTopLeftRadius: hoverStyle.borderTopLeftRadius, borderTopRightRadius: hoverStyle.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperWrapper, __assign({ customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ borderStyle: {
|
|
152
|
+
borderBottomLeftRadius: style.borderBottomLeftRadius,
|
|
153
|
+
borderBottomRightRadius: style.borderBottomRightRadius,
|
|
154
|
+
borderTopLeftRadius: style.borderTopLeftRadius,
|
|
155
|
+
borderTopRightRadius: style.borderTopRightRadius,
|
|
156
|
+
borderWidth: style.borderWidth,
|
|
157
|
+
borderColor: style.borderColor,
|
|
158
|
+
borderStyle: style.borderStyle
|
|
159
|
+
}, hoverBorderStyle: {
|
|
160
|
+
borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
|
|
161
|
+
borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
|
|
162
|
+
borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
|
|
163
|
+
borderTopRightRadius: hoverStyle.borderTopRightRadius,
|
|
164
|
+
borderWidth: hoverStyle.borderWidth,
|
|
165
|
+
borderColor: hoverStyle.borderColor,
|
|
166
|
+
borderStyle: hoverStyle.borderStyle
|
|
167
|
+
} }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, onSwiper: handleSwiper, onSlideChangeTransitionEnd: handleSlideChangeTransitionEnd, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: 1, scrollbar: isHovered ? slideBannerHoverStyle.scrollbar : slideBannerNormalStyle.scrollbar, freeMode: isHovered ? slideBannerHoverStyle.freeMode : slideBannerNormalStyle.freeMode, autoplay: isHovered ? slideBannerHoverStyle.autoplay : slideBannerNormalStyle.autoplay, useAutoplay: isHovered ? slideBannerHoverStyle.useAutoplay : slideBannerNormalStyle.useAutoplay, loop: isHovered ? slideBannerHoverStyle.loop : slideBannerNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
|
|
168
|
+
valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
|
|
169
|
+
queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
|
|
170
|
+
limit: CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS,
|
|
171
|
+
queryData: queryData,
|
|
172
|
+
compositions: compositions
|
|
173
|
+
}) })) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, prevBtnDisabled: loop ? false : isBeginning, nextBtnDisabled: loop ? false : isEnd, total: (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick, onPrevBtnClick: handlePrevBtnClick, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
|
|
132
174
|
? customNavigationHoverStyle.prevBtnType
|
|
133
175
|
: customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
|
|
134
176
|
? customNavigationHoverStyle.prevBtnOffset
|
|
@@ -146,5 +188,12 @@ var S_SwiperWrapper = styled_components_1.default.div(templateObject_1 || (templ
|
|
|
146
188
|
var customStyle = _a.customStyle;
|
|
147
189
|
return customStyle;
|
|
148
190
|
});
|
|
191
|
+
var S_SwiperLayout = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"], ["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
192
|
+
var hoverBorderStyle = _a.hoverBorderStyle;
|
|
193
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverBorderStyle), { boxShadow: '' }));
|
|
194
|
+
}, function (_a) {
|
|
195
|
+
var borderStyle = _a.borderStyle;
|
|
196
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, borderStyle), { boxShadow: '' }));
|
|
197
|
+
});
|
|
149
198
|
exports.default = SlideBanner;
|
|
150
|
-
var templateObject_1;
|
|
199
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|