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
|
@@ -15,69 +15,39 @@ var __assign = (this && this.__assign) || function () {
|
|
|
15
15
|
return __assign.apply(this, arguments);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.getCustomProgressbarPropKey = exports.parseCarouselStyleToCustomProgressbarProp = exports.getCustomNavigationPropKey = exports.parseCarouselStyleToCustomNavigationProp = exports.
|
|
18
|
+
exports.getCustomProgressbarPropKey = exports.parseCarouselStyleToCustomProgressbarProp = exports.getCustomNavigationPropKey = exports.parseCarouselStyleToCustomNavigationProp = exports.getCarouselCorePropKey = exports.parseCarouselStyleToCarouselCoreProp = void 0;
|
|
19
19
|
var styled_components_1 = require("styled-components");
|
|
20
20
|
function parseCarouselStyleToCarouselCoreProp(_a) {
|
|
21
21
|
var props = _a.props, contentsPropsPartials = _a.contentsPropsPartials, device = _a.device;
|
|
22
22
|
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
|
23
23
|
return availableSpecCodes.reduce(function (acc, currentKey) {
|
|
24
|
-
var _a, _b, _c, _d, _e, _f
|
|
24
|
+
var _a, _b, _c, _d, _e, _f;
|
|
25
25
|
var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
|
|
26
26
|
var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
|
|
27
27
|
var carouselCorePropertyKey = getCarouselCorePropKey(currentKey);
|
|
28
28
|
if (carouselCorePropertyKey === 'customStyle') {
|
|
29
29
|
var value = props[keyWithDevice];
|
|
30
30
|
var hoverValue = props[keyWithHover];
|
|
31
|
-
if (hoverValue === null || hoverValue === undefined) {
|
|
32
|
-
return {
|
|
33
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (_a = {}, _a[carouselCorePropertyKey] = getStyle(value), _a)),
|
|
34
|
-
hoverStyle: __assign({}, acc.hoverStyle)
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
31
|
return {
|
|
38
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (
|
|
39
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (
|
|
32
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), (_a = {}, _a[carouselCorePropertyKey] = getStyle(value), _a)),
|
|
33
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[carouselCorePropertyKey] = getStyle(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), _b))
|
|
40
34
|
};
|
|
41
35
|
}
|
|
42
36
|
if (carouselCorePropertyKey === 'spaceBetween') {
|
|
43
37
|
var value = props[keyWithDevice];
|
|
44
38
|
var hoverValue = props[keyWithHover];
|
|
45
|
-
if (hoverValue === null || hoverValue === undefined) {
|
|
46
|
-
return {
|
|
47
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (_d = {}, _d[carouselCorePropertyKey] = getItemSpacing(value), _d)),
|
|
48
|
-
hoverStyle: __assign({}, acc.hoverStyle)
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
39
|
return {
|
|
52
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (
|
|
53
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (
|
|
40
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), (_c = {}, _c[carouselCorePropertyKey] = getItemSpacing(value), _c)),
|
|
41
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[carouselCorePropertyKey] = getItemSpacing(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), _d))
|
|
54
42
|
};
|
|
55
43
|
}
|
|
56
44
|
if (carouselCorePropertyKey === 'slidesPerGroup') {
|
|
57
45
|
var value = props[keyWithDevice];
|
|
58
46
|
var hoverValue = props[keyWithHover];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
if (value === 'ALL') {
|
|
66
|
-
return {
|
|
67
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (_h = {}, _h[carouselCorePropertyKey] = contentsPropsPartials.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, _h)),
|
|
68
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_j = {}, _j[carouselCorePropertyKey] = contentsPropsPartials.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, _j))
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
if (value === 'SCROLL') {
|
|
72
|
-
return {
|
|
73
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { scrollbar: { draggable: true }, freeMode: { enabled: true, sticky: false } }),
|
|
74
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { scrollbar: { draggable: true }, freeMode: { enabled: true, sticky: false } })
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
// NOTE value === 'ONCE' 일때, Default 값
|
|
78
|
-
return {
|
|
79
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (_k = {}, _k[carouselCorePropertyKey] = 1, _k)),
|
|
80
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_l = {}, _l[carouselCorePropertyKey] = 1, _l))
|
|
47
|
+
var displayCounts = contentsPropsPartials.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS;
|
|
48
|
+
return {
|
|
49
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), getSlidesPerGroupConfig(value, displayCounts)),
|
|
50
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), getSlidesPerGroupConfig(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value, displayCounts))
|
|
81
51
|
};
|
|
82
52
|
}
|
|
83
53
|
if (carouselCorePropertyKey === 'useAutoplay') {
|
|
@@ -85,16 +55,20 @@ function parseCarouselStyleToCarouselCoreProp(_a) {
|
|
|
85
55
|
var hoverValue = props[keyWithHover];
|
|
86
56
|
return {
|
|
87
57
|
normalStyle: __assign(__assign({}, acc.normalStyle), { useAutoplay: value === true }),
|
|
88
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { useAutoplay: hoverValue === true })
|
|
58
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { useAutoplay: (hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) === true })
|
|
89
59
|
};
|
|
90
60
|
}
|
|
91
61
|
if (carouselCorePropertyKey === 'autoplayDelay') {
|
|
92
62
|
var value = props[keyWithDevice];
|
|
93
63
|
var hoverValue = props[keyWithHover];
|
|
94
64
|
return {
|
|
95
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { autoplay: {
|
|
65
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), { autoplay: {
|
|
66
|
+
delay: value * 1000,
|
|
67
|
+
disableOnInteraction: false,
|
|
68
|
+
pauseOnMouseEnter: true
|
|
69
|
+
} }),
|
|
96
70
|
hoverStyle: __assign(__assign({}, acc.hoverStyle), { autoplay: {
|
|
97
|
-
delay: hoverValue * 1000,
|
|
71
|
+
delay: (hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) * 1000,
|
|
98
72
|
disableOnInteraction: false,
|
|
99
73
|
pauseOnMouseEnter: true
|
|
100
74
|
} })
|
|
@@ -104,8 +78,8 @@ function parseCarouselStyleToCarouselCoreProp(_a) {
|
|
|
104
78
|
var value = props[keyWithDevice];
|
|
105
79
|
var hoverValue = props[keyWithHover];
|
|
106
80
|
return {
|
|
107
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (
|
|
108
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (
|
|
81
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), (_e = {}, _e[carouselCorePropertyKey] = value, _e)),
|
|
82
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_f = {}, _f[carouselCorePropertyKey] = hoverValue !== null && hoverValue !== void 0 ? hoverValue : value, _f))
|
|
109
83
|
};
|
|
110
84
|
}
|
|
111
85
|
return {
|
|
@@ -155,268 +129,44 @@ function getCarouselCorePropKey(key) {
|
|
|
155
129
|
}
|
|
156
130
|
}
|
|
157
131
|
exports.getCarouselCorePropKey = getCarouselCorePropKey;
|
|
132
|
+
function getSlidesPerGroupConfig(cursorType, displayCounts) {
|
|
133
|
+
if (cursorType === 'ALL') {
|
|
134
|
+
return { slidesPerGroup: displayCounts };
|
|
135
|
+
}
|
|
136
|
+
if (cursorType === 'SCROLL') {
|
|
137
|
+
return {
|
|
138
|
+
scrollbar: { draggable: true },
|
|
139
|
+
freeMode: { enabled: true, sticky: false }
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
// 'ONCE'
|
|
143
|
+
return { slidesPerGroup: 1 };
|
|
144
|
+
}
|
|
158
145
|
function getStyle(value) {
|
|
159
146
|
switch (value) {
|
|
160
147
|
case 'DESIGN1':
|
|
161
148
|
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
|
162
149
|
case 'DESIGN2': {
|
|
163
|
-
|
|
164
|
-
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "], ["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "])), overlayEffect, overlayEffect);
|
|
150
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
|
165
151
|
}
|
|
166
152
|
default: {
|
|
167
|
-
return (0, styled_components_1.css)(
|
|
153
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
|
168
154
|
}
|
|
169
155
|
}
|
|
170
156
|
}
|
|
171
157
|
function getItemSpacing(value) {
|
|
172
|
-
var NORMAL =
|
|
158
|
+
var NORMAL = 30;
|
|
173
159
|
switch (value) {
|
|
174
160
|
case 'WIDE':
|
|
175
161
|
return 50;
|
|
176
162
|
case 'NORMAL':
|
|
177
163
|
return NORMAL;
|
|
178
164
|
case 'NARROW':
|
|
179
|
-
return
|
|
165
|
+
return 10;
|
|
180
166
|
default:
|
|
181
167
|
return NORMAL;
|
|
182
168
|
}
|
|
183
169
|
}
|
|
184
|
-
function parseCarouselStyleToCustomPaginationProp(_a) {
|
|
185
|
-
var props = _a.props, device = _a.device;
|
|
186
|
-
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
|
187
|
-
return availableSpecCodes.reduce(function (acc, currentKey) {
|
|
188
|
-
var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
|
|
189
|
-
var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
|
|
190
|
-
var customPaginationPropertyKey = getCustomPaginationPropKey(currentKey);
|
|
191
|
-
if (customPaginationPropertyKey === 'type') {
|
|
192
|
-
var value = props[keyWithDevice];
|
|
193
|
-
var hoverValue = props[keyWithHover];
|
|
194
|
-
return {
|
|
195
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
|
196
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
if (customPaginationPropertyKey === 'offset') {
|
|
200
|
-
var value = props[keyWithDevice];
|
|
201
|
-
var hoverValue = props[keyWithHover];
|
|
202
|
-
return {
|
|
203
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
|
|
204
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
if (customPaginationPropertyKey === 'size') {
|
|
208
|
-
var value = props[keyWithDevice];
|
|
209
|
-
var hoverValue = props[keyWithHover];
|
|
210
|
-
return {
|
|
211
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
|
|
212
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
return {
|
|
216
|
-
normalStyle: __assign({}, acc.normalStyle),
|
|
217
|
-
hoverStyle: __assign({}, acc.hoverStyle)
|
|
218
|
-
};
|
|
219
|
-
}, {
|
|
220
|
-
normalStyle: {},
|
|
221
|
-
hoverStyle: {}
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
exports.parseCarouselStyleToCustomPaginationProp = parseCarouselStyleToCustomPaginationProp;
|
|
225
|
-
function getCustomPaginationPropKey(key) {
|
|
226
|
-
switch (key) {
|
|
227
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSTYLE":
|
|
228
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSTYLE:HOVER":
|
|
229
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSTYLE:MOBILE":
|
|
230
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSTYLE:MOBILE:HOVER":
|
|
231
|
-
return 'type';
|
|
232
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONLOCATION":
|
|
233
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONLOCATION:HOVER":
|
|
234
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONLOCATION:MOBILE":
|
|
235
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONLOCATION:MOBILE:HOVER":
|
|
236
|
-
return 'offset';
|
|
237
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSIZE":
|
|
238
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSIZE:HOVER":
|
|
239
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSIZE:MOBILE":
|
|
240
|
-
case "CB_STYLE_PROP_CONTENTSCAROUSEL_SPEC_PAGINATIONSIZE:MOBILE:HOVER":
|
|
241
|
-
return 'size';
|
|
242
|
-
default:
|
|
243
|
-
return '';
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
|
|
247
|
-
function getCustomPaginationOffset(value) {
|
|
248
|
-
var OUTSET1 = {
|
|
249
|
-
top: '0px',
|
|
250
|
-
left: '0px',
|
|
251
|
-
translateX: 0,
|
|
252
|
-
translateY: -100,
|
|
253
|
-
transformOrigin: 'top left'
|
|
254
|
-
};
|
|
255
|
-
switch (value) {
|
|
256
|
-
case 'OUTSET1':
|
|
257
|
-
return OUTSET1;
|
|
258
|
-
case 'OUTSET2':
|
|
259
|
-
return {
|
|
260
|
-
top: '0px',
|
|
261
|
-
left: '50%',
|
|
262
|
-
translateX: -50,
|
|
263
|
-
translateY: -100,
|
|
264
|
-
transformOrigin: 'top left'
|
|
265
|
-
};
|
|
266
|
-
case 'OUTSET3':
|
|
267
|
-
return {
|
|
268
|
-
top: '0px',
|
|
269
|
-
left: '100%',
|
|
270
|
-
translateX: -100,
|
|
271
|
-
translateY: -100,
|
|
272
|
-
transformOrigin: 'top left'
|
|
273
|
-
};
|
|
274
|
-
case 'OUTSET4':
|
|
275
|
-
return {
|
|
276
|
-
top: '0px',
|
|
277
|
-
left: '100%',
|
|
278
|
-
translateX: 0,
|
|
279
|
-
translateY: 0,
|
|
280
|
-
transformOrigin: 'left top'
|
|
281
|
-
};
|
|
282
|
-
case 'OUTSET5':
|
|
283
|
-
return {
|
|
284
|
-
top: '50%',
|
|
285
|
-
left: '100%',
|
|
286
|
-
translateX: 0,
|
|
287
|
-
translateY: -50,
|
|
288
|
-
transformOrigin: 'left top'
|
|
289
|
-
};
|
|
290
|
-
case 'OUTSET6':
|
|
291
|
-
return {
|
|
292
|
-
top: '100%',
|
|
293
|
-
left: '100%',
|
|
294
|
-
translateX: 0,
|
|
295
|
-
translateY: -100,
|
|
296
|
-
transformOrigin: 'left top'
|
|
297
|
-
};
|
|
298
|
-
case 'OUTSET7':
|
|
299
|
-
return {
|
|
300
|
-
top: '100%',
|
|
301
|
-
left: '100%',
|
|
302
|
-
translateX: -100,
|
|
303
|
-
translateY: 0,
|
|
304
|
-
transformOrigin: 'top left'
|
|
305
|
-
};
|
|
306
|
-
case 'OUTSET8':
|
|
307
|
-
return {
|
|
308
|
-
top: '100%',
|
|
309
|
-
left: '50%',
|
|
310
|
-
translateX: -50,
|
|
311
|
-
translateY: 0,
|
|
312
|
-
transformOrigin: 'top left'
|
|
313
|
-
};
|
|
314
|
-
case 'OUTSET9':
|
|
315
|
-
return {
|
|
316
|
-
top: '100%',
|
|
317
|
-
left: '0px',
|
|
318
|
-
translateX: 0,
|
|
319
|
-
translateY: 0,
|
|
320
|
-
transformOrigin: 'top left'
|
|
321
|
-
};
|
|
322
|
-
case 'OUTSET10':
|
|
323
|
-
return {
|
|
324
|
-
top: '100%',
|
|
325
|
-
left: '0px',
|
|
326
|
-
translateX: -50,
|
|
327
|
-
translateY: -100,
|
|
328
|
-
transformOrigin: 'right top'
|
|
329
|
-
};
|
|
330
|
-
case 'OUTSET11':
|
|
331
|
-
return {
|
|
332
|
-
top: '50%',
|
|
333
|
-
left: '0px',
|
|
334
|
-
translateX: -50,
|
|
335
|
-
translateY: -50,
|
|
336
|
-
transformOrigin: 'right top'
|
|
337
|
-
};
|
|
338
|
-
case 'OUTSET12':
|
|
339
|
-
return {
|
|
340
|
-
top: '0px',
|
|
341
|
-
left: '0px',
|
|
342
|
-
translateX: -50,
|
|
343
|
-
translateY: 0,
|
|
344
|
-
transformOrigin: 'right top'
|
|
345
|
-
};
|
|
346
|
-
case 'INSET13':
|
|
347
|
-
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
|
348
|
-
case 'INSET14':
|
|
349
|
-
return {
|
|
350
|
-
top: '0px',
|
|
351
|
-
left: '50%',
|
|
352
|
-
translateX: -50,
|
|
353
|
-
translateY: 0,
|
|
354
|
-
transformOrigin: 'left top'
|
|
355
|
-
};
|
|
356
|
-
case 'INSET15':
|
|
357
|
-
return {
|
|
358
|
-
top: '0px',
|
|
359
|
-
left: '100%',
|
|
360
|
-
translateX: -100,
|
|
361
|
-
translateY: 0,
|
|
362
|
-
transformOrigin: 'left top'
|
|
363
|
-
};
|
|
364
|
-
case 'INSET16':
|
|
365
|
-
return {
|
|
366
|
-
top: '50%',
|
|
367
|
-
left: '100%',
|
|
368
|
-
translateX: -100,
|
|
369
|
-
translateY: -50,
|
|
370
|
-
transformOrigin: 'left top'
|
|
371
|
-
};
|
|
372
|
-
case 'INSET17':
|
|
373
|
-
return {
|
|
374
|
-
top: '100%',
|
|
375
|
-
left: '100%',
|
|
376
|
-
translateX: -100,
|
|
377
|
-
translateY: -100,
|
|
378
|
-
transformOrigin: 'left top'
|
|
379
|
-
};
|
|
380
|
-
case 'INSET18':
|
|
381
|
-
return {
|
|
382
|
-
top: '100%',
|
|
383
|
-
left: '50%',
|
|
384
|
-
translateX: -50,
|
|
385
|
-
translateY: -100,
|
|
386
|
-
transformOrigin: 'left top'
|
|
387
|
-
};
|
|
388
|
-
case 'INSET19':
|
|
389
|
-
return {
|
|
390
|
-
top: '100%',
|
|
391
|
-
left: '0px',
|
|
392
|
-
translateX: 0,
|
|
393
|
-
translateY: -100,
|
|
394
|
-
transformOrigin: 'top left'
|
|
395
|
-
};
|
|
396
|
-
case 'INSET20':
|
|
397
|
-
return {
|
|
398
|
-
top: '50%',
|
|
399
|
-
left: '0px',
|
|
400
|
-
translateX: 0,
|
|
401
|
-
translateY: -50,
|
|
402
|
-
transformOrigin: 'top left'
|
|
403
|
-
};
|
|
404
|
-
default:
|
|
405
|
-
return OUTSET1;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function getCustomPaginationSize(value) {
|
|
409
|
-
switch (value) {
|
|
410
|
-
case 'SMALL':
|
|
411
|
-
return 1;
|
|
412
|
-
case 'MEDIUM':
|
|
413
|
-
return 2;
|
|
414
|
-
case 'LARGE':
|
|
415
|
-
return 3;
|
|
416
|
-
default:
|
|
417
|
-
return 1;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
170
|
function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
421
171
|
var props = _a.props, device = _a.device;
|
|
422
172
|
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
|
@@ -429,7 +179,7 @@ function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
|
429
179
|
var hoverValue = props[keyWithHover];
|
|
430
180
|
return {
|
|
431
181
|
normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnType: value }),
|
|
432
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnType: hoverValue })
|
|
182
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
|
433
183
|
};
|
|
434
184
|
}
|
|
435
185
|
if (customNavigationPropertyKey === 'prevBtnOffset') {
|
|
@@ -437,7 +187,7 @@ function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
|
437
187
|
var hoverValue = props[keyWithHover];
|
|
438
188
|
return {
|
|
439
189
|
normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnOffset: getCustomNavigationOffset(value) }),
|
|
440
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnOffset: getCustomNavigationOffset(hoverValue) })
|
|
190
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
441
191
|
};
|
|
442
192
|
}
|
|
443
193
|
if (customNavigationPropertyKey === 'prevBtnSize') {
|
|
@@ -445,7 +195,7 @@ function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
|
445
195
|
var hoverValue = props[keyWithHover];
|
|
446
196
|
return {
|
|
447
197
|
normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnSize: getCustomNavigationSize(value) }),
|
|
448
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSize: getCustomNavigationSize(hoverValue) })
|
|
198
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
449
199
|
};
|
|
450
200
|
}
|
|
451
201
|
if (customNavigationPropertyKey === 'nextBtnType') {
|
|
@@ -453,7 +203,7 @@ function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
|
453
203
|
var hoverValue = props[keyWithHover];
|
|
454
204
|
return {
|
|
455
205
|
normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnType: value }),
|
|
456
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnType: hoverValue })
|
|
206
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
|
457
207
|
};
|
|
458
208
|
}
|
|
459
209
|
if (customNavigationPropertyKey === 'nextBtnOffset') {
|
|
@@ -461,7 +211,7 @@ function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
|
461
211
|
var hoverValue = props[keyWithHover];
|
|
462
212
|
return {
|
|
463
213
|
normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnOffset: getCustomNavigationOffset(value) }),
|
|
464
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnOffset: getCustomNavigationOffset(hoverValue) })
|
|
214
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
465
215
|
};
|
|
466
216
|
}
|
|
467
217
|
if (customNavigationPropertyKey === 'nextBtnSize') {
|
|
@@ -469,7 +219,7 @@ function parseCarouselStyleToCustomNavigationProp(_a) {
|
|
|
469
219
|
var hoverValue = props[keyWithHover];
|
|
470
220
|
return {
|
|
471
221
|
normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnSize: getCustomNavigationSize(value) }),
|
|
472
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSize: getCustomNavigationSize(hoverValue) })
|
|
222
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
473
223
|
};
|
|
474
224
|
}
|
|
475
225
|
return {
|
|
@@ -598,7 +348,7 @@ function getCustomNavigationOffset(value) {
|
|
|
598
348
|
return {
|
|
599
349
|
top: '100%',
|
|
600
350
|
left: '0px',
|
|
601
|
-
translateX: -
|
|
351
|
+
translateX: -100,
|
|
602
352
|
translateY: -100,
|
|
603
353
|
transformOrigin: 'right top'
|
|
604
354
|
};
|
|
@@ -606,7 +356,7 @@ function getCustomNavigationOffset(value) {
|
|
|
606
356
|
return {
|
|
607
357
|
top: '50%',
|
|
608
358
|
left: '0px',
|
|
609
|
-
translateX: -
|
|
359
|
+
translateX: -100,
|
|
610
360
|
translateY: -50,
|
|
611
361
|
transformOrigin: 'right top'
|
|
612
362
|
};
|
|
@@ -614,13 +364,13 @@ function getCustomNavigationOffset(value) {
|
|
|
614
364
|
return {
|
|
615
365
|
top: '0px',
|
|
616
366
|
left: '0px',
|
|
617
|
-
translateX: -
|
|
367
|
+
translateX: -100,
|
|
618
368
|
translateY: 0,
|
|
619
369
|
transformOrigin: 'right top'
|
|
620
370
|
};
|
|
621
|
-
case '
|
|
371
|
+
case 'INSET1':
|
|
622
372
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
|
623
|
-
case '
|
|
373
|
+
case 'INSET2':
|
|
624
374
|
return {
|
|
625
375
|
top: '0px',
|
|
626
376
|
left: '50%',
|
|
@@ -628,7 +378,7 @@ function getCustomNavigationOffset(value) {
|
|
|
628
378
|
translateY: 0,
|
|
629
379
|
transformOrigin: 'left top'
|
|
630
380
|
};
|
|
631
|
-
case '
|
|
381
|
+
case 'INSET3':
|
|
632
382
|
return {
|
|
633
383
|
top: '0px',
|
|
634
384
|
left: '100%',
|
|
@@ -636,7 +386,7 @@ function getCustomNavigationOffset(value) {
|
|
|
636
386
|
translateY: 0,
|
|
637
387
|
transformOrigin: 'left top'
|
|
638
388
|
};
|
|
639
|
-
case '
|
|
389
|
+
case 'INSET4':
|
|
640
390
|
return {
|
|
641
391
|
top: '50%',
|
|
642
392
|
left: '100%',
|
|
@@ -644,7 +394,7 @@ function getCustomNavigationOffset(value) {
|
|
|
644
394
|
translateY: -50,
|
|
645
395
|
transformOrigin: 'left top'
|
|
646
396
|
};
|
|
647
|
-
case '
|
|
397
|
+
case 'INSET5':
|
|
648
398
|
return {
|
|
649
399
|
top: '100%',
|
|
650
400
|
left: '100%',
|
|
@@ -652,7 +402,7 @@ function getCustomNavigationOffset(value) {
|
|
|
652
402
|
translateY: -100,
|
|
653
403
|
transformOrigin: 'left top'
|
|
654
404
|
};
|
|
655
|
-
case '
|
|
405
|
+
case 'INSET6':
|
|
656
406
|
return {
|
|
657
407
|
top: '100%',
|
|
658
408
|
left: '50%',
|
|
@@ -660,7 +410,7 @@ function getCustomNavigationOffset(value) {
|
|
|
660
410
|
translateY: -100,
|
|
661
411
|
transformOrigin: 'left top'
|
|
662
412
|
};
|
|
663
|
-
case '
|
|
413
|
+
case 'INSET7':
|
|
664
414
|
return {
|
|
665
415
|
top: '100%',
|
|
666
416
|
left: '0px',
|
|
@@ -668,7 +418,7 @@ function getCustomNavigationOffset(value) {
|
|
|
668
418
|
translateY: -100,
|
|
669
419
|
transformOrigin: 'top left'
|
|
670
420
|
};
|
|
671
|
-
case '
|
|
421
|
+
case 'INSET8':
|
|
672
422
|
return {
|
|
673
423
|
top: '50%',
|
|
674
424
|
left: '0px',
|
|
@@ -685,9 +435,9 @@ function getCustomNavigationSize(value) {
|
|
|
685
435
|
case 'SMALL':
|
|
686
436
|
return 1;
|
|
687
437
|
case 'MEDIUM':
|
|
688
|
-
return
|
|
438
|
+
return 1.5;
|
|
689
439
|
case 'LARGE':
|
|
690
|
-
return
|
|
440
|
+
return 2;
|
|
691
441
|
default:
|
|
692
442
|
return 1;
|
|
693
443
|
}
|
|
@@ -704,16 +454,16 @@ function parseCarouselStyleToCustomProgressbarProp(_a) {
|
|
|
704
454
|
var hoverValue = props[keyWithHover];
|
|
705
455
|
return {
|
|
706
456
|
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
|
707
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
|
457
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
|
708
458
|
};
|
|
709
459
|
}
|
|
710
460
|
if (customProgressbarPropertyKey === 'size') {
|
|
711
461
|
var value = props[keyWithDevice];
|
|
712
462
|
var hoverValue = props[keyWithHover];
|
|
713
|
-
var offset = getCustomProgressbarOffset('
|
|
463
|
+
var offset = getCustomProgressbarOffset('INSET5');
|
|
714
464
|
return {
|
|
715
465
|
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomProgressbarSize(value), offset: offset }),
|
|
716
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomProgressbarSize(hoverValue), offset: offset })
|
|
466
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomProgressbarSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), offset: offset })
|
|
717
467
|
};
|
|
718
468
|
}
|
|
719
469
|
return {
|
|
@@ -842,9 +592,9 @@ function getCustomProgressbarOffset(value) {
|
|
|
842
592
|
translateY: 0,
|
|
843
593
|
transformOrigin: 'right top'
|
|
844
594
|
};
|
|
845
|
-
case '
|
|
595
|
+
case 'INSET1':
|
|
846
596
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
|
847
|
-
case '
|
|
597
|
+
case 'INSET2':
|
|
848
598
|
return {
|
|
849
599
|
top: '0px',
|
|
850
600
|
left: '50%',
|
|
@@ -852,7 +602,7 @@ function getCustomProgressbarOffset(value) {
|
|
|
852
602
|
translateY: 0,
|
|
853
603
|
transformOrigin: 'left top'
|
|
854
604
|
};
|
|
855
|
-
case '
|
|
605
|
+
case 'INSET3':
|
|
856
606
|
return {
|
|
857
607
|
top: '0px',
|
|
858
608
|
left: '100%',
|
|
@@ -860,7 +610,7 @@ function getCustomProgressbarOffset(value) {
|
|
|
860
610
|
translateY: 0,
|
|
861
611
|
transformOrigin: 'left top'
|
|
862
612
|
};
|
|
863
|
-
case '
|
|
613
|
+
case 'INSET4':
|
|
864
614
|
return {
|
|
865
615
|
top: '50%',
|
|
866
616
|
left: '100%',
|
|
@@ -868,7 +618,7 @@ function getCustomProgressbarOffset(value) {
|
|
|
868
618
|
translateY: -50,
|
|
869
619
|
transformOrigin: 'left top'
|
|
870
620
|
};
|
|
871
|
-
case '
|
|
621
|
+
case 'INSET5':
|
|
872
622
|
return {
|
|
873
623
|
top: '100%',
|
|
874
624
|
left: '100%',
|
|
@@ -876,7 +626,7 @@ function getCustomProgressbarOffset(value) {
|
|
|
876
626
|
translateY: -100,
|
|
877
627
|
transformOrigin: 'left top'
|
|
878
628
|
};
|
|
879
|
-
case '
|
|
629
|
+
case 'INSET6':
|
|
880
630
|
return {
|
|
881
631
|
top: '100%',
|
|
882
632
|
left: '50%',
|
|
@@ -884,7 +634,7 @@ function getCustomProgressbarOffset(value) {
|
|
|
884
634
|
translateY: -100,
|
|
885
635
|
transformOrigin: 'left top'
|
|
886
636
|
};
|
|
887
|
-
case '
|
|
637
|
+
case 'INSET7':
|
|
888
638
|
return {
|
|
889
639
|
top: '100%',
|
|
890
640
|
left: '0px',
|
|
@@ -892,7 +642,7 @@ function getCustomProgressbarOffset(value) {
|
|
|
892
642
|
translateY: -100,
|
|
893
643
|
transformOrigin: 'top left'
|
|
894
644
|
};
|
|
895
|
-
case '
|
|
645
|
+
case 'INSET8':
|
|
896
646
|
return {
|
|
897
647
|
top: '50%',
|
|
898
648
|
left: '0px',
|
|
@@ -909,11 +659,11 @@ function getCustomProgressbarSize(value) {
|
|
|
909
659
|
case 'SMALL':
|
|
910
660
|
return 1;
|
|
911
661
|
case 'MEDIUM':
|
|
912
|
-
return
|
|
662
|
+
return 1.5;
|
|
913
663
|
case 'LARGE':
|
|
914
|
-
return
|
|
664
|
+
return 2;
|
|
915
665
|
default:
|
|
916
666
|
return 1;
|
|
917
667
|
}
|
|
918
668
|
}
|
|
919
|
-
var templateObject_1, templateObject_2, templateObject_3
|
|
669
|
+
var templateObject_1, templateObject_2, templateObject_3;
|