pds-dev-kit-web-test 2.5.428 → 2.5.431

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 (231) 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/Cam.d.ts +4 -0
  4. package/dist/src/common/assets/icons/fill/Cam.js +30 -0
  5. package/dist/src/common/assets/icons/fill/CamOff.d.ts +4 -0
  6. package/dist/src/common/assets/icons/fill/CamOff.js +30 -0
  7. package/dist/src/common/assets/icons/fill/Video.js +1 -1
  8. package/dist/src/common/assets/icons/fill/VideoOff.js +1 -1
  9. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
  10. package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
  11. package/dist/src/common/assets/icons/fill/VideoType.js +1 -1
  12. package/dist/src/common/assets/icons/fill/index.d.ts +3 -0
  13. package/dist/src/common/assets/icons/fill/index.js +7 -1
  14. package/dist/src/common/assets/icons/line/Cam.d.ts +4 -0
  15. package/dist/src/common/assets/icons/line/Cam.js +30 -0
  16. package/dist/src/common/assets/icons/line/CamOff.d.ts +4 -0
  17. package/dist/src/common/assets/icons/line/CamOff.js +30 -0
  18. package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
  19. package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
  20. package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
  21. package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
  22. package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
  23. package/dist/src/common/assets/icons/line/Radio.js +30 -0
  24. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
  25. package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
  26. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
  27. package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
  28. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
  29. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
  30. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
  31. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
  32. package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
  33. package/dist/src/common/assets/icons/line/TextLong.js +30 -0
  34. package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
  35. package/dist/src/common/assets/icons/line/TextShort.js +30 -0
  36. package/dist/src/common/assets/icons/line/Video.js +1 -1
  37. package/dist/src/common/assets/icons/line/VideoOff.js +1 -1
  38. package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
  39. package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
  40. package/dist/src/common/assets/icons/line/VideoType.js +1 -1
  41. package/dist/src/common/assets/icons/line/index.d.ts +12 -0
  42. package/dist/src/common/assets/icons/line/index.js +25 -1
  43. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
  44. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
  45. package/dist/src/common/services/i18n/resources/en.json +9 -1
  46. package/dist/src/common/services/i18n/resources/es.json +9 -1
  47. package/dist/src/common/services/i18n/resources/fil.json +9 -1
  48. package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
  49. package/dist/src/common/services/i18n/resources/ja.json +9 -1
  50. package/dist/src/common/services/i18n/resources/ko.json +9 -1
  51. package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
  52. package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
  53. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +9 -1
  54. package/dist/src/common/styles/colorSet/PaletteColor_light.json +9 -1
  55. package/dist/src/common/styles/colorSet/UIColor.json +14 -1
  56. package/dist/src/common/styles/colorSet/index.d.ts +31 -2
  57. package/dist/src/common/styles/colorSet/index.js +2 -2
  58. package/dist/src/common/styles/colorSet/ui-type.d.ts +13 -0
  59. package/dist/src/common/utils/dateHelper.d.ts +13 -0
  60. package/dist/src/common/utils/dateHelper.js +87 -0
  61. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
  62. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
  63. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -1
  64. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +26 -4
  65. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +3 -1
  66. package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
  67. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  68. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  69. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
  70. package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
  71. package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
  72. package/dist/src/desktop/components/Chip/Chip.js +50 -5
  73. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  74. package/dist/src/desktop/components/TextField/TextField.js +41 -15
  75. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  76. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
  77. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +26 -4
  78. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +3 -1
  79. package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
  80. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  81. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  82. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
  83. package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
  84. package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
  85. package/dist/src/mobile/components/Chip/Chip.js +50 -5
  86. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
  87. package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
  88. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
  89. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
  90. package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
  91. package/dist/src/mobile/components/DatePicker/Day.js +94 -0
  92. package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
  93. package/dist/src/mobile/components/DatePicker/index.js +8 -0
  94. package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
  95. package/dist/src/mobile/components/DatePicker/utils.js +68 -0
  96. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  97. package/dist/src/mobile/components/TextField/TextField.js +41 -15
  98. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
  99. package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
  100. package/dist/src/mobile/components/index.d.ts +2 -1
  101. package/dist/src/mobile/components/index.js +3 -1
  102. package/dist/src/mobile/index.d.ts +1 -1
  103. package/dist/src/mobile/index.js +3 -2
  104. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  105. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  106. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  107. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  108. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  109. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  110. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  111. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  112. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  113. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  114. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  115. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  116. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  117. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  118. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  119. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  120. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  121. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  122. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  123. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  124. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  125. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  126. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +1 -0
  127. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +2 -1
  128. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +1 -1
  129. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +4 -3
  130. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +38 -12
  131. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
  132. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +12 -1
  133. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +8 -0
  134. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +77 -0
  135. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
  136. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  137. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  138. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  139. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  140. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  141. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  142. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  143. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  144. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  145. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  146. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  147. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  148. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  149. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  150. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  151. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  152. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  153. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  154. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
  155. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
  156. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
  157. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
  158. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +1 -1
  159. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +1 -1
  160. package/dist/src/sub/DynamicLayout/mock_composition.js +852 -43
  161. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -2
  162. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1071 -274
  163. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -2
  164. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1017 -222
  165. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
  166. package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
  167. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -2
  168. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +803 -267
  169. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  170. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  171. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +368 -0
  172. package/dist/src/sub/DynamicLayout/mock_video_cb.js +371 -0
  173. package/dist/src/sub/DynamicLayout/mocks.d.ts +2 -776
  174. package/dist/src/sub/DynamicLayout/mocks.js +4266 -11
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -0
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -4
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +149 -54
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +21 -1
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +5 -1
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +5 -56
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +10 -4
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +30 -32
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +3 -1
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +47 -24
  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 +849 -0
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +2 -12
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +144 -316
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +38 -23
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +36 -24
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +5 -3
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +59 -132
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +1 -1
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +58 -35
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +11 -1
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +13 -5
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +91 -26
  203. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +5 -1
  204. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +5 -56
  205. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +9 -2
  206. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +30 -32
  207. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +3 -1
  208. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +47 -24
  209. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  210. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  211. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
  212. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
  213. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +3 -3
  214. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +168 -67
  215. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +46 -6
  216. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +10 -4
  217. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +5 -0
  218. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +148 -0
  219. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +4 -0
  220. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +25 -0
  221. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +1 -0
  222. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +8 -0
  223. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +17 -8
  224. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -4
  225. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
  226. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  227. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +15 -2
  228. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
  229. package/dist/src/sub/DynamicLayout/types.d.ts +9 -0
  230. package/package.json +3 -3
  231. package/release-note.md +3 -3
