pds-dev-kit-web-test 2.5.405 → 2.5.406

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 (227) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +3 -2
  3. package/dist/src/common/assets/icons/editorNavigationIcons/downIcons.d.ts +12 -0
  4. package/dist/src/common/assets/icons/editorNavigationIcons/downIcons.js +76 -0
  5. package/dist/src/common/assets/icons/editorNavigationIcons/index.d.ts +43 -0
  6. package/dist/src/common/assets/icons/editorNavigationIcons/index.js +49 -0
  7. package/dist/src/common/assets/icons/editorNavigationIcons/leftIcons.d.ts +12 -0
  8. package/dist/src/common/assets/icons/editorNavigationIcons/leftIcons.js +76 -0
  9. package/dist/src/common/assets/icons/editorNavigationIcons/rightIcons.d.ts +12 -0
  10. package/dist/src/common/assets/icons/editorNavigationIcons/rightIcons.js +76 -0
  11. package/dist/src/common/assets/icons/editorNavigationIcons/upIcons.d.ts +12 -0
  12. package/dist/src/common/assets/icons/editorNavigationIcons/upIcons.js +76 -0
  13. package/dist/src/common/assets/icons/fill/Cam.d.ts +4 -0
  14. package/dist/src/common/assets/icons/fill/Cam.js +30 -0
  15. package/dist/src/common/assets/icons/fill/CamOff.d.ts +4 -0
  16. package/dist/src/common/assets/icons/fill/CamOff.js +30 -0
  17. package/dist/src/common/assets/icons/fill/Video.js +1 -1
  18. package/dist/src/common/assets/icons/fill/VideoOff.js +1 -1
  19. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
  20. package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
  21. package/dist/src/common/assets/icons/fill/VideoType.js +1 -1
  22. package/dist/src/common/assets/icons/fill/index.d.ts +3 -0
  23. package/dist/src/common/assets/icons/fill/index.js +7 -1
  24. package/dist/src/common/assets/icons/line/Cam.d.ts +4 -0
  25. package/dist/src/common/assets/icons/line/Cam.js +30 -0
  26. package/dist/src/common/assets/icons/line/CamOff.d.ts +4 -0
  27. package/dist/src/common/assets/icons/line/CamOff.js +30 -0
  28. package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
  29. package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
  30. package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
  31. package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
  32. package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
  33. package/dist/src/common/assets/icons/line/Radio.js +30 -0
  34. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
  35. package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
  36. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
  37. package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
  38. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
  39. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
  40. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
  41. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
  42. package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
  43. package/dist/src/common/assets/icons/line/TextLong.js +30 -0
  44. package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
  45. package/dist/src/common/assets/icons/line/TextShort.js +30 -0
  46. package/dist/src/common/assets/icons/line/Video.js +1 -1
  47. package/dist/src/common/assets/icons/line/VideoOff.js +1 -1
  48. package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
  49. package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
  50. package/dist/src/common/assets/icons/line/VideoType.js +1 -1
  51. package/dist/src/common/assets/icons/line/index.d.ts +12 -0
  52. package/dist/src/common/assets/icons/line/index.js +25 -1
  53. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
  54. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
  55. package/dist/src/common/services/i18n/resources/en.json +9 -1
  56. package/dist/src/common/services/i18n/resources/es.json +9 -1
  57. package/dist/src/common/services/i18n/resources/fil.json +9 -1
  58. package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
  59. package/dist/src/common/services/i18n/resources/ja.json +9 -1
  60. package/dist/src/common/services/i18n/resources/ko.json +9 -1
  61. package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
  62. package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
  63. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +9 -1
  64. package/dist/src/common/styles/colorSet/PaletteColor_light.json +9 -1
  65. package/dist/src/common/styles/colorSet/UIColor.json +14 -1
  66. package/dist/src/common/styles/colorSet/index.d.ts +31 -2
  67. package/dist/src/common/styles/colorSet/index.js +2 -2
  68. package/dist/src/common/styles/colorSet/ui-type.d.ts +13 -0
  69. package/dist/src/common/types/icon.d.ts +3 -1
  70. package/dist/src/common/utils/dateHelper.d.ts +13 -0
  71. package/dist/src/common/utils/dateHelper.js +87 -0
  72. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
  73. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
  74. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -1
  75. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +26 -4
  76. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +3 -1
  77. package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
  78. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  79. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  80. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
  81. package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
  82. package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
  83. package/dist/src/desktop/components/Chip/Chip.js +50 -5
  84. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  85. package/dist/src/desktop/components/TextField/TextField.js +41 -15
  86. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  87. package/dist/src/hybrid/components/Icon/Icon.js +6 -0
  88. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
  89. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +26 -4
  90. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +3 -1
  91. package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
  92. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  93. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  94. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
  95. package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
  96. package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
  97. package/dist/src/mobile/components/Chip/Chip.js +50 -5
  98. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
  99. package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
  100. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
  101. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
  102. package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
  103. package/dist/src/mobile/components/DatePicker/Day.js +94 -0
  104. package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
  105. package/dist/src/mobile/components/DatePicker/index.js +8 -0
  106. package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
  107. package/dist/src/mobile/components/DatePicker/utils.js +68 -0
  108. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  109. package/dist/src/mobile/components/TextField/TextField.js +41 -15
  110. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
  111. package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
  112. package/dist/src/mobile/components/index.d.ts +2 -1
  113. package/dist/src/mobile/components/index.js +3 -1
  114. package/dist/src/mobile/index.d.ts +1 -1
  115. package/dist/src/mobile/index.js +3 -2
  116. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  117. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  118. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  119. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  120. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  121. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  122. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  123. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  124. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  125. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  126. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  127. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  128. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  129. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  130. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  131. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  132. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  133. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  134. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  135. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  136. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  137. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  138. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +1 -1
  139. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +2 -2
  140. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +36 -10
  141. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
  142. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +12 -1
  143. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +8 -0
  144. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +77 -0
  145. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
  146. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  147. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  148. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  149. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  150. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  151. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  152. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  153. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  154. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  155. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  156. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  157. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  158. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  159. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  160. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  161. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  162. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  163. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  164. package/dist/src/sub/DynamicLayout/mock_composition.js +4 -0
  165. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -2
  166. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1047 -274
  167. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -2
  168. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1008 -222
  169. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +810 -2
  170. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +772 -268
  171. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  172. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  173. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +368 -0
  174. package/dist/src/sub/DynamicLayout/mock_video_cb.js +371 -0
  175. package/dist/src/sub/DynamicLayout/mocks.d.ts +2 -776
  176. package/dist/src/sub/DynamicLayout/mocks.js +4266 -11
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -0
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -4
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +102 -26
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +21 -1
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +4 -55
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +7 -2
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +26 -20
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +46 -23
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +889 -0
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +27 -0
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +96 -0
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +84 -98
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +6 -6
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +31 -19
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +3 -3
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +59 -132
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +23 -0
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +176 -0
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +24 -30
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +25 -6
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +88 -13
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +4 -55
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +7 -2
  203. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +26 -20
  204. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +46 -23
  205. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  206. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +889 -0
  207. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +27 -0
  208. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +96 -0
  209. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +64 -67
  210. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +6 -6
  211. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +29 -4
  212. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +5 -0
  213. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +148 -0
  214. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +4 -0
  215. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +25 -0
  216. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +1 -0
  217. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +8 -0
  218. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +16 -7
  219. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -4
  220. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
  221. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  222. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  223. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +15 -2
  224. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
  225. package/dist/src/sub/DynamicLayout/types.d.ts +9 -0
  226. package/package.json +2 -2
  227. package/release-note.md +3 -3
