pds-dev-kit-web-test 2.5.498 → 2.5.500

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 (271) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/dist/index.js +3 -6
  3. package/dist/src/common/assets/icons/fill/index.d.ts +0 -1
  4. package/dist/src/common/assets/icons/fill/index.js +0 -2
  5. package/dist/src/common/assets/icons/line/index.d.ts +0 -1
  6. package/dist/src/common/assets/icons/line/index.js +0 -2
  7. package/dist/src/common/hooks/useTooltip.js +1 -1
  8. package/dist/src/common/services/i18n/resources/en.json +1 -44
  9. package/dist/src/common/services/i18n/resources/es.json +1 -43
  10. package/dist/src/common/services/i18n/resources/fil.json +1 -43
  11. package/dist/src/common/services/i18n/resources/index.d.ts +0 -299
  12. package/dist/src/common/services/i18n/resources/ja.json +1 -44
  13. package/dist/src/common/services/i18n/resources/ko.json +1 -44
  14. package/dist/src/common/services/i18n/resources/zh-cn.json +1 -44
  15. package/dist/src/common/services/i18n/resources/zh-tw.json +1 -44
  16. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  17. package/dist/src/common/styles/colorSet/index.js +2 -2
  18. package/dist/src/common/types/components.d.ts +0 -9
  19. package/dist/src/common/types/components.js +0 -8
  20. package/dist/src/common/types/form.d.ts +9 -0
  21. package/dist/src/common/types/form.js +10 -0
  22. package/dist/src/common/types/index.d.ts +1 -1
  23. package/dist/src/common/types/index.js +1 -1
  24. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  25. package/dist/src/common/utils/dateHelper.d.ts +0 -3
  26. package/dist/src/common/utils/dateHelper.js +0 -37
  27. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -2
  28. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +16 -20
  29. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  30. package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.d.ts +2 -5
  31. package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.js +5 -54
  32. package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -2
  33. package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +8 -3
  34. package/dist/src/desktop/components/ChatList/Body.d.ts +1 -1
  35. package/dist/src/desktop/components/index.d.ts +1 -3
  36. package/dist/src/desktop/components/index.js +1 -6
  37. package/dist/src/desktop/index.d.ts +1 -1
  38. package/dist/src/desktop/index.js +2 -4
  39. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +2 -17
  40. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +6 -37
  41. package/dist/src/desktop/panels/index.d.ts +1 -2
  42. package/dist/src/desktop/panels/index.js +1 -6
  43. package/dist/src/hybrid/components/Divider/Divider.d.ts +1 -3
  44. package/dist/src/hybrid/components/Divider/Divider.js +7 -9
  45. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -2
  46. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +16 -20
  47. package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -2
  48. package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +8 -3
  49. package/dist/src/mobile/components/ChatList/Body.d.ts +1 -1
  50. package/dist/src/mobile/components/index.d.ts +1 -2
  51. package/dist/src/mobile/components/index.js +1 -3
  52. package/dist/src/mobile/index.d.ts +1 -1
  53. package/dist/src/mobile/index.js +2 -3
  54. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +22 -0
  55. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
  56. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  57. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
  58. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  59. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  60. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  61. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
  62. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
  63. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  64. package/dist/src/sub/DynamicLayout/DynamicLayout.js +4 -2
  65. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +24 -2
  66. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  67. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
  68. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  69. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  70. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  71. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  72. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  73. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  74. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  75. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  76. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  77. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  78. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  79. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  80. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  81. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  82. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  83. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  84. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  85. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  86. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
  87. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
  88. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
  89. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
  90. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  91. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  92. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  93. package/dist/src/sub/DynamicLayout/mock_componentBlocks.d.ts +911 -0
  94. package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +4238 -0
  95. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  96. package/dist/src/sub/DynamicLayout/mock_composition.js +1607 -0
  97. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
  98. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1111 -0
  99. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
  100. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
  101. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
  102. package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
  103. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
  104. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
  105. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  106. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  107. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -1
  108. package/dist/src/sub/DynamicLayout/mock_video_cb.js +4 -5
  109. package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -961
  110. package/dist/src/sub/DynamicLayout/mocks.js +55 -4239
  111. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +7 -7
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +10 -4
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +134 -3
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +12 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +61 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +15 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +69 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +15 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +69 -0
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +9 -0
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +87 -0
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +39 -0
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +182 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +18 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +229 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +14 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +46 -0
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +139 -0
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +14 -0
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +206 -0
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +10 -0
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +85 -0
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +29 -0
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +128 -0
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +18 -0
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +229 -0
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  152. package/dist/src/{desktop/panels/MultilingualModal → sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList}/index.js +3 -3
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +67 -0
  154. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  155. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
  156. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +14 -0
  157. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +151 -0
  158. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +12 -0
  159. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  160. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +15 -0
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +69 -0
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +15 -0
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +69 -0
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +20 -0
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +173 -0
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +9 -0
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +87 -0
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +18 -0
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +229 -0
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +16 -0
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +63 -0
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  177. package/dist/src/{desktop/components/BoxItem/LeftBox → sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner}/index.js +3 -3
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +46 -0
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +186 -0
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +163 -0
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +49 -8
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/textSpecFormatOptions.d.ts +7 -0
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/textSpecFormatOptions.js +211 -0
  185. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +3 -28
  186. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -1
  187. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +5 -15
  188. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +55 -3
  189. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  190. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  191. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
  192. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
  193. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  194. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  195. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  196. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  197. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  198. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +7 -2
  199. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +10 -5
  200. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  201. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +2 -0
  202. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +53 -3
  203. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  204. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
  205. package/dist/src/sub/DynamicLayout/types.d.ts +64 -17
  206. package/package.json +3 -2
  207. package/release-note.md +2 -2
  208. package/dist/src/common/assets/icons/fill/Translate.d.ts +0 -4
  209. package/dist/src/common/assets/icons/fill/Translate.js +0 -30
  210. package/dist/src/common/assets/icons/line/Translate.d.ts +0 -4
  211. package/dist/src/common/assets/icons/line/Translate.js +0 -30
  212. package/dist/src/common/types/multilingual.d.ts +0 -16
  213. package/dist/src/desktop/components/BoxItem/BoxItem.d.ts +0 -62
  214. package/dist/src/desktop/components/BoxItem/BoxItem.js +0 -104
  215. package/dist/src/desktop/components/BoxItem/LeftBox/Checkbox.d.ts +0 -7
  216. package/dist/src/desktop/components/BoxItem/LeftBox/Checkbox.js +0 -9
  217. package/dist/src/desktop/components/BoxItem/LeftBox/Image.d.ts +0 -11
  218. package/dist/src/desktop/components/BoxItem/LeftBox/Image.js +0 -9
  219. package/dist/src/desktop/components/BoxItem/LeftBox/LeftBox.d.ts +0 -11
  220. package/dist/src/desktop/components/BoxItem/LeftBox/LeftBox.js +0 -36
  221. package/dist/src/desktop/components/BoxItem/LeftBox/index.d.ts +0 -2
  222. package/dist/src/desktop/components/BoxItem/index.d.ts +0 -1
  223. package/dist/src/desktop/components/BoxItem/index.js +0 -8
  224. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +0 -13
  225. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +0 -132
  226. package/dist/src/desktop/components/Calendar/Calendar.d.ts +0 -4
  227. package/dist/src/desktop/components/Calendar/Calendar.js +0 -394
  228. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +0 -7
  229. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +0 -48
  230. package/dist/src/desktop/components/Calendar/DailyView.d.ts +0 -17
  231. package/dist/src/desktop/components/Calendar/DailyView.js +0 -64
  232. package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +0 -29
  233. package/dist/src/desktop/components/Calendar/MonthlyView.js +0 -313
  234. package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.d.ts +0 -20
  235. package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.js +0 -155
  236. package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +0 -17
  237. package/dist/src/desktop/components/Calendar/ScheduleItem.js +0 -56
  238. package/dist/src/desktop/components/Calendar/TimeBasedScheduleItem.d.ts +0 -9
  239. package/dist/src/desktop/components/Calendar/TimeBasedScheduleItem.js +0 -170
  240. package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +0 -21
  241. package/dist/src/desktop/components/Calendar/WeeklyView.js +0 -91
  242. package/dist/src/desktop/components/Calendar/YearlyView.d.ts +0 -12
  243. package/dist/src/desktop/components/Calendar/YearlyView.js +0 -76
  244. package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +0 -24
  245. package/dist/src/desktop/components/Calendar/calendarUtils.js +0 -87
  246. package/dist/src/desktop/components/Calendar/constants.d.ts +0 -1
  247. package/dist/src/desktop/components/Calendar/constants.js +0 -31
  248. package/dist/src/desktop/components/Calendar/index.d.ts +0 -10
  249. package/dist/src/desktop/components/Calendar/index.js +0 -37
  250. package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +0 -16
  251. package/dist/src/desktop/components/Calendar/timeFormatUtils.js +0 -45
  252. package/dist/src/desktop/components/Calendar/types.d.ts +0 -61
  253. package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.d.ts +0 -11
  254. package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.js +0 -198
  255. package/dist/src/desktop/panels/MultilingualModal/index.d.ts +0 -1
  256. package/dist/src/mobile/components/BoxItem/BoxItem.d.ts +0 -62
  257. package/dist/src/mobile/components/BoxItem/BoxItem.js +0 -104
  258. package/dist/src/mobile/components/BoxItem/LeftBox/Checkbox.d.ts +0 -7
  259. package/dist/src/mobile/components/BoxItem/LeftBox/Checkbox.js +0 -9
  260. package/dist/src/mobile/components/BoxItem/LeftBox/Image.d.ts +0 -11
  261. package/dist/src/mobile/components/BoxItem/LeftBox/Image.js +0 -9
  262. package/dist/src/mobile/components/BoxItem/LeftBox/LeftBox.d.ts +0 -11
  263. package/dist/src/mobile/components/BoxItem/LeftBox/LeftBox.js +0 -36
  264. package/dist/src/mobile/components/BoxItem/LeftBox/index.d.ts +0 -2
  265. package/dist/src/mobile/components/BoxItem/LeftBox/index.js +0 -8
  266. package/dist/src/mobile/components/BoxItem/index.d.ts +0 -1
  267. package/dist/src/mobile/components/BoxItem/index.js +0 -8
  268. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  269. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
  270. /package/dist/src/{common/types/multilingual.js → sub/DynamicLayout/compositionActionTypes.js} +0 -0
  271. /package/dist/src/{desktop/components/Calendar → sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel}/types.js +0 -0