@@ -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");
@@ -33,10 +56,11 @@ var CustomProgressbar_1 = require("./components/CustomProgressbar");
33
56
  var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
34
57
  var slideBannerUtils_1 = require("./slideBannerUtils");
35
58
  function SlideBanner(props) {
36
- var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
59
+ var _a;
60
+ var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, mode = _b.mode, queryData = _b.queryData;
37
61
  var index = props.index,
38
62
  // CONTENT : 슬라이드배너
39
- _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,
63
+ _c = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
40
64
  // STYLE: 슬라이드배너
41
65
  CB_STYLE_PROP_SLIDEBANNER = props.CB_STYLE_PROP_SLIDEBANNER,
42
66
  // STYLE: 그림자
@@ -44,9 +68,8 @@ function SlideBanner(props) {
44
68
  // EFFECT: 진입
45
69
  CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
46
70
  var compositions = props.compositions;
47
- var _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];
71
+ var _d = (0, react_1.useState)(false), isHovered = _d[0], setIsHovered = _d[1];
72
+ var _e = (0, react_1.useState)(1), currentSlide = _e[0], setCurrentSlide = _e[1];
50
73
  var _f = (0, react_1.useState)(true), isBeginning = _f[0], setIsBeginning = _f[1];
51
74
  var _g = (0, react_1.useState)(false), isEnd = _g[0], setIsEnd = _g[1];
52
75
  var progressRef = (0, react_1.useRef)(0);
@@ -69,6 +92,7 @@ function SlideBanner(props) {
69
92
  device: device
70
93
  }), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
