pds-dev-kit-web-test 2.5.520 → 2.5.522
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.
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -12
- package/dist/src/common/assets/icons/fill/index.d.ts +0 -1
- package/dist/src/common/assets/icons/fill/index.js +0 -2
- package/dist/src/common/assets/icons/line/index.d.ts +0 -1
- package/dist/src/common/assets/icons/line/index.js +0 -2
- package/dist/src/common/hooks/useTooltip.js +1 -1
- package/dist/src/common/index.d.ts +1 -1
- package/dist/src/common/services/i18n/resources/en.json +1 -59
- package/dist/src/common/services/i18n/resources/es.json +1 -59
- package/dist/src/common/services/i18n/resources/fil.json +1 -59
- package/dist/src/common/services/i18n/resources/index.d.ts +0 -406
- package/dist/src/common/services/i18n/resources/ja.json +1 -59
- package/dist/src/common/services/i18n/resources/ko.json +1 -59
- package/dist/src/common/services/i18n/resources/zh-cn.json +1 -59
- package/dist/src/common/services/i18n/resources/zh-tw.json +1 -59
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -4
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -4
- package/dist/src/common/styles/colorSet/UIColor.json +1 -5
- package/dist/src/common/styles/colorSet/index.d.ts +0 -10
- package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -4
- package/dist/src/common/types/components.d.ts +0 -9
- package/dist/src/common/types/components.js +0 -8
- package/dist/src/common/types/form.d.ts +9 -0
- package/dist/src/common/types/form.js +10 -0
- package/dist/src/common/types/index.d.ts +1 -1
- package/dist/src/common/types/index.js +1 -1
- package/dist/src/common/types/text.d.ts +0 -2
- package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
- package/dist/src/common/utils/dateHelper.d.ts +0 -3
- package/dist/src/common/utils/dateHelper.js +0 -37
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -4
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +23 -32
- package/dist/src/desktop/components/AdminList/AdminList.js +11 -5
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.d.ts +2 -6
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.js +6 -67
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.d.ts +1 -6
- package/dist/src/desktop/components/BodyTextGroup/BodyTextGroup.js +2 -70
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -2
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +8 -3
- package/dist/src/desktop/components/ChatList/Body.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +39 -56
- package/dist/src/desktop/components/TextField/TextField.d.ts +1 -2
- package/dist/src/desktop/components/TextField/TextField.js +7 -7
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +3 -3
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +39 -56
- package/dist/src/desktop/components/index.d.ts +1 -6
- package/dist/src/desktop/components/index.js +1 -12
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +2 -7
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +2 -17
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +6 -37
- package/dist/src/desktop/panels/index.d.ts +1 -2
- package/dist/src/desktop/panels/index.js +1 -6
- package/dist/src/hybrid/components/Divider/Divider.d.ts +1 -3
- package/dist/src/hybrid/components/Divider/Divider.js +7 -9
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -3
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +22 -26
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.d.ts +3 -2
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +8 -3
- package/dist/src/mobile/components/ChatList/Body.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +30 -44
- package/dist/src/mobile/components/TextField/TextField.d.ts +1 -2
- package/dist/src/mobile/components/TextField/TextField.js +7 -7
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +3 -3
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +30 -44
- package/dist/src/mobile/components/index.d.ts +1 -5
- package/dist/src/mobile/components/index.js +1 -9
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +2 -6
- package/dist/src/sub/AdminList/AdminList/AdminList.js +11 -8
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +22 -0
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1133 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +5 -3
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +4 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +24 -2
- package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +5 -3
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +9 -2
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
- package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.d.ts +776 -0
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +4236 -0
- package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/mock_composition.js +1607 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1111 -0
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +1091 -0
- package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +96 -0
- package/dist/src/sub/DynamicLayout/mock_queryData.js +2639 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +842 -0
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +854 -0
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
- package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
- package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/mock_video_cb.js +4 -5
- package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -961
- package/dist/src/sub/DynamicLayout/mocks.js +55 -4239
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +7 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +10 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +134 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +61 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +87 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +849 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +162 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +182 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +229 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +139 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +206 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +10 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +85 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +25 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +183 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +29 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +128 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +229 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
- package/dist/src/{desktop/panels/MultilingualModal → sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList}/index.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +67 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +39 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +151 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +12 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +20 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +173 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +87 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +849 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +43 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +162 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +229 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +63 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
- package/dist/src/{desktop/components/Snackbar → sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner}/index.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +186 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +163 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +38 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/textSpecFormatOptions.d.ts +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/textSpecFormatOptions.js +211 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +3 -28
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +5 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +49 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +7 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +10 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.js +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +53 -3
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +64 -17
- package/package.json +3 -2
- package/release-note.md +2 -2
- package/dist/src/common/assets/icons/fill/Translate.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/Translate.js +0 -30
- package/dist/src/common/assets/icons/line/Translate.d.ts +0 -4
- package/dist/src/common/assets/icons/line/Translate.js +0 -30
- package/dist/src/common/types/multilingual.d.ts +0 -16
- package/dist/src/core/pricing/formatter.d.ts +0 -4
- package/dist/src/core/pricing/formatter.js +0 -18
- package/dist/src/core/pricing/index.d.ts +0 -2
- package/dist/src/core/pricing/index.js +0 -18
- package/dist/src/core/pricing/policy.d.ts +0 -26
- package/dist/src/core/pricing/policy.js +0 -98
- package/dist/src/core/pricing/service.d.ts +0 -62
- package/dist/src/core/pricing/service.js +0 -157
- package/dist/src/core/pricing/translator.d.ts +0 -27
- package/dist/src/core/pricing/translator.js +0 -53
- package/dist/src/core/pricing/types.d.ts +0 -19
- package/dist/src/core/pricing/types.js +0 -31
- package/dist/src/core/pricing/validator.d.ts +0 -29
- package/dist/src/core/pricing/validator.js +0 -105
- package/dist/src/desktop/components/BoxItem/BoxItem.d.ts +0 -67
- package/dist/src/desktop/components/BoxItem/BoxItem.js +0 -107
- package/dist/src/desktop/components/BoxItem/LeftBox/Checkbox.d.ts +0 -7
- package/dist/src/desktop/components/BoxItem/LeftBox/Checkbox.js +0 -9
- package/dist/src/desktop/components/BoxItem/LeftBox/Image.d.ts +0 -11
- package/dist/src/desktop/components/BoxItem/LeftBox/Image.js +0 -9
- package/dist/src/desktop/components/BoxItem/LeftBox/LeftBox.d.ts +0 -11
- package/dist/src/desktop/components/BoxItem/LeftBox/LeftBox.js +0 -36
- package/dist/src/desktop/components/BoxItem/LeftBox/index.d.ts +0 -2
- package/dist/src/desktop/components/BoxItem/LeftBox/index.js +0 -8
- package/dist/src/desktop/components/BoxItem/index.d.ts +0 -1
- package/dist/src/desktop/components/BoxItem/index.js +0 -8
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +0 -13
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +0 -132
- package/dist/src/desktop/components/Calendar/Calendar.d.ts +0 -4
- package/dist/src/desktop/components/Calendar/Calendar.js +0 -397
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +0 -7
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +0 -48
- package/dist/src/desktop/components/Calendar/DailyView.d.ts +0 -19
- package/dist/src/desktop/components/Calendar/DailyView.js +0 -90
- package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +0 -29
- package/dist/src/desktop/components/Calendar/MonthlyView.js +0 -314
- package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.d.ts +0 -20
- package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.js +0 -155
- package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +0 -17
- package/dist/src/desktop/components/Calendar/ScheduleItem.js +0 -56
- package/dist/src/desktop/components/Calendar/TimeBasedScheduleItem.d.ts +0 -12
- package/dist/src/desktop/components/Calendar/TimeBasedScheduleItem.js +0 -184
- package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +0 -24
- package/dist/src/desktop/components/Calendar/WeeklyView.js +0 -118
- package/dist/src/desktop/components/Calendar/YearlyView.d.ts +0 -12
- package/dist/src/desktop/components/Calendar/YearlyView.js +0 -76
- package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +0 -24
- package/dist/src/desktop/components/Calendar/calendarUtils.js +0 -87
- package/dist/src/desktop/components/Calendar/constants.d.ts +0 -1
- package/dist/src/desktop/components/Calendar/constants.js +0 -31
- package/dist/src/desktop/components/Calendar/index.d.ts +0 -10
- package/dist/src/desktop/components/Calendar/index.js +0 -37
- package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +0 -16
- package/dist/src/desktop/components/Calendar/timeFormatUtils.js +0 -45
- package/dist/src/desktop/components/Calendar/types.d.ts +0 -61
- package/dist/src/desktop/components/PriceTextField/PriceTextField.d.ts +0 -42
- package/dist/src/desktop/components/PriceTextField/PriceTextField.js +0 -583
- package/dist/src/desktop/components/PriceTextField/index.d.ts +0 -1
- package/dist/src/desktop/components/PriceTextField/index.js +0 -8
- package/dist/src/desktop/components/PriceTextLabel/PriceTextLabel.d.ts +0 -14
- package/dist/src/desktop/components/PriceTextLabel/PriceTextLabel.js +0 -47
- package/dist/src/desktop/components/PriceTextLabel/index.d.ts +0 -1
- package/dist/src/desktop/components/PriceTextLabel/index.js +0 -8
- package/dist/src/desktop/components/Snackbar/Snackbar.d.ts +0 -17
- package/dist/src/desktop/components/Snackbar/Snackbar.js +0 -221
- package/dist/src/desktop/components/Snackbar/index.d.ts +0 -1
- package/dist/src/desktop/components/Snackbar/provider.d.ts +0 -11
- package/dist/src/desktop/components/Snackbar/provider.js +0 -43
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.d.ts +0 -11
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.js +0 -199
- package/dist/src/desktop/panels/MultilingualModal/index.d.ts +0 -1
- package/dist/src/mobile/components/BoxItem/BoxItem.d.ts +0 -67
- package/dist/src/mobile/components/BoxItem/BoxItem.js +0 -106
- package/dist/src/mobile/components/BoxItem/LeftBox/Checkbox.d.ts +0 -7
- package/dist/src/mobile/components/BoxItem/LeftBox/Checkbox.js +0 -9
- package/dist/src/mobile/components/BoxItem/LeftBox/Image.d.ts +0 -11
- package/dist/src/mobile/components/BoxItem/LeftBox/Image.js +0 -9
- package/dist/src/mobile/components/BoxItem/LeftBox/LeftBox.d.ts +0 -11
- package/dist/src/mobile/components/BoxItem/LeftBox/LeftBox.js +0 -36
- package/dist/src/mobile/components/BoxItem/LeftBox/index.d.ts +0 -2
- package/dist/src/mobile/components/BoxItem/LeftBox/index.js +0 -8
- package/dist/src/mobile/components/BoxItem/index.d.ts +0 -1
- package/dist/src/mobile/components/BoxItem/index.js +0 -8
- package/dist/src/mobile/components/PriceTextField/PriceTextField.d.ts +0 -41
- package/dist/src/mobile/components/PriceTextField/PriceTextField.js +0 -570
- package/dist/src/mobile/components/PriceTextField/index.d.ts +0 -1
- package/dist/src/mobile/components/PriceTextField/index.js +0 -8
- package/dist/src/mobile/components/PriceTextLabel/PriceTextLabel.d.ts +0 -14
- package/dist/src/mobile/components/PriceTextLabel/PriceTextLabel.js +0 -47
- package/dist/src/mobile/components/PriceTextLabel/index.d.ts +0 -1
- package/dist/src/mobile/components/PriceTextLabel/index.js +0 -8
- package/dist/src/mobile/components/Snackbar/Snackbar.d.ts +0 -17
- package/dist/src/mobile/components/Snackbar/Snackbar.js +0 -221
- package/dist/src/mobile/components/Snackbar/index.d.ts +0 -1
- package/dist/src/mobile/components/Snackbar/index.js +0 -8
- package/dist/src/mobile/components/Snackbar/provider.d.ts +0 -11
- package/dist/src/mobile/components/Snackbar/provider.js +0 -43
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
- /package/dist/src/{common/types/multilingual.js → sub/DynamicLayout/compositionActionTypes.js} +0 -0
- /package/dist/src/{desktop/components/Calendar → sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel}/types.js +0 -0
|
@@ -1,314 +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
|
-
exports.MonthlyView = void 0;
|
|
22
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
-
var react_1 = require("react");
|
|
24
|
-
var react_i18next_1 = require("react-i18next");
|
|
25
|
-
var dateHelper_1 = require("../../../common/utils/dateHelper");
|
|
26
|
-
var components_1 = require("../../../hybrid/components");
|
|
27
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
28
|
-
var TextLabel_1 = require("../TextLabel");
|
|
29
|
-
var calendarUtils_1 = require("./calendarUtils");
|
|
30
|
-
var MultiWeekSchedulesLayer_1 = require("./MultiWeekSchedulesLayer");
|
|
31
|
-
var MonthlyView = function (_a) {
|
|
32
|
-
var getDayTextByDate = _a.getDayTextByDate, startOfWeek = _a.startOfWeek, selectedDate = _a.selectedDate, selectedDates = _a.selectedDates, selectedSchedules = _a.selectedSchedules, dragStartDate = _a.dragStartDate, dragEndDate = _a.dragEndDate, isDragOverDate = _a.isDragOverDate, schedules = _a.schedules, getSchedulesForDate = _a.getSchedulesForDate, isToday = _a.isToday, isPastDate = _a.isPastDate, handleDateClick = _a.handleDateClick, handleScheduleClick = _a.handleScheduleClick, handleMouseUp = _a.handleMouseUp, handleDateDragOver = _a.handleDateDragOver, handleDateDragLeave = _a.handleDateDragLeave, handleDateDrop = _a.handleDateDrop, renderScheduleItem = _a.renderScheduleItem, handleScheduleDragStart = _a.handleScheduleDragStart, handleScheduleDragEnd = _a.handleScheduleDragEnd, _b = _a.isDraggable, isDraggable = _b === void 0 ? false : _b, onSwitchToWeeklyView = _a.onSwitchToWeeklyView;
|
|
33
|
-
var t = (0, react_i18next_1.useTranslation)().t;
|
|
34
|
-
var calendarCellRef = (0, react_1.useRef)(null);
|
|
35
|
-
var _c = (0, react_1.useState)(3), maxSchedulesPerDay = _c[0], setMaxSchedulesPerDay = _c[1];
|
|
36
|
-
var days = (function () {
|
|
37
|
-
var monthDate = new Date(selectedDate.getFullYear(), selectedDate.getMonth(), 1);
|
|
38
|
-
return dateHelper_1.DateHelper.getCalendarDatesForCalendar(monthDate, startOfWeek);
|
|
39
|
-
})();
|
|
40
|
-
// 셀 높이 기반으로 최대 스케줄 개수 계산
|
|
41
|
-
var calculateMaxSchedules = (0, react_1.useCallback)(function () {
|
|
42
|
-
if (!calendarCellRef.current)
|
|
43
|
-
return;
|
|
44
|
-
var cellHeight = calendarCellRef.current.clientHeight;
|
|
45
|
-
var dateLabelHeight = 20; // 날짜 텍스트 영역
|
|
46
|
-
var cellPadding = 8; // 상하 패딩 (4px * 2)
|
|
47
|
-
var scheduleItemHeight = 20; // 스케줄 아이템 대략 높이
|
|
48
|
-
var moreTextHeight = 16; // "더보기" 텍스트 높이
|
|
49
|
-
var availableHeight = cellHeight - dateLabelHeight - cellPadding;
|
|
50
|
-
var maxSchedulesWithMore = Math.floor((availableHeight - moreTextHeight) / scheduleItemHeight);
|
|
51
|
-
// 최소 1개는 보여주되, 더보기를 고려한 개수로 설정
|
|
52
|
-
var calculatedMax = Math.max(1, maxSchedulesWithMore);
|
|
53
|
-
setMaxSchedulesPerDay(calculatedMax);
|
|
54
|
-
}, []);
|
|
55
|
-
// ResizeObserver로 크기 변경 감지
|
|
56
|
-
(0, react_1.useLayoutEffect)(function () {
|
|
57
|
-
if (!calendarCellRef.current)
|
|
58
|
-
return;
|
|
59
|
-
var resizeObserver = new ResizeObserver(function () {
|
|
60
|
-
calculateMaxSchedules();
|
|
61
|
-
});
|
|
62
|
-
resizeObserver.observe(calendarCellRef.current);
|
|
63
|
-
// 초기 계산
|
|
64
|
-
calculateMaxSchedules();
|
|
65
|
-
return function () {
|
|
66
|
-
resizeObserver.disconnect();
|
|
67
|
-
};
|
|
68
|
-
}, [calculateMaxSchedules]);
|
|
69
|
-
// 창 크기 변경 시에도 재계산
|
|
70
|
-
(0, react_1.useLayoutEffect)(function () {
|
|
71
|
-
var handleResize = function () {
|
|
72
|
-
setTimeout(calculateMaxSchedules, 0);
|
|
73
|
-
};
|
|
74
|
-
window.addEventListener('resize', handleResize);
|
|
75
|
-
return function () { return window.removeEventListener('resize', handleResize); };
|
|
76
|
-
}, [calculateMaxSchedules]);
|
|
77
|
-
// 다중 이벤트 계산
|
|
78
|
-
var getMultiWeekSchedules = (0, react_1.useMemo)(function () {
|
|
79
|
-
var multiWeekSchedules = [];
|
|
80
|
-
var allSchedules = new Map();
|
|
81
|
-
var processedScheduleIds = new Set();
|
|
82
|
-
// 캘린더에 표시되는 전체 날짜 범위 계산
|
|
83
|
-
var calendarStart = new Date(days[0]);
|
|
84
|
-
var calendarEnd = new Date(days[days.length - 1]);
|
|
85
|
-
calendarStart.setHours(0, 0, 0, 0);
|
|
86
|
-
calendarEnd.setHours(0, 0, 0, 0);
|
|
87
|
-
days.forEach(function (date) {
|
|
88
|
-
var schedulesForDate = getSchedulesForDate(date);
|
|
89
|
-
schedulesForDate.forEach(function (schedule) {
|
|
90
|
-
// 이미 처리된 이벤트는 건너뛰기
|
|
91
|
-
if (processedScheduleIds.has(schedule.id)) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
var scheduleStart = new Date(schedule.startDate);
|
|
95
|
-
var scheduleEnd = new Date(schedule.endDate);
|
|
96
|
-
scheduleStart.setHours(0, 0, 0, 0);
|
|
97
|
-
scheduleEnd.setHours(0, 0, 0, 0);
|
|
98
|
-
// All day 이벤트이거나 다중 날짜 이벤트인지 확인
|
|
99
|
-
var isAllDay = (0, calendarUtils_1.calculateIsAllDay)(new Date(schedule.startDate), new Date(schedule.endDate));
|
|
100
|
-
var isMultiDay = scheduleStart.getTime() !== scheduleEnd.getTime();
|
|
101
|
-
if (isAllDay || isMultiDay) {
|
|
102
|
-
// 이벤트가 현재 캘린더 범위와 교차하는지 확인
|
|
103
|
-
var isIntersecting = !(scheduleEnd.getTime() < calendarStart.getTime() ||
|
|
104
|
-
scheduleStart.getTime() > calendarEnd.getTime());
|
|
105
|
-
if (isIntersecting) {
|
|
106
|
-
allSchedules.set(schedule.id, schedule);
|
|
107
|
-
processedScheduleIds.add(schedule.id);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
allSchedules.forEach(function (schedule) {
|
|
113
|
-
var scheduleStart = new Date(schedule.startDate);
|
|
114
|
-
var scheduleEnd = new Date(schedule.endDate);
|
|
115
|
-
scheduleStart.setHours(0, 0, 0, 0);
|
|
116
|
-
scheduleEnd.setHours(0, 0, 0, 0);
|
|
117
|
-
// 여러 날짜에 걸친 이벤트인지 확인
|
|
118
|
-
if (scheduleStart.getTime() !== scheduleEnd.getTime()) {
|
|
119
|
-
// 캘린더 범위 내에서 표시할 실제 시작/끝 날짜 계산
|
|
120
|
-
var displayStart_1 = new Date(Math.max(scheduleStart.getTime(), calendarStart.getTime()));
|
|
121
|
-
var displayEnd_1 = new Date(Math.min(scheduleEnd.getTime(), calendarEnd.getTime()));
|
|
122
|
-
// 캘린더 그리드에서 시작과 끝 위치 찾기
|
|
123
|
-
var startIndex = days.findIndex(function (date) {
|
|
124
|
-
var d = new Date(date);
|
|
125
|
-
d.setHours(0, 0, 0, 0);
|
|
126
|
-
return d.getTime() === displayStart_1.getTime();
|
|
127
|
-
});
|
|
128
|
-
var endIndex = days.findIndex(function (date) {
|
|
129
|
-
var d = new Date(date);
|
|
130
|
-
d.setHours(0, 0, 0, 0);
|
|
131
|
-
return d.getTime() === displayEnd_1.getTime();
|
|
132
|
-
});
|
|
133
|
-
if (startIndex !== -1 && endIndex !== -1) {
|
|
134
|
-
var startRow = Math.floor(startIndex / 7) + 2;
|
|
135
|
-
var endRow = Math.floor(endIndex / 7) + 2;
|
|
136
|
-
var _loop_1 = function (row) {
|
|
137
|
-
var isFirstRow = row === startRow;
|
|
138
|
-
var isLastRow = row === endRow;
|
|
139
|
-
// 각 행에서의 시작/끝 컬럼 계산
|
|
140
|
-
var segmentStartCol = void 0;
|
|
141
|
-
var segmentEndCol = void 0;
|
|
142
|
-
if (isFirstRow && isLastRow) {
|
|
143
|
-
// 같은 행 내의 이벤트
|
|
144
|
-
segmentStartCol = (startIndex % 7) + 1;
|
|
145
|
-
segmentEndCol = (endIndex % 7) + 1;
|
|
146
|
-
}
|
|
147
|
-
else if (isFirstRow) {
|
|
148
|
-
// 첫 번째 행: 시작 컬럼부터 주 끝까지
|
|
149
|
-
segmentStartCol = (startIndex % 7) + 1;
|
|
150
|
-
segmentEndCol = 7;
|
|
151
|
-
}
|
|
152
|
-
else if (isLastRow) {
|
|
153
|
-
// 마지막 행: 주 시작부터 끝 컬럼까지
|
|
154
|
-
segmentStartCol = 1;
|
|
155
|
-
segmentEndCol = (endIndex % 7) + 1;
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
// 중간 행: 주 전체
|
|
159
|
-
segmentStartCol = 1;
|
|
160
|
-
segmentEndCol = 7;
|
|
161
|
-
}
|
|
162
|
-
// 같은 행의 기존 이벤트 개수 계산
|
|
163
|
-
var existingSchedulesInRow = multiWeekSchedules.filter(function (e) { return e.startRow === row; }).length;
|
|
164
|
-
multiWeekSchedules.push({
|
|
165
|
-
schedule: schedule,
|
|
166
|
-
startRow: row,
|
|
167
|
-
endRow: row,
|
|
168
|
-
startCol: segmentStartCol,
|
|
169
|
-
endCol: segmentEndCol,
|
|
170
|
-
scheduleIndex: existingSchedulesInRow
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
// 여러 주에 걸친 경우 각 주별로 분할해서 처리
|
|
174
|
-
for (var row = startRow; row <= endRow; row += 1) {
|
|
175
|
-
_loop_1(row);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
return multiWeekSchedules;
|
|
181
|
-
}, [days, getSchedulesForDate, schedules]);
|
|
182
|
-
// 각 날짜별 다중 날짜 이벤트 개수 계산
|
|
183
|
-
var getMultiWeekSchedulesCountForDate = (0, react_1.useMemo)(function () {
|
|
184
|
-
var countMap = new Map();
|
|
185
|
-
days.forEach(function (date, index) {
|
|
186
|
-
var dateKey = date.toDateString();
|
|
187
|
-
var row = Math.floor(index / 7) + 2; // 헤더 고려
|
|
188
|
-
var col = (index % 7) + 1;
|
|
189
|
-
// 해당 날짜에 영향을 주는 다중 주 이벤트 개수 계산
|
|
190
|
-
var affectingSchedules = getMultiWeekSchedules.filter(function (schedule) {
|
|
191
|
-
var startRow = schedule.startRow, endRow = schedule.endRow, startCol = schedule.startCol, endCol = schedule.endCol;
|
|
192
|
-
// 같은 행에 있고, 컬럼 범위에 포함되는 경우
|
|
193
|
-
if (row >= startRow && row <= endRow) {
|
|
194
|
-
if (startRow === endRow) {
|
|
195
|
-
// 같은 행 내에서 컬럼 범위 체크
|
|
196
|
-
return col >= startCol && col <= endCol;
|
|
197
|
-
}
|
|
198
|
-
// 여러 행에 걸친 경우
|
|
199
|
-
if (row === startRow) {
|
|
200
|
-
return col >= startCol;
|
|
201
|
-
}
|
|
202
|
-
if (row === endRow) {
|
|
203
|
-
return col <= endCol;
|
|
204
|
-
}
|
|
205
|
-
return true; // 중간 행
|
|
206
|
-
}
|
|
207
|
-
return false;
|
|
208
|
-
});
|
|
209
|
-
countMap.set(dateKey, affectingSchedules.length);
|
|
210
|
-
});
|
|
211
|
-
return countMap;
|
|
212
|
-
}, [days, getMultiWeekSchedules]);
|
|
213
|
-
// 시작 요일에 따라 정렬된 요일 헤더 생성
|
|
214
|
-
var orderedDayTexts = (function () {
|
|
215
|
-
var weekDates = [];
|
|
216
|
-
var today = new Date();
|
|
217
|
-
var startIndex = startOfWeek === 'monday' ? 1 : 0;
|
|
218
|
-
var firstDayOfWeek = new Date(today);
|
|
219
|
-
firstDayOfWeek.setDate(today.getDate() - ((today.getDay() - startIndex + 7) % 7));
|
|
220
|
-
for (var i = 0; i < 7; i += 1) {
|
|
221
|
-
var date = new Date(firstDayOfWeek);
|
|
222
|
-
date.setDate(firstDayOfWeek.getDate() + i);
|
|
223
|
-
weekDates.push(getDayTextByDate(date));
|
|
224
|
-
}
|
|
225
|
-
return weekDates;
|
|
226
|
-
})();
|
|
227
|
-
return ((0, jsx_runtime_1.jsxs)(S_MonthlyGrid, __assign({ "data-calendar-grid": true }, { children: [orderedDayTexts.map(function (day, index) { return ((0, jsx_runtime_1.jsx)(S_DayHeader, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption2Bold", textAlign: "center", colorTheme: "sysTextSecondary", text: day }) }, "".concat(day, "-").concat(index))); }), days.map(function (date, index) {
|
|
228
|
-
var daySchedules = getSchedulesForDate(date);
|
|
229
|
-
var multiWeekSchedulesCount = getMultiWeekSchedulesCountForDate.get(date.toDateString()) || 0;
|
|
230
|
-
// 다중 날짜 이벤트를 제외한 이벤트들 (종일 이벤트 + 단일 날짜 시간 이벤트)
|
|
231
|
-
var visibleSchedules = daySchedules.filter(function (schedule) {
|
|
232
|
-
var scheduleStart = new Date(schedule.startDate);
|
|
233
|
-
var scheduleEnd = new Date(schedule.endDate);
|
|
234
|
-
var checkDate = new Date(date);
|
|
235
|
-
// 날짜 비교를 위해 시간을 00:00:00으로 설정
|
|
236
|
-
scheduleStart.setHours(0, 0, 0, 0);
|
|
237
|
-
scheduleEnd.setHours(0, 0, 0, 0);
|
|
238
|
-
checkDate.setHours(0, 0, 0, 0);
|
|
239
|
-
// 다중 날짜 이벤트가 아닌 경우만 포함 (단일 날짜 종일/시간 이벤트)
|
|
240
|
-
if (scheduleStart.getTime() !== scheduleEnd.getTime()) {
|
|
241
|
-
return false; // 다중 날짜 이벤트 제외
|
|
242
|
-
}
|
|
243
|
-
// 해당 날짜의 이벤트인 경우만 포함
|
|
244
|
-
return scheduleStart.getTime() === checkDate.getTime();
|
|
245
|
-
});
|
|
246
|
-
// 이벤트를 시작 시간순으로 정렬
|
|
247
|
-
visibleSchedules.sort(function (a, b) {
|
|
248
|
-
var timeA = new Date(a.startDate).getTime();
|
|
249
|
-
var timeB = new Date(b.startDate).getTime();
|
|
250
|
-
return timeA - timeB;
|
|
251
|
-
});
|
|
252
|
-
// 표시 가능한 최대 이벤트 개수 (다중 날짜 이벤트 공간 고려)
|
|
253
|
-
var maxDisplayableEvents = Math.max(0, maxSchedulesPerDay - multiWeekSchedulesCount);
|
|
254
|
-
var displayedSchedules = visibleSchedules.slice(0, maxDisplayableEvents);
|
|
255
|
-
var hiddenSchedulesCount = visibleSchedules.length - displayedSchedules.length;
|
|
256
|
-
return ((0, jsx_runtime_1.jsxs)(S_CalendarCell, __assign({ ref: date.getMonth() === selectedDate.getMonth() && date.getDate() === 1
|
|
257
|
-
? calendarCellRef
|
|
258
|
-
: undefined, "data-calendar-cell": true, "$isCurrentMonth": date.getMonth() === selectedDate.getMonth(), "$isToday": isToday(date), "$isSelected": selectedDates.some(function (selectedDate) { return selectedDate.toDateString() === date.toDateString(); }) ||
|
|
259
|
-
!!(dragStartDate &&
|
|
260
|
-
dragEndDate &&
|
|
261
|
-
date.getTime() >= Math.min(dragStartDate.getTime(), dragEndDate.getTime()) &&
|
|
262
|
-
date.getTime() <= Math.max(dragStartDate.getTime(), dragEndDate.getTime())), "$isPast": isPastDate(date), "$isDragOver": (isDragOverDate === null || isDragOverDate === void 0 ? void 0 : isDragOverDate.toDateString()) === date.toDateString(), onClick: function (e) { return handleDateClick(date, e); }, onMouseUp: handleMouseUp, onDragOver: function (e) { return handleDateDragOver(date, e); }, onDragLeave: handleDateDragLeave, onDrop: function (e) { return handleDateDrop(date, e); } }, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: isToday(date) ? 'caption2Bold' : 'caption2Regular', textAlign: "center", colorTheme: isToday(date) ? 'sysTextBrandPrimary' : 'sysTextSecondary', text: date.getDate().toString() }), (0, jsx_runtime_1.jsxs)(S_SchedulesContainer, __assign({ "$multiWeekSchedulesCount": multiWeekSchedulesCount }, { children: [displayedSchedules.map(function (schedule) {
|
|
263
|
-
return renderScheduleItem(schedule, {
|
|
264
|
-
onDragStart: function (e) { return handleScheduleDragStart === null || handleScheduleDragStart === void 0 ? void 0 : handleScheduleDragStart(schedule, e); },
|
|
265
|
-
onDragEnd: function () { return handleScheduleDragEnd === null || handleScheduleDragEnd === void 0 ? void 0 : handleScheduleDragEnd(); }
|
|
266
|
-
});
|
|
267
|
-
}), hiddenSchedulesCount > 0 && ((0, jsx_runtime_1.jsxs)(S_MoreSchedulesButton, __assign({ onClick: function (e) {
|
|
268
|
-
e.stopPropagation();
|
|
269
|
-
onSwitchToWeeklyView === null || onSwitchToWeeklyView === void 0 ? void 0 : onSwitchToWeeklyView(date);
|
|
270
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: t('str_calendar_schedule_more', { count: hiddenSchedulesCount }), styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" })] })))] }))] }), index));
|
|
271
|
-
}), (0, jsx_runtime_1.jsx)(MultiWeekSchedulesLayer_1.MultiWeekSchedulesLayer, { multiWeekSchedules: getMultiWeekSchedules, selectedSchedules: selectedSchedules, handleScheduleClick: handleScheduleClick, handleScheduleDragStart: handleScheduleDragStart, handleScheduleDragEnd: handleScheduleDragEnd, isDraggable: isDraggable })] })));
|
|
272
|
-
};
|
|
273
|
-
exports.MonthlyView = MonthlyView;
|
|
274
|
-
var S_MonthlyGrid = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n gap: 0;\n grid-template-columns: repeat(7, 1fr);\n grid-template-rows: auto repeat(6, 1fr); /* \uD5E4\uB354\uB294 auto, \uB098\uBA38\uC9C0 6\uC8FC\uB294 \uB3D9\uC77C\uD55C \uB192\uC774 */\n height: 100%; /* \uC140 \uAC04\uACA9\uC744 \uC81C\uAC70\uD558\uC5EC \uC774\uBCA4\uD2B8\uAC00 \uC5F0\uACB0\uB418\uC5B4 \uBCF4\uC774\uB3C4\uB85D */\n overflow-x: hidden; /* \uADF8\uB9AC\uB4DC \uACBD\uACC4\uB97C \uB118\uB294 \uC694\uC18C\uB97C \uC228\uAE40 */\n position: relative;\n"], ["\n display: grid;\n gap: 0;\n grid-template-columns: repeat(7, 1fr);\n grid-template-rows: auto repeat(6, 1fr); /* \uD5E4\uB354\uB294 auto, \uB098\uBA38\uC9C0 6\uC8FC\uB294 \uB3D9\uC77C\uD55C \uB192\uC774 */\n height: 100%; /* \uC140 \uAC04\uACA9\uC744 \uC81C\uAC70\uD558\uC5EC \uC774\uBCA4\uD2B8\uAC00 \uC5F0\uACB0\uB418\uC5B4 \uBCF4\uC774\uB3C4\uB85D */\n overflow-x: hidden; /* \uADF8\uB9AC\uB4DC \uACBD\uACC4\uB97C \uB118\uB294 \uC694\uC18C\uB97C \uC228\uAE40 */\n position: relative;\n"])));
|
|
275
|
-
var S_DayHeader = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-bottom: 1px solid ", ";\n padding: 12px 8px;\n text-align: center;\n"], ["\n border-bottom: 1px solid ", ";\n padding: 12px 8px;\n text-align: center;\n"])), function (_a) {
|
|
276
|
-
var theme = _a.theme;
|
|
277
|
-
return theme.ui_cpnt_divider;
|
|
278
|
-
});
|
|
279
|
-
var S_CalendarCell = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n border-right: 1px solid ", ";\n min-height: 80px;\n min-width: 0;\n overflow: hidden;\n padding: 4px;\n position: relative;\n transition: background-color 0.2s;\n\n &:hover {\n background-color: ", ";\n }\n\n &:nth-child(7n + 1) {\n border-left: 1px solid ", ";\n }\n\n &:nth-child(-n + 7) {\n border-top: 1px solid ", ";\n }\n"], ["\n background-color: ", ";\n border-bottom: 1px solid ", ";\n border-right: 1px solid ", ";\n min-height: 80px;\n min-width: 0;\n overflow: hidden;\n padding: 4px;\n position: relative;\n transition: background-color 0.2s;\n\n &:hover {\n background-color: ", ";\n }\n\n &:nth-child(7n + 1) {\n border-left: 1px solid ", ";\n }\n\n &:nth-child(-n + 7) {\n border-top: 1px solid ", ";\n }\n"])), function (_a) {
|
|
280
|
-
var $isSelected = _a.$isSelected, theme = _a.theme;
|
|
281
|
-
if ($isSelected)
|
|
282
|
-
return theme.ui_cpnt_sheet_base;
|
|
283
|
-
return 'transparent';
|
|
284
|
-
}, function (_a) {
|
|
285
|
-
var theme = _a.theme;
|
|
286
|
-
return theme.ui_cpnt_divider;
|
|
287
|
-
}, function (_a) {
|
|
288
|
-
var theme = _a.theme;
|
|
289
|
-
return theme.ui_cpnt_divider;
|
|
290
|
-
}, function (_a) {
|
|
291
|
-
var theme = _a.theme;
|
|
292
|
-
return theme.ui_cpnt_sheet_base;
|
|
293
|
-
}, function (_a) {
|
|
294
|
-
var theme = _a.theme;
|
|
295
|
-
return theme.ui_cpnt_divider;
|
|
296
|
-
}, function (_a) {
|
|
297
|
-
var theme = _a.theme;
|
|
298
|
-
return theme.ui_cpnt_divider;
|
|
299
|
-
});
|
|
300
|
-
var S_SchedulesContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-direction: column;\n margin-top: ", "px;\n max-width: 100%;\n overflow: hidden;\n position: relative;\n"], ["\n display: flex;\n flex: 1;\n flex-direction: column;\n margin-top: ", "px;\n max-width: 100%;\n overflow: hidden;\n position: relative;\n"])), function (_a) {
|
|
301
|
-
var _b = _a.$multiWeekSchedulesCount, $multiWeekSchedulesCount = _b === void 0 ? 0 : _b;
|
|
302
|
-
return $multiWeekSchedulesCount * 28;
|
|
303
|
-
});
|
|
304
|
-
var S_MoreSchedulesButton = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background: none;\n border: none;\n border-radius: 2px;\n color: ", ";\n cursor: pointer;\n display: flex;\n outline: inherit;\n padding-top: 4px;\n transition: background-color 0.2s ease;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n align-items: center;\n background: none;\n border: none;\n border-radius: 2px;\n color: ", ";\n cursor: pointer;\n display: flex;\n outline: inherit;\n padding-top: 4px;\n transition: background-color 0.2s ease;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
305
|
-
var theme = _a.theme;
|
|
306
|
-
return theme.ui_cpnt_textlabel_sys_brandprimary;
|
|
307
|
-
}, function (_a) {
|
|
308
|
-
var theme = _a.theme;
|
|
309
|
-
return theme.ui_cpnt_sheet_base;
|
|
310
|
-
}, function (_a) {
|
|
311
|
-
var theme = _a.theme;
|
|
312
|
-
return theme.ui_cpnt_sheet_base_02;
|
|
313
|
-
});
|
|
314
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Schedule } from './types';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
interface MultiWeekScheduleInfo {
|
|
4
|
-
schedule: Schedule;
|
|
5
|
-
startRow: number;
|
|
6
|
-
endRow: number;
|
|
7
|
-
startCol: number;
|
|
8
|
-
endCol: number;
|
|
9
|
-
scheduleIndex: number;
|
|
10
|
-
}
|
|
11
|
-
interface MultiWeekSchedulesLayerProps {
|
|
12
|
-
multiWeekSchedules: MultiWeekScheduleInfo[];
|
|
13
|
-
selectedSchedules: Schedule[];
|
|
14
|
-
handleScheduleClick?: (schedule: Schedule, e?: React.MouseEvent) => void;
|
|
15
|
-
handleScheduleDragStart?: (schedule: Schedule, e: React.DragEvent) => void;
|
|
16
|
-
handleScheduleDragEnd?: () => void;
|
|
17
|
-
isDraggable?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const MultiWeekSchedulesLayer: React.FC<MultiWeekSchedulesLayerProps>;
|
|
20
|
-
export {};
|
|
@@ -1,155 +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
|
-
exports.MultiWeekSchedulesLayer = void 0;
|
|
22
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
-
var react_1 = require("react");
|
|
24
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
25
|
-
var TextLabel_1 = require("../TextLabel");
|
|
26
|
-
var ScheduleItem_1 = require("./ScheduleItem");
|
|
27
|
-
var MultiWeekSchedulesLayer = function (_a) {
|
|
28
|
-
var multiWeekSchedules = _a.multiWeekSchedules, selectedSchedules = _a.selectedSchedules, handleScheduleClick = _a.handleScheduleClick, handleScheduleDragStart = _a.handleScheduleDragStart, handleScheduleDragEnd = _a.handleScheduleDragEnd, _b = _a.isDraggable, isDraggable = _b === void 0 ? false : _b;
|
|
29
|
-
var containerRef = (0, react_1.useRef)(null);
|
|
30
|
-
var _c = (0, react_1.useState)([]), cellPositions = _c[0], setCellPositions = _c[1];
|
|
31
|
-
// 캘린더 셀들의 실제 위치를 계산하는 함수
|
|
32
|
-
var calculateCellPositions = (0, react_1.useCallback)(function () {
|
|
33
|
-
if (!containerRef.current)
|
|
34
|
-
return;
|
|
35
|
-
var gridContainer = containerRef.current.parentElement;
|
|
36
|
-
if (!gridContainer)
|
|
37
|
-
return;
|
|
38
|
-
// 헤더를 제외한 캘린더 셀들을 찾기
|
|
39
|
-
var calendarCells = gridContainer.querySelectorAll('[data-calendar-cell]');
|
|
40
|
-
var positions = [];
|
|
41
|
-
// 각 주(row)의 위치 정보 수집
|
|
42
|
-
for (var row = 0; row < 6; row += 1) {
|
|
43
|
-
var cellIndex = row * 7; // 각 주의 첫 번째 셀
|
|
44
|
-
var cell = calendarCells[cellIndex];
|
|
45
|
-
if (cell) {
|
|
46
|
-
var cellRect = cell.getBoundingClientRect();
|
|
47
|
-
var containerRect = gridContainer.getBoundingClientRect();
|
|
48
|
-
var relativeTop = cellRect.top - containerRect.top;
|
|
49
|
-
var dateLabelHeight = 24; // 날짜 라벨 대략 높이
|
|
50
|
-
positions.push({
|
|
51
|
-
top: relativeTop + dateLabelHeight,
|
|
52
|
-
height: cellRect.height - dateLabelHeight
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
// 기본값 설정 (fallback)
|
|
57
|
-
positions.push({
|
|
58
|
-
top: 60 + row * 120,
|
|
59
|
-
height: 96
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
setCellPositions(positions);
|
|
64
|
-
}, []);
|
|
65
|
-
// ResizeObserver로 크기 변경 감지
|
|
66
|
-
(0, react_1.useLayoutEffect)(function () {
|
|
67
|
-
if (!containerRef.current)
|
|
68
|
-
return;
|
|
69
|
-
var gridContainer = containerRef.current.parentElement;
|
|
70
|
-
if (!gridContainer)
|
|
71
|
-
return;
|
|
72
|
-
var resizeObserver = new ResizeObserver(function () {
|
|
73
|
-
calculateCellPositions();
|
|
74
|
-
});
|
|
75
|
-
resizeObserver.observe(gridContainer);
|
|
76
|
-
// 초기 계산
|
|
77
|
-
calculateCellPositions();
|
|
78
|
-
return function () {
|
|
79
|
-
resizeObserver.disconnect();
|
|
80
|
-
};
|
|
81
|
-
}, [calculateCellPositions]);
|
|
82
|
-
// 창 크기 변경 시에도 재계산
|
|
83
|
-
(0, react_1.useLayoutEffect)(function () {
|
|
84
|
-
var handleResize = function () {
|
|
85
|
-
setTimeout(calculateCellPositions, 0);
|
|
86
|
-
};
|
|
87
|
-
window.addEventListener('resize', handleResize);
|
|
88
|
-
return function () { return window.removeEventListener('resize', handleResize); };
|
|
89
|
-
}, [calculateCellPositions]);
|
|
90
|
-
return ((0, jsx_runtime_1.jsx)(S_Layer, __assign({ ref: containerRef }, { children: multiWeekSchedules.map(function (_a) {
|
|
91
|
-
var schedule = _a.schedule, startRow = _a.startRow, endRow = _a.endRow, startCol = _a.startCol, endCol = _a.endCol, scheduleIndex = _a.scheduleIndex;
|
|
92
|
-
var isSameRow = startRow === endRow;
|
|
93
|
-
var isSelected = selectedSchedules.some(function (s) { return s.id === schedule.id; });
|
|
94
|
-
var uniqueKey = "multi-".concat(schedule.id, "-").concat(startRow, "-").concat(startCol, "-").concat(endCol);
|
|
95
|
-
if (isSameRow) {
|
|
96
|
-
return ((0, jsx_runtime_1.jsxs)(S_MultiWeekSchedule, __assign({ "$color": schedule.color, "$startRow": startRow, "$endRow": endRow, "$startCol": startCol, "$endCol": endCol, "$scheduleIndex": scheduleIndex, "$isSelected": isSelected, "$isDraggable": isDraggable, "$cellPositions": cellPositions, draggable: isDraggable, onDragStart: isDraggable
|
|
97
|
-
? function (e) {
|
|
98
|
-
handleScheduleDragStart === null || handleScheduleDragStart === void 0 ? void 0 : handleScheduleDragStart(schedule, e);
|
|
99
|
-
}
|
|
100
|
-
: undefined, onDragEnd: isDraggable ? handleScheduleDragEnd : undefined, onClick: function (e) {
|
|
101
|
-
e.stopPropagation();
|
|
102
|
-
handleScheduleClick === null || handleScheduleClick === void 0 ? void 0 : handleScheduleClick(schedule, e);
|
|
103
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(ScheduleItem_1.S_Dot, { "$isSelected": isSelected }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption2Bold", text: schedule.title, ellipsisMode: "use", colorTheme: isSelected ? 'sysTextWhite' : undefined })] }), uniqueKey));
|
|
104
|
-
}
|
|
105
|
-
// 여러 행에 걸친 이벤트 처리
|
|
106
|
-
var segments = [];
|
|
107
|
-
for (var row = startRow; row <= endRow; row += 1) {
|
|
108
|
-
var isFirstRow = row === startRow;
|
|
109
|
-
var isLastRow = row === endRow;
|
|
110
|
-
var segmentStartCol = isFirstRow ? startCol : 1;
|
|
111
|
-
var segmentEndCol = isLastRow ? endCol : 7;
|
|
112
|
-
segments.push((0, jsx_runtime_1.jsxs)(S_MultiWeekSchedule, __assign({ "$color": schedule.color, "$startRow": row, "$endRow": row, "$startCol": segmentStartCol, "$endCol": segmentEndCol, "$scheduleIndex": scheduleIndex, "$isSelected": isSelected, "$isDraggable": isDraggable, "$cellPositions": cellPositions, draggable: isDraggable, onDragStart: isDraggable
|
|
113
|
-
? function (e) {
|
|
114
|
-
handleScheduleDragStart === null || handleScheduleDragStart === void 0 ? void 0 : handleScheduleDragStart(schedule, e);
|
|
115
|
-
}
|
|
116
|
-
: undefined, onDragEnd: isDraggable ? handleScheduleDragEnd : undefined, onClick: function (e) {
|
|
117
|
-
e.stopPropagation();
|
|
118
|
-
handleScheduleClick === null || handleScheduleClick === void 0 ? void 0 : handleScheduleClick(schedule, e);
|
|
119
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(ScheduleItem_1.S_Dot, { "$isSelected": isSelected }), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption2Regular", text: schedule.title, ellipsisMode: "use", colorTheme: isSelected ? 'sysTextWhite' : undefined })] }), "".concat(uniqueKey, "-row-").concat(row)));
|
|
120
|
-
}
|
|
121
|
-
return segments;
|
|
122
|
-
}) })));
|
|
123
|
-
};
|
|
124
|
-
exports.MultiWeekSchedulesLayer = MultiWeekSchedulesLayer;
|
|
125
|
-
var S_Layer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n left: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%; /* \uAE30\uBCF8\uC801\uC73C\uB85C \uC774\uBCA4\uD2B8\uB97C \uB9C9\uACE0, \uB0B4\uBD80 \uC2A4\uCF00\uC904\uC5D0\uC11C\uB9CC \uC774\uBCA4\uD2B8 \uD5C8\uC6A9 */\n z-index: 10;\n\n & > * {\n pointer-events: auto;\n }\n"], ["\n height: 100%;\n left: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 100%; /* \uAE30\uBCF8\uC801\uC73C\uB85C \uC774\uBCA4\uD2B8\uB97C \uB9C9\uACE0, \uB0B4\uBD80 \uC2A4\uCF00\uC904\uC5D0\uC11C\uB9CC \uC774\uBCA4\uD2B8 \uD5C8\uC6A9 */\n z-index: 10;\n\n & > * {\n pointer-events: auto;\n }\n"])));
|
|
126
|
-
var S_MultiWeekSchedule = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: 4px;\n color: white;\n cursor: ", ";\n display: flex;\n font-size: 12px;\n height: 20px;\n left: ", ";\n padding: 2px 6px;\n position: absolute;\n top: ", ";\n user-select: none;\n width: ", ";\n z-index: 10;\n\n &:active {\n background: ", ";\n cursor: ", ";\n }\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: 4px;\n color: white;\n cursor: ", ";\n display: flex;\n font-size: 12px;\n height: 20px;\n left: ", ";\n padding: 2px 6px;\n position: absolute;\n top: ", ";\n user-select: none;\n width: ", ";\n z-index: 10;\n\n &:active {\n background: ", ";\n cursor: ", ";\n }\n"])), function (props) {
|
|
127
|
-
return props.$isSelected ? props.theme.ui_cpnt_sheet_base_06 : props.theme.ui_cpnt_sheet_base;
|
|
128
|
-
}, function (_a) {
|
|
129
|
-
var $isDraggable = _a.$isDraggable;
|
|
130
|
-
return ($isDraggable ? 'grab' : 'normal');
|
|
131
|
-
}, function (props) { return "calc((".concat(props.$startCol - 1, ") * (100% / 7) + 4px)"); }, function (props) {
|
|
132
|
-
var $startRow = props.$startRow, $scheduleIndex = props.$scheduleIndex, $cellPositions = props.$cellPositions;
|
|
133
|
-
var rowIndex = $startRow - 2; // 헤더 행 제외 (첫 번째 캘린더 행이 row 2)
|
|
134
|
-
if (!$cellPositions ||
|
|
135
|
-
$cellPositions.length === 0 ||
|
|
136
|
-
rowIndex < 0 ||
|
|
137
|
-
rowIndex >= $cellPositions.length) {
|
|
138
|
-
// 기본값 (fallback)
|
|
139
|
-
var defaultTop = 60 + rowIndex * 100;
|
|
140
|
-
var scheduleSpacing_1 = ($scheduleIndex || 0) * 22;
|
|
141
|
-
return "".concat(defaultTop + scheduleSpacing_1, "px");
|
|
142
|
-
}
|
|
143
|
-
var cellPosition = $cellPositions[rowIndex];
|
|
144
|
-
var scheduleHeight = 20;
|
|
145
|
-
var scheduleSpacing = ($scheduleIndex || 0) * (scheduleHeight + 6); // 스케줄 간 간격 2px
|
|
146
|
-
var calculatedTop = cellPosition.top + scheduleSpacing;
|
|
147
|
-
return "".concat(calculatedTop, "px");
|
|
148
|
-
}, function (props) { return "calc((".concat(props.$endCol - props.$startCol + 1, ") * (100% / 7) - 21px)"); }, function (_a) {
|
|
149
|
-
var theme = _a.theme;
|
|
150
|
-
return theme.ui_cpnt_sheet_base_06;
|
|
151
|
-
}, function (_a) {
|
|
152
|
-
var $isDraggable = _a.$isDraggable;
|
|
153
|
-
return ($isDraggable ? 'grabbing' : 'normal');
|
|
154
|
-
});
|
|
155
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Schedule } from './types';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
interface ScheduleItemProps {
|
|
4
|
-
schedule: Schedule;
|
|
5
|
-
extraProps?: any;
|
|
6
|
-
onDragStart: (schedule: Schedule, e: React.DragEvent) => void;
|
|
7
|
-
onDragEnd: () => void;
|
|
8
|
-
onClick?: (schedule: Schedule, e?: React.MouseEvent) => void;
|
|
9
|
-
isSelected?: boolean;
|
|
10
|
-
isAllDay?: boolean;
|
|
11
|
-
isDraggable?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const ScheduleItem: React.FC<ScheduleItemProps>;
|
|
14
|
-
export declare const S_Dot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
15
|
-
$isSelected?: boolean | undefined;
|
|
16
|
-
}, never>;
|
|
17
|
-
export {};
|
|
@@ -1,56 +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
|
-
exports.S_Dot = exports.ScheduleItem = void 0;
|
|
22
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
|
-
var TextLabel_1 = require("../TextLabel");
|
|
25
|
-
var ScheduleItem = function (_a) {
|
|
26
|
-
var schedule = _a.schedule, _b = _a.extraProps, extraProps = _b === void 0 ? {} : _b, onDragStart = _a.onDragStart, onDragEnd = _a.onDragEnd, onClick = _a.onClick, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.isAllDay, isAllDay = _d === void 0 ? false : _d, _e = _a.isDraggable, isDraggable = _e === void 0 ? false : _e;
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)(S_ScheduleItem, __assign({ "$color": schedule.color, "$position": "single", "$isSelected": isSelected, "$isAllday": isAllDay, "$isDraggable": isDraggable, draggable: isDraggable, onDragStart: isDraggable ? function (e) { return onDragStart(schedule, e); } : undefined, onDragEnd: isDraggable ? onDragEnd : undefined, onClick: function (e) {
|
|
28
|
-
e.stopPropagation();
|
|
29
|
-
onClick === null || onClick === void 0 ? void 0 : onClick(schedule, e);
|
|
30
|
-
} }, extraProps, { children: [(0, jsx_runtime_1.jsx)(exports.S_Dot, { "$isSelected": isSelected }), (0, jsx_runtime_1.jsx)(S_TextContainer, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption2Bold", text: schedule.title, colorTheme: isSelected ? 'sysTextWhite' : undefined, ellipsisMode: "use", singleLineMode: "use" }) })] }), schedule.id));
|
|
31
|
-
};
|
|
32
|
-
exports.ScheduleItem = ScheduleItem;
|
|
33
|
-
var S_ScheduleItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background: ", ";\n border: ", ";\n border-radius: 4px;\n cursor: ", ";\n display: flex;\n flex-shrink: 1;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n padding: 2px 6px;\n position: relative;\n transition: opacity 0.2s ease, transform 0.2s ease;\n\n &:active {\n background: ", ";\n cursor: ", ";\n }\n"], ["\n align-items: center;\n background: ", ";\n border: ", ";\n border-radius: 4px;\n cursor: ", ";\n display: flex;\n flex-shrink: 1;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n padding: 2px 6px;\n position: relative;\n transition: opacity 0.2s ease, transform 0.2s ease;\n\n &:active {\n background: ", ";\n cursor: ", ";\n }\n"])), function (props) {
|
|
34
|
-
if (props.$isSelected)
|
|
35
|
-
return props.theme.ui_cpnt_sheet_base_06;
|
|
36
|
-
if (props.$isAllday)
|
|
37
|
-
return props.theme.ui_cpnt_sheet_base;
|
|
38
|
-
return 'transparent';
|
|
39
|
-
}, function (props) {
|
|
40
|
-
return props.$isSelected ? "2px solid ".concat(props.theme.ui_cpnt_sheet_base_06) : '2px solid transparent';
|
|
41
|
-
}, function (_a) {
|
|
42
|
-
var $isDraggable = _a.$isDraggable;
|
|
43
|
-
return ($isDraggable ? 'grab' : 'default');
|
|
44
|
-
}, function (_a) {
|
|
45
|
-
var theme = _a.theme;
|
|
46
|
-
return theme.ui_cpnt_sheet_base_06;
|
|
47
|
-
}, function (_a) {
|
|
48
|
-
var $isDraggable = _a.$isDraggable;
|
|
49
|
-
return ($isDraggable ? 'grabbing' : 'default');
|
|
50
|
-
});
|
|
51
|
-
var S_TextContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n max-width: 85%;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n /* TextLabel \uB0B4\uBD80 \uC694\uC18C\uC5D0\uB3C4 \uD55C \uC904 \uC81C\uD55C \uC801\uC6A9 */\n * {\n line-height: 1 !important;\n max-height: 1em !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n white-space: nowrap !important;\n }\n"], ["\n flex: 1;\n max-width: 85%;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n /* TextLabel \uB0B4\uBD80 \uC694\uC18C\uC5D0\uB3C4 \uD55C \uC904 \uC81C\uD55C \uC801\uC6A9 */\n * {\n line-height: 1 !important;\n max-height: 1em !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n white-space: nowrap !important;\n }\n"])));
|
|
52
|
-
exports.S_Dot = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n border-radius: 50%;\n height: 4px;\n margin-right: 4px;\n width: 4px;\n"], ["\n background: ", ";\n border-radius: 50%;\n height: 4px;\n margin-right: 4px;\n width: 4px;\n"])), function (_a) {
|
|
53
|
-
var $isSelected = _a.$isSelected, theme = _a.theme;
|
|
54
|
-
return $isSelected ? theme.ui_cpnt_icon_sys_white : theme.ui_cpnt_icon_sys_grey_02;
|
|
55
|
-
});
|
|
56
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Schedule } from './types';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
interface TimeBasedScheduleItemProps {
|
|
4
|
-
schedules: Schedule[];
|
|
5
|
-
selectedSchedules: Schedule[];
|
|
6
|
-
isDraggable?: boolean;
|
|
7
|
-
onClick?: (schedule: Schedule, e?: React.MouseEvent) => void;
|
|
8
|
-
handleScheduleDragStart: (schedule: Schedule, e: React.DragEvent) => void;
|
|
9
|
-
handleScheduleDragEnd: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const TimeBasedScheduleItem: React.FC<TimeBasedScheduleItemProps>;
|
|
12
|
-
export {};
|