pds-dev-kit-web-test 2.5.413 → 2.5.414

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 (225) 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 -1
  127. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +4 -4
  128. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +1 -1
  129. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +2 -2
  130. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +2 -2
  131. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +36 -10
  132. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
  133. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +12 -1
  134. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +8 -0
  135. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +77 -0
  136. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
  137. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  138. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  139. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  140. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  141. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  142. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  143. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  144. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  145. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  146. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  147. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  148. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  149. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  150. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  151. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  152. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  153. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  154. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  155. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +4 -4
  156. package/dist/src/sub/DynamicLayout/mock_composition.js +4 -0
  157. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -2
  158. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1047 -274
  159. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -2
  160. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1008 -222
  161. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +810 -2
  162. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +772 -268
  163. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  164. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  165. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +368 -0
  166. package/dist/src/sub/DynamicLayout/mock_video_cb.js +371 -0
  167. package/dist/src/sub/DynamicLayout/mocks.d.ts +2 -776
  168. package/dist/src/sub/DynamicLayout/mocks.js +4266 -11
  169. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -0
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -4
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +102 -26
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +21 -1
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +4 -55
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +7 -2
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +26 -20
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +46 -23
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +27 -0
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +96 -0
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +84 -98
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +6 -6
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +32 -20
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +3 -3
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +59 -132
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +23 -0
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +176 -0
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +24 -30
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +13 -5
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +88 -13
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +4 -55
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +7 -2
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +26 -20
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +46 -23
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +27 -0
  203. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +96 -0
  204. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +64 -67
  205. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +6 -6
  206. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +10 -4
  207. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +5 -0
  208. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +148 -0
  209. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +4 -0
  210. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +25 -0
  211. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +1 -0
  212. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +8 -0
  213. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +16 -7
  214. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  215. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -4
  216. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
  217. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  218. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  219. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  220. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +15 -2
  221. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  222. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
  223. package/dist/src/sub/DynamicLayout/types.d.ts +10 -1
  224. package/package.json +2 -3
  225. package/release-note.md +3 -3
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { Layout } from 'publ-echo-test/dist/lib';
3
- import type { ResizeEventType } from 'publ-echo-test/dist/lib/GridItem/types';
4
- import type { ComponentBlock, GroupBlock } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
5
- import type { LayoutItem, Layouts } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
2
+ import type { Layout } from 'publ-echo/dist/lib';
3
+ import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
4
+ import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
5
+ import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
6
6
  export type TypeOfSectionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
7
7
  export type PayloadCBType = {
8
8
  type: ComponentBlock['type'];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ISection } from '../../types';