71
94
  var _m = (0, util_1.parseProperties)(props, device), style = _m.style, hoverStyle = _m.hoverStyle, layout = _m.layout, effect = _m.effect;
95
+ var loop = isHovered ? slideBannerNormalStyle.loop : slideBannerHoverStyle.loop;
72
96
  // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
73
97
  var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
74
98
  // NOTE: EFFECT와 관련된 함수들입니다.
@@ -89,28 +113,29 @@ function SlideBanner(props) {
89
113
  (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
90
114
  }, [isHovered]);
91
115
  var handleSwiper = function (swiper) {
92
- var totalSlides = swiper.slides.length;
93
- var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
94
- var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
95
- var totalPages = Math.ceil((totalSlides - slidesPerView) / slidesPerGroup) + 1;
96
- setTotalPages(totalPages);
97
116
  setIsBeginning(swiper.isBeginning);
98
117
  setIsEnd(swiper.isEnd);
99
- setCurrentSlide(swiper.activeIndex + 1);
100
118
  };
101
- var handleSlideChange = function (swiper) {
119
+ var handleSlideChangeTransitionEnd = function (swiper) {
120
+ var isLoop = swiper.params.loop || false;
102
121
  setIsBeginning(swiper.isBeginning);
103
122
  setIsEnd(swiper.isEnd);
104
- setCurrentSlide(swiper.activeIndex + 1);
123
+ if (isLoop) {
124
+ // loop 모드에서는 realIndex가 실제 슬라이드 인덱스
125
+ setCurrentSlide(swiper.realIndex + 1);
126
+ }
127
+ else {
128
+ // loop가 꺼져있을 때는 activeIndex 사용
129
+ setCurrentSlide(swiper.activeIndex + 1);
130
+ }
105
131
  };
106
- var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
132
+ var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (_, time, progress) {
107
133
  leftTimeMsRef.current = time;
108
134
  progressRef.current = progress;
109
135
  }, []);
110
136
  var handleBulletClick = function (index) {
111
137
  if (swiperRef.current) {
112
- var targetIndex = (swiperRef.current.swiper.params.slidesPerGroup || 1) * index;
113
- swiperRef.current.swiper.slideTo(targetIndex);
138
+ swiperRef.current.swiper.slideTo(index);
114
139
  }
115
140
  };
116
141
  var handlePrevBtnClick = function () {
@@ -123,28 +148,68 @@ function SlideBanner(props) {
123
148
  swiperRef.current.swiper.slideNext();
124
149
  }
125
150
  };