@@ -87,20 +87,14 @@ function parseGridStyleProp(_a) {
87
87
  var value = props[keyWithDevice];
88
88
  var hoverValue = props[keyWithHover];
89
89
  var styles = parseStylePropertyStyles(currentKey, value);
90
- var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue);
91
- if (hoverValue === null || hoverValue === undefined) {
92
- return {
93
- stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
94
- hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), acc.hoverStylePropCss)
95
- };
96
- }
90
+ var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue !== null && hoverValue !== void 0 ? hoverValue : value);
97
91
  return {
98
- stylePropCss: (0, styled_components_1.css)(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)
92
+ stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
93
+ hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
100
94
  };
101
95
  }, {
102
- stylePropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""]))),
103
- hoverStylePropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
96
+ stylePropCss: (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject([""], [""]))),
97
+ hoverStylePropCss: (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject([""], [""])))
104
98
  });
105
99
  }
106
100
  exports.parseGridStyleProp = parseGridStyleProp;
@@ -111,10 +105,10 @@ function parseGridContentProp(_a) {
111
105
  var value = props[currentKey];
112
106
  var styles = parseContentPropertyStyles(currentKey, value);
113
107
  return {
114
- contentPropCss: (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
108
+ contentPropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
115
109
  };
116
110
  }, {
117
- contentPropCss: (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject([""], [""])))
111
+ contentPropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
118
112
  });