3
- import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
3
+ import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
4
4
  export type LayoutsType = {
5
5
  sm: Layout;
6
6
  lg: Layout;
@@ -51,9 +51,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
- var publ_echo_test_1 = require("publ-echo-test");
55
- var group_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/group");
56
- var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
54
+ var publ_echo_1 = require("publ-echo");
55
+ var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
56
+ var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
57
57
  var react_1 = __importStar(require("react"));
58
58
  var ErrorBoundary_1 = require("../../../DynamicLayout/components/Section/ErrorBoundary");
59
59
  var dynamicLayoutContext_1 = require("../../../DynamicLayout/dynamicLayoutContext");
@@ -66,7 +66,7 @@ var clsx_1 = require("./newUtils/clsx");
66
66
  var group_2 = require("./newUtils/group");
67
67
  var util_1 = require("./util");
68
68
  var parseSectionPadding_1 = __importDefault(require("./util/layoutPropParsers/parseSectionPadding"));
69
- var Responsive = (0, publ_echo_test_1.WidthProvider)(publ_echo_test_1.ResponsiveGridEditor);
69
+ var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
70
70
  var GRID_CELL_MIN = 24;
71
71
  var DESKTOP_GRID_COLS = 24;
72
72
  var MOBILE_GRID_COLS = 8;
@@ -27,12 +27,6 @@ function FlexGridItem(_a) {
27
27
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
28
  var defaultHeight = getMaxHeight(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device, rowHeight);
29
29
  var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
30
- // const zIndex =
31
- // device === 'DESKTOP'
32
- // ? cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX
33
- // : cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT[
34
- // 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE'
35
- // ];
36
30
  return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ "data-cb-id": cb.id, style: {
37
31
  zIndex: zIndex,
38
32
  gridArea: gridArea
@@ -51,24 +45,26 @@ function getMaxHeight(props, device, rowHeight) {
51
45
  var height = rowsMobile * rowHeight + (rowsMobile - 1) * gap;
52
46
  return height;
53
47
  }
48
+ function clamp(num, min, max) {
49
+ return Math.max(Math.min(num, max), min);
50
+ }
54
51
  function getGridAreaFromCB(props, device) {
55
52
  var CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX, CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY, cols = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS, rows = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
56
53
  if (device === 'DESKTOP') {
57
- var colStart_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX + 1;
58
- var rowStart_1 = CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY + 1;
59
- var rowEnd_1 = rows + rowStart_1;
60
- var colEnd_1 = cols + colStart_1;
61
- // <grid-row-start> / <grid-column-start> / <grid-row-end> / <grid-column-end>;
54
+ var colStart_1 = clamp(CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX + 1, 1, Math.max(1, 25 - cols));
55
+ var rowStart_1 = clamp(CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY + 1, 1, Infinity);
56
+ var rowEnd_1 = clamp(rows + rowStart_1, rowStart_1 + 1, Infinity);
57
+ var colEnd_1 = clamp(colStart_1 + cols, colStart_1 + 1, 25);
62
58
  return "".concat(rowStart_1, " / ").concat(colStart_1, " / ").concat(rowEnd_1, " / ").concat(colEnd_1);
63
59
  }
64
60
  var startXMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'];
65
61
  var startYMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'];
66
62
  var colsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'];
67
63
  var rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
68
- var colStart = startXMobile + 1;
69
- var rowStart = startYMobile + 1;
70
- var rowEnd = rowsMobile + rowStart;
71
- var colEnd = colsMobile + colStart;
64
+ var colStart = clamp(startXMobile + 1, 1, Math.max(1, 9 - colsMobile));
65
+ var rowStart = clamp(startYMobile + 1, 1, Infinity);
66
+ var rowEnd = clamp(rowsMobile + rowStart, rowStart + 1, Infinity);
67
+ var colEnd = clamp(colStart + colsMobile, colStart + 1, 9);
72
68
  return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
73
69
  }
74
70
  exports.default = FlexGridItem;
@@ -28,6 +28,7 @@ var RichText_1 = require("./componentBlocks/RichText");
28
28
  var SlideBanner_1 = require("./componentBlocks/SlideBanner");
29
29
  var Text_1 = __importDefault(require("./componentBlocks/Text/Text"));
30
30
  var Twitter_1 = __importDefault(require("./componentBlocks/Twitter/Twitter"));
31
+ var VideoPlayer_1 = require("./componentBlocks/VideoPlayer");
31
32
  var Youtube_1 = require("./componentBlocks/Youtube");
32
33
  function ComponentBlockMatcher(_a) {
33
34
  var cbProps = _a.cbProps, device = _a.device, index = _a.index;
@@ -50,6 +51,8 @@ function ComponentBlockMatcher(_a) {
50
51
  return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue, { index: index }));
51
52
  case types_1.CB_ALL_CODES.CB_EMBED:
52
53
  return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
54
+ case types_1.CB_ALL_CODES.CB_VIDEOPLAYER:
55
+ return (0, jsx_runtime_1.jsx)(VideoPlayer_1.VideoPlayer, __assign({}, propsWithValue, { index: index }));
53
56
  case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
54
57
  var compositions = cbProps.compositions;
55
58
  return ((0, jsx_runtime_1.jsx)(ContentsCarousel_1.ContentsCarousel, __assign({}, propsWithValue, { compositions: compositions, index: index })));
@@ -44,13 +44,14 @@ function Button(props) {
44
44
  var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
45
45
  var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
46
46
  var cLinkValue = function () {
47
- if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA') {
47
+ if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
48
+ CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
48
49
  if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
49
- return "ERROR: QueryData NOT FOUND";
50
+ return '';
50
51
  }
51
52
  var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
52
53
  if (!link) {
53
- return "ERROR: ".concat(CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, " NOT found from queryData");
54
+ return '';
54
55
  }
55
56
  return link;
56
57
  }
@@ -82,6 +83,26 @@ function Button(props) {
82
83
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
83
84
  var hasEffect = !isNoneEffectType;
84
85
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
86
+ var textValue = function () {
87
+ if (device === 'MOBILE' &&
88
+ mode !== 'EDIT' &&
89
+ props.CB_CONTENT_PROP_VISIBILITY.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB === false) {
90
+ return '';
91
+ }
92
+ if (device === 'DESKTOP' &&
93
+ mode !== 'EDIT' &&
94
+ props.CB_CONTENT_PROP_VISIBILITY.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP === false) {
95
+ return '';
96
+ }
97
+ if (device === 'MOBILE') {
98
+ var value = props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE;
99
+ if (value === null || value === undefined) {
100
+ return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
101
+ }
102
+ return value;
103
+ }
104
+ return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
105
+ };
85
106
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle, style: {
86
107
  paddingLeft: paddingLeft,
87
108
  paddingRight: paddingRight,
@@ -89,7 +110,7 @@ function Button(props) {
89
110
  paddingTop: paddingTop
90
111
  } }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ onMouseLeave: function (e) {
91
112
  e.currentTarget.classList.remove('hovered');
92
- }, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign(__assign({}, btnTextStyle), propsStyle), layoutStyle), effectCssProperties), btnColorStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor }), hoverStyle: __assign(__assign(__assign(__assign({}, btnTextHoverStyle), propsHoverStyle), btnColorHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) }))] }));
113
+ }, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign(__assign({}, btnTextStyle), propsStyle), layoutStyle), effectCssProperties), btnColorStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor }), hoverStyle: __assign(__assign(__assign(__assign({}, btnTextHoverStyle), propsHoverStyle), btnColorHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: textValue() })) }))] }));
93
114
  }