126
- return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { 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
151
+ return ((0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { borderBottomLeftRadius: style.borderBottomLeftRadius, borderBottomRightRadius: style.borderBottomRightRadius, borderTopLeftRadius: style.borderTopLeftRadius, borderTopRightRadius: style.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), hoverStyle: __assign(__assign({}, hoverStyle), { borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius, borderBottomRightRadius: hoverStyle.borderBottomRightRadius, borderTopLeftRadius: hoverStyle.borderTopLeftRadius, borderTopRightRadius: hoverStyle.borderTopRightRadius, borderWidth: undefined, borderColor: undefined, borderStyle: undefined }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: (0, jsx_runtime_1.jsxs)(S_SwiperWrapper, __assign({ customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ borderStyle: {
152
+ borderBottomLeftRadius: style.borderBottomLeftRadius,
153
+ borderBottomRightRadius: style.borderBottomRightRadius,
154
+ borderTopLeftRadius: style.borderTopLeftRadius,
155
+ borderTopRightRadius: style.borderTopRightRadius,
156
+ borderWidth: style.borderWidth,
157
+ borderColor: style.borderColor,
158
+ borderStyle: style.borderStyle
159
+ }, hoverBorderStyle: {
160
+ borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
161
+ borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
162
+ borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
163
+ borderTopRightRadius: hoverStyle.borderTopRightRadius,
164
+ borderWidth: hoverStyle.borderWidth,
165
+ borderColor: hoverStyle.borderColor,
166
+ borderStyle: hoverStyle.borderStyle
167
+ } }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, onSwiper: handleSwiper, onSlideChangeTransitionEnd: handleSlideChangeTransitionEnd, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: 1, scrollbar: isHovered ? slideBannerHoverStyle.scrollbar : slideBannerNormalStyle.scrollbar, freeMode: isHovered ? slideBannerHoverStyle.freeMode : slideBannerNormalStyle.freeMode, autoplay: isHovered ? slideBannerHoverStyle.autoplay : slideBannerNormalStyle.autoplay, useAutoplay: isHovered ? slideBannerHoverStyle.useAutoplay : slideBannerNormalStyle.useAutoplay, loop: isHovered ? slideBannerHoverStyle.loop : slideBannerNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
168
+ valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
169
+ queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
170
+ limit: CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS,
171
+ queryData: queryData,
172
+ compositions: compositions
173
+ }) })) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, primaryColor: isHovered
174
+ ? customPaginationHoverStyle.primaryColor
175
+ : customPaginationNormalStyle.primaryColor, secondaryColor: isHovered
176
+ ? customPaginationHoverStyle.secondaryColor
177
+ : customPaginationNormalStyle.secondaryColor, current: currentSlide, prevBtnDisabled: loop ? false : isBeginning, nextBtnDisabled: loop ? false : isEnd, total: (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick, onPrevBtnClick: handlePrevBtnClick, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: isBeginning, prevBtnType: isHovered
132
178
  ? customNavigationHoverStyle.prevBtnType
133
179
  : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
134
180
  ? customNavigationHoverStyle.prevBtnOffset
135
181
  : customNavigationNormalStyle.prevBtnOffset, prevBtnSize: isHovered
136
182
  ? customNavigationHoverStyle.prevBtnSize
137
- : customNavigationNormalStyle.prevBtnSize, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: isEnd, nextBtnType: isHovered
183
+ : customNavigationNormalStyle.prevBtnSize, prevBtnPrimaryColor: isHovered
184
+ ? customNavigationHoverStyle.prevBtnPrimaryColor
185
+ : customNavigationNormalStyle.prevBtnPrimaryColor, prevBtnSecondaryColor: isHovered
186
+ ? customNavigationHoverStyle.prevBtnSecondaryColor
187
+ : customNavigationNormalStyle.prevBtnSecondaryColor, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: isEnd, nextBtnType: isHovered
138
188
  ? customNavigationHoverStyle.nextBtnType
139
189
  : customNavigationNormalStyle.nextBtnType, nextBtnOffset: isHovered
140
190
  ? customNavigationHoverStyle.nextBtnOffset
141
191
  : customNavigationNormalStyle.nextBtnOffset, nextBtnSize: isHovered
142
192
  ? 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 })] })) })) })));
193
+ : customNavigationNormalStyle.nextBtnSize, nextBtnPrimaryColor: isHovered
194
+ ? customNavigationHoverStyle.nextBtnPrimaryColor
195
+ : customNavigationNormalStyle.nextBtnPrimaryColor, nextBtnSecondaryColor: isHovered
196
+ ? customNavigationHoverStyle.nextBtnSecondaryColor
197
+ : customNavigationNormalStyle.nextBtnSecondaryColor, 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, primaryColor: isHovered
198
+ ? customProgressbarHoverStyle.primaryColor
199
+ : customProgressbarNormalStyle.primaryColor, secondaryColor: isHovered
200
+ ? customProgressbarHoverStyle.secondaryColor
201
+ : customProgressbarNormalStyle.secondaryColor })] })) })) })));
144
202
  }
145
203
  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
204
  var customStyle = _a.customStyle;
147
205
  return customStyle;
148
206
  });