@@ -12,13 +12,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.parsePlacement = void 0;
14
14
  var types_1 = require("../types");
15
- function parsePlacement(components, zOrders) {
15
+ function parsePlacement(components, zOrders, placementRestriction) {
16
16
  if (!zOrders) {
17
17
  console.error('Z-ORDER NOT FOUND');
18
18
  }
19
19
  return components.reduce(function (acc, cur) {
20
20
  var id = cur.id, jsonProperties = cur.jsonProperties, componentBlockCode = cur.componentBlockCode;
21
- var _a = parsePropPlacement(jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, id, componentBlockCode, zOrders), mobileLayout = _a.mobileLayout, desktopLayout = _a.desktopLayout;
21
+ var _a = parsePropPlacement(jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, id, componentBlockCode, zOrders, placementRestriction ? placementRestriction[componentBlockCode] : undefined), mobileLayout = _a.mobileLayout, desktopLayout = _a.desktopLayout;
22
22
  return {
23
23
  sm: __spreadArray(__spreadArray([], acc.sm, true), [mobileLayout], false),
24
24
  lg: __spreadArray(__spreadArray([], acc.lg, true), [desktopLayout], false)
@@ -26,7 +26,8 @@ function parsePlacement(components, zOrders) {
26
26
  }, { sm: [], lg: [] });
27
27
  }
28
28
  exports.parsePlacement = parsePlacement;
29
- function parsePropPlacement(props, id, cbCode, zOrders) {
29
+ function parsePropPlacement(props, id, cbCode, zOrders, cbRestriction) {
30
+ var _a, _b, _c, _d;
30
31
  var desktopLayout = {
31
32
  i: id.toString(),
32
33
  x: props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX,
@@ -34,7 +35,9 @@ function parsePropPlacement(props, id, cbCode, zOrders) {
34
35
  w: props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS,
35
36
  h: props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS,
36
37
  z: zOrders.desktop[id],
37
- autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT
38
+ autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT || cbCode === types_1.CB_ALL_CODES.CB_LIST,
39
+ minH: (_a = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.rowHMin) !== null && _a !== void 0 ? _a : 1,
40
+ minW: (_b = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.columnWMin) !== null && _b !== void 0 ? _b : 1
38
41
  };
39
42
  var mobileLayout = {
40
43
  i: id.toString(),
@@ -43,7 +46,9 @@ function parsePropPlacement(props, id, cbCode, zOrders) {
43
46
  w: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'],
44
47
  h: props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'],
45
48
  z: zOrders.mobile[id],
46
- autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT
49
+ autoResize: cbCode === types_1.CB_ALL_CODES.CB_TEXT || cbCode === types_1.CB_ALL_CODES.CB_LIST,
50
+ minH: (_c = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.rowHMin) !== null && _c !== void 0 ? _c : 1,
51
+ minW: (_d = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.mobileColumnWMin) !== null && _d !== void 0 ? _d : 1
47
52
  };
48
53
  return {
49
54
  mobileLayout: mobileLayout,
@@ -1,5 +1,5 @@
1
1
  import { CB_LAYOUT_PROP_KEYS } from './layoutPropParsers/types';
2
2
  import { CB_STYLE_PROP_KEYS } from './stylePropParsers/types';
3
- import type { Device, ParserResult, CB_TEXT_PROPERTIES_TYPE, CB_BTN_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_VIDEOPLAYER_PROPERTIES_TYPE } from './types';
3
+ import type { Device, ParserResult, CB_TEXT_PROPERTIES_TYPE, CB_BTN_PROPERTIES_TYPE, CB_IMG_PROPERTIES_TYPE, CB_TWITTER_PROPERTIES_TYPE, CB_DIVIDER_PROPERTIES_TYPE, CB_YOUTUBE_PROPERTIES_TYPE, CB_RICHTEXT_PROPERTIES_TYPE, CB_EMBED_PROPERTIES_TYPE, CB_LIST_PROPERTIES_TYPE, CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, CB_SLIDEBANNER_PROPERTIES_TYPE, CB_VIDEOPLAYER_PROPERTIES_TYPE } from './types';
4
4
  export type specTypes = CB_LAYOUT_PROP_KEYS | CB_STYLE_PROP_KEYS;
5
- export default function parseProperties(properties: CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE | CB_VIDEOPLAYER_PROPERTIES_TYPE, device: Device): ParserResult;
5
+ export default function parseProperties(properties: CB_TEXT_PROPERTIES_TYPE | CB_BTN_PROPERTIES_TYPE | CB_IMG_PROPERTIES_TYPE | CB_TWITTER_PROPERTIES_TYPE | CB_DIVIDER_PROPERTIES_TYPE | CB_YOUTUBE_PROPERTIES_TYPE | CB_RICHTEXT_PROPERTIES_TYPE | CB_EMBED_PROPERTIES_TYPE | CB_LIST_PROPERTIES_TYPE | CB_CONTENTSCAROUSEL_PROPERTIES_TYPE | CB_SLIDEBANNER_PROPERTIES_TYPE | CB_VIDEOPLAYER_PROPERTIES_TYPE, device: Device): ParserResult;
@@ -87,5 +87,7 @@ function getParsedKey(key) {
87
87
  case "CB_STYLE_PROP_TEXT_SPEC_VERTICAL:MOBILE":
88
88
  case "CB_STYLE_PROP_TEXT_SPEC_VERTICAL:MOBILE:HOVER":
89
89
  return 'VERTICAL';
90
+ default:
91
+ return '';
90
92
  }
91
93
  }
@@ -1,22 +1,31 @@
1
+ import type { CB_STYLE_PROP_CONTENTSCAROUSEL_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsCarousel/types';
2
+ import type { CB_STYLE_PROP_CONTENTSLIST_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsList/types';
3
+ import type { CB_STYLE_PROP_SLIDEBANNER_SPECS } from '../components/ComponentBlock/componentBlocks/SlideBanner/types';
1
4
  import type { CB_TWITTER_STYLE_PROPS } from '../components/ComponentBlock/componentBlocks/Twitter/types';
2
- import type { CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_CONTENT_PROP_VIDEO, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS } from '../components/ComponentBlock/componentBlocks/types';
5
+ import type { CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS, CB_CONTENT_PROP_CONTENTSLIST, CB_CONTENT_PROP_VIDEO } from '../components/ComponentBlock/componentBlocks/types';
3
6
  import type { CB_CONTENT_PROP_YOUTUBE_TYPE, CB_STYLE_PROP_BGCOLOR_SPECS } from '../components/ComponentBlock/componentBlocks/Youtube/types';
4
7
  import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './contentPropParsers/parseContentVisibility';
5
8
  import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './effectPropParsers/parseEffectPropEntAnim';
6
9
  import type { CB_LAYOUT_PROP_ARRANGE_SPECS } from './layoutPropParsers/parseLayoutPropArrange';
7
10
  import type { CB_LAYOUT_PROP_PADDING_SPECS } from './layoutPropParsers/parseLayoutPropPadding';
8
11
  import type { NamedLayoutPropType } from './layoutPropParsers/types';
12
+ import type { CB_STYLE_PROP_BGOVERLAY_SPECS } from './stylePropParsers/parseStylePropBgOverlay';
9
13
  import type { CB_STYLE_PROP_BORDER_SPECS } from './stylePropParsers/parseStylePropBorder';
10
14
  import type { CB_STYLE_PROP_DIVIDER_SPECS } from './stylePropParsers/parseStylePropDivider';
11
15
  import type { CB_STYLE_PROP_IMAGE_SPECS } from './stylePropParsers/parseStylePropImage';
12
16
  import type { CB_STYLE_PROP_TEXT_OPACITY_SPECS } from './stylePropParsers/parseStylePropOpacity';
13
17
  import type { CB_STYLE_PROP_SHADOW_SPECS } from './stylePropParsers/parseStylePropShadow';
14
18
  import type { NamedStylePropType } from './stylePropParsers/types';
19
+ import type { CB_STYLE_PROP_BGMEDIA_SPECS } from '../../../../DynamicLayout/types';
15
20
  import type { CSSProperties } from 'react';
16
21
  export type STRING_PLAIN = string;
17
22
  export type ENUM_STRING = string;
18
23
  export type NUMBER_INTEGER = number;
19
24
  export type STRING_8DIGIT_HEX = string;
25
+ export type CCB_VALUE_TYPE = 'VALUE' | 'DATA';
26
+ export type CB_VALUE_TYPE = 'VALUE' | 'DELEGATEDDATA' | 'QUERYDATA';
27
+ export type COMPOSITION_VALUE_TYPE = 'VALUE' | 'DELEGATEDDATA' | 'QUERYDATA';
28
+ export type SECTION_VALUE_TYPE = 'VALUE' | 'QUERYDATA';
20
29
  export type CB_GENERAL_PROPERTIES_TYPE = {
21
30
  CB_PLACEMENT_PROP_PLACEMENT: CB_PLACEMENT_PROP_SPECS;
22
31
  CB_CONTENT_PROP_HOVER: {
@@ -34,8 +43,6 @@ export type CB_PLACEMENT_PROP_SPECS = {
34
43
  'CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE': number;
35
44
  CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX: number;
36
45
  'CB_PLACEMENT_PROP_PLACEMENT_SPEC_ZINDEX:MOBILE': number;
37
- 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_LATEST_LOCKED_STARTY:MOBILE': number;
38
- 'CB_PLACEMENT_PROP_PLACEMENT_SPEC_LOCKSTATUS:MOBILE': 'LOCKED' | 'FALLBACK_TO_SYNC' | undefined;
39
46
  };
40
47
  export type CB_TEXT_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
41
48
  CB_CONTENT_PROP_TEXT: CB_CONTENT_PROP_TEXT;
@@ -122,6 +129,49 @@ export type CB_YOUTUBE_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
122
129
  CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
123
130
  CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
124
131
  };
132
+ export type CB_CONTENTSCAROUSEL_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
133
+ CB_CONTENT_PROP_CONTENTSCAROUSEL: CB_CONTENT_PROP_CONTENTSCAROUSEL;
134
+ CB_STYLE_PROP_CONTENTSCAROUSEL: CB_STYLE_PROP_CONTENTSCAROUSEL_SPECS;
135
+ CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
136
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
137
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
138
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
139
+ CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
140
+ CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
141
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
142
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
143
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
144
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
145
+ CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
146
+ };
147
+ export type CB_SLIDEBANNER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
148
+ CB_CONTENT_PROP_SLIDEBANNER: CB_CONTENT_PROP_SLIDEBANNER;
149
+ CB_STYLE_PROP_SLIDEBANNER: CB_STYLE_PROP_SLIDEBANNER_SPECS;
150
+ CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
151
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
152
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
153
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
154
+ CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
155
+ CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
156
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
157
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
158
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
159
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
160
+ };
161
+ export type CB_LIST_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
162
+ CB_CONTENT_PROP_CONTENTSLIST: CB_CONTENT_PROP_CONTENTSLIST;
163
+ CB_STYLE_PROP_CONTENTSLIST: CB_STYLE_PROP_CONTENTSLIST_SPECS;
164
+ CB_STYLE_PROP_BORDER: CB_STYLE_PROP_BORDER_SPECS;
165
+ CB_STYLE_PROP_SHADOW: CB_STYLE_PROP_SHADOW_SPECS;
166
+ CB_STYLE_PROP_OPACITY: CB_STYLE_PROP_TEXT_OPACITY_SPECS;
167
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
168
+ CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
169
+ CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
170
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
171
+ CB_LAYOUT_PROP_ARRANGE: CB_LAYOUT_PROP_ARRANGE_SPECS;
172
+ CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
173
+ CB_EFFECT_PROP_ENTANIM: CB_EFFECT_PROP_ENTANIM_SPECS;
174
+ };
125
175
  export type CB_VIDEOPLAYER_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
126
176
  CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
127
177
  CB_CONTENT_PROP_VIDEO: CB_CONTENT_PROP_VIDEO;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ISection } from '../types';
3
- import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
3
+ import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
4
4
  export type LayoutsType = {
5
5
  sm: Layout;
6
6
  lg: Layout;
@@ -176,6 +176,7 @@ var FlexGridCustomSection = (0, react_1.forwardRef)(function CustomSection(props
176
176
  }
177
177
  return 16;
178
178
  }
179
+ // NOTE: Desktop
179
180
  if (responsiveFontMode) {
180
181
  return size.width * 0.0133;
181
182
  }
@@ -1,11 +1,12 @@
1
1
  import type { TypeOfSectionAction } from './sectionActionTypes';
2
- import type { ComponentBlock } from './sections/CustomSection/types';
2
+ import type { CB_ALL_CODES, ComponentBlock } from './sections/CustomSection/types';
3
3
  import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './sections/CustomSection/util/contentPropParsers/parseContentVisibility';
4
4
  import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim';
5
5
  import type { CB_LAYOUT_PROP_PADDING_SPECS } from './sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding';
6
6
  import type { CB_STYLE_PROP_BGCOLOR_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBgColor';
7
7
  import type { CB_STYLE_PROP_BGOVERLAY_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBgOverlay';
8
- import type { Block, ZOrder } from 'publ-echo/dist/lib/GridLayoutEditor/group';
8
+ import type { CCB_VALUE_TYPE, COMPOSITION_VALUE_TYPE } from './sections/CustomSection/util/types';
9
+ import type { Block, ZOrder } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
9
10
  import type { Ref } from 'react';
10
11
  export { TypeOfSectionAction };
11
12
  export type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME' | 'PRG_MEMBERSHIP_DISPLAY' | 'CUSTOM';
@@ -235,6 +236,20 @@ export type DynamicLayoutProps = {
235
236
  shortcutKeyMode?: CustomSectionShortcutKeysType;
236
237
  dynamicLayoutRef?: Ref<CustomSectionImperativeHandleRef>;
237
238
  zoomScale?: number;
239
+ queryData?: QueryData;
240
+ placementRestriction?: PlaceRestrictionType;
241
+ };
242
+ export type PlaceRestrictionValue = {
243
+ columnWInit: number;
244
+ columnWMin: number;
245
+ mobileColumnWMax: number;
246
+ mobileColumnWMin: number;
247
+ rowHInit: number;
248
+ rowHMin: number;
249
+ };
250
+ export type PlaceRestrictionType = Record<CB_ALL_CODES, PlaceRestrictionValue>;
251
+ export type QueryData = {
252
+ [key: string]: Array<Record<string, unknown>>;
238
253
  };
239
254
  export type NavHandlerAction = {
240
255
  openNewTab: boolean;
@@ -344,6 +359,8 @@ export type CB_STYLE_PROP_BGMEDIA_SPECS_BASE = {
344
359
  CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT: string;
345
360
  CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME: number;
346
361
  CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR: string;
362
+ CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE: CCB_VALUE_TYPE | COMPOSITION_VALUE_TYPE;
363
+ CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA: string;
347
364
  };
348
365
  export type CB_STYLE_PROP_BGMEDIA_SPECS = CB_STYLE_PROP_BGMEDIA_SPECS_BASE & {
349
366
  'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME:HOVER': number | null | undefined;
@@ -377,25 +394,19 @@ export type CB_STYLE_PROP_BGMEDIA_SPECS = CB_STYLE_PROP_BGMEDIA_SPECS_BASE & {
377
394
  'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR:HOVER'?: string | null;
378
395
  'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR:MOBILE'?: string | null;
379
396
  'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR:MOBILE:HOVER'?: string | null;
397
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE:HOVER'?: CCB_VALUE_TYPE | null;
398
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE:MOBILE'?: CCB_VALUE_TYPE | null;
399
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_VALUETYPE:MOBILE:HOVER'?: CCB_VALUE_TYPE | null;
400
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA:HOVER'?: string | null;
401
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA:MOBILE'?: string | null;
402
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA:MOBILE:HOVER'?: string | null;
380
403
  };
381
404
  export interface IComposition {
382
405
  id: number;
383
406
  administrativeTitle?: string;
384
- display: boolean;
385
- order: number;
386
- manifest: {
387
- schema: TypeOfSectionManifestSchema;
388
- availableProperties: Array<KeyOfSectionProperties>;
389
- availableStyles: Array<KeyOfSectionStyles>;
390
- availableTemplates: Array<TypeofSectionTemplate>;
391
- } | Record<string, never>;
392
- template: TypeofSectionTemplate;
393
- properties: ISectionProperties;
394
- styles: ISectionStyles;
395
- dynamicLayoutSectionItems: Array<IItem> | null;
407
+ isDefault: boolean;
396
408
  insertedAt: string;
397
409
  updatedAt: string;
398
- type: TypeOfSectionType;
399
410
  program?: 'MEMBERSHIP_DISPLAY';
400
411
  programData?: {
401
412
  mdid: string;
@@ -409,6 +420,42 @@ export interface IComposition {
409
420
  };
410
421
  };
411
422
  };
412
- componentBlocks?: ComponentBlock[];
413
- jsonProperties?: ISectionJsonProperties;
423
+ componentBlocks: ComponentBlock[];
424
+ jsonProperties: ICompositionJsonProperties;
425
+ compositionCode: string;
426
+ compositionTemplateCode: string;
427
+ dynamicLayoutComponentBlockId: number;
414
428
  }
429
+ export type ICompositionJsonProperties = {
430
+ data: {
431
+ CB_CONTENT_PROP_COMPOSITIONSMARTARRANGE: {
432
+ CB_CONTENT_PROP_COMPOSITIONSMARTARRANGE_SPEC_MANUAL: null;
433
+ };
434
+ CB_CONTENT_PROP_HOVER: {
435
+ CB_CONTENT_PROP_HOVER_SPEC_MUSE: boolean;
436
+ };
437
+ CB_LAYOUT_PROP_PADDING: CB_LAYOUT_PROP_PADDING_SPECS;
438
+ CB_PLACEMENT_PROP_COMPOSITION: {
439
+ CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS: number;
440
+ 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE': number | null;
441
+ CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT: number | null;
442
+ 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXHEIGHT:MOBILE': number | null;
443
+ CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH: number | null;
444
+ 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MAXWIDTH:MOBILE': number | null;
445
+ CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT: number | null;
446
+ 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINHEIGHT:MOBILE': number | null;
447
+ CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH: number | null;
448
+ 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_MINWIDTH:MOBILE': number | null;
449
+ CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS: number;
450
+ 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE': number | null;
451
+ };
452
+ CB_STYLE_PROP_BGCOLOR: CB_STYLE_PROP_BGCOLOR_SPECS;
453
+ CB_STYLE_PROP_BGMEDIA: CB_STYLE_PROP_BGMEDIA_SPECS;
454
+ CB_STYLE_PROP_BGOVERLAY: CB_STYLE_PROP_BGOVERLAY_SPECS;
455
+ };
456
+ zOrders: ZOrder;
457
+ pedigree: SectionPedigree;
458
+ currentVersion: string;
459
+ minVersion: string;
460
+ version: string;
461
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.498",
3
+ "version": "2.5.500",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -23,13 +23,14 @@
23
23
  "lottie-react": "^2.3.1",
24
24
  "nuka-carousel": "^4.8.4",
25
25
  "publ-echo": "^0.0.119",
26
+ "publ-echo-test": "^0.0.243",
26
27
  "react-hook-form": "^7.28.1",
27
28
  "react-i18next": "^11.12.0",
28
29
  "react-router-dom": "^5.2.0",
29
30
  "react-scripts": "4.0.3",
30
31
  "smoothscroll-polyfill": "^0.4.4",
31
32
  "styled-components": "^5.2.1",
32
- "swiper": "^8.4.5",
33
+ "swiper": "^9.4.1",
33
34
  "tsc-init": "^2.1.0",
34
35
  "web-vitals": "^1.1.2"
35
36
  },
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.187]
2
+ ## [v2.2.178]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [PDS-1317] BoxItem 컴포넌트 추가
6
+ * [FIX- BGMEDIA 영상fallbackurl적용]
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type IconType from '../IconType';
3
- declare const Translate: ({ color, size, ...rest }: IconType) => JSX.Element;
4
- export default Translate;
@@ -1,30 +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 Translate = function (_a) {
27
- var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
28
- return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M7.097,7.947 C6.356,6.96 5.801,5.917 5.413,4.781 L8.679,4.781 C8.263,6.029 7.742,7.072 7.097,7.947 L7.097,7.947 Z M16.353,12.562 L13.833,12.562 L15.099,8.982 L16.353,12.562 Z M16.608,5.369 L16.497,5.076 L13.666,5.076 L11.391,11.25 C10.424,10.814 9.569,10.32 8.882,9.798 C9.972,8.418 10.808,6.734 11.37,4.781 L13.655,4.781 L13.655,2.413 L8.256,2.413 L8.256,0 L5.743,0 L5.743,2.413 L0.454,2.413 L0.454,4.781 L2.778,4.781 C3.348,6.624 4.211,8.335 5.295,9.767 C4.321,10.562 2.798,11.553 0.706,12.205 L0,12.431 L1.355,14.732 L1.819,14.559 C3.726,13.858 5.579,12.815 7.075,11.604 C7.998,12.353 9.19,13.082 10.491,13.693 L8.813,18.245 L11.805,18.245 L12.945,15.022 L17.221,15.022 L18.363,18.245 L21.389,18.245 L16.608,5.369 Z", transform: "translate(2 2.85)" }) })));
29
- };
30
- exports.default = Translate;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type IconType from '../IconType';
3
- declare const Translate: ({ color, size, ...rest }: IconType) => JSX.Element;
4
- export default Translate;
@@ -1,30 +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 Translate = function (_a) {
27
- var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
28
- return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: color, fillRule: "evenodd", d: "M6.497,8.1963 C5.449,6.9073 4.718,5.5273 4.267,3.9813 L8.624,3.9813 C8.109,5.7143 7.413,7.0933 6.497,8.1963 L6.497,8.1963 Z M14.519,7.4273 L16.317,12.5623 L12.667,12.5623 L14.483,7.4273 L14.519,7.4273 Z M15.634,5.1083 L15.622,5.0763 L13.345,5.0763 L11.021,11.3853 C9.701,10.8303 8.56,10.1643 7.716,9.4583 C8.954,8.0013 9.879,6.1593 10.467,3.9813 L12.655,3.9813 L12.655,2.4133 L7.256,2.4133 L7.256,0.0003 L5.543,0.0003 L5.543,2.4133 L0.254,2.4133 L0.254,3.9813 L2.476,3.9813 C3.068,6.0193 4.025,7.9003 5.247,9.4253 C4.261,10.2833 2.599,11.4483 0.228,12.1863 L8.8817842e-16,12.2593 L0.911,13.8033 L0.932,13.8403 L1.081,13.7843 C3.06,13.0563 4.974,11.9563 6.476,10.6833 C7.479,11.5503 8.867,12.4003 10.394,13.0843 L8.788,17.4453 L10.923,17.4453 L12.062,14.2223 L16.904,14.2223 L18.031,17.4123 L18.043,17.4453 L20.215,17.4453 L15.634,5.1083 Z", transform: "translate(2 3.2)" }) })));
29
- };
30
- exports.default = Translate;
@@ -1,16 +0,0 @@
1
- type LanguageCode = 'en' | 'ko' | 'ja' | 'zh' | 'zh-Hant' | 'fr' | 'de' | 'es' | 'it' | 'pt' | 'ru' | 'vi' | 'th' | 'id' | 'ms' | 'ar' | 'tr' | 'pl' | 'nl' | 'sv' | 'fi' | 'no' | 'da' | 'he' | 'hi' | 'bn' | 'ta' | 'el' | 'cs' | 'ro';
2
- type MultilingualConfig = {
3
- textFieldLineType?: 'single' | 'multi' | 'auto' | 'tinyeditor';
4
- originalText?: string;
5
- initialValues?: {
6
- [key in LanguageCode]?: string;
7
- };
8
- visibleLanguages?: LanguageCode[];
9
- readonlyLanguages?: LanguageCode[];
10
- hiddenInputId: string;
11
- onApply?: (values: {
12
- [key in LanguageCode]?: string;
13
- }) => void;
14
- onTinyEditorAction?: () => void;
15
- };
16
- export type { LanguageCode, MultilingualConfig };
@@ -1,62 +0,0 @@
1
- /// <reference types="react" />
2
- import type { PDSIconType, PDSTextType, UiColors } from '../../../common/types';
3
- type PaddingSpacingType = 'none' | keyof typeof paddingSpacing;
4
- export type BoxItemProps = {
5
- selectionMode?: 'none' | 'use';
6
- state?: 'normal' | 'disabled';
7
- checkboxMode?: 'none' | 'check' | 'indeterminate';
8
- indicatorMode?: 'none' | 'use';
9
- selectState?: 'unselected' | 'selected';
10
- titleText?: PDSTextType;
11
- titleFontSize?: 'subTitleBold' | 'leadParaBold' | 'body2Bold' | 'headingBold';
12
- titleTextLineLimit?: number;
13
- titleTextColorKey?: UiColors;
14
- descText?: PDSTextType;
15
- descTextColorKey?: UiColors;
16
- descLineLimit?: number;
17
- imageMode?: 'use' | 'none';
18
- imageShapeType?: 'round' | 'circular' | 'rectangle';
19
- imageSrc?: string;
20
- imageWidth?: number | 'responsive';
21
- imageRatio?: '16_9' | '4_3' | '1_1';
22
- imageScaleType?: 'none' | 'cover' | 'contain' | 'fill';
23
- chipMode?: 'use' | 'none';
24
- chipText?: PDSTextType;
25
- displayType?: 'none' | 'ibtn_amount1' | 'ibtn_amount2' | 'ibtn_amount3';
26
- iBtn1IconName?: PDSIconType;
27
- iBtn1IconFillType?: 'fill' | 'line';
28
- iBtn1IconColorKey?: UiColors;
29
- iBtn2IconName?: PDSIconType;
30
- iBtn2IconFillType?: 'fill' | 'line';
31
- iBtn2IconColorKey?: UiColors;
32
- iBtn3IconName?: PDSIconType;
33
- iBtn3IconFillType?: 'fill' | 'line';
34
- iBtn3IconColorKey?: UiColors;
35
- paddingTop?: PaddingSpacingType;
36
- paddingRight?: PaddingSpacingType;
37
- paddingBottom?: PaddingSpacingType;
38
- paddingLeft?: PaddingSpacingType;
39
- id: number | string;
40
- onClick?: (id: number | string) => void;
41
- onClickIBtn1?: (id: number | string) => void;
42
- onClickIBtn2?: (id: number | string) => void;
43
- onClickIBtn3?: (id: number | string) => void;
44
- };
45
- declare const paddingSpacing: {
46
- readonly spacing_a: "spacingA";
47
- readonly spacing_b: "spacingB";
48
- readonly spacing_c: "spacingC";
49
- readonly spacing_d: "spacingD";
50
- readonly spacing_e: "spacingE";
51
- readonly spacing_f: "spacingF";
52
- readonly spacing_g: "spacingG";
53
- readonly spacing_h: "spacingH";
54
- readonly spacing_i: "spacingI";
55
- readonly spacing_j: "spacingJ";
56
- readonly spacing_k: "spacingK";
57
- readonly spacing_l: "spacingL";
58
- readonly spacing_m: "spacingM";
59
- readonly spacing_n: "spacingN";
60
- };
61
- declare function BoxItem({ selectionMode, checkboxMode, indicatorMode, state, selectState, titleText, titleFontSize, titleTextLineLimit, titleTextColorKey, descText, descTextColorKey, descLineLimit, imageMode, imageShapeType, imageSrc, imageWidth, imageRatio, imageScaleType, chipMode, chipText, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, iBtn3IconName, iBtn3IconFillType, iBtn3IconColorKey, paddingTop, paddingRight, paddingBottom, paddingLeft, id, onClick, onClickIBtn1, onClickIBtn2, onClickIBtn3 }: BoxItemProps): JSX.Element;
62
- export default BoxItem;
@@ -1,104 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- var jsx_runtime_1 = require("react/jsx-runtime");
22
- var index_1 = require("../../index");
23
- var panels_1 = require("../../panels");
24
- var components_1 = require("../../../hybrid/components");
25
- var styled_components_1 = __importDefault(require("styled-components"));
26
- var Chip_1 = require("../Chip");
27
- var LeftBox_1 = require("./LeftBox");
28
- var paddingSpacing = {
29
- spacing_a: 'spacingA',
30
- spacing_b: 'spacingB',
31
- spacing_c: 'spacingC',
32
- spacing_d: 'spacingD',
33
- spacing_e: 'spacingE',
34
- spacing_f: 'spacingF',
35
- spacing_g: 'spacingG',
36
- spacing_h: 'spacingH',
37
- spacing_i: 'spacingI',
38
- spacing_j: 'spacingJ',
39
- spacing_k: 'spacingK',
40
- spacing_l: 'spacingL',
41
- spacing_m: 'spacingM',
42
- spacing_n: 'spacingN'
43
- };
44
- function BoxItem(_a) {
45
- var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.checkboxMode, checkboxMode = _c === void 0 ? 'none' : _c, _d = _a.indicatorMode, indicatorMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.selectState, selectState = _f === void 0 ? 'unselected' : _f, titleText = _a.titleText, titleFontSize = _a.titleFontSize, _g = _a.titleTextLineLimit, titleTextLineLimit = _g === void 0 ? 2 : _g, _h = _a.titleTextColorKey, titleTextColorKey = _h === void 0 ? 'ui_cpnt_textlabel_sys_primary' : _h, descText = _a.descText, _j = _a.descTextColorKey, descTextColorKey = _j === void 0 ? 'ui_cpnt_textlabel_sys_secondary' : _j, _k = _a.descLineLimit, descLineLimit = _k === void 0 ? 2 : _k, _l = _a.imageMode, imageMode = _l === void 0 ? 'none' : _l, _m = _a.imageShapeType, imageShapeType = _m === void 0 ? 'round' : _m, imageSrc = _a.imageSrc, imageWidth = _a.imageWidth, _o = _a.imageRatio, imageRatio = _o === void 0 ? '1_1' : _o, _p = _a.imageScaleType, imageScaleType = _p === void 0 ? 'cover' : _p, _q = _a.chipMode, chipMode = _q === void 0 ? 'none' : _q, chipText = _a.chipText, _r = _a.displayType, displayType = _r === void 0 ? 'none' : _r, iBtn1IconName = _a.iBtn1IconName, _s = _a.iBtn1IconFillType, iBtn1IconFillType = _s === void 0 ? 'line' : _s, iBtn1IconColorKey = _a.iBtn1IconColorKey, iBtn2IconName = _a.iBtn2IconName, _t = _a.iBtn2IconFillType, iBtn2IconFillType = _t === void 0 ? 'line' : _t, iBtn2IconColorKey = _a.iBtn2IconColorKey, iBtn3IconName = _a.iBtn3IconName, _u = _a.iBtn3IconFillType, iBtn3IconFillType = _u === void 0 ? 'line' : _u, iBtn3IconColorKey = _a.iBtn3IconColorKey, _v = _a.paddingTop, paddingTop = _v === void 0 ? 'spacing_d' : _v, _w = _a.paddingRight, paddingRight = _w === void 0 ? 'spacing_d' : _w, _x = _a.paddingBottom, paddingBottom = _x === void 0 ? 'spacing_d' : _x, _y = _a.paddingLeft, paddingLeft = _y === void 0 ? 'spacing_d' : _y, id = _a.id, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickIBtn3 = _a.onClickIBtn3;
46
- var handleClick = function () {
47
- if (state === 'disabled') {
48
- return;
49
- }
50
- if (onClick) {
51
- onClick(id);
52
- }
53
- };
54
- var handleIBtn1Click = function (e) {
55
- e.stopPropagation();
56
- if (state === 'disabled') {
57
- return;
58
- }
59
- if (onClickIBtn1) {
60
- onClickIBtn1(id);
61
- }
62
- };
63
- var handleIBtn2Click = function (e) {
64
- e.stopPropagation();
65
- if (state === 'disabled') {
66
- return;
67
- }
68
- if (onClickIBtn2) {
69
- onClickIBtn2(id);
70
- }
71
- };
72
- var handleIBtn3Click = function (e) {
73
- e.stopPropagation();
74
- if (state === 'disabled') {
75
- return;
76
- }
77
- if (onClickIBtn3) {
78
- onClickIBtn3(id);
79
- }
80
- };
81
- return ((0, jsx_runtime_1.jsx)(S_BoxItem, __assign({ "x-pds-name": "BoxItem", "x-pds-element-type": "component", "x-pds-device-type": "desktop", onClick: handleClick }, { children: (0, jsx_runtime_1.jsxs)(panels_1.ContentSheet, __assign({ shapeType: "round", radius: 16, width: "100%", height: "responsive", paddingTop: paddingTop, paddingRight: paddingRight, paddingBottom: paddingBottom, paddingLeft: paddingLeft, borderMode: "use", borderColorTheme: state === 'disabled' ? undefined : selectState === 'selected' ? 'blue' : undefined, overrideBorderColorKey: state === 'disabled'
82
- ? 'ui_cpnt_sheet_base'
83
- : selectState === 'selected'
84
- ? undefined
85
- : 'ui_cpnt_sheet_base', borderWidth: selectionMode === 'use' ? 2 : undefined, overrideCSS: {
86
- display: 'flex',
87
- flexDirection: 'row',
88
- alignItems: 'center',
89
- justifyContent: 'space-between',
90
- cursor: state === 'disabled' ? 'default' : selectionMode === 'use' ? 'pointer' : 'default'
91
- } }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftBox, { children: [checkboxMode !== 'none' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox, __assign({ hasRightBox: true }, { children: (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Checkbox, { selected: selectState === 'selected', isIndeterminate: checkboxMode === 'indeterminate' }) }))), imageMode === 'use' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { shape: imageShapeType, src: imageSrc, width: imageWidth, ratio: imageRatio, scaleType: imageScaleType })), (0, jsx_runtime_1.jsxs)(S_TextGroup, { children: [titleText && ((0, jsx_runtime_1.jsx)(index_1.D_TextLabel, { text: titleText, colorOverride: state === 'disabled' ? 'ui_cpnt_textlabel_sys_secondary' : titleTextColorKey, styleTheme: titleFontSize, lineLimit: titleTextLineLimit, ellipsisMode: "use" })), descText && ((0, jsx_runtime_1.jsx)(index_1.D_TextLabel, { text: descText, colorOverride: state === 'disabled' ? 'ui_cpnt_textlabel_sys_secondary' : descTextColorKey, lineLimit: descLineLimit, ellipsisMode: "use", styleTheme: "caption1Regular" }))] })] }), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [chipMode === 'use' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Chip_1.Chip, { text: chipText }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" })] })), (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(index_1.D_IconButton, { iconName: iBtn1IconName || 'ic_arrow_right', baseSize: "medium", fillType: "fill", iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, onClick: handleIBtn1Click, iconSize: 20, state: state, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", shapeType: "rectangle" })), displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(index_1.D_IconButton, { iconName: iBtn1IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, onClick: handleIBtn1Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" }), (0, jsx_runtime_1.jsx)(index_1.D_IconButton, { iconName: iBtn2IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, state: state, onClick: handleIBtn2Click, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" })] })), displayType === 'ibtn_amount3' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(index_1.D_IconButton, { iconName: iBtn1IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, state: state, onClick: handleIBtn1Click, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" }), (0, jsx_runtime_1.jsx)(index_1.D_IconButton, { iconName: iBtn2IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, state: state, onClick: handleIBtn2Click, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" }), (0, jsx_runtime_1.jsx)(index_1.D_IconButton, { iconName: iBtn3IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn3IconFillType, iconColorKey: iBtn3IconColorKey, state: state, onClick: handleIBtn3Click, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" })] }))] }), indicatorMode === 'use' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", fillType: "line", size: 20, colorKey: "ui_cpnt_icon_sys_grey_01" })] }))] })] })) })));
92
- }
93
- var S_BoxItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: row;\n gap: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: row;\n gap: ", ";\n width: 100%;\n"])), function (_a) {
94
- var theme = _a.theme;
95
- return theme.spacing.spacingB;
96
- });
97
- var S_TextGroup = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ", ";\n"], ["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ", ";\n"])), function (_a) {
98
- var theme = _a.theme;
99
- return theme.spacing.spacingA;
100
- });
101
- var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: row;\n"])));
102
- var S_RightBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: row;\n"])));
103
- exports.default = BoxItem;
104
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export type CheckboxPropTypes = {
3
- selected?: boolean;
4
- isIndeterminate?: boolean;
5
- };
6
- declare const Checkbox: React.FC<CheckboxPropTypes>;
7
- export default Checkbox;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var jsx_runtime_1 = require("react/jsx-runtime");
4
- var components_1 = require("../../../../hybrid/components");
5
- var Checkbox = function (_a) {
6
- var selected = _a.selected, isIndeterminate = _a.isIndeterminate;
7
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [selected ? (isIndeterminate ? ((0, jsx_runtime_1.jsx)(components_1.Icon, { size: 20, iconName: "ic_checkbox_indeterminate", colorKey: "ui_cpnt_selcontrols_icon_primary", fillType: "fill" })) : ((0, jsx_runtime_1.jsx)(components_1.Icon, { size: 20, iconName: "ic_checkbox_on", colorKey: "ui_cpnt_selcontrols_icon_primary", fillType: "fill" }))) : ((0, jsx_runtime_1.jsx)(components_1.Icon, { size: 20, iconName: "ic_checkbox_off", colorKey: "ui_cpnt_selcontrols_icon_default", fillType: "line" })), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_c", spacingType: "width" })] }));
8
- };
9
- exports.default = Checkbox;