94
115
  function getBTNStyles(props, device) {
95
116
  var availableSpecCodes = [
@@ -14,20 +14,40 @@ 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
  };
20
43
  Object.defineProperty(exports, "__esModule", { value: true });
21
44
  var jsx_runtime_1 = require("react/jsx-runtime");
22
- /* eslint-disable @typescript-eslint/no-unused-vars */
23
45
  var react_1 = require("react");
24
- require("../../../../../../../DynamicLayout/compositionQueryContext");
25
- require("../../../../../../../DynamicLayout/CompositionRenderer/Composition");
26
46
  var createCompositions_1 = require("../../../../../../../DynamicLayout/CompositionRenderer/createCompositions");
27
47
  var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamicLayoutContext");
28
48
  var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
29
49
  var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
30
- var styled_components_1 = __importDefault(require("styled-components"));
50
+ var styled_components_1 = __importStar(require("styled-components"));
31
51
  var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
32
52
  var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
33
53
  var CustomNavigation_1 = require("./components/CustomNavigation");
@@ -73,6 +93,7 @@ function ContentsCarousel(props) {
73
93
  device: device
74
94
  }), customProgressbarNormalStyle = _l.normalStyle, customProgressbarHoverStyle = _l.hoverStyle;
75
95
  var _m = (0, util_1.parseProperties)(props, device), style = _m.style, hoverStyle = _m.hoverStyle, layout = _m.layout, effect = _m.effect;
96
+ var loop = isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop;
76
97
  // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
77
98
  var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
78
99
  // NOTE: EFFECT와 관련된 함수들입니다.
@@ -93,19 +114,47 @@ function ContentsCarousel(props) {
93
114
  (_c = swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper.update();
94
115
  }, [isHovered]);