207
+ 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) {
208
+ var hoverBorderStyle = _a.hoverBorderStyle;
209
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverBorderStyle), { boxShadow: '' }));
210
+ }, function (_a) {
211
+ var borderStyle = _a.borderStyle;
212
+ return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, borderStyle), { boxShadow: '' }));
213
+ });
149
214
  exports.default = SlideBanner;
150
- var templateObject_1;
215
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -14,14 +14,18 @@ export interface CustomNavigationProps {
14
14
  prevBtnType?: CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE;
15
15
  prevBtnOffset?: NavigationOffset;
16
16
  prevBtnSize?: number;
17
+ prevBtnPrimaryColor?: string;
18
+ prevBtnSecondaryColor?: string;
17
19
  nextBtnDisabled?: boolean;
18
20
  nextBtnType?: CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE;
19
21
  nextBtnOffset?: NavigationOffset;
20
22
  nextBtnSize?: number;
23
+ nextBtnPrimaryColor?: string;
24
+ nextBtnSecondaryColor?: string;
21
25
  onPrevBtnClick?: () => void;
22
26
  onNextBtnClick?: () => void;
23
27
  }
24
- export declare const CustomNavigation: ({ prevBtnDisabled, prevBtnType, prevBtnOffset, prevBtnSize, nextBtnDisabled, nextBtnType, nextBtnOffset, nextBtnSize, onPrevBtnClick, onNextBtnClick }: CustomNavigationProps) => JSX.Element;
28
+ export declare const CustomNavigation: ({ prevBtnDisabled, prevBtnType, prevBtnOffset, prevBtnSize, prevBtnPrimaryColor, prevBtnSecondaryColor, nextBtnDisabled, nextBtnType, nextBtnOffset, nextBtnSize, nextBtnPrimaryColor, nextBtnSecondaryColor, onPrevBtnClick, onNextBtnClick }: CustomNavigationProps) => JSX.Element;
25
29
  export interface FlexBoxProps {
26
30
  direction?: 'row' | 'column';
27
31
  justifyContent?: string;
@@ -42,8 +42,9 @@ 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
- 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
+ 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, prevBtnPrimaryColor = _a.prevBtnPrimaryColor, prevBtnSecondaryColor = _a.prevBtnSecondaryColor, _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, nextBtnPrimaryColor = _a.nextBtnPrimaryColor, nextBtnSecondaryColor = _a.nextBtnSecondaryColor, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
47
48
  var getIsSameOffset = function (prevBtnOffset, nextBtnOffset) {
48
49
  return (prevBtnOffset.top === nextBtnOffset.top &&
49
50
  prevBtnOffset.bottom === nextBtnOffset.bottom &&
@@ -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 = prevBtnType === 'NONE' ? undefined : navigationConfigs_1.prevButtonMappedIcons[prevBtnType];
59
+ var nextButton = nextBtnType === 'NONE' ? undefined : navigationConfigs_1.nextButtonMappedIcons[nextBtnType];
60
+ return ((0, jsx_runtime_1.jsxs)(S_Navigation, __assign({ "$offset": isSameOffset ? prevBtnOffset : undefined, "$size": isSameOffset ? prevBtnSize : 1 }, { children: [prevButton && ((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, borderColorKey: prevButton.borderColorKey, overrideBaseColorHex: prevBtnPrimaryColor, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: prevBtnSecondaryColor, shadow: prevButton.shadow, onClick: onPrevBtnClick }) }))), nextButton && ((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, borderColorKey: nextButton.baseColorKey, overrideBaseColorHex: nextBtnPrimaryColor, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: nextBtnSecondaryColor, 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,16 @@ export interface CustomPaginationProps {
14
14
  transformOrigin?: string;
15
15
  };
16
16
  size?: number;
17
- onBulletClick?: (index: number) => void;
17
+ primaryColor?: string;
18
+ secondaryColor?: string;
18
19
  }
19
- export declare const CustomPagination: ({ current, total, type, offset, size, onBulletClick }: CustomPaginationProps) => JSX.Element;
20
+ export declare const CustomPagination: ({ current, total, type, offset, size, primaryColor, secondaryColor, prevBtnDisabled, nextBtnDisabled, onBulletClick, onPrevBtnClick, onNextBtnClick }: CustomPaginationProps & {
21
+ prevBtnDisabled: boolean;
22
+ nextBtnDisabled: boolean;
23
+ onBulletClick: (index: number) => void;
24
+ onPrevBtnClick: () => void;
25
+ onNextBtnClick: () => void;
26
+ }) => JSX.Element;
20
27
  export interface FlexBoxProps {
21
28
  direction?: 'row' | 'column';
22
29
  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, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, 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: index + 1 === current ? primaryColor : secondaryColor, 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: index + 1 === current ? primaryColor : secondaryColor, 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: index + 1 === current ? primaryColor : secondaryColor, 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: index + 1 === current ? primaryColor : secondaryColor, 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: index + 1 === current ? primaryColor : secondaryColor, 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
  }
@@ -165,21 +164,20 @@ var S_Divider = styled_components_1.default.div(templateObject_11 || (templateOb
165
164
  var type = _a.type;
166
165
  return (type === 'VERTICAL' ? verticalDivider : horizontalDivider);
167
166
  });
168
- var whiteBullet = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: #ffffff;\n opacity: ", ";\n"], ["\n background-color: #ffffff;\n opacity: ", ";\n"])), function (_a) {
169
- var isActive = _a.isActive;
170
- return (isActive ? 1 : 0.2);
171
- });
172
- var darkBullet = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: #000000;\n opacity: ", ";\n"], ["\n background-color: #000000;\n opacity: ", ";\n"])), function (_a) {
173
- var isActive = _a.isActive;
174
- return (isActive ? 1 : 0.3);
175
- });
176
- var S_Dot = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n ", ";\n"], ["\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n ", ";\n"])), function (_a) {
167
+ var S_Dot = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n"], ["\n background-color: ", ";\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n"])), function (_a) {
177
168
  var color = _a.color;
178
- return (color === 'WHITE' ? whiteBullet : darkBullet);
169
+ return color;
179
170
  });