119
113
  }
120
114
  exports.parseGridContentProp = parseGridContentProp;
@@ -130,7 +124,7 @@ function parsePaginationStyleProp(_a) {
130
124
  var hoverValue = props[keyWithHover];
131
125
  return {
132
126
  normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
133
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
127
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
134
128
  };
135
129
  }
136
130
  if (customPaginationPropertyKey === 'offset') {
@@ -138,7 +132,7 @@ function parsePaginationStyleProp(_a) {
138
132
  var hoverValue = props[keyWithHover];
139
133
  return {
140
134
  normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
141
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
135
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
142
136
  };
143
137
  }
144
138
  if (customPaginationPropertyKey === 'size') {
@@ -146,7 +140,7 @@ function parsePaginationStyleProp(_a) {
146
140
  var hoverValue = props[keyWithHover];
147
141
  return {
148
142
  normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
149
- hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
143
+ hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
150
144
  };
151
145
  }
152
146
  return {
@@ -203,10 +197,10 @@ function getCustomPaginationOffset(value) {
203
197
  case 'OUTSET3':
204
198
  return {
205
199
  top: '0px',
206
- right: '0px',
207
- translateX: 0,
200
+ left: '100%',
201
+ translateX: -100,
208
202
  translateY: -100,
209
- transformOrigin: 'top right'
203
+ transformOrigin: 'top left'
210
204
  };
211
205
  case 'OUTSET4':
212
206
  return {
@@ -280,9 +274,9 @@ function getCustomPaginationOffset(value) {
280
274
  translateY: 0,
281
275
  transformOrigin: 'right top'
282
276
  };
283
- case 'INSET13':
277
+ case 'INSET1':
284
278
  return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
285
- case 'INSET14':
279
+ case 'INSET2':
286
280
  return {
287
281
  top: '0px',
288
282
  left: '50%',
@@ -290,7 +284,7 @@ function getCustomPaginationOffset(value) {
290
284
  translateY: 0,
291
285
  transformOrigin: 'left top'
292
286
  };
293
- case 'INSET15':
287
+ case 'INSET3':
294
288
  return {
295
289
  top: '0px',
296
290
  left: '100%',
@@ -298,7 +292,7 @@ function getCustomPaginationOffset(value) {
298
292
  translateY: 0,
299
293
  transformOrigin: 'left top'
300
294
  };
301
- case 'INSET16':
295
+ case 'INSET4':
302
296
  return {
303
297
  top: '50%',
304
298
  left: '100%',
@@ -306,7 +300,7 @@ function getCustomPaginationOffset(value) {
306
300
  translateY: -50,
307
301
  transformOrigin: 'left top'
308
302
  };
309
- case 'INSET17':
303
+ case 'INSET5':
310
304
  return {
311
305
  top: '100%',
312
306
  left: '100%',
@@ -314,7 +308,7 @@ function getCustomPaginationOffset(value) {
314
308
  translateY: -100,
315
309
  transformOrigin: 'left top'
316
310
  };
317
- case 'INSET18':
311
+ case 'INSET6':
318
312
  return {
319
313
  top: '100%',
320
314
  left: '50%',
@@ -322,7 +316,7 @@ function getCustomPaginationOffset(value) {
322
316
  translateY: -100,
323
317
  transformOrigin: 'left top'
324
318
  };
325
- case 'INSET19':
319
+ case 'INSET7':
326
320
  return {
327
321
  top: '100%',
328
322
  left: '0px',
@@ -330,7 +324,7 @@ function getCustomPaginationOffset(value) {
330
324
  translateY: -100,
331
325
  transformOrigin: 'top left'
332
326
  };
333
- case 'INSET20':
327
+ case 'INSET8':
334
328
  return {
335
329
  top: '50%',
336
330
  left: '0px',
@@ -347,11 +341,11 @@ function getCustomPaginationSize(value) {
347
341
  case 'SMALL':
348
342
  return 1;
349
343
  case 'MEDIUM':
350
- return 2;
344
+ return 1.5;
351
345
  case 'LARGE':
352
- return 3;
346
+ return 2;
353
347
  default:
354
348
  return 1;
355
349
  }
356
350
  }
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;
351
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
@@ -6,7 +6,7 @@ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER
6
6
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean | null;
7
7
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = boolean | null;
8
8
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17' | null;
9
- export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET13' | 'INSET14' | 'INSET15' | 'INSET16' | 'INSET17' | 'INSET18' | 'INSET19' | 'INSET20' | null;
9
+ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET1' | 'INSET2' | 'INSET3' | 'INSET4' | 'INSET5' | 'INSET6' | 'INSET7' | 'INSET8' | null;
10
10
  export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE' | null;
11
11
  export type CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE = {
12
12
  CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
@@ -57,7 +57,8 @@ function Image(props) {
57
57
  var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
58
58
  var index = props.index, CB_CONTENT_PROP_IMAGE = props.CB_CONTENT_PROP_IMAGE, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
59
59
  var cLinkValue = function () {
60
- if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA') {
60
+ if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
61
+ CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
61
62
  if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
62
63
  return "ERROR: QueryData NOT FOUND";
63
64
  }
@@ -90,19 +91,24 @@ function Image(props) {
90
91
  var hasEffect = !isNoneEffectType;
91
92
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
92
93
  var imgSrc = function () {
93
- var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA';
94
+ var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA' ||
95
+ CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA';
94
96
  if (!isDataConnected) {
95
97
  return CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR;
96
98
  }
97
99
  if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
98
- return 'ERROR: No query data found';
100
+ // eslint-disable-next-line
101
+ console.warn('ERROR: No query data found');
102
+ return 'ERROR';
99
103
  }
100
104
  if (!queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA]) {
101
- return "ERROR: ".concat(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA, " NOT found in query data");
105
+ // eslint-disable-next-line
106
+ console.warn("ERROR: ".concat(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA, " NOT found in query data"));
107
+ return 'ERROR';
102
108
  }
103
109
  return queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
104
110
  };
105
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
111
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, __assign({ src: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }, { children: imgSrc() === 'ERROR' && (0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "FALLBACK IMAGE" }) })) })) })) }))] }));
106
112
  }