95
116
  var handleSwiper = function (swiper) {
96
- var totalSlides = swiper.slides.length;
117
+ var originalSlides = Array.from(swiper.slides).filter(function (slide) { return !slide.classList.contains('swiper-slide-duplicate'); });
118
+ var totalSlides = originalSlides.length;
97
119
  var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
98
120
  var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
99
- var totalPages = Math.ceil((totalSlides - slidesPerView) / slidesPerGroup) + 1;
121
+ var isLoop = swiper.params.loop || false;
122
+ var totalPages;
123
+ if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
124
+ // 페이지 단위로 넘어가는 경우 (loop 여부 상관없이 동일)
125
+ totalPages = Math.ceil(totalSlides / slidesPerGroup);
126
+ }
127
+ else if (isLoop) {
128
+ totalPages = totalSlides;
129
+ }
130
+ else {
131
+ // loop가 꺼져있으면 마지막 슬라이드가 첫 번째 위치에 올 수 있는 경우까지만
132
+ totalPages = Math.max(1, totalSlides - slidesPerView + 1);
133
+ }
100
134
  setTotalPages(totalPages);
101
135
  setIsBeginning(swiper.isBeginning);
102
136
  setIsEnd(swiper.isEnd);
103
- setCurrentSlide(swiper.activeIndex + 1);
104
137
  };
105
- var handleSlideChange = function (swiper) {
138
+ var handleSlideChangeTransitionEnd = function (swiper) {
139
+ var slidesPerGroup = typeof swiper.params.slidesPerGroup === 'number' ? swiper.params.slidesPerGroup : 1;
140
+ var slidesPerView = typeof swiper.params.slidesPerView === 'number' ? swiper.params.slidesPerView : 1;
141
+ var isLoop = swiper.params.loop || false;
106
142
  setIsBeginning(swiper.isBeginning);
107
143
  setIsEnd(swiper.isEnd);
108
- setCurrentSlide(swiper.activeIndex + 1);
144
+ // 현재 페이지 계산
145
+ if (slidesPerView === slidesPerGroup && slidesPerGroup > 1) {
146
+ // 페이지 단위로 이동하는 경우
147
+ var currentPage = Math.floor(swiper.realIndex / slidesPerGroup) + 1;
148
+ setCurrentSlide(currentPage);
149
+ }
150
+ else if (isLoop) {
151
+ // loop 모드에서는 realIndex가 실제 슬라이드 인덱스
152
+ setCurrentSlide(swiper.realIndex + 1);
153
+ }
154
+ else {
155
+ // loop가 꺼져있을 때는 activeIndex 사용
156
+ setCurrentSlide(swiper.activeIndex + 1);
157
+ }
109
158
  };
110
159
  var handleAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
111
160
  leftTimeMsRef.current = time;
@@ -127,28 +176,48 @@ function ContentsCarousel(props) {
127
176
  swiperRef.current.swiper.slideNext();
128
177
  }
129
178
  };
130
- 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
179
+ 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
131
180
  ? contentsCarouselHoverStyle === null || contentsCarouselHoverStyle === void 0 ? void 0 : contentsCarouselHoverStyle.customStyle