180
- var S_Bar = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n cursor: pointer;\n height: 2px;\n width: 40px;\n ", ";\n"], ["\n cursor: pointer;\n height: 2px;\n width: 40px;\n ", ";\n"])), function (_a) {
171
+ var S_Bar = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: ", ";\n cursor: pointer;\n height: 2px;\n width: 40px;\n"], ["\n background-color: ", ";\n cursor: pointer;\n height: 2px;\n width: 40px;\n"])), function (_a) {
181
172
  var color = _a.color;
182
- return (color === 'WHITE' ? whiteBullet : darkBullet);
173
+ return color;
174
+ });
175
+ var S_Pointer = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"], ["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"])), function (_a) {
176
+ var disabled = _a.disabled;
177
+ return (disabled ? 'not-allowed' : 'pointer');
178
+ }, function (_a) {
179
+ var disabled = _a.disabled;
180
+ return (disabled ? 0.4 : 1);
183
181
  });
184
182
  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;
183
+ 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;
@@ -12,10 +12,12 @@ export interface CustomProgressbarProps {
12
12
  transformOrigin?: string;
13
13
  };
14
14
  size?: number;
15
+ primaryColor?: string;
16
+ secondaryColor?: string;
15
17
  }
16
18
  type Props = {
17
19
  progressRef: React.RefObject<number>;
18
20
  leftTimeMsRef: React.RefObject<number>;
19
21
  } & CustomProgressbarProps;
20
- export declare const CustomProgressbar: ({ progressRef, leftTimeMsRef, type, offset, size }: Props) => JSX.Element;
22
+ export declare const CustomProgressbar: ({ progressRef, leftTimeMsRef, type, offset, size, primaryColor, secondaryColor }: Props) => JSX.Element;
21
23
  export default CustomProgressbar;