107
113
  function parseImageCBStyle(style, hoverStyle, mode) {
108
114
  var boxStyle = {
@@ -164,5 +170,18 @@ var S_Image = styled_components_1.default.div(templateObject_6 || (templateObjec
164
170
  : normalStyle.backgroundSize === 'contain';
165
171
  return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
166
172
  });
173
+ var S_EmptyLayer = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"], ["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"])), function (_a) {
174
+ var theme = _a.theme;
175
+ return theme.desktopFontSize.body2;
176
+ }, function (_a) {
177
+ var theme = _a.theme;
178
+ return theme.fontWeight.bold;
179
+ }, function (_a) {
180
+ var theme = _a.theme;
181
+ return theme.desktopLineHeight.body2;
182
+ }, function (_a) {
183
+ var theme = _a.theme;
184
+ return theme.spacing.spacingE;
185
+ });
167
186
  exports.default = Image;
168
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
187
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -14,6 +14,29 @@ var __assign = (this && this.__assign) || function () {
14
14
  };
15
15
  return __assign.apply(this, arguments);
16
16
  };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
17
40
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
42
  };
@@ -24,7 +47,7 @@ var createCompositions_1 = require("../../../../../../../DynamicLayout/Compositi
24
47
  var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
25
48
  var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
26
49
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
27
- var styled_components_1 = __importDefault(require("styled-components"));
50
+ var styled_components_1 = __importStar(require("styled-components"));
28
51
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
29
52
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
30
53
  var CustomNavigation_1 = require("./components/CustomNavigation");
@@ -69,6 +92,7 @@ function SlideBanner(props) {
69
92
  device: device
70
93
  }), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