132
- : contentsCarouselNormalStyle === null || contentsCarouselNormalStyle === void 0 ? void 0 : contentsCarouselNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(ContentsCarouselCore_1.default, __assign({ ref: swiperRef, className: "contents-carousel-core", onSwiper: handleSwiper, onSlideChange: handleSlideChange, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, scrollbar: isHovered
133
- ? contentsCarouselHoverStyle.scrollbar
134
- : contentsCarouselNormalStyle.scrollbar, slidesPerGroup: isHovered
135
- ? contentsCarouselHoverStyle.slidesPerGroup
136
- : contentsCarouselNormalStyle.slidesPerGroup, spaceBetween: isHovered
137
- ? contentsCarouselHoverStyle.spaceBetween
138
- : contentsCarouselNormalStyle.spaceBetween, freeMode: isHovered ? contentsCarouselHoverStyle.freeMode : contentsCarouselNormalStyle.freeMode, autoplay: isHovered ? contentsCarouselHoverStyle.autoplay : contentsCarouselNormalStyle.autoplay, useAutoplay: isHovered
139
- ? contentsCarouselHoverStyle.useAutoplay
140
- : contentsCarouselNormalStyle.useAutoplay, loop: isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
141
- valueType: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE,
142
- queryPath: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA,
143
- queryData: queryData,
144
- compositions: compositions
145
- }) })), (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
181
+ : contentsCarouselNormalStyle === null || contentsCarouselNormalStyle === void 0 ? void 0 : contentsCarouselNormalStyle.customStyle }, { children: [(0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ borderStyle: {
182
+ borderBottomLeftRadius: style.borderBottomLeftRadius,
183
+ borderBottomRightRadius: style.borderBottomRightRadius,
184
+ borderTopLeftRadius: style.borderTopLeftRadius,
185
+ borderTopRightRadius: style.borderTopRightRadius,
186
+ borderWidth: style.borderWidth,
187
+ borderColor: style.borderColor,
188
+ borderStyle: style.borderStyle
189
+ }, hoverBorderStyle: {
190
+ borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
191
+ borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
192
+ borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
193
+ borderTopRightRadius: hoverStyle.borderTopRightRadius,
194
+ borderWidth: hoverStyle.borderWidth,
195
+ borderColor: hoverStyle.borderColor,
196
+ borderStyle: hoverStyle.borderStyle
197
+ } }, { children: (0, jsx_runtime_1.jsx)(ContentsCarouselCore_1.default, __assign({ ref: swiperRef, className: "contents-carousel-core", onSwiper: handleSwiper, onSlideChangeTransitionEnd: handleSlideChangeTransitionEnd, onAutoplayTimeLeft: handleAutoplayTimeLeft, slidesPerView: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, scrollbar: isHovered
198
+ ? contentsCarouselHoverStyle.scrollbar
199
+ : contentsCarouselNormalStyle.scrollbar, slidesPerGroup: isHovered
200
+ ? contentsCarouselHoverStyle.slidesPerGroup
201
+ : contentsCarouselNormalStyle.slidesPerGroup, spaceBetween: isHovered
202
+ ? contentsCarouselHoverStyle.spaceBetween
203
+ : contentsCarouselNormalStyle.spaceBetween, freeMode: isHovered
204
+ ? contentsCarouselHoverStyle.freeMode
205
+ : contentsCarouselNormalStyle.freeMode, autoplay: isHovered
206
+ ? contentsCarouselHoverStyle.autoplay
207
+ : contentsCarouselNormalStyle.autoplay, useAutoplay: isHovered
208
+ ? contentsCarouselHoverStyle.useAutoplay
209
+ : contentsCarouselNormalStyle.useAutoplay, loop: isHovered ? contentsCarouselHoverStyle.loop : contentsCarouselNormalStyle.loop }, { children: (0, createCompositions_1.createCompositions)({
210
+ valueType: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE,
211
+ queryPath: CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA,
212
+ queryData: queryData,
213
+ compositions: compositions
214
+ }) })) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? customPaginationHoverStyle.type : customPaginationNormalStyle.type, offset: isHovered ? customPaginationHoverStyle.offset : customPaginationNormalStyle.offset, current: currentSlide, total: totalPages, prevBtnDisabled: loop ? false : isBeginning, nextBtnDisabled: loop ? false : isEnd, size: isHovered ? customPaginationHoverStyle.size : customPaginationNormalStyle.size, onBulletClick: handleBulletClick, onPrevBtnClick: handlePrevBtnClick, onNextBtnClick: handleNextBtnClick }), (0, jsx_runtime_1.jsx)(CustomNavigation_1.CustomNavigation, { prevBtnDisabled: loop ? false : isBeginning, prevBtnType: isHovered
146
215
  ? customNavigationHoverStyle.prevBtnType
147
216
  : customNavigationNormalStyle.prevBtnType, prevBtnOffset: isHovered
148
217
  ? customNavigationHoverStyle.prevBtnOffset
149
218
  : customNavigationNormalStyle.prevBtnOffset, prevBtnSize: isHovered
150
219
  ? customNavigationHoverStyle.prevBtnSize
151
- : customNavigationNormalStyle.prevBtnSize, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: isEnd, nextBtnType: isHovered
220
+ : customNavigationNormalStyle.prevBtnSize, onPrevBtnClick: handlePrevBtnClick, nextBtnDisabled: loop ? false : isEnd, nextBtnType: isHovered
152
221
  ? customNavigationHoverStyle.nextBtnType
153
222
  : customNavigationNormalStyle.nextBtnType, nextBtnOffset: isHovered
154
223
  ? customNavigationHoverStyle.nextBtnOffset
@@ -160,5 +229,12 @@ var S_SwiperWrapper = styled_components_1.default.div(templateObject_1 || (templ
160
229
  var customStyle = _a.customStyle;
161
230
  return customStyle;
162
231
  });
232
+ 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) {
233
+ var hoverBorderStyle = _a.hoverBorderStyle;
234
+ return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, hoverBorderStyle), { boxShadow: '' }));
235
+ }, function (_a) {
236
+ var borderStyle = _a.borderStyle;
237
+ return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), __assign(__assign({}, borderStyle), { boxShadow: '' }));
238
+ });
163
239
  exports.default = ContentsCarousel;
