pds-dev-kit-web-test 2.5.365 → 2.5.367

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.
Files changed (205) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +3 -2
  3. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
  4. package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
  5. package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
  6. package/dist/src/common/assets/icons/fill/index.js +3 -1
  7. package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
  8. package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
  9. package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
  10. package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
  11. package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
  12. package/dist/src/common/assets/icons/line/Radio.js +30 -0
  13. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
  14. package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
  15. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
  16. package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
  17. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
  18. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
  19. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
  20. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
  21. package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
  22. package/dist/src/common/assets/icons/line/TextLong.js +30 -0
  23. package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
  24. package/dist/src/common/assets/icons/line/TextShort.js +30 -0
  25. package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
  26. package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
  27. package/dist/src/common/assets/icons/line/index.d.ts +10 -0
  28. package/dist/src/common/assets/icons/line/index.js +21 -1
  29. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
  30. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
  31. package/dist/src/common/hooks/useTooltip.js +1 -1
  32. package/dist/src/common/services/i18n/resources/en.json +9 -1
  33. package/dist/src/common/services/i18n/resources/es.json +9 -1
  34. package/dist/src/common/services/i18n/resources/fil.json +9 -1
  35. package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
  36. package/dist/src/common/services/i18n/resources/ja.json +9 -1
  37. package/dist/src/common/services/i18n/resources/ko.json +9 -1
  38. package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
  39. package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
  40. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +8 -1
  41. package/dist/src/common/styles/colorSet/PaletteColor_light.json +8 -1
  42. package/dist/src/common/styles/colorSet/UIColor.json +13 -1
  43. package/dist/src/common/styles/colorSet/index.d.ts +152 -126
  44. package/dist/src/common/styles/colorSet/index.js +2 -2
  45. package/dist/src/common/styles/colorSet/ui-type.d.ts +12 -0
  46. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  47. package/dist/src/common/utils/dateHelper.d.ts +13 -0
  48. package/dist/src/common/utils/dateHelper.js +87 -0
  49. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
  50. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
  51. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  52. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +3 -1
  53. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +17 -4
  54. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  55. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  56. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
  57. package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
  58. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  59. package/dist/src/desktop/components/TextField/TextField.js +41 -15
  60. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  61. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +3 -1
  62. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +17 -4
  63. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  64. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  65. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
  66. package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
  67. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
  68. package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
  69. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
  70. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
  71. package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
  72. package/dist/src/mobile/components/DatePicker/Day.js +94 -0
  73. package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
  74. package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner → mobile/components/DatePicker}/index.js +3 -3
  75. package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
  76. package/dist/src/mobile/components/DatePicker/utils.js +68 -0
  77. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  78. package/dist/src/mobile/components/TextField/TextField.js +41 -15
  79. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
  80. package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
  81. package/dist/src/mobile/components/index.d.ts +2 -1
  82. package/dist/src/mobile/components/index.js +3 -1
  83. package/dist/src/mobile/index.d.ts +1 -1
  84. package/dist/src/mobile/index.js +3 -2
  85. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  86. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  87. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  88. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  89. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  90. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  91. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  92. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  93. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  94. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  95. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  96. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  97. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  98. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  99. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  100. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  101. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  102. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  103. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  104. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  105. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  106. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  107. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
  108. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +2 -4
  109. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  110. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  111. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  112. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  113. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  114. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
  115. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +5 -1
  116. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +26 -25
  117. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  118. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -0
  119. package/dist/src/sub/DynamicLayout/mocks.d.ts +778 -9
  120. package/dist/src/sub/DynamicLayout/mocks.js +4239 -4293
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +23 -18
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +2 -154
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -31
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +6 -24
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +11 -46
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +0 -1
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +11 -56
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -49
  139. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
  140. package/dist/src/sub/DynamicLayout/types.d.ts +15 -48
  141. package/package.json +3 -3
  142. package/release-note.md +3 -3
  143. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -20
  144. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1132
  145. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
  146. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
  147. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -9
  148. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -53
  149. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
  150. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
  151. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
  152. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
  153. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
  154. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -801
  155. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -2
  156. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -328
  157. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -2
  158. package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -298
  159. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -2
  160. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -320
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -17
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -39
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +0 -31
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +0 -169
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +0 -26
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +0 -185
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -21
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -94
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -50
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -919
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -90
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +0 -2
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -100
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -27
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -188
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -30
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -357
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -46
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -150
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -15
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +0 -31
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +0 -169
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -26
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -185
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -21
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -94
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -48
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -855
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -80
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
  203. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
  204. /package/dist/src/sub/DynamicLayout/{mock_video.d.ts → mock_video_cb.d.ts} +0 -0
  205. /package/dist/src/sub/DynamicLayout/{mock_video.js → mock_video_cb.js} +0 -0