71
94
  var _m = (0, util_1.parseProperties)(props, device), style = _m.style, hoverStyle = _m.hoverStyle, layout = _m.layout, effect = _m.effect;
95
+ var loop = isHovered ? slideBannerNormalStyle.loop : slideBannerHoverStyle.loop;
72
96
  // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
73
97
  var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
74
98
  // NOTE: EFFECT와 관련된 함수들입니다.
@@ -89,19 +113,47 @@ function SlideBanner(props) {
89
113
  (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
90
114
  }, [isHovered]);
91
115
  var handleSwiper = function (swiper) {
92
- var totalSlides = swiper.slides.length;
116
+ var originalSlides = Array.from(swiper.slides).filter(function (slide) { return !slide.classList.contains('swiper-slide-duplicate'); });
117
+ var totalSlides = originalSlides.length;
93
118
  var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
94
119
  var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
95
- var totalPages = Math.ceil((totalSlides - slidesPerView) / slidesPerGroup) + 1;
120
+ var isLoop = swiper.params.loop || false;
121
+ var totalPages;
122
+ if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
123
+ // 페이지 단위로 넘어가는 경우 (loop 여부 상관없이 동일)
124
+ totalPages = Math.ceil(totalSlides / slidesPerGroup);
125
+ }
126
+ else if (isLoop) {
127
+ totalPages = totalSlides;
128
+ }
129
+ else {
130
+ // loop가 꺼져있으면 마지막 슬라이드가 첫 번째 위치에 올 수 있는 경우까지만
131
+ totalPages = Math.max(1, totalSlides - slidesPerView + 1);
132
+ }
96
133
  setTotalPages(totalPages);
97
134
  setIsBeginning(swiper.isBeginning);
98
135
  setIsEnd(swiper.isEnd);
99
- setCurrentSlide(swiper.activeIndex + 1);
100
136
  };
101
- var handleSlideChange = function (swiper) {
137
+ var handleSlideChangeTransitionEnd = function (swiper) {
138
+ var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
139
+ var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
140
+ var isLoop = swiper.params.loop || false;
102
141
  setIsBeginning(swiper.isBeginning);
103
142
  setIsEnd(swiper.isEnd);
104
- setCurrentSlide(swiper.activeIndex + 1);
143
+ // 현재 페이지 계산
144
+ if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
145
+ // 페이지 단위로 이동하는 경우
146
+ var currentPage = Math.floor(swiper.realIndex / slidesPerGroup) + 1;
147
+ setCurrentSlide(currentPage);
148
+ }
149
+ else if (isLoop) {
150
+ // loop 모드에서는 realIndex가 실제 슬라이드 인덱스
151
+ setCurrentSlide(swiper.realIndex + 1);
152
+ }
153
+ else {
154
+ // loop가 꺼져있을 때는 activeIndex 사용
155
+ setCurrentSlide(swiper.activeIndex + 1);
156
+ }
105
157
  };