@@ -42,53 +42,76 @@ exports.CustomProgressbar = void 0;
42
42
  var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var react_1 = require("react");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
+ var progressConfigs_1 = require("./progressConfigs");
45
46
  var CustomProgressbar = function (_a) {
46
- var progressRef = _a.progressRef, leftTimeMsRef = _a.leftTimeMsRef, _b = _a.type, type = _b === void 0 ? 'NONE' : _b, _c = _a.offset, offset = _c === void 0 ? { top: '0' } : _c, _d = _a.size, size = _d === void 0 ? 1 : _d;
47
+ var progressRef = _a.progressRef, leftTimeMsRef = _a.leftTimeMsRef, _b = _a.type, type = _b === void 0 ? 'NONE' : _b, _c = _a.offset, offset = _c === void 0 ? { top: '0' } : _c, _d = _a.size, size = _d === void 0 ? 1 : _d, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor;
47
48
  var _e = (0, react_1.useState)(0), leftTimeSec = _e[0], setLeftTimeSec = _e[1];
48
49
  var _f = (0, react_1.useState)(0), progress = _f[0], setProgress = _f[1];
49
- // 초 단위 렌더
50
50
  (0, react_1.useEffect)(function () {
51
- var id = setInterval(function () {
51
+ var updateTimer = function () {
52
52
  var _a;
53
- var sec = Math.ceil(((_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 0) / 1000);
53
+ var sec = Math.abs(((_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 10000) / 1000);
54
54
  setLeftTimeSec(sec);
55
- }, 1000);
55
+ };
56
+ updateTimer();
57
+ var id = setInterval(updateTimer, 1000);
56
58
  return function () { return clearInterval(id); };
57
- }, [leftTimeMsRef]);
58
- // 실시간 progress 반영
59
+ }, []);
59
60
  (0, react_1.useEffect)(function () {
60
61
  var animationId;
62
+ var lastProgress = -1;
61
63
  var updateProgress = function () {
62
64
  var _a;
63
- setProgress((_a = progressRef.current) !== null && _a !== void 0 ? _a : 0);
65
+ var currentProgress = (_a = progressRef.current) !== null && _a !== void 0 ? _a : 0;
66
+ // 소수점 3자리로 제한 (0.001 단위)
67
+ var fixedProgress = Math.round(currentProgress * 1000) / 1000;
68
+ // 0.5% 이상 변경시에만 업데이트
69
+ if (Math.abs(fixedProgress - lastProgress) > 0.005) {
70
+ setProgress(fixedProgress);
71
+ lastProgress = fixedProgress;
72
+ }
64
73
  animationId = requestAnimationFrame(updateProgress);
65
74
  };
66
75
  animationId = requestAnimationFrame(updateProgress);
67
76
  return function () { return cancelAnimationFrame(animationId); };
68
- }, [progressRef]);
69
- return ((0, jsx_runtime_1.jsx)(S_Progress, __assign({ className: "autoplay-progress", "$offset": offset, "$size": size }, { children: (function () {
70
- switch (type) {
71
- case 'NONE':
72
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
73
- case 'DESIGN1':
74
- case 'DESIGN2':
75
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ viewBox: "0 0 48 48", style: { '--progress': 1 - progress } }, { children: (0, jsx_runtime_1.jsx)("circle", { cx: "24", cy: "24", r: "20" }) })), (0, jsx_runtime_1.jsx)("span", { children: "".concat(Math.ceil(leftTimeSec), "s") })] }));
76
- default:
77
- return (0, jsx_runtime_1.jsx)("div", { children: "Default Design" });
78
- }
79
- })() })));
77
+ }, []);
78
+ var renderProgressByType = function () {
79
+ switch (type) {
80
+ case 'NONE':
81
+ return null;
82
+ case 'DESIGN1':
83
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { progress: progress, leftTimeSec: leftTimeSec, progressColor: primaryColor, bufferColor: secondaryColor }));
84
+ case 'DESIGN2':
85
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign2, { progress: progress, leftTimeSec: leftTimeSec, progressColor: primaryColor, bufferColor: secondaryColor }));
86
+ case 'DESIGN3':
87
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign3, { progress: progress, progressColor: primaryColor, bufferColor: secondaryColor }));
88
+ case 'DESIGN4':
89
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign4, { progress: progress, progressColor: primaryColor, bufferColor: secondaryColor }));
90
+ case 'DESIGN5':
91
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign5, { progress: progress, progressColor: primaryColor, bufferColor: secondaryColor }));
92
+ case 'DESIGN6':
93
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign6, { progress: progress, progressColor: primaryColor, bufferColor: secondaryColor }));
94
+ case 'DESIGN7':
95
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign7, { progress: progress, progressColor: primaryColor, bufferColor: secondaryColor }));
96
+ case 'DESIGN8':
97
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign8, { progress: progress, progressColor: primaryColor, bufferColor: secondaryColor }));
98
+ default:
99
+ return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { progress: progress, leftTimeSec: leftTimeSec, progressColor: primaryColor, bufferColor: secondaryColor }));
100
+ }
101
+ };
102
+ return ((0, jsx_runtime_1.jsx)(S_ProgressWrapper, __assign({ "$offset": offset, "$size": size }, { children: renderProgressByType() })));
80
103
  };
