pds-dev-kit-web-test 2.5.383 → 2.5.384

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 (233) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +3 -2
  3. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
  4. package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
  5. package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
  6. package/dist/src/common/assets/icons/fill/index.js +3 -1
  7. package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
  8. package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
  9. package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
  10. package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
  11. package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
  12. package/dist/src/common/assets/icons/line/Radio.js +30 -0
  13. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
  14. package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
  15. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
  16. package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
  17. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
  18. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
  19. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
  20. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
  21. package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
  22. package/dist/src/common/assets/icons/line/TextLong.js +30 -0
  23. package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
  24. package/dist/src/common/assets/icons/line/TextShort.js +30 -0
  25. package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
  26. package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
  27. package/dist/src/common/assets/icons/line/index.d.ts +10 -0
  28. package/dist/src/common/assets/icons/line/index.js +21 -1
  29. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
  30. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
  31. package/dist/src/common/hooks/useTooltip.js +1 -1
  32. package/dist/src/common/services/i18n/resources/en.json +9 -1
  33. package/dist/src/common/services/i18n/resources/es.json +9 -1
  34. package/dist/src/common/services/i18n/resources/fil.json +9 -1
  35. package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
  36. package/dist/src/common/services/i18n/resources/ja.json +9 -1
  37. package/dist/src/common/services/i18n/resources/ko.json +9 -1
  38. package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
  39. package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
  40. package/dist/src/common/styles/colorSet/index.d.ts +124 -124
  41. package/dist/src/common/styles/colorSet/index.js +2 -2
  42. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  43. package/dist/src/common/utils/dateHelper.d.ts +13 -0
  44. package/dist/src/common/utils/dateHelper.js +87 -0
  45. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
  46. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
  47. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  48. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -1
  49. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +26 -4
  50. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +3 -1
  51. package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
  52. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  53. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  54. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
  55. package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
  56. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  57. package/dist/src/desktop/components/TextField/TextField.js +41 -15
  58. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  59. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
  60. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +26 -4
  61. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +3 -1
  62. package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
  63. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
  64. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  65. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
  66. package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
  67. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
  68. package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
  69. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
  70. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
  71. package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
  72. package/dist/src/mobile/components/DatePicker/Day.js +94 -0
  73. package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
  74. package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner → mobile/components/DatePicker}/index.js +3 -3
  75. package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
  76. package/dist/src/mobile/components/DatePicker/utils.js +68 -0
  77. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  78. package/dist/src/mobile/components/TextField/TextField.js +41 -15
  79. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
  80. package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
  81. package/dist/src/mobile/components/index.d.ts +2 -1
  82. package/dist/src/mobile/components/index.js +3 -1
  83. package/dist/src/mobile/index.d.ts +1 -1
  84. package/dist/src/mobile/index.js +3 -2
  85. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  86. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  87. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  88. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  89. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  90. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  91. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  92. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  93. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  94. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  95. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  96. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  97. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  98. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  99. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  100. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  101. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  102. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  103. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  104. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  105. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  106. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  107. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
  108. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +2 -4
  109. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +54 -54
  110. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  111. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  112. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  113. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  114. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
  115. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +6 -1
  116. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +26 -25
  117. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  118. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -0
  119. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
  120. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
  121. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
  122. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
  123. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
  124. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
  125. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
  126. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
  127. package/dist/src/sub/DynamicLayout/{mock_video.js → mock_video_cb.js} +10 -10
  128. package/dist/src/sub/DynamicLayout/mocks.d.ts +185 -8
  129. package/dist/src/sub/DynamicLayout/mocks.js +16 -61
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +23 -19
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +2 -230
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +4 -51
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +7 -50
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +53 -43
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +0 -1
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +10 -56
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -52
  148. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -2
  149. package/dist/src/sub/DynamicLayout/types.d.ts +15 -48
  150. package/package.json +3 -3
  151. package/release-note.md +3 -3
  152. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -20
  153. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1132
  154. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
  155. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
  156. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -9
  157. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -79
  158. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/downIcons.d.ts +0 -12
  159. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/downIcons.js +0 -76
  160. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/index.d.ts +0 -4
  161. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/index.js +0 -47
  162. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/leftIcons.d.ts +0 -12
  163. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/leftIcons.js +0 -76
  164. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/rightIcons.d.ts +0 -12
  165. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/rightIcons.js +0 -76
  166. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/upIcons.d.ts +0 -12
  167. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/paginationIcons/upIcons.js +0 -76
  168. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
  169. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
  170. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
  171. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
  172. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
  173. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -801
  174. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
  175. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1099
  176. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -1
  177. package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -1082
  178. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -810
  179. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -822
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -17
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -59
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +0 -31
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +0 -118
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +0 -31
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +0 -191
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -21
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -117
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -889
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -27
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -96
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -50
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -905
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -90
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +0 -2
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -112
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -27
  203. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -115
  204. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -23
  205. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -176
  206. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -30
  207. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -351
  208. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
  209. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
  210. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -46
  211. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
  212. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
  213. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -225
  214. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -15
  215. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
  216. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +0 -31
  217. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +0 -118
  218. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -31
  219. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -191
  220. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -21
  221. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -117
  222. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
  223. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -889
  224. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -27
  225. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -96
  226. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
  227. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -48
  228. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -852
  229. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -80
  230. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
  231. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
  232. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
  233. /package/dist/src/sub/DynamicLayout/{mock_video.d.ts → mock_video_cb.d.ts} +0 -0
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CB_SLIDEBANNER } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
3
- import type { CB_SLIDEBANNER_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
4
- type Props = CB_SLIDEBANNER_PROPERTIES_TYPE & IndexForIntersection & {
5
- compositions: CB_SLIDEBANNER['compositions'];
6
- };
7
- declare function SlideBanner(props: Props): JSX.Element;
8
- export default SlideBanner;
@@ -1,225 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __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
- };
40
- var __importDefault = (this && this.__importDefault) || function (mod) {
41
- return (mod && mod.__esModule) ? mod : { "default": mod };
42
- };
43
- Object.defineProperty(exports, "__esModule", { value: true });
44
- var jsx_runtime_1 = require("react/jsx-runtime");
45
- var react_1 = require("react");
46
- var createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
47
- var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
48
- var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
49
- var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
50
- var styled_components_1 = __importStar(require("styled-components"));
51
- var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
52
- var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
53
- var CustomNavigation_1 = require("./components/CustomNavigation");
54
- var CustomPagination_1 = require("./components/CustomPagination");
55
- var CustomProgressbar_1 = require("./components/CustomProgressbar");
56
- var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
57
- var slideBannerUtils_1 = require("./slideBannerUtils");
58
- function SlideBanner(props) {
59
- var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
60
- var index = props.index,
61
- // CONTENT : 슬라이드배너
62
- _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
- // STYLE: 슬라이드배너
64
- CB_STYLE_PROP_SLIDEBANNER = props.CB_STYLE_PROP_SLIDEBANNER,
65
- // STYLE: 그림자
66
- CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW,
67
- // EFFECT: 진입
68
- CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
69
- var compositions = props.compositions;
70
- var _c = (0, react_1.useState)(false), isHovered = _c[0], setIsHovered = _c[1];
71
- var _d = (0, react_1.useState)(1), currentSlide = _d[0], setCurrentSlide = _d[1];
72
- var _e = (0, react_1.useState)(0), totalPages = _e[0], setTotalPages = _e[1];
73
- var _f = (0, react_1.useState)(true), isBeginning = _f[0], setIsBeginning = _f[1];
74
- var _g = (0, react_1.useState)(false), isEnd = _g[0], setIsEnd = _g[1];
75
- var progressRef = (0, react_1.useRef)(0);
76
- var leftTimeMsRef = (0, react_1.useRef)(0);
77
- var swiperRef = (0, react_1.useRef)(null);
78
- var _h = (0, slideBannerUtils_1.parseSlideBannerStyleToSlideBannerCoreProp)({
79
- props: CB_STYLE_PROP_SLIDEBANNER,
80
- device: device
81
- }), slideBannerNormalStyle = _h.normalStyle, slideBannerHoverStyle = _h.hoverStyle;
82
- var _j = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomPaginationProp)({
83
- props: CB_STYLE_PROP_SLIDEBANNER,
84
- device: device
85
- }), customPaginationNormalStyle = _j.normalStyle, customPaginationHoverStyle = _j.hoverStyle;
86
- var _k = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomNavigationProp)({
87
- props: CB_STYLE_PROP_SLIDEBANNER,
88
- device: device
89
- }), customNavigationNormalStyle = _k.normalStyle, customNavigationHoverStyle = _k.hoverStyle;
90
- var _l = (0, slideBannerUtils_1.parseSlideBannerStyleToCustomProgressbarProp)({
91
- props: CB_STYLE_PROP_SLIDEBANNER,
92
- device: device
93
- }), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
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;
96
- // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
97
- var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
98
- // NOTE: EFFECT와 관련된 함수들입니다.
99
- var cbRef = (0, react_1.useRef)(null);
100
- var entry = (0, hooks_1.useIntersectionObserver)(cbRef, { threshold: 0.2, freezeOnceVisible: false }, [
101
- index
102
- ]);
103
- var isVisible = !!(entry === null || entry === void 0 ? void 0 : entry.isIntersecting);
104
- var effectCssProperties = isVisible ? effect : {};
105
- var isNoneEffectType = device === 'DESKTOP'
106
- ? CB_EFFECT_PROP_ENTANIM.CB_EFFECT_PROP_ENTANIM_SPEC_TYPE === 'NONE'
107
- : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
108
- var hasEffect = !isNoneEffectType;
109
- var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
110
- (0, react_1.useEffect)(function () {
111
- var _a, _b, _c;
112
- (_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.update();
113
- (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
114
- }, [isHovered]);
115
- var handleSwiper = function (swiper) {
116
- var originalSlides = Array.from(swiper.slides).filter(function (slide) { return !slide.classList.contains('swiper-slide-duplicate'); });
117
- var totalSlides = originalSlides.length;
118
- var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
119
- var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.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
- }
133
- setTotalPages(totalPages);
134
- setIsBeginning(swiper.isBeginning);
135
- setIsEnd(swiper.isEnd);
136
- };
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;
141
- setIsBeginning(swiper.isBeginning);
142
- setIsEnd(swiper.isEnd);
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
- }
157
- };
158
- var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
159
- leftTimeMsRef.current = time;
160
- progressRef.current = progress;
161
- }, []);
162
- var handleBulletClick = function (index) {
163
- if (swiperRef.current) {
164
- var targetIndex = (swiperRef.current.swiper.params.slidesPerGroup || 1) * index;
165
- swiperRef.current.swiper.slideTo(targetIndex);
166
- }
167
- };
168
- var handlePrevBtnClick = function () {
169
- if (swiperRef.current) {
170
- swiperRef.current.swiper.slidePrev();
171
- }
172
- };
173
- var handleNextBtnClick = function () {
174
- if (swiperRef.current) {
175
- swiperRef.current.swiper.slideNext();
176
- }
177
- };
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
200
- ? customNavigationHoverStyle.prevBtnType
201
- : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
202
- ? customNavigationHoverStyle.prevBtnOffset
203
- : customNavigationNormalStyle.prevBtnOffset, prevBtnSize: isHovered
204
- ? customNavigationHoverStyle.prevBtnSize
205
- : customNavigationNormalStyle.prevBtnSize, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: isEnd, nextBtnType: isHovered
206
- ? customNavigationHoverStyle.nextBtnType
207
- : customNavigationNormalStyle.nextBtnType, nextBtnOffset: isHovered
208
- ? customNavigationHoverStyle.nextBtnOffset
209
- : customNavigationNormalStyle.nextBtnOffset, nextBtnSize: isHovered
210
- ? customNavigationHoverStyle.nextBtnSize
211
- : 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 })] })) })) })));
212
- }
213
- 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) {
214
- var customStyle = _a.customStyle;
215
- return customStyle;
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
- });
224
- exports.default = SlideBanner;
225
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import 'swiper/modules/navigation/navigation.min.css';
3
- import 'swiper/swiper-bundle.css';
4
- import type { SwiperProps, SwiperRef } from 'swiper/react/swiper-react.js';
5
- export interface SlideBannerCoreProps extends SwiperProps {
6
- scrollbar?: SwiperProps['scrollbar'];
7
- slidesPerView?: SwiperProps['slidesPerView'];
8
- freeMode?: SwiperProps['freeMode'];
9
- autoplay?: SwiperProps['autoplay'];
10
- useAutoplay?: boolean;
11
- loop?: SwiperProps['loop'];
12
- children?: React.ReactNode[] | JSX.Element;
13
- }
14
- declare const SlideBannerCore: import("react").ForwardRefExoticComponent<SlideBannerCoreProps & import("react").RefAttributes<SwiperRef>>;
15
- export default SlideBannerCore;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __rest = (this && this.__rest) || function (s, e) {
14
- var t = {};
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
- t[p] = s[p];
17
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
- t[p[i]] = s[p[i]];
21
- }
22
- return t;
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var jsx_runtime_1 = require("react/jsx-runtime");
26
- var react_1 = require("react");
27
- var swiper_1 = require("swiper");
28
- require("swiper/modules/navigation/navigation.min.css");
29
- var react_2 = require("swiper/react");
30
- require("swiper/swiper-bundle.css");
31
- var SlideBannerCore = (0, react_1.forwardRef)(function (_a, ref) {
32
- var scrollbar = _a.scrollbar, slidesPerView = _a.slidesPerView, freeMode = _a.freeMode, autoplay = _a.autoplay, useAutoplay = _a.useAutoplay, loop = _a.loop, children = _a.children, props = __rest(_a, ["scrollbar", "slidesPerView", "freeMode", "autoplay", "useAutoplay", "loop", "children"]);
33
- return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
34
- width: '100%',
35
- height: '100%'
36
- }, modules: [swiper_1.Pagination, swiper_1.Navigation, swiper_1.Scrollbar, swiper_1.FreeMode, swiper_1.Autoplay], slidesPerView: slidesPerView, scrollbar: scrollbar, freeMode: freeMode, autoplay: useAutoplay ? autoplay : false, loop: loop }, props, { children: Array.isArray(children) ? (children.map(function (slide, index) { return (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide }, index); })) : ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: children })) })));
37
- });
38
- SlideBannerCore.displayName = 'SlideBannerCore';
39
- exports.default = SlideBannerCore;
@@ -1,31 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE, CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE } from '../types';
3
- export type NavigationOffset = {
4
- top?: string;
5
- bottom?: string;
6
- left?: string;
7
- right?: string;
8
- translateX?: number;
9
- translateY?: number;
10
- transformOrigin?: string;
11
- };
12
- export interface CustomNavigationProps {
13
- prevBtnDisabled?: boolean;
14
- prevBtnType?: CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE;
15
- prevBtnOffset?: NavigationOffset;
16
- prevBtnSize?: number;
17
- nextBtnDisabled?: boolean;
18
- nextBtnType?: CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE;
19
- nextBtnOffset?: NavigationOffset;
20
- nextBtnSize?: number;
21
- onPrevBtnClick?: () => void;
22
- onNextBtnClick?: () => void;
23
- }
24
- export declare const CustomNavigation: ({ prevBtnDisabled, prevBtnType, prevBtnOffset, prevBtnSize, nextBtnDisabled, nextBtnType, nextBtnOffset, nextBtnSize, onPrevBtnClick, onNextBtnClick }: CustomNavigationProps) => JSX.Element;
25
- export interface FlexBoxProps {
26
- direction?: 'row' | 'column';
27
- justifyContent?: string;
28
- alignItems?: string;
29
- gap?: string;
30
- }
31
- export default CustomNavigation;
@@ -1,118 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __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
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.CustomNavigation = void 0;
42
- var jsx_runtime_1 = require("react/jsx-runtime");
43
- var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pdsOriginal/desktop/IconButton");
44
- var styled_components_1 = __importStar(require("styled-components"));
45
- var navigationConfigs_1 = require("./navigationConfigs");
46
- var CustomNavigation = function (_a) {
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;
48
- var getIsSameOffset = function (prevBtnOffset, nextBtnOffset) {
49
- return (prevBtnOffset.top === nextBtnOffset.top &&
50
- prevBtnOffset.bottom === nextBtnOffset.bottom &&
51
- prevBtnOffset.left === nextBtnOffset.left &&
52
- prevBtnOffset.right === nextBtnOffset.right &&
53
- prevBtnOffset.translateX === nextBtnOffset.translateX &&
54
- prevBtnOffset.translateY === nextBtnOffset.translateY &&
55
- prevBtnOffset.transformOrigin === nextBtnOffset.transformOrigin);
56
- };
57
- var isSameOffset = getIsSameOffset(prevBtnOffset, nextBtnOffset);
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 }) }))] })));
61
- };
62
- exports.CustomNavigation = CustomNavigation;
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) {
64
- var $offset = _a.$offset;
65
- return ($offset ? 'flex' : 'contents');
66
- }, function (_a) {
67
- var $offset = _a.$offset;
68
- return ($offset ? '5px' : 0);
69
- }, function (_a) {
70
- var $offset = _a.$offset;
71
- return ($offset ? 'absolute' : 'static');
72
- }, function (_a) {
73
- var _b, _c;
74
- var $size = _a.$size, $offset = _a.$offset;
75
- return "scale(".concat($size, ") translate(").concat((_b = $offset === null || $offset === void 0 ? void 0 : $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset === null || $offset === void 0 ? void 0 : $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
76
- }, function (_a) {
77
- var $offset = _a.$offset;
78
- return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), ($offset === null || $offset === void 0 ? void 0 : $offset.top) !== undefined ? "top: ".concat($offset.top, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.bottom) !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.left) !== undefined ? "left: ".concat($offset.left, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.right) !== undefined ? "right: ".concat($offset.right, ";") : '');
79
- }, function (_a) {
80
- var $offset = _a.$offset;
81
- return ($offset === null || $offset === void 0 ? void 0 : $offset.transformOrigin) || 'center center';
82
- });
83
- var S_PrevButton = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n cursor: pointer;\n padding: ", ";\n position: ", ";\n transform: ", ";\n\n ", ";\n transform-origin: ", ";\n z-index: 3;\n\n &.disabled {\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n }\n"], ["\n cursor: pointer;\n padding: ", ";\n position: ", ";\n transform: ", ";\n\n ", ";\n transform-origin: ", ";\n z-index: 3;\n\n &.disabled {\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n }\n"])), function (_a) {
84
- var $offset = _a.$offset;
85
- return ($offset ? '5px' : 0);
86
- }, function (_a) {
87
- var $offset = _a.$offset;
88
- return ($offset ? 'absolute' : 'static');
89
- }, function (_a) {
90
- var _b, _c;
91
- var $size = _a.$size, $offset = _a.$offset;
92
- return "scale(".concat($size, ") translate(").concat((_b = $offset === null || $offset === void 0 ? void 0 : $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset === null || $offset === void 0 ? void 0 : $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
93
- }, function (_a) {
94
- var $offset = _a.$offset;
95
- return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), ($offset === null || $offset === void 0 ? void 0 : $offset.top) !== undefined ? "top: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.top, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.bottom) !== undefined ? "bottom: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.bottom, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.left) !== undefined ? "left: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.left, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.right) !== undefined ? "right: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.right, ";") : '');
96
- }, function (_a) {
97
- var $offset = _a.$offset;
98
- return ($offset === null || $offset === void 0 ? void 0 : $offset.transformOrigin) || 'center center';
99
- });
100
- var S_NextButton = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n cursor: pointer;\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n\n &.disabled {\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n }\n"], ["\n cursor: pointer;\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n\n &.disabled {\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n }\n"])), function (_a) {
101
- var $offset = _a.$offset;
102
- return ($offset ? '5px' : 0);
103
- }, function (_a) {
104
- var $offset = _a.$offset;
105
- return ($offset ? 'absolute' : 'static');
106
- }, function (_a) {
107
- var _b, _c;
108
- var $size = _a.$size, $offset = _a.$offset;
109
- return "scale(".concat($size, ") translate(").concat((_b = $offset === null || $offset === void 0 ? void 0 : $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset === null || $offset === void 0 ? void 0 : $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
110
- }, function (_a) {
111
- var $offset = _a.$offset;
112
- return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), ($offset === null || $offset === void 0 ? void 0 : $offset.top) !== undefined ? "top: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.top, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.bottom) !== undefined ? "bottom: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.bottom, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.left) !== undefined ? "left: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.left, ";") : '', ($offset === null || $offset === void 0 ? void 0 : $offset.right) !== undefined ? "right: ".concat($offset === null || $offset === void 0 ? void 0 : $offset.right, ";") : '');
113
- }, function (_a) {
114
- var $offset = _a.$offset;
115
- return ($offset === null || $offset === void 0 ? void 0 : $offset.transformOrigin) || 'center center';
116
- });
117
- exports.default = exports.CustomNavigation;
118
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,31 +0,0 @@
1
- /// <reference types="react" />
2
- import type { CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE_TYPE } from '../types';
3
- export interface CustomPaginationProps {
4
- current?: number;
5
- total?: number;
6
- type?: CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE_TYPE;
7
- offset?: {
8
- top?: string;
9
- bottom?: string;
10
- left?: string;
11
- right?: string;
12
- translateX?: number;
13
- translateY?: number;
14
- transformOrigin?: string;
15
- };
16
- size?: number;
17
- }
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;
25
- export interface FlexBoxProps {
26
- direction?: 'row' | 'column';
27
- justifyContent?: string;
28
- alignItems?: string;
29
- gap?: string;
30
- }
31
- export default CustomPagination;