106
158
  var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
107
159
  leftTimeMsRef.current = time;
@@ -123,12 +175,28 @@ function SlideBanner(props) {
123
175
  swiperRef.current.swiper.slideNext();
124
176
  }
125
177
  };
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
178
+ return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { borderBottomLeftRadius: style.borderBottomLeftRadius, borderBottomRightRadius: style.borderBottomRightRadius, borderTopLeftRadius: style.borderTopLeftRadius, borderTopRightRadius: style.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), hoverStyle: __assign(__assign({}, hoverStyle), { borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius, borderBottomRightRadius: hoverStyle.borderBottomRightRadius, borderTopLeftRadius: hoverStyle.borderTopLeftRadius, borderTopRightRadius: hoverStyle.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperWrapper, __assign({ customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ borderStyle: {
179
+ borderBottomLeftRadius: style.borderBottomLeftRadius,
180
+ borderBottomRightRadius: style.borderBottomRightRadius,
181
+ borderTopLeftRadius: style.borderTopLeftRadius,
182
+ borderTopRightRadius: style.borderTopRightRadius,
183
+ borderWidth: style.borderWidth,
184
+ borderColor: style.borderColor,
185
+ borderStyle: style.borderStyle
186
+ }, hoverBorderStyle: {
187
+ borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
188
+ borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
189
+ borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
190
+ borderTopRightRadius: hoverStyle.borderTopRightRadius,
191
+ borderWidth: hoverStyle.borderWidth,
192
+ borderColor: hoverStyle.borderColor,
193
+ borderStyle: hoverStyle.borderStyle
194
+ } }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, onSwiper: handleSwiper, onSlideChangeTransitionEnd: handleSlideChangeTransitionEnd, 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)({
195
+ valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
196
+ queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
197
+ queryData: queryData,
198
+ compositions: compositions
199
+ }) })) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, prevBtnDisabled: loop ? false : isBeginning, nextBtnDisabled: loop ? false : isEnd, total: totalPages, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick, onPrevBtnClick: handlePrevBtnClick, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
132
200
  ? customNavigationHoverStyle.prevBtnType
133
201
  : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
134
202
  ? customNavigationHoverStyle.prevBtnOffset
@@ -146,5 +214,12 @@ var S_SwiperWrapper = styled_components_1.default.div(templateObject_1 || (templ
146
214
  var customStyle = _a.customStyle;
147
215
  return customStyle;
148
216
  });
217
+ var S_SwiperLayout = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"], ["\n height: 100%;\n overflow: hidden;\n width: 100%;\n\n ", ";\n ", ";\n"])), function (_a) {
218
+ var hoverBorderStyle = _a.hoverBorderStyle;
219
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverBorderStyle), { boxShadow: '' }));
220
+ }, function (_a) {
221
+ var borderStyle = _a.borderStyle;
222
+ return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, borderStyle), { boxShadow: '' }));
223
+ });
149
224
  exports.default = SlideBanner;
150
- var templateObject_1;
225
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -42,6 +42,7 @@ exports.CustomNavigation = void 0;
42
42
  var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pdsOriginal/desktop/IconButton");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