164
- var templateObject_1;
240
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -21,6 +21,15 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  }
22
22
  return t;
23
23
  };
24
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
25
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
26
+ if (ar || !(i in from)) {
27
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
28
+ ar[i] = from[i];
29
+ }
30
+ }
31
+ return to.concat(ar || Array.prototype.slice.call(from));
32
+ };
24
33
  Object.defineProperty(exports, "__esModule", { value: true });
25
34
  var jsx_runtime_1 = require("react/jsx-runtime");
26
35
  var react_1 = require("react");
@@ -30,10 +39,21 @@ var react_2 = require("swiper/react");
30
39
  require("swiper/swiper-bundle.css");
31
40
  var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
32
41
  var scrollbar = _a.scrollbar, slidesPerView = _a.slidesPerView, slidesPerGroup = _a.slidesPerGroup, spaceBetween = _a.spaceBetween, freeMode = _a.freeMode, autoplay = _a.autoplay, useAutoplay = _a.useAutoplay, loop = _a.loop, children = _a.children, props = __rest(_a, ["scrollbar", "slidesPerView", "slidesPerGroup", "spaceBetween", "freeMode", "autoplay", "useAutoplay", "loop", "children"]);
42
+ var slidesWithEmpty = (0, react_1.useMemo)(function () {
43
+ var childrenArray = Array.isArray(children) ? children : [children];
44
+ if (slidesPerView === slidesPerGroup && slidesPerGroup && slidesPerGroup > 1) {
45
+ var remainder = childrenArray.length % slidesPerGroup;
46
+ if (remainder !== 0) {
47
+ var emptyCount = slidesPerGroup - remainder;
48
+ return __spreadArray(__spreadArray([], childrenArray, true), Array(emptyCount).fill(null), true);
49
+ }
50
+ }
51
+ return childrenArray;
52
+ }, [children, slidesPerView, slidesPerGroup]);
33
53
  return ((0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
34
54
  width: '100%',
35
55
  height: '100%'
36
- }, modules: [swiper_1.Pagination, swiper_1.Navigation, swiper_1.Scrollbar, swiper_1.FreeMode, swiper_1.Autoplay], slidesPerView: slidesPerView, scrollbar: scrollbar, slidesPerGroup: slidesPerGroup, spaceBetween: spaceBetween, 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 })) })));
56
+ }, modules: [swiper_1.Pagination, swiper_1.Navigation, swiper_1.Scrollbar, swiper_1.FreeMode, swiper_1.Autoplay], slidesPerView: slidesPerView, scrollbar: scrollbar, slidesPerGroup: slidesPerGroup, spaceBetween: spaceBetween, freeMode: freeMode, autoplay: useAutoplay ? autoplay : false, loop: loop }, props, { children: slidesWithEmpty.map(function (slide, index) { return ((0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: slide || (0, jsx_runtime_1.jsx)("div", { className: "swiper-slide-empty" }) }, index)); }) })));
37
57
  });
38
58
  ContentsCarouselCore.displayName = 'ContentsCarouselCore';
39
59
  exports.default = ContentsCarouselCore;
@@ -42,6 +42,7 @@ exports.CustomNavigation = void 0;
42
42
  var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pdsOriginal/desktop/IconButton");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