81
104
  exports.CustomProgressbar = CustomProgressbar;
82
- var S_Progress = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n\n &.autoplay-progress {\n align-items: center;\n bottom: 16px;\n color: blue;\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: absolute;\n right: 16px;\n width: 48px;\n z-index: 10;\n }\n\n &.autoplay-progress svg {\n --progress: 0;\n fill: none;\n height: 100%;\n left: 0;\n position: absolute;\n stroke: var(--swiper-theme-color);\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 0px;\n transform: rotate(-90deg);\n width: 100%;\n z-index: 10;\n }\n"], ["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n\n &.autoplay-progress {\n align-items: center;\n bottom: 16px;\n color: blue;\n display: flex;\n font-weight: bold;\n height: 48px;\n justify-content: center;\n position: absolute;\n right: 16px;\n width: 48px;\n z-index: 10;\n }\n\n &.autoplay-progress svg {\n --progress: 0;\n fill: none;\n height: 100%;\n left: 0;\n position: absolute;\n stroke: var(--swiper-theme-color);\n stroke-dasharray: 125.6;\n stroke-dashoffset: calc(125.6px * (1 - var(--progress)));\n stroke-width: 4px;\n top: 0px;\n transform: rotate(-90deg);\n width: 100%;\n z-index: 10;\n }\n"])), function (_a) {
83
- var $offset = _a.$offset;
84
- return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
85
- }, function (_a) {
105
+ var S_ProgressWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n bottom: 16px;\n height: fit-content;\n left: 16px;\n padding: 5px;\n position: absolute;\n right: 16px;\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 10;\n\n ", ";\n"], ["\n bottom: 16px;\n height: fit-content;\n left: 16px;\n padding: 5px;\n position: absolute;\n right: 16px;\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 10;\n\n ", ";\n"])), function (_a) {
86
106
  var _b, _c;
87
107
  var $size = _a.$size, $offset = _a.$offset;
88
108
  return "scale(".concat($size, ") translate(").concat((_b = $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
89
109
  }, function (_a) {
90
110
  var $offset = _a.$offset;
91
111
  return $offset.transformOrigin || 'center center';
112
+ }, function (_a) {
113
+ var $offset = _a.$offset;
114
+ return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
92
115
  });
93
116
  exports.default = exports.CustomProgressbar;
94
117
  var templateObject_1, templateObject_2;
@@ -0,0 +1,4 @@
1
+ import type { CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE, CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE } from '../types';
2
+ import type { IconButtonProps } from '../../../../../../../../DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton';
3
+ export declare const prevButtonMappedIcons: Record<CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE, IconButtonProps>;
4
+ export declare const nextButtonMappedIcons: Record<CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE, IconButtonProps>;