+ var navigationConfigs_1 = require("./navigationConfigs");
45
46
  var CustomNavigation = function (_a) {
46
47
  var _b = _a.prevBtnDisabled, prevBtnDisabled = _b === void 0 ? false : _b, _c = _a.prevBtnType, prevBtnType = _c === void 0 ? 'NONE' : _c, _d = _a.prevBtnOffset, prevBtnOffset = _d === void 0 ? { top: '0' } : _d, _e = _a.prevBtnSize, prevBtnSize = _e === void 0 ? 1 : _e, _f = _a.nextBtnDisabled, nextBtnDisabled = _f === void 0 ? false : _f, _g = _a.nextBtnType, nextBtnType = _g === void 0 ? 'NONE' : _g, _h = _a.nextBtnOffset, nextBtnOffset = _h === void 0 ? { top: '0' } : _h, _j = _a.nextBtnSize, nextBtnSize = _j === void 0 ? 1 : _j, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
47
48
  var getIsSameOffset = function (prevBtnOffset, nextBtnOffset) {
@@ -54,61 +55,9 @@ var CustomNavigation = function (_a) {
54
55
  prevBtnOffset.transformOrigin === nextBtnOffset.transformOrigin);
55
56
  };
56
57
  var isSameOffset = getIsSameOffset(prevBtnOffset, nextBtnOffset);
57
- return ((0, jsx_runtime_1.jsxs)(S_Navigation, __assign({ "$offset": isSameOffset ? prevBtnOffset : undefined, "$size": isSameOffset ? prevBtnSize : 1 }, { children: [(0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "".concat(prevBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : prevBtnOffset, "$size": isSameOffset ? undefined : prevBtnSize, onClick: onPrevBtnClick }, { children: (function () {
58
- switch (prevBtnType) {
59
- case 'NONE':
60
- case 'DESIGN1':
61
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
62
- case 'DESIGN2':
63
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
64
- case 'DESIGN3':
65
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
66
- case 'DESIGN4':
67
- case 'DESIGN5':
68
- case 'DESIGN6':
69
- case 'DESIGN7':
70
- case 'DESIGN8':
71
- case 'DESIGN9':
72
- case 'DESIGN10':
73
- case 'DESIGN11':
74
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_bold", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
75
- case 'DESIGN12':
76
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
77
- case 'DESIGN13':
78
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
79
- case 'DESIGN14':
80
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
81
- default:
82
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
83
- }
84
- })() })), (0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "".concat(nextBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : nextBtnOffset, "$size": isSameOffset ? undefined : nextBtnSize, onClick: onNextBtnClick }, { children: (function () {
85
- switch (nextBtnType) {
86
- case 'NONE':
87
- case 'DESIGN1':
88
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
89
- case 'DESIGN2':
90
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
91
- case 'DESIGN3':
92
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
93
- case 'DESIGN4':
94
- case 'DESIGN5':
95
- case 'DESIGN6':
96
- case 'DESIGN7':
97
- case 'DESIGN8':
98
- case 'DESIGN9':
99
- case 'DESIGN10':
100
- case 'DESIGN11':
101
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_bold", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
102
- case 'DESIGN12':
103
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
104
- case 'DESIGN13':
105
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
106
- case 'DESIGN14':
107
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
108
- default:
109
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
110
- }
111
- })() }))] })));
58
+ var prevButton = navigationConfigs_1.prevButtonMappedIcons[prevBtnType];
59
+ var nextButton = navigationConfigs_1.nextButtonMappedIcons[nextBtnType];
60
+ return ((0, jsx_runtime_1.jsxs)(S_Navigation, __assign({ "$offset": isSameOffset ? prevBtnOffset : undefined, "$size": isSameOffset ? prevBtnSize : 1 }, { children: [(0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "".concat(prevBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : prevBtnOffset, "$size": isSameOffset ? undefined : prevBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", shapeType: prevButton.shapeType, baseColorKey: prevButton.baseColorKey || 'ui_cpnt_button_fill_base_transparent', borderColorKey: prevButton.borderColorKey, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', shadow: prevButton.shadow, onClick: onPrevBtnClick }) })), (0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "".concat(nextBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : nextBtnOffset, "$size": isSameOffset ? undefined : nextBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", shapeType: nextButton.shapeType, baseColorKey: nextButton.baseColorKey || 'ui_cpnt_button_fill_base_transparent', borderColorKey: nextButton.baseColorKey, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', shadow: nextButton.shadow, onClick: onNextBtnClick }) }))] })));
112
61
  };
113
62
  exports.CustomNavigation = CustomNavigation;
114
63
  var S_Navigation = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n"], ["\n display: ", ";\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n"])), function (_a) {
@@ -14,9 +14,14 @@ export interface CustomPaginationProps {
14
14
  transformOrigin?: string;
15
15
  };
16
16
  size?: number;
17
- onBulletClick?: (index: number) => void;
18
17
  }
19
- export declare const CustomPagination: ({ current, total, type, offset, size, onBulletClick }: CustomPaginationProps) => JSX.Element;
18
+ export declare const CustomPagination: ({ current, total, type, offset, size, prevBtnDisabled, nextBtnDisabled, onBulletClick, onPrevBtnClick, onNextBtnClick }: CustomPaginationProps & {
19
+ prevBtnDisabled: boolean;
20
+ nextBtnDisabled: boolean;
21
+ onBulletClick: (index: number) => void;
22
+ onPrevBtnClick: () => void;
23
+ onNextBtnClick: () => void;
24
+ }) => JSX.Element;
20
25
  export interface FlexBoxProps {
21
26
  direction?: 'row' | 'column';
22
27
  justifyContent?: string;
@@ -43,45 +43,44 @@ var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var components_1 = require("../../../../../../../../DynamicLayout/components");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
45
  var CustomPagination = function (_a) {
46
- var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, onBulletClick = _a.onBulletClick;
46
+ var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, prevBtnDisabled = _a.prevBtnDisabled, nextBtnDisabled = _a.nextBtnDisabled, onBulletClick = _a.onBulletClick, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
47
47
  var bullets = Array.from({ length: total }, function (_, i) { return i; });
48
48
  return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), "$offset": offset, "$size": size }, { children: (function () {
49
49
  switch (type) {
50
50
  case 'NONE':
51
- case 'DESIGN1':
52
51
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
53
- case 'DESIGN2':
52
+ case 'DESIGN1':
54
53
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) }))] })));
55
- case 'DESIGN3':
54
+ case 'DESIGN2':
56
55
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: "/ ".concat(total) }))] })));
57
- case 'DESIGN4':
56
+ case 'DESIGN3':
58
57
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
59
- case 'DESIGN5':
58
+ case 'DESIGN4':
60
59
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: total }))] })));
60
+ case 'DESIGN5':
61
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] }));
61
62
  case 'DESIGN6':
62
- return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] }));
63
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 }) }))] }));
63
64
  case 'DESIGN7':
64
- return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] }));
65
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
65
66
  case 'DESIGN8':
66
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] })));
67
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 }) }))] })));
67
68
  case 'DESIGN9':
68
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] })));
69
- case 'DESIGN10':
70
69
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
71
- case 'DESIGN11':
70
+ case 'DESIGN10':
72
71
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: "DARK" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total }))] })));
72
+ case 'DESIGN11':
73
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
73
74
  case 'DESIGN12':
74
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
75
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
75
76
  case 'DESIGN13':
76
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
77
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
77
78
  case 'DESIGN14':
78
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
79
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
79
80
  case 'DESIGN15':
80
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
81
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
81
82
  case 'DESIGN16':
82
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
83
- case 'DESIGN17':
84
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
83
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
85
84
  default:
86
85
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
87
86
  }
@@ -181,5 +180,12 @@ var S_Bar = styled_components_1.default.div(templateObject_15 || (templateObject
181
180
  var color = _a.color;
182
181
  return (color === 'WHITE' ? whiteBullet : darkBullet);
183
182
  });
183
+ var S_Pointer = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"], ["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"])), function (_a) {
184
+ var disabled = _a.disabled;
185
+ return (disabled ? 'not-allowed' : 'pointer');
186
+ }, function (_a) {
187
+ var disabled = _a.disabled;
188
+ return (disabled ? 0.4 : 1);
189
+ });
184
190
  exports.default = exports.CustomPagination;
185
- 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;
191
+ 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;