@@ -1,357 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.getCustomPaginationPropKey = exports.parsePaginationStyleProp = exports.parseGridContentProp = exports.parseGridStyleProp = void 0;
19
- var styled_components_1 = require("styled-components");
20
- function getStyleTypePropStyleValues(value) {
21
- switch (value) {
22
- case 'DESIGN1': {
23
- return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
24
- }
25
- case 'DESIGN2': {
26
- var overlayEffect = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "], ["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "])));
27
- return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "], ["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "])), overlayEffect, overlayEffect);
28
- }
29
- default: {
30
- return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
31
- }
32
- }
33
- }
34
- function getItemSpacingPropStyleValues(value) {
35
- switch (value) {
36
- case 'NARROW': {
37
- return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n grid-column-gap: 8px;\n "], ["\n grid-column-gap: 8px;\n "])));
38
- }
39
- case 'NORMAL': {
40
- return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
41
- }
42
- case 'WIDE': {
43
- return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n grid-column-gap: 36px;\n "], ["\n grid-column-gap: 36px;\n "])));
44
- }
45
- default: {
46
- return (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
47
- }
48
- }
49
- }
50
- function getItemLineHeightPropStyleValues(value) {
51
- return (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n grid-row-gap: ", "px;\n "], ["\n grid-row-gap: ", "px;\n "])), value);
52
- }
53
- function getItemHeightFitContentPropStyleValues(value) {
54
- return (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n overflow-y: ", ";\n "], ["\n overflow-y: ", ";\n "])), value ? 'visible' : 'auto');
55
- }
56
- function parseStylePropertyStyles(key, value) {
57
- switch (key) {
58
- case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE':
59
- return getStyleTypePropStyleValues(value);
60
- case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING':
61
- return getItemSpacingPropStyleValues(value);
62
- case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT':
63
- return getItemLineHeightPropStyleValues(value);
64
- case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT':
65
- return getItemHeightFitContentPropStyleValues(value);
66
- case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL':
67
- break;
68
- }
69
- return undefined;
70
- }
71
- function getColumnsPropStyleValues(value) {
72
- return (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n grid-template-columns: repeat(", ", 1fr);\n "], ["\n grid-template-columns: repeat(", ", 1fr);\n "])), value);
73
- }
74
- function parseContentPropertyStyles(key, value) {
75
- switch (key) {
76
- case 'CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS':
77
- return getColumnsPropStyleValues(value);
78
- }
79
- return undefined;
80
- }
81
- function parseGridStyleProp(_a) {
82
- var props = _a.props, device = _a.device;
83
- var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
84
- return availableSpecCodes.reduce(function (acc, currentKey) {
85
- var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
86
- var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
87
- var value = props[keyWithDevice];
88
- var hoverValue = props[keyWithHover];
89
- var styles = parseStylePropertyStyles(currentKey, value);
90
- var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue);
91
- if (hoverValue === null || hoverValue === undefined) {
92
- return {
93
- stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
94
- hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), acc.hoverStylePropCss)
95
- };
96
- }
97
- return {
98
- stylePropCss: (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
99
- hoverStylePropCss: (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
100
- };
101
- }, {
102
- stylePropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""]))),
103
- hoverStylePropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
104
- });
105
- }
106
- exports.parseGridStyleProp = parseGridStyleProp;
107
- function parseGridContentProp(_a) {
108
- var props = _a.props;
109
- var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
110
- return availableSpecCodes.reduce(function (acc, currentKey) {
111
- var value = props[currentKey];
112
- var styles = parseContentPropertyStyles(currentKey, value);
113
- return {
114
- contentPropCss: (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
115
- };
116
- }, {
117
- contentPropCss: (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject([""], [""])))
118
- });
119
- }
120
- exports.parseGridContentProp = parseGridContentProp;
121
- function parsePaginationStyleProp(_a) {
122
- var props = _a.props, device = _a.device;
123
- var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
124
- return availableSpecCodes.reduce(function (acc, currentKey) {
125
- var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
126
- var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
127
- var customPaginationPropertyKey = getCustomPaginationPropKey(currentKey);
128
- if (customPaginationPropertyKey === 'type') {
129
- var value = props[keyWithDevice];
130
- var hoverValue = props[keyWithHover];
131
- return {
132
- normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
133
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
134
- };
135
- }
136
- if (customPaginationPropertyKey === 'offset') {
137
- var value = props[keyWithDevice];
138
- var hoverValue = props[keyWithHover];
139
- return {
140
- normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
141
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
142
- };
143
- }
144
- if (customPaginationPropertyKey === 'size') {
145
- var value = props[keyWithDevice];
146
- var hoverValue = props[keyWithHover];
147
- return {
148
- normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
149
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
150
- };
151
- }
152
- return {
153
- normalStyle: __assign({}, acc.normalStyle),
154
- hoverStyle: __assign({}, acc.hoverStyle)
155
- };
156
- }, {
157
- normalStyle: {},
158
- hoverStyle: {}
159
- });
160
- }
161
- exports.parsePaginationStyleProp = parsePaginationStyleProp;
162
- function getCustomPaginationPropKey(key) {
163
- switch (key) {
164
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE":
165
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:HOVER":
166
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE":
167
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE:HOVER":
168
- return 'type';
169
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION":
170
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER":
171
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE":
172
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER":
173
- return 'offset';
174
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE":
175
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER":
176
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE":
177
- case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER":
178
- return 'size';
179
- default:
180
- return '';
181
- }
182
- }
183
- exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
184
- function getCustomPaginationOffset(value) {
185
- var OUTSET1 = {
186
- top: '0px',
187
- left: '0px',
188
- translateX: 0,
189
- translateY: -100,
190
- transformOrigin: 'top left'
191
- };
192
- switch (value) {
193
- case 'OUTSET1':
194
- return OUTSET1;
195
- case 'OUTSET2':
196
- return {
197
- top: '0px',
198
- left: '50%',
199
- translateX: -50,
200
- translateY: -100,
201
- transformOrigin: 'top left'
202
- };
203
- case 'OUTSET3':
204
- return {
205
- top: '0px',
206
- right: '0px',
207
- translateX: 0,
208
- translateY: -100,
209
- transformOrigin: 'top right'
210
- };
211
- case 'OUTSET4':
212
- return {
213
- top: '0px',
214
- left: '100%',
215
- translateX: 0,
216
- translateY: 0,
217
- transformOrigin: 'left top'
218
- };
219
- case 'OUTSET5':
220
- return {
221
- top: '50%',
222
- left: '100%',
223
- translateX: 0,
224
- translateY: -50,
225
- transformOrigin: 'left top'
226
- };
227
- case 'OUTSET6':
228
- return {
229
- top: '100%',
230
- left: '100%',
231
- translateX: 0,
232
- translateY: -100,
233
- transformOrigin: 'left top'
234
- };
235
- case 'OUTSET7':
236
- return {
237
- top: '100%',
238
- left: '100%',
239
- translateX: -100,
240
- translateY: 0,
241
- transformOrigin: 'top left'
242
- };
243
- case 'OUTSET8':
244
- return {
245
- top: '100%',
246
- left: '50%',
247
- translateX: -50,
248
- translateY: 0,
249
- transformOrigin: 'top left'
250
- };
251
- case 'OUTSET9':
252
- return {
253
- top: '100%',
254
- left: '0px',
255
- translateX: 0,
256
- translateY: 0,
257
- transformOrigin: 'top left'
258
- };
259
- case 'OUTSET10':
260
- return {
261
- top: '100%',
262
- left: '0px',
263
- translateX: -100,
264
- translateY: -100,
265
- transformOrigin: 'right top'
266
- };
267
- case 'OUTSET11':
268
- return {
269
- top: '50%',
270
- left: '0px',
271
- translateX: -100,
272
- translateY: -50,
273
- transformOrigin: 'right top'
274
- };
275
- case 'OUTSET12':
276
- return {
277
- top: '0px',
278
- left: '0px',
279
- translateX: -100,
280
- translateY: 0,
281
- transformOrigin: 'right top'
282
- };
283
- case 'INSET13':
284
- return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
285
- case 'INSET14':
286
- return {
287
- top: '0px',
288
- left: '50%',
289
- translateX: -50,
290
- translateY: 0,
291
- transformOrigin: 'left top'
292
- };
293
- case 'INSET15':
294
- return {
295
- top: '0px',
296
- left: '100%',
297
- translateX: -100,
298
- translateY: 0,
299
- transformOrigin: 'left top'
300
- };
301
- case 'INSET16':
302
- return {
303
- top: '50%',
304
- left: '100%',
305
- translateX: -100,
306
- translateY: -50,
307
- transformOrigin: 'left top'
308
- };
309
- case 'INSET17':
310
- return {
311
- top: '100%',
312
- left: '100%',
313
- translateX: -100,
314
- translateY: -100,
315
- transformOrigin: 'left top'
316
- };
317
- case 'INSET18':
318
- return {
319
- top: '100%',
320
- left: '50%',
321
- translateX: -50,
322
- translateY: -100,
323
- transformOrigin: 'left top'
324
- };
325
- case 'INSET19':
326
- return {
327
- top: '100%',
328
- left: '0px',
329
- translateX: 0,
330
- translateY: -100,
331
- transformOrigin: 'top left'
332
- };
333
- case 'INSET20':
334
- return {
335
- top: '50%',
336
- left: '0px',
337
- translateX: 0,
338
- translateY: -50,
339
- transformOrigin: 'top left'
340
- };
341
- default:
342
- return OUTSET1;
343
- }
344
- }
345
- function getCustomPaginationSize(value) {
346
- switch (value) {
347
- case 'SMALL':
348
- return 1;
349
- case 'MEDIUM':
350
- return 2;
351
- case 'LARGE':
352
- return 3;
353
- default:
354
- return 1;
355
- }
356
- }
357
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
@@ -1 +0,0 @@
1
- export { default as ContentsList } from './ContentsList';
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ContentsList = void 0;
7
- var ContentsList_1 = require("./ContentsList");
8
- Object.defineProperty(exports, "ContentsList", { enumerable: true, get: function () { return __importDefault(ContentsList_1).default; } });
@@ -1,46 +0,0 @@
1
- import type { NUMBER_INTEGER } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
2
- export type ContentsListPropsKeys = keyof CB_STYLE_PROP_CONTENTSLIST_SPECS;
3
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE = 'DESIGN1' | 'DESIGN2' | null;
4
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE = 'WIDE' | 'NORMAL' | 'NARROW' | null;
5
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER | null;
6
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean | null;
7
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = boolean | null;
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' | 'INSET13' | 'INSET14' | 'INSET15' | 'INSET16' | 'INSET17' | 'INSET18' | 'INSET19' | 'INSET20' | null;
10
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE' | null;
11
- export type CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE = {
12
- CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
13
- CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING: CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
14
- CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT: CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
15
- CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT: CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
16
- CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL: CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
17
- CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
18
- CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
19
- CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
20
- };
21
- export type CB_STYLE_PROP_CONTENTSLIST_SPECS = CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE & {
22
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
23
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
24
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
25
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
26
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
27
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE;
28
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
29
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
30
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
31
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
32
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
33
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
34
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
35
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
36
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE;
37
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
38
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
39
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
40
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
41
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
42
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE;
43
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
44
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
45
- 'CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE;
46
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CB_SLIDEBANNER } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
3
- import type { CB_SLIDEBANNER_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
4
- type Props = CB_SLIDEBANNER_PROPERTIES_TYPE & IndexForIntersection & {
5
- compositions: CB_SLIDEBANNER['compositions'];
6
- };
7
- declare function SlideBanner(props: Props): JSX.Element;
8
- export default SlideBanner;
@@ -1,150 +0,0 @@
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
- var jsx_runtime_1 = require("react/jsx-runtime");
22
- var react_1 = require("react");
23
- var createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
24
- var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
25
- var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
26
- var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
27
- var styled_components_1 = __importDefault(require("styled-components"));
28
- var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
29
- var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
30
- var CustomNavigation_1 = require("./components/CustomNavigation");
31
- var CustomPagination_1 = require("./components/CustomPagination");
32
- var CustomProgressbar_1 = require("./components/CustomProgressbar");
33
- var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
34
- var slideBannerUtils_1 = require("./slideBannerUtils");
35
- function SlideBanner(props) {
36
- var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
37
- var index = props.index,
38
- // CONTENT : 슬라이드배너
39
- _b = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
40
- // STYLE: 슬라이드배너
41
- CB_STYLE_PROP_SLIDEBANNER = props.CB_STYLE_PROP_SLIDEBANNER,
42
- // STYLE: 그림자
43
- CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW,
44
- // EFFECT: 진입
45
- CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
46
- var compositions = props.compositions;
47
- var _c = (0, react_1.useState)(false), isHovered = _c[0], setIsHovered = _c[1];
48
- var _d = (0, react_1.useState)(1), currentSlide = _d[0], setCurrentSlide = _d[1];
49
- var _e = (0, react_1.useState)(0), totalPages = _e[0], setTotalPages = _e[1];
50
- var _f = (0, react_1.useState)(true), isBeginning = _f[0], setIsBeginning = _f[1];
51
- var _g = (0, react_1.useState)(false), isEnd = _g[0], setIsEnd = _g[1];
52
- var progressRef = (0, react_1.useRef)(0);
53
- var leftTimeMsRef = (0, react_1.useRef)(0);
54
- var swiperRef = (0, react_1.useRef)(null);
55
- var _h = (0, slideBannerUtils_1.parseSlideBannerStyleToSlideBannerCoreProp)({
56
- props: CB_STYLE_PROP_SLIDEBANNER,
57
- device: device
58
- }), slideBannerNormalStyle = _h.normalStyle, slideBannerHoverStyle = _h.hoverStyle;
59
- var _j = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomPaginationProp)({
60
- props: CB_STYLE_PROP_SLIDEBANNER,
61
- device: device
62
- }), customPaginationNormalStyle = _j.normalStyle, customPaginationHoverStyle = _j.hoverStyle;
63
- var _k = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomNavigationProp)({
64
- props: CB_STYLE_PROP_SLIDEBANNER,
65
- device: device
66
- }), customNavigationNormalStyle = _k.normalStyle, customNavigationHoverStyle = _k.hoverStyle;
67
- var _l = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomProgressbarProp)({
68
- props: CB_STYLE_PROP_SLIDEBANNER,
69
- device: device
70
- }), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
71
- var _m = (0, util_1.parseProperties)(props, device), style = _m.style, hoverStyle = _m.hoverStyle, layout = _m.layout, effect = _m.effect;
72
- // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
73
- var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
74
- // NOTE: EFFECT와 관련된 함수들입니다.
75
- var cbRef = (0, react_1.useRef)(null);
76
- var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }, [
77
- index
78
- ]);
79
- var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
80
- var effectCssProperties = isVisible ? effect : {};
81
- var isNoneEffectType = device === 'DESKTOP'
82
- ? CB_EFFECT_PROP_ENTANIM.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE === 'NONE'
83
- : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
84
- var hasEffect = !isNoneEffectType;
85
- var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
86
- (0, react_1.useEffect)(function () {
87
- var _a, _b, _c;
88
- (_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.update();
89
- (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
90
- }, [isHovered]);
91
- 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
- setIsBeginning(swiper.isBeginning);
98
- setIsEnd(swiper.isEnd);
99
- setCurrentSlide(swiper.activeIndex + 1);
100
- };
101
- var handleSlideChange = function (swiper) {
102
- setIsBeginning(swiper.isBeginning);
103
- setIsEnd(swiper.isEnd);
104
- setCurrentSlide(swiper.activeIndex + 1);
105
- };
106
- var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
107
- leftTimeMsRef.current = time;
108
- progressRef.current = progress;
109
- }, []);
110
- var handleBulletClick = function (index) {
111
- if (swiperRef.current) {
112
- var targetIndex = (swiperRef.current.swiper.params.slidesPerGroup || 1) * index;
113
- swiperRef.current.swiper.slideTo(targetIndex);
114
- }
115
- };
116
- var handlePrevBtnClick = function () {
117
- if (swiperRef.current) {
118
- swiperRef.current.swiper.slidePrev();
119
- }
120
- };
121
- var handleNextBtnClick = function () {
122
- if (swiperRef.current) {
123
- swiperRef.current.swiper.slideNext();
124
- }
125
- };
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), { position: 'relative', overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { position: 'relative', overflow: 'hidden' }), 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)(SlideBannerCore_1.default, __assign({ ref: swiperRef, onSwiper: handleSwiper, onSlideChange: handleSlideChange, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_SLIDEBANNER_SPEC_DISPLAYCOUNTS, 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)({
127
- valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
128
- queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
129
- queryData: queryData,
130
- compositions: compositions
131
- }) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, total: totalPages, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
132
- ? customNavigationHoverStyle.prevBtnType
133
- : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
134
- ? customNavigationHoverStyle.prevBtnOffset
135
- : customNavigationNormalStyle.prevBtnOffset, prevBtnSize: isHovered
136
- ? customNavigationHoverStyle.prevBtnSize
137
- : customNavigationNormalStyle.prevBtnSize, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: isEnd, nextBtnType: isHovered
138
- ? customNavigationHoverStyle.nextBtnType
139
- : customNavigationNormalStyle.nextBtnType, nextBtnOffset: isHovered
140
- ? customNavigationHoverStyle.nextBtnOffset
141
- : customNavigationNormalStyle.nextBtnOffset, nextBtnSize: isHovered
142
- ? customNavigationHoverStyle.nextBtnSize
143
- : customNavigationNormalStyle.nextBtnSize, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, type: isHovered ? customProgressbarHoverStyle.type : customProgressbarNormalStyle.type, size: isHovered ? customProgressbarHoverStyle.size : customProgressbarNormalStyle.size, offset: isHovered ? customProgressbarHoverStyle.offset : customProgressbarNormalStyle.offset })] })) })) })));
144
- }
145
- var S_SwiperWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n ", "\n"], ["\n height: 100%;\n width: 100%;\n ", "\n"])), function (_a) {
146
- var customStyle = _a.customStyle;
147
- return customStyle;
148
- });
149
- exports.default = SlideBanner;
150
- var templateObject_1;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import 'swiper/modules/navigation/navigation.min.css';
3
- import 'swiper/swiper-bundle.css';
4
- import type { SwiperProps, SwiperRef } from 'swiper/react/swiper-react.js';
5
- export interface SlideBannerCoreProps extends SwiperProps {
6
- scrollbar?: SwiperProps['scrollbar'];
7
- slidesPerView?: SwiperProps['slidesPerView'];
8
- freeMode?: SwiperProps['freeMode'];
9
- autoplay?: SwiperProps['autoplay'];
10
- useAutoplay?: boolean;
11
- loop?: SwiperProps['loop'];
12
- children?: React.ReactNode[] | JSX.Element;
13
- }
14
- declare const SlideBannerCore: import("react").ForwardRefExoticComponent<SlideBannerCoreProps & import("react").RefAttributes<SwiperRef>>;
15
- export default SlideBannerCore;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __rest = (this && this.__rest) || function (s, e) {
14
- var t = {};
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
- t[p] = s[p];
17
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
- t[p[i]] = s[p[i]];
21
- }
22
- return t;
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var jsx_runtime_1 = require("react/jsx-runtime");
26
- var react_1 = require("react");
27
- var swiper_1 = require("swiper");
28
- require("swiper/modules/navigation/navigation.min.css");
29
- var react_2 = require("swiper/react");
30
- require("swiper/swiper-bundle.css");
31
- var SlideBannerCore = (0, react_1.forwardRef)(function (_a, ref) {
32
- var scrollbar = _a.scrollbar, slidesPerView = _a.slidesPerView, freeMode = _a.freeMode, autoplay = _a.autoplay, useAutoplay = _a.useAutoplay, loop = _a.loop, children = _a.children, props = __rest(_a, ["scrollbar", "slidesPerView", "freeMode", "autoplay", "useAutoplay", "loop", "children"]);
33
- return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
34
- width: '100%',
35
- height: '100%'
36
- }, modules: [swiper_1.Pagination, swiper_1.Navigation, swiper_1.Scrollbar, swiper_1.FreeMode, swiper_1.Autoplay], slidesPerView: slidesPerView, scrollbar: scrollbar, freeMode: freeMode, autoplay: useAutoplay ? autoplay : false, loop: loop }, props, { children: Array.isArray(children) ? (children.map(function (slide, index) { return (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide }, index); })) : ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: children })) })));
37
- });
38
- SlideBannerCore.displayName = 'SlideBannerCore';
39
- exports.default = SlideBannerCore;