+ var navigationConfigs_1 = require("./navigationConfigs");
45
46
  var CustomNavigation = function (_a) {
46
47
  var _b = _a.prevBtnDisabled, prevBtnDisabled = _b === void 0 ? false : _b, _c = _a.prevBtnType, prevBtnType = _c === void 0 ? 'NONE' : _c, _d = _a.prevBtnOffset, prevBtnOffset = _d === void 0 ? { top: '0' } : _d, _e = _a.prevBtnSize, prevBtnSize = _e === void 0 ? 1 : _e, _f = _a.nextBtnDisabled, nextBtnDisabled = _f === void 0 ? false : _f, _g = _a.nextBtnType, nextBtnType = _g === void 0 ? 'NONE' : _g, _h = _a.nextBtnOffset, nextBtnOffset = _h === void 0 ? { top: '0' } : _h, _j = _a.nextBtnSize, nextBtnSize = _j === void 0 ? 1 : _j, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
47
48
  var getIsSameOffset = function (prevBtnOffset, nextBtnOffset) {
@@ -54,61 +55,9 @@ var CustomNavigation = function (_a) {
54
55
  prevBtnOffset.transformOrigin === nextBtnOffset.transformOrigin);
55
56
  };
56
57
  var isSameOffset = getIsSameOffset(prevBtnOffset, nextBtnOffset);
57
- return ((0, jsx_runtime_1.jsxs)(S_Navigation, __assign({ "$offset": isSameOffset ? prevBtnOffset : undefined, "$size": isSameOffset ? prevBtnSize : 1 }, { children: [(0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "".concat(prevBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : prevBtnOffset, "$size": isSameOffset ? undefined : prevBtnSize, onClick: onPrevBtnClick }, { children: (function () {
58
- switch (prevBtnType) {
59
- case 'NONE':
60
- case 'DESIGN1':
61
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
62
- case 'DESIGN2':
63
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
64
- case 'DESIGN3':
65
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
66
- case 'DESIGN4':
67
- case 'DESIGN5':
68
- case 'DESIGN6':
69
- case 'DESIGN7':
70
- case 'DESIGN8':
71
- case 'DESIGN9':
72
- case 'DESIGN10':
73
- case 'DESIGN11':
74
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_bold", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
75
- case 'DESIGN12':
76
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
77
- case 'DESIGN13':
78
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
79
- case 'DESIGN14':
80
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_left", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
81
- default:
82
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
83
- }
84
- })() })), (0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "".concat(nextBtnDisabled ? 'disabled' : ''), "$offset": isSameOffset ? undefined : nextBtnOffset, "$size": isSameOffset ? undefined : nextBtnSize, onClick: onNextBtnClick }, { children: (function () {
85
- switch (nextBtnType) {
86
- case 'NONE':
87
- case 'DESIGN1':
88
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
89
- case 'DESIGN2':
90
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
91
- case 'DESIGN3':
92
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
93
- case 'DESIGN4':
94
- case 'DESIGN5':
95
- case 'DESIGN6':
96
- case 'DESIGN7':
97
- case 'DESIGN8':
98
- case 'DESIGN9':
99
- case 'DESIGN10':
100
- case 'DESIGN11':
101
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_bold", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_dark" }));
102
- case 'DESIGN12':
103
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right_thin", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
104
- case 'DESIGN13':
105
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
106
- case 'DESIGN14':
107
- return ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconName: "ic_arrow_right", iconFillType: "line", iconColorKey: "ui_cpnt_icon_sys_white" }));
108
- default:
109
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
110
- }
111
- })() }))] })));
58
+ var prevButton = 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, 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 }) }))), 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, baseColorKey: nextButton.baseColorKey || 'ui_cpnt_button_fill_base_transparent', borderColorKey: nextButton.baseColorKey, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', shadow: nextButton.shadow, onClick: onNextBtnClick }) })))] })));
112
61
  };
113
62
  exports.CustomNavigation = CustomNavigation;
114
63
  var S_Navigation = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n"], ["\n display: ", ";\n padding: ", ";\n position: ", ";\n transform: ", ";\n ", ";\n transform-origin: ", ";\n z-index: 3;\n"])), function (_a) {
@@ -14,9 +14,14 @@ export interface CustomPaginationProps {
14
14
  transformOrigin?: string;
15
15
  };
16
16
  size?: number;
17
- onBulletClick?: (index: number) => void;
18
17
  }
19
- export declare const CustomPagination: ({ current, total, type, offset, size, onBulletClick }: CustomPaginationProps) => JSX.Element;
18
+ export declare const CustomPagination: ({ current, total, type, offset, size, prevBtnDisabled, nextBtnDisabled, onBulletClick, onPrevBtnClick, onNextBtnClick }: CustomPaginationProps & {
19
+ prevBtnDisabled: boolean;
20
+ nextBtnDisabled: boolean;
21
+ onBulletClick: (index: number) => void;
22
+ onPrevBtnClick: () => void;
23
+ onNextBtnClick: () => void;
24
+ }) => JSX.Element;
20
25
  export interface FlexBoxProps {
21
26
  direction?: 'row' | 'column';
22
27
  justifyContent?: string;
@@ -43,45 +43,44 @@ var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var components_1 = require("../../../../../../../../DynamicLayout/components");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
45
  var CustomPagination = function (_a) {
46
- var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, onBulletClick = _a.onBulletClick;
46
+ var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, prevBtnDisabled = _a.prevBtnDisabled, nextBtnDisabled = _a.nextBtnDisabled, onBulletClick = _a.onBulletClick, onPrevBtnClick = _a.onPrevBtnClick, onNextBtnClick = _a.onNextBtnClick;
47
47
  var bullets = Array.from({ length: total }, function (_, i) { return i; });
48
48
  return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), "$offset": offset, "$size": size }, { children: (function () {
49
49
  switch (type) {
50
50
  case 'NONE':
51
- case 'DESIGN1':
52
51
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
53
- case 'DESIGN2':
52
+ case 'DESIGN1':
54
53
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) }))] })));
55
- case 'DESIGN3':
54
+ case 'DESIGN2':
56
55
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: "/ ".concat(total) }))] })));
57
- case 'DESIGN4':
56
+ case 'DESIGN3':
58
57
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
59
- case 'DESIGN5':
58
+ case 'DESIGN4':
60
59
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: total }))] })));
60
+ case 'DESIGN5':
61
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] }));
61
62
  case 'DESIGN6':
62
- return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] }));
63
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 }) }))] }));
63
64
  case 'DESIGN7':
64
- return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] }));
65
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
65
66
  case 'DESIGN8':
66
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] })));
67
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: prevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: nextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 }) }))] })));
67
68
  case 'DESIGN9':
68
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] })));
69
- case 'DESIGN10':
70
69
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
71
- case 'DESIGN11':
70
+ case 'DESIGN10':
72
71
  return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: "DARK" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total }))] })));
72
+ case 'DESIGN11':
73
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
73
74
  case 'DESIGN12':
74
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
75
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
75
76
  case 'DESIGN13':
76
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
77
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
77
78
  case 'DESIGN14':
78
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
79
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
79
80
  case 'DESIGN15':
80
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
81
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
81
82
  case 'DESIGN16':
82
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
83
- case 'DESIGN17':
84
- return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
83
+ return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
85
84
  default:
86
85
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
87
86
  }
@@ -181,5 +180,12 @@ var S_Bar = styled_components_1.default.div(templateObject_15 || (templateObject
181
180
  var color = _a.color;
182
181
  return (color === 'WHITE' ? whiteBullet : darkBullet);
183
182
  });
183
+ var S_Pointer = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"], ["\n cursor: ", ";\n height: 16px;\n opacity: ", ";\n"])), function (_a) {
184
+ var disabled = _a.disabled;
185
+ return (disabled ? 'not-allowed' : 'pointer');
186
+ }, function (_a) {
187
+ var disabled = _a.disabled;
188
+ return (disabled ? 0.4 : 1);
189
+ });
184
190
  exports.default = exports.CustomPagination;
185
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
191
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;