pds-dev-kit-web-test 2.5.627 → 2.5.628
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/src/common/services/i18n/resources/en.json +14 -14
- package/dist/src/common/styles/theme.d.ts +0 -1
- package/dist/src/common/styles/theme.js +1 -1
- package/dist/src/core/pricing/translator.js +7 -8
- package/dist/src/core/pricing/types.js +1 -1
- package/dist/src/desktop/components/BoxItem/BoxItem.js +1 -1
- package/dist/src/desktop/components/Calendar/Calendar.js +46 -51
- package/dist/src/desktop/components/Calendar/CalendarContext.d.ts +3 -1
- package/dist/src/desktop/components/Calendar/CalendarContext.js +2 -1
- package/dist/src/desktop/components/Calendar/DailyView.d.ts +8 -2
- package/dist/src/desktop/components/Calendar/DailyView.js +88 -7
- package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +2 -1
- package/dist/src/desktop/components/Calendar/MonthlyView.js +81 -6
- package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +3 -0
- package/dist/src/desktop/components/Calendar/WeeklyView.js +113 -7
- package/dist/src/desktop/components/Calendar/calendarUtils.js +20 -10
- package/dist/src/desktop/components/Calendar/types.d.ts +8 -4
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -5
- package/dist/src/desktop/components/TextButton/TextButton.js +4 -14
- package/dist/src/desktop/components/index.d.ts +1 -2
- package/dist/src/desktop/components/index.js +2 -4
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +2 -3
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFL.js +5 -8
- package/dist/src/mobile/components/BoxItem/BoxItem.js +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -5
- package/dist/src/mobile/components/TextButton/TextButton.js +4 -14
- package/dist/src/mobile/components/index.d.ts +1 -2
- package/dist/src/mobile/components/index.js +1 -3
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +1 -2
- package/package.json +2 -7
- package/release-note.md +2 -2
- package/dist/scripts/copy-tinymce.d.ts +0 -1
- package/dist/scripts/copy-tinymce.js +0 -32
- package/dist/src/desktop/components/RichTextEditor/RichTextEditor.d.ts +0 -34
- package/dist/src/desktop/components/RichTextEditor/RichTextEditor.js +0 -268
- package/dist/src/desktop/components/RichTextEditor/index.d.ts +0 -2
- package/dist/src/desktop/components/RichTextEditor/index.js +0 -8
- package/dist/src/mobile/components/RichTextEditor/RichTextEditor.d.ts +0 -34
- package/dist/src/mobile/components/RichTextEditor/RichTextEditor.js +0 -272
- package/dist/src/mobile/components/RichTextEditor/index.d.ts +0 -2
- package/dist/src/mobile/components/RichTextEditor/index.js +0 -8
- package/dist/tinymce/CHANGELOG.md +0 -3453
- package/dist/tinymce/README.md +0 -73
- package/dist/tinymce/bower.json +0 -27
- package/dist/tinymce/composer.json +0 -52
- package/dist/tinymce/icons/default/icons.js +0 -194
- package/dist/tinymce/icons/default/icons.min.js +0 -1
- package/dist/tinymce/icons/default/index.js +0 -7
- package/dist/tinymce/license.txt +0 -21
- package/dist/tinymce/models/dom/index.js +0 -7
- package/dist/tinymce/models/dom/model.js +0 -8040
- package/dist/tinymce/models/dom/model.min.js +0 -1
- package/dist/tinymce/notices.txt +0 -21
- package/dist/tinymce/package.json +0 -32
- package/dist/tinymce/plugins/accordion/index.js +0 -7
- package/dist/tinymce/plugins/accordion/plugin.js +0 -1054
- package/dist/tinymce/plugins/accordion/plugin.min.js +0 -5
- package/dist/tinymce/plugins/advlist/index.js +0 -7
- package/dist/tinymce/plugins/advlist/plugin.js +0 -259
- package/dist/tinymce/plugins/advlist/plugin.min.js +0 -5
- package/dist/tinymce/plugins/anchor/index.js +0 -7
- package/dist/tinymce/plugins/anchor/plugin.js +0 -214
- package/dist/tinymce/plugins/anchor/plugin.min.js +0 -5
- package/dist/tinymce/plugins/autolink/index.js +0 -7
- package/dist/tinymce/plugins/autolink/plugin.js +0 -228
- package/dist/tinymce/plugins/autolink/plugin.min.js +0 -5
- package/dist/tinymce/plugins/autoresize/index.js +0 -7
- package/dist/tinymce/plugins/autoresize/plugin.js +0 -192
- package/dist/tinymce/plugins/autoresize/plugin.min.js +0 -5
- package/dist/tinymce/plugins/autosave/index.js +0 -7
- package/dist/tinymce/plugins/autosave/plugin.js +0 -233
- package/dist/tinymce/plugins/autosave/plugin.min.js +0 -5
- package/dist/tinymce/plugins/charmap/index.js +0 -7
- package/dist/tinymce/plugins/charmap/plugin.js +0 -1658
- package/dist/tinymce/plugins/charmap/plugin.min.js +0 -5
- package/dist/tinymce/plugins/code/index.js +0 -7
- package/dist/tinymce/plugins/code/plugin.js +0 -85
- package/dist/tinymce/plugins/code/plugin.min.js +0 -5
- package/dist/tinymce/plugins/codesample/index.js +0 -7
- package/dist/tinymce/plugins/codesample/plugin.js +0 -2471
- package/dist/tinymce/plugins/codesample/plugin.min.js +0 -13
- package/dist/tinymce/plugins/directionality/index.js +0 -7
- package/dist/tinymce/plugins/directionality/plugin.js +0 -395
- package/dist/tinymce/plugins/directionality/plugin.min.js +0 -5
- package/dist/tinymce/plugins/emoticons/index.js +0 -7
- package/dist/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
- package/dist/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -1
- package/dist/tinymce/plugins/emoticons/js/emojis.js +0 -1
- package/dist/tinymce/plugins/emoticons/js/emojis.min.js +0 -1
- package/dist/tinymce/plugins/emoticons/plugin.js +0 -595
- package/dist/tinymce/plugins/emoticons/plugin.min.js +0 -5
- package/dist/tinymce/plugins/fullscreen/index.js +0 -7
- package/dist/tinymce/plugins/fullscreen/plugin.js +0 -1249
- package/dist/tinymce/plugins/fullscreen/plugin.min.js +0 -5
- package/dist/tinymce/plugins/help/index.js +0 -7
- package/dist/tinymce/plugins/help/js/i18n/keynav/ar.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/ca.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/cs.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/da.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/de.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/el.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/en.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/es.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/eu.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/fa.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/fi.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/he_IL.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/hi.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/hr.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/id.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/it.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/ja.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/kk.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/ms.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/nl.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/pl.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/ro.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/ru.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/sk.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/th_TH.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/tr.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/uk.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/vi.js +0 -90
- package/dist/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +0 -84
- package/dist/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +0 -90
- package/dist/tinymce/plugins/help/plugin.js +0 -898
- package/dist/tinymce/plugins/help/plugin.min.js +0 -5
- package/dist/tinymce/plugins/image/index.js +0 -7
- package/dist/tinymce/plugins/image/plugin.js +0 -1505
- package/dist/tinymce/plugins/image/plugin.min.js +0 -5
- package/dist/tinymce/plugins/importcss/index.js +0 -7
- package/dist/tinymce/plugins/importcss/plugin.js +0 -344
- package/dist/tinymce/plugins/importcss/plugin.min.js +0 -5
- package/dist/tinymce/plugins/insertdatetime/index.js +0 -7
- package/dist/tinymce/plugins/insertdatetime/plugin.js +0 -187
- package/dist/tinymce/plugins/insertdatetime/plugin.min.js +0 -5
- package/dist/tinymce/plugins/link/index.js +0 -7
- package/dist/tinymce/plugins/link/plugin.js +0 -1242
- package/dist/tinymce/plugins/link/plugin.min.js +0 -5
- package/dist/tinymce/plugins/lists/index.js +0 -7
- package/dist/tinymce/plugins/lists/plugin.js +0 -2172
- package/dist/tinymce/plugins/lists/plugin.min.js +0 -5
- package/dist/tinymce/plugins/media/index.js +0 -7
- package/dist/tinymce/plugins/media/plugin.js +0 -1217
- package/dist/tinymce/plugins/media/plugin.min.js +0 -5
- package/dist/tinymce/plugins/nonbreaking/index.js +0 -7
- package/dist/tinymce/plugins/nonbreaking/plugin.js +0 -123
- package/dist/tinymce/plugins/nonbreaking/plugin.min.js +0 -5
- package/dist/tinymce/plugins/pagebreak/index.js +0 -7
- package/dist/tinymce/plugins/pagebreak/plugin.js +0 -117
- package/dist/tinymce/plugins/pagebreak/plugin.min.js +0 -5
- package/dist/tinymce/plugins/preview/index.js +0 -7
- package/dist/tinymce/plugins/preview/plugin.js +0 -97
- package/dist/tinymce/plugins/preview/plugin.min.js +0 -5
- package/dist/tinymce/plugins/quickbars/index.js +0 -7
- package/dist/tinymce/plugins/quickbars/plugin.js +0 -447
- package/dist/tinymce/plugins/quickbars/plugin.min.js +0 -5
- package/dist/tinymce/plugins/save/index.js +0 -7
- package/dist/tinymce/plugins/save/plugin.js +0 -118
- package/dist/tinymce/plugins/save/plugin.min.js +0 -5
- package/dist/tinymce/plugins/searchreplace/index.js +0 -7
- package/dist/tinymce/plugins/searchreplace/plugin.js +0 -1093
- package/dist/tinymce/plugins/searchreplace/plugin.min.js +0 -5
- package/dist/tinymce/plugins/table/index.js +0 -7
- package/dist/tinymce/plugins/table/plugin.js +0 -3462
- package/dist/tinymce/plugins/table/plugin.min.js +0 -5
- package/dist/tinymce/plugins/template/index.js +0 -7
- package/dist/tinymce/plugins/template/plugin.js +0 -567
- package/dist/tinymce/plugins/template/plugin.min.js +0 -5
- package/dist/tinymce/plugins/visualblocks/index.js +0 -7
- package/dist/tinymce/plugins/visualblocks/plugin.js +0 -98
- package/dist/tinymce/plugins/visualblocks/plugin.min.js +0 -5
- package/dist/tinymce/plugins/visualchars/index.js +0 -7
- package/dist/tinymce/plugins/visualchars/plugin.js +0 -560
- package/dist/tinymce/plugins/visualchars/plugin.min.js +0 -5
- package/dist/tinymce/plugins/wordcount/index.js +0 -7
- package/dist/tinymce/plugins/wordcount/plugin.js +0 -405
- package/dist/tinymce/plugins/wordcount/plugin.min.js +0 -5
- package/dist/tinymce/skins/content/dark/content.css +0 -79
- package/dist/tinymce/skins/content/dark/content.js +0 -15
- package/dist/tinymce/skins/content/dark/content.min.css +0 -14
- package/dist/tinymce/skins/content/default/content.css +0 -74
- package/dist/tinymce/skins/content/default/content.js +0 -15
- package/dist/tinymce/skins/content/default/content.min.css +0 -14
- package/dist/tinymce/skins/content/document/content.css +0 -79
- package/dist/tinymce/skins/content/document/content.js +0 -15
- package/dist/tinymce/skins/content/document/content.min.css +0 -14
- package/dist/tinymce/skins/content/tinymce-5/content.css +0 -74
- package/dist/tinymce/skins/content/tinymce-5/content.js +0 -15
- package/dist/tinymce/skins/content/tinymce-5/content.min.css +0 -14
- package/dist/tinymce/skins/content/tinymce-5-dark/content.css +0 -79
- package/dist/tinymce/skins/content/tinymce-5-dark/content.js +0 -15
- package/dist/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -14
- package/dist/tinymce/skins/content/writer/content.css +0 -75
- package/dist/tinymce/skins/content/writer/content.js +0 -15
- package/dist/tinymce/skins/content/writer/content.min.css +0 -14
- package/dist/tinymce/skins/ui/oxide/content.css +0 -798
- package/dist/tinymce/skins/ui/oxide/content.inline.css +0 -792
- package/dist/tinymce/skins/ui/oxide/content.inline.js +0 -15
- package/dist/tinymce/skins/ui/oxide/content.inline.min.css +0 -14
- package/dist/tinymce/skins/ui/oxide/content.js +0 -15
- package/dist/tinymce/skins/ui/oxide/content.min.css +0 -14
- package/dist/tinymce/skins/ui/oxide/skin.css +0 -3763
- package/dist/tinymce/skins/ui/oxide/skin.js +0 -2
- package/dist/tinymce/skins/ui/oxide/skin.min.css +0 -1
- package/dist/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
- package/dist/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
- package/dist/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/dist/tinymce/skins/ui/oxide-dark/content.css +0 -779
- package/dist/tinymce/skins/ui/oxide-dark/content.inline.css +0 -792
- package/dist/tinymce/skins/ui/oxide-dark/content.inline.js +0 -15
- package/dist/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -14
- package/dist/tinymce/skins/ui/oxide-dark/content.js +0 -15
- package/dist/tinymce/skins/ui/oxide-dark/content.min.css +0 -14
- package/dist/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
- package/dist/tinymce/skins/ui/oxide-dark/skin.js +0 -2
- package/dist/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
- package/dist/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
- package/dist/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
- package/dist/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/dist/tinymce/skins/ui/tinymce-5/content.css +0 -798
- package/dist/tinymce/skins/ui/tinymce-5/content.inline.css +0 -792
- package/dist/tinymce/skins/ui/tinymce-5/content.inline.js +0 -15
- package/dist/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -14
- package/dist/tinymce/skins/ui/tinymce-5/content.js +0 -15
- package/dist/tinymce/skins/ui/tinymce-5/content.min.css +0 -14
- package/dist/tinymce/skins/ui/tinymce-5/skin.css +0 -3857
- package/dist/tinymce/skins/ui/tinymce-5/skin.js +0 -2
- package/dist/tinymce/skins/ui/tinymce-5/skin.min.css +0 -1
- package/dist/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
- package/dist/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +0 -2
- package/dist/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
- package/dist/tinymce/skins/ui/tinymce-5-dark/content.css +0 -779
- package/dist/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -792
- package/dist/tinymce/skins/ui/tinymce-5-dark/content.inline.js +0 -15
- package/dist/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -14
- package/dist/tinymce/skins/ui/tinymce-5-dark/content.js +0 -15
- package/dist/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -14
- package/dist/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -3857
- package/dist/tinymce/skins/ui/tinymce-5-dark/skin.js +0 -2
- package/dist/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -1
- package/dist/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
- package/dist/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +0 -2
- package/dist/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
- package/dist/tinymce/themes/silver/index.js +0 -7
- package/dist/tinymce/themes/silver/theme.js +0 -30775
- package/dist/tinymce/themes/silver/theme.min.js +0 -1
- package/dist/tinymce/tinymce.d.ts +0 -3238
- package/dist/tinymce/tinymce.js +0 -31779
- package/dist/tinymce/tinymce.min.js +0 -11
- package/scripts/copy-tinymce.js +0 -37
@@ -37,18 +37,18 @@
|
|
37
37
|
"str_calendar_all_day": "All day",
|
38
38
|
"str_calendar_schedule_more": "{{count}} more",
|
39
39
|
"str_calendar_today": "Today",
|
40
|
-
"calendar_month_1": "
|
41
|
-
"calendar_month_2": "
|
42
|
-
"calendar_month_3": "
|
43
|
-
"calendar_month_4": "
|
40
|
+
"calendar_month_1": "January",
|
41
|
+
"calendar_month_2": "February",
|
42
|
+
"calendar_month_3": "March",
|
43
|
+
"calendar_month_4": "April",
|
44
44
|
"calendar_month_5": "May",
|
45
|
-
"calendar_month_6": "
|
46
|
-
"calendar_month_7": "
|
47
|
-
"calendar_month_8": "
|
48
|
-
"calendar_month_9": "
|
49
|
-
"calendar_month_10": "
|
50
|
-
"calendar_month_11": "
|
51
|
-
"calendar_month_12": "
|
45
|
+
"calendar_month_6": "June",
|
46
|
+
"calendar_month_7": "July",
|
47
|
+
"calendar_month_8": "August",
|
48
|
+
"calendar_month_9": "September",
|
49
|
+
"calendar_month_10": "October",
|
50
|
+
"calendar_month_11": "November",
|
51
|
+
"calendar_month_12": "December",
|
52
52
|
"str_fm_datetime_am": "{{hour}} AM",
|
53
53
|
"str_fm_datetime_pm": "{{hour}} PM",
|
54
54
|
"str_fm_am": "AM",
|
@@ -60,14 +60,14 @@
|
|
60
60
|
"calendar_header_weekly_same_month": "{{month}} {{startDay}} - {{endDay}}",
|
61
61
|
"calendar_header_weekly_diff_month": "{{startMonth}} {{startDay}} - {{endMonth}} {{endDay}}",
|
62
62
|
"str_calendar_yearly_header": "{{year}}",
|
63
|
-
"str_calendar_monthly_header": "{{month}}
|
64
|
-
"str_calendar_weekly_header": "{{month}}
|
63
|
+
"str_calendar_monthly_header": "{{month}} {{year}}",
|
64
|
+
"str_calendar_weekly_header": "{{month}} {{year}}",
|
65
65
|
"calendar_view_monthly": "Monthly",
|
66
66
|
"calendar_view_weekly": "Weekly",
|
67
67
|
"calendar_view_daily": "Daily",
|
68
68
|
"calendar_view_yearly": "Yearly",
|
69
69
|
"calendar_date_format": "{{day}} ({{dayText}})",
|
70
|
-
"str_calendar_weekly_date": "{{month}}
|
70
|
+
"str_calendar_weekly_date": "{{month}} {{date}} ({{day}})",
|
71
71
|
"str_fm_year": "Year",
|
72
72
|
"str_fm_month": "Month",
|
73
73
|
"str_fm_day": "Day",
|
@@ -113,5 +113,4 @@ export declare const language = "ko";
|
|
113
113
|
declare const theme: DefaultTheme;
|
114
114
|
type ToneType = 'DARK' | 'LIGHT';
|
115
115
|
export declare const themeByGivenTone: (tone: ToneType) => any;
|
116
|
-
export type AppTheme = ReturnType<typeof themeByGivenTone>;
|
117
116
|
export default theme;
|
@@ -125,6 +125,6 @@ exports.spacing = {
|
|
125
125
|
};
|
126
126
|
exports.language = 'ko';
|
127
127
|
var theme = __assign({ fontWeight: exports.fontWeight, desktopFontSize: exports.desktopFontSize, desktopLineHeight: exports.desktopLineHeight, desktopEditorFontSize: exports.desktopEditorFontSize, desktopEditorLineHeight: exports.desktopEditorLineHeight, mobileFontSize: exports.mobileFontSize, mobileLineHeight: exports.mobileLineHeight, mobileEditorFontSize: exports.mobileEditorFontSize, mobileEditorLineHeight: exports.mobileEditorLineHeight, boxShadow: exports.boxShadow, spacing: exports.spacing, language: exports.language }, (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {}));
|
128
|
-
var themeByGivenTone = function (tone) { return (__assign(__assign({}, (0, ui_colors_1.customTheme)(tone)), { fontWeight: exports.fontWeight, desktopFontSize: exports.desktopFontSize, desktopLineHeight: exports.desktopLineHeight, desktopEditorFontSize: exports.desktopEditorFontSize, desktopEditorLineHeight: exports.desktopEditorLineHeight, mobileFontSize: exports.mobileFontSize, mobileLineHeight: exports.mobileLineHeight, mobileEditorFontSize: exports.mobileEditorFontSize, mobileEditorLineHeight: exports.mobileEditorLineHeight, boxShadow: exports.boxShadow, spacing: exports.spacing, language: exports.language
|
128
|
+
var themeByGivenTone = function (tone) { return (__assign(__assign({}, (0, ui_colors_1.customTheme)(tone)), { fontWeight: exports.fontWeight, desktopFontSize: exports.desktopFontSize, desktopLineHeight: exports.desktopLineHeight, desktopEditorFontSize: exports.desktopEditorFontSize, desktopEditorLineHeight: exports.desktopEditorLineHeight, mobileFontSize: exports.mobileFontSize, mobileLineHeight: exports.mobileLineHeight, mobileEditorFontSize: exports.mobileEditorFontSize, mobileEditorLineHeight: exports.mobileEditorLineHeight, boxShadow: exports.boxShadow, spacing: exports.spacing, language: exports.language })); };
|
129
129
|
exports.themeByGivenTone = themeByGivenTone;
|
130
130
|
exports.default = theme;
|
@@ -28,7 +28,10 @@ var PricingTranslator = /** @class */ (function () {
|
|
28
28
|
*/
|
29
29
|
PricingTranslator.currency = function (code, opts) {
|
30
30
|
var currency = types_1.CURRENCY_MAP[code];
|
31
|
-
|
31
|
+
if (opts === null || opts === void 0 ? void 0 : opts.friendly) {
|
32
|
+
return currency.friendlyName(opts.translation);
|
33
|
+
}
|
34
|
+
return currency.name;
|
32
35
|
};
|
33
36
|
/**
|
34
37
|
* 포맷된 금액과 통화 문자열을 결합합니다
|
@@ -40,13 +43,9 @@ var PricingTranslator = /** @class */ (function () {
|
|
40
43
|
if (PricingTranslator.isCurrencyLeading(PricingTranslator.browserLanguage)) {
|
41
44
|
return "".concat(currencyString, " ").concat(formattedAmount);
|
42
45
|
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
? "".concat(formattedAmount).concat(currencyString)
|
47
|
-
: "".concat(formattedAmount, " ").concat(currencyString);
|
48
|
-
}
|
49
|
-
return "".concat(formattedAmount, " ").concat(currencyString);
|
46
|
+
return (opts === null || opts === void 0 ? void 0 : opts.friendly)
|
47
|
+
? "".concat(formattedAmount).concat(currencyString)
|
48
|
+
: "".concat(formattedAmount, " ").concat(currencyString);
|
50
49
|
};
|
51
50
|
PricingTranslator.browserLanguage = null;
|
52
51
|
return PricingTranslator;
|
@@ -19,7 +19,7 @@ exports.CURRENCY_MAP = (_a = {},
|
|
19
19
|
_a[CurrencyCode.USD] = {
|
20
20
|
code: CurrencyCode.USD,
|
21
21
|
name: CurrencyCode.USD,
|
22
|
-
friendlyName:
|
22
|
+
friendlyName: translateFriendlyName('str_friendly_currency_dollar'),
|
23
23
|
decimalDigits: 2
|
24
24
|
},
|
25
25
|
_a[CurrencyCode.JPY] = {
|
@@ -91,7 +91,7 @@ function BoxItem(_a) {
|
|
91
91
|
justifyContent: 'space-between',
|
92
92
|
maxWidth: '100%',
|
93
93
|
cursor: state === 'disabled' ? 'default' : selectionMode === 'use' ? 'pointer' : 'default'
|
94
|
-
} }, { children: [(0, jsx_runtime_1.jsxs)(LeftBox_1.LeftBox, __assign({ hasRightBox: displayType !== 'none' || chipMode === 'use' }, { children: [checkboxMode !== 'none' && ((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' ?
|
94
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(LeftBox_1.LeftBox, __assign({ hasRightBox: displayType !== 'none' || chipMode === 'use' }, { children: [checkboxMode !== 'none' && ((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", wordBreak: titleTextWordBreak })), 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", wordBreak: descTextWordBreak }))] })] })), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [displayType !== 'none' ||
|
95
95
|
(chipMode === 'use' && (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b", spacingType: "width" })), chipMode === 'use' && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Chip_1.Chip, { text: chipText, overrideBackgroundColorKey: chipOverrideBackgroundColorKey, displayType: "information", overrideTextColorKey: chipOverrideTextColorKey }) })), (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", spacingType: "width" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", fillType: "line", size: 20, colorKey: "ui_cpnt_icon_sys_grey_01" })] }))] })] })) })));
|
96
96
|
}
|
97
97
|
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) {
|
@@ -44,27 +44,9 @@ var WeeklyView_1 = require("./WeeklyView");
|
|
44
44
|
var YearlyView_1 = require("./YearlyView");
|
45
45
|
var Calendar = function (_a) {
|
46
46
|
var _b;
|
47
|
-
var _c = _a.defaultViewType, defaultViewType = _c === void 0 ? '
|
48
|
-
// 다국어 키를 CalendarViewType으로 매핑하는 함수
|
49
|
-
var mapI18nKeyToViewType = function (key) {
|
50
|
-
switch (key) {
|
51
|
-
case 'str_fm_month':
|
52
|
-
return 'MONTHLY';
|
53
|
-
case 'str_fm_week':
|
54
|
-
return 'WEEKLY';
|
55
|
-
case 'str_fm_day':
|
56
|
-
return 'DAILY';
|
57
|
-
case 'str_fm_year':
|
58
|
-
return 'YEARLY';
|
59
|
-
default:
|
60
|
-
return key;
|
61
|
-
}
|
62
|
-
};
|
63
|
-
// 다국어 키를 받아서 내부적으로 매핑
|
64
|
-
var actualDefaultViewType = mapI18nKeyToViewType(defaultViewType);
|
65
|
-
var actualViewTypes = viewTypes.map(mapI18nKeyToViewType);
|
47
|
+
var _c = _a.defaultViewType, defaultViewType = _c === void 0 ? 'str_fm_month' : _c, _d = _a.viewTypes, viewTypes = _d === void 0 ? ['str_fm_month', 'str_fm_week', 'str_fm_day', 'str_fm_year'] : _d, _e = _a.displayAllDayScheduleMode, displayAllDayScheduleMode = _e === void 0 ? 'none' : _e, _f = _a.startOfWeek, startOfWeek = _f === void 0 ? 'sunday' : _f, _g = _a.todayBtnMode, todayBtnMode = _g === void 0 ? 'use' : _g, _h = _a.schedules, schedules = _h === void 0 ? [] : _h, config = _a.config, onActionDispatch = _a.onActionDispatch;
|
66
48
|
var t = (0, react_i18next_1.useTranslation)().t;
|
67
|
-
var _j = (0, react_1.useState)(
|
49
|
+
var _j = (0, react_1.useState)(defaultViewType), currentViewType = _j[0], setCurrentViewType = _j[1];
|
68
50
|
var _k = (0, react_1.useState)(new Date()), selectedDate = _k[0], setSelectedDate = _k[1];
|
69
51
|
var _l = (0, react_1.useState)(null), dragStartDate = _l[0], setDragStartDate = _l[1];
|
70
52
|
var _m = (0, react_1.useState)(null), dragEndDate = _m[0], setDragEndDate = _m[1];
|
@@ -115,13 +97,13 @@ var Calendar = function (_a) {
|
|
115
97
|
var increment = direction === 'next' ? 1 : -1;
|
116
98
|
var getNewDateByViewType = function (viewType) {
|
117
99
|
switch (viewType) {
|
118
|
-
case '
|
100
|
+
case 'str_fm_day':
|
119
101
|
return dateHelper_1.DateHelper.addDays(selectedDate, increment);
|
120
|
-
case '
|
102
|
+
case 'str_fm_week':
|
121
103
|
return dateHelper_1.DateHelper.addDays(selectedDate, increment * 7);
|
122
|
-
case '
|
104
|
+
case 'str_fm_month':
|
123
105
|
return dateHelper_1.DateHelper.addMonths(selectedDate, increment);
|
124
|
-
case '
|
106
|
+
case 'str_fm_year':
|
125
107
|
return new Date(selectedDate.getFullYear() + increment, selectedDate.getMonth(), selectedDate.getDate());
|
126
108
|
default:
|
127
109
|
return selectedDate;
|
@@ -193,6 +175,21 @@ var Calendar = function (_a) {
|
|
193
175
|
setDragStartDate(null);
|
194
176
|
setDragEndDate(null);
|
195
177
|
}, [isDragging, dragStartDate, dragEndDate]);
|
178
|
+
// 날짜 드래그 이벤트 처리
|
179
|
+
var handleDateDrag = (0, react_1.useCallback)(function (action) {
|
180
|
+
var _a, _b;
|
181
|
+
if (action.action === 'DRAG' && action.target === 'DATE') {
|
182
|
+
// 선택된 스케줄들을 selectedSchedules state에 반영
|
183
|
+
if (action.schedules && action.schedules.length > 0) {
|
184
|
+
setSelectedSchedules(action.schedules);
|
185
|
+
}
|
186
|
+
else {
|
187
|
+
setSelectedSchedules([]);
|
188
|
+
}
|
189
|
+
// 원래 config.DATE.DRAG 콜백이 있다면 호출
|
190
|
+
(_b = (_a = config === null || config === void 0 ? void 0 : config.DATE) === null || _a === void 0 ? void 0 : _a.DRAG) === null || _b === void 0 ? void 0 : _b.call(_a, action);
|
191
|
+
}
|
192
|
+
}, [config]);
|
196
193
|
// 이벤트 드래그 핸들러
|
197
194
|
var handleScheduleDragStart = (0, react_1.useCallback)(function (schedule, e) {
|
198
195
|
setDraggedSchedule(schedule);
|
@@ -224,20 +221,24 @@ var Calendar = function (_a) {
|
|
224
221
|
}, []);
|
225
222
|
// 삭제 키 이벤트 처리
|
226
223
|
var handleKeyDown = (0, react_1.useCallback)(function (e) {
|
227
|
-
var _a, _b
|
228
|
-
if (e.key === 'Backspace' &&
|
229
|
-
selectedSchedules.length > 0
|
230
|
-
|
231
|
-
(
|
224
|
+
var _a, _b;
|
225
|
+
if ((e.key === 'Backspace' || e.key === 'Delete') &&
|
226
|
+
(selectedSchedules.length > 0 || selectedDates.length > 0)) {
|
227
|
+
// config 콜백이 있으면 호출
|
228
|
+
(_b = (_a = config === null || config === void 0 ? void 0 : config.SCHEDULE) === null || _a === void 0 ? void 0 : _a.DELETE_KEY_DOWN) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
232
229
|
action: 'DELETE_KEY_DOWN',
|
233
230
|
target: 'SCHEDULE',
|
234
231
|
schedules: selectedSchedules,
|
235
232
|
startDate: (0, calendarUtils_1.toUTC)(startDate),
|
236
233
|
endDate: (0, calendarUtils_1.toUTC)(endDate)
|
237
234
|
});
|
235
|
+
// 항상 선택된 스케줄들 해제
|
238
236
|
setSelectedSchedules([]);
|
237
|
+
setSelectedDates([]);
|
238
|
+
// 브라우저 기본 동작 방지 (뒤로가기 등)
|
239
|
+
e.preventDefault();
|
239
240
|
}
|
240
|
-
}, [config, selectedSchedules]);
|
241
|
+
}, [config, selectedSchedules, startDate, endDate]);
|
241
242
|
// 날짜 드래그 놓기
|
242
243
|
var handleDateDrop = (0, react_1.useCallback)(function (date, e) {
|
243
244
|
var _a, _b, _c;
|
@@ -253,7 +254,7 @@ var Calendar = function (_a) {
|
|
253
254
|
var duration = originalEndDate.getTime() - originalStartDate.getTime();
|
254
255
|
var getAdjustedStartDate = function () {
|
255
256
|
var baseDate = new Date(date);
|
256
|
-
if (currentViewType === '
|
257
|
+
if (currentViewType === 'str_fm_month') {
|
257
258
|
var target = e.target;
|
258
259
|
var gridContainer = target.closest('[data-calendar-grid]');
|
259
260
|
if (gridContainer) {
|
@@ -299,17 +300,11 @@ var Calendar = function (_a) {
|
|
299
300
|
};
|
300
301
|
// 뷰 타입을 위한 드롭다운 옵션 생성
|
301
302
|
var viewTypeOptions = (0, react_1.useMemo)(function () {
|
302
|
-
|
303
|
-
|
304
|
-
WEEKLY: t('str_fm_week'),
|
305
|
-
DAILY: t('str_fm_day'),
|
306
|
-
YEARLY: t('str_fm_year')
|
307
|
-
};
|
308
|
-
return actualViewTypes.map(function (viewType) { return ({
|
309
|
-
text: viewTypeTextMap[viewType] || viewType,
|
303
|
+
return viewTypes.map(function (viewType) { return ({
|
304
|
+
text: t(viewType),
|
310
305
|
value: viewType
|
311
306
|
}); });
|
312
|
-
}, [
|
307
|
+
}, [viewTypes, t]);
|
313
308
|
// 특정 월의 캘린더 날짜 생성 (연간 보기용)
|
314
309
|
var getMonthDates = (0, react_1.useCallback)(function (year, month) {
|
315
310
|
var monthDate = new Date(year, month, 1);
|
@@ -350,14 +345,14 @@ var Calendar = function (_a) {
|
|
350
345
|
};
|
351
346
|
// 주간 뷰로 전환하는 핸들러
|
352
347
|
var handleSwitchToWeeklyView = (0, react_1.useCallback)(function (date) {
|
353
|
-
setCurrentViewType('
|
348
|
+
setCurrentViewType('str_fm_week');
|
354
349
|
setSelectedDate(date);
|
355
350
|
// 주간 뷰로 전환할 때의 startDate와 endDate 계산
|
356
|
-
var _a = (0, calendarUtils_1.calculateDateRange)('
|
351
|
+
var _a = (0, calendarUtils_1.calculateDateRange)('str_fm_week', date), newStartDate = _a.startDate, newEndDate = _a.endDate;
|
357
352
|
onActionDispatch === null || onActionDispatch === void 0 ? void 0 : onActionDispatch({
|
358
353
|
type: 'CALENDAR_TYPE_CHANGE',
|
359
354
|
payload: {
|
360
|
-
type: '
|
355
|
+
type: 'str_fm_week',
|
361
356
|
startDate: (0, calendarUtils_1.toUTC)(newStartDate),
|
362
357
|
endDate: (0, calendarUtils_1.toUTC)(newEndDate)
|
363
358
|
}
|
@@ -366,13 +361,13 @@ var Calendar = function (_a) {
|
|
366
361
|
// 뷰 타입에 따른 캘린더 콘텐츠 렌더링
|
367
362
|
var renderCalendarContent = function () {
|
368
363
|
switch (currentViewType) {
|
369
|
-
case '
|
370
|
-
return ((0, jsx_runtime_1.jsx)(MonthlyView_1.MonthlyView, { getDayTextByDate: getDayTextByDate, startOfWeek: startOfWeek, selectedDate: selectedDate, selectedDates: selectedDates, dragStartDate: dragStartDate, selectedSchedules: selectedSchedules, dragEndDate: dragEndDate, isDragOverDate: isDragOverDate, schedules: schedules, getSchedulesForDate: getSchedulesForDate, isToday: isToday, isPastDate: isPastDate, handleDateClick: handleDateClick, handleScheduleClick: handleScheduleClick, handleMouseUp: handleMouseUp, handleDateDragOver: handleDateDragOver, handleDateDragLeave: handleDateDragLeave, handleDateDrop: handleDateDrop, handleScheduleDragStart: handleScheduleDragStart, handleScheduleDragEnd: handleScheduleDragEnd, isDraggable: isDraggable, onSwitchToWeeklyView: handleSwitchToWeeklyView }));
|
371
|
-
case '
|
372
|
-
return (0, jsx_runtime_1.jsx)(WeeklyView_1.WeeklyView, { startOfWeek: startOfWeek });
|
373
|
-
case '
|
374
|
-
return (0, jsx_runtime_1.jsx)(DailyView_1.DailyView, {});
|
375
|
-
case '
|
364
|
+
case 'str_fm_month':
|
365
|
+
return ((0, jsx_runtime_1.jsx)(MonthlyView_1.MonthlyView, { getDayTextByDate: getDayTextByDate, startOfWeek: startOfWeek, selectedDate: selectedDate, selectedDates: selectedDates, dragStartDate: dragStartDate, selectedSchedules: selectedSchedules, dragEndDate: dragEndDate, isDragOverDate: isDragOverDate, schedules: schedules, getSchedulesForDate: getSchedulesForDate, isToday: isToday, isPastDate: isPastDate, handleDateClick: handleDateClick, handleScheduleClick: handleScheduleClick, handleMouseUp: handleMouseUp, handleDateDragOver: handleDateDragOver, handleDateDragLeave: handleDateDragLeave, handleDateDrop: handleDateDrop, handleScheduleDragStart: handleScheduleDragStart, handleScheduleDragEnd: handleScheduleDragEnd, isDraggable: isDraggable, onSwitchToWeeklyView: handleSwitchToWeeklyView, config: config }));
|
366
|
+
case 'str_fm_week':
|
367
|
+
return (0, jsx_runtime_1.jsx)(WeeklyView_1.WeeklyView, { startOfWeek: startOfWeek, schedules: schedules, config: config });
|
368
|
+
case 'str_fm_day':
|
369
|
+
return (0, jsx_runtime_1.jsx)(DailyView_1.DailyView, { schedules: schedules, config: config });
|
370
|
+
case 'str_fm_year':
|
376
371
|
return ((0, jsx_runtime_1.jsx)(YearlyView_1.YearlyView, { selectedDate: selectedDate, getMonthDates: getMonthDates, getDayTextByDate: getDayTextByDate, startOfWeek: startOfWeek, isToday: isToday, handleDateClick: handleDateClick, getSchedulesForDate: getSchedulesForDate }));
|
377
372
|
default:
|
378
373
|
return null;
|
@@ -384,7 +379,7 @@ var Calendar = function (_a) {
|
|
384
379
|
// 스케줄 관련
|
385
380
|
selectedSchedules: selectedSchedules, isDraggable: isDraggable, handleScheduleClick: handleScheduleClick, handleScheduleDragStart: handleScheduleDragStart, handleScheduleDragEnd: handleScheduleDragEnd,
|
386
381
|
// 날짜 관련
|
387
|
-
handleDateClick: handleDateClick, handleDateDragOver: handleDateDragOver, handleDateDragLeave: handleDateDragLeave, handleDateDrop: handleDateDrop,
|
382
|
+
handleDateClick: handleDateClick, handleDateDrag: handleDateDrag, handleDateDragOver: handleDateDragOver, handleDateDragLeave: handleDateDragLeave, handleDateDrop: handleDateDrop,
|
388
383
|
// 유틸리티 함수
|
389
384
|
getSchedulesForDate: getSchedulesForDate, isToday: isToday, isPastDate: isPastDate, getDayTextByDate: getDayTextByDate,
|
390
385
|
// 상태값
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { Schedule, displayAllDayScheduleMode } from './types';
|
2
|
+
import type { Schedule, displayAllDayScheduleMode, Action } from './types';
|
3
3
|
export interface ScheduleItemExtraProps {
|
4
4
|
onDragStart?: (e: React.DragEvent) => void;
|
5
5
|
onDragEnd?: () => void;
|
@@ -14,6 +14,7 @@ interface CalendarContextValue {
|
|
14
14
|
handleScheduleDragStart: (schedule: Schedule, e: React.DragEvent) => void;
|
15
15
|
handleScheduleDragEnd: () => void;
|
16
16
|
handleDateClick: (date: Date, e: React.MouseEvent) => void;
|
17
|
+
handleDateDrag: (action: Action) => void;
|
17
18
|
handleDateDragOver: (date: Date, e: React.DragEvent) => void;
|
18
19
|
handleDateDragLeave: () => void;
|
19
20
|
handleDateDrop: (date: Date, e: React.DragEvent) => void;
|
@@ -36,6 +37,7 @@ interface CalendarProviderProps {
|
|
36
37
|
handleScheduleDragStart: (schedule: Schedule, e: React.DragEvent) => void;
|
37
38
|
handleScheduleDragEnd: () => void;
|
38
39
|
handleDateClick: (date: Date, e: React.MouseEvent) => void;
|
40
|
+
handleDateDrag: (action: Action) => void;
|
39
41
|
handleDateDragOver: (date: Date, e: React.DragEvent) => void;
|
40
42
|
handleDateDragLeave: () => void;
|
41
43
|
handleDateDrop: (date: Date, e: React.DragEvent) => void;
|
@@ -30,7 +30,7 @@ var CalendarProvider = function (_a) {
|
|
30
30
|
// 스케줄 관련
|
31
31
|
selectedSchedules = _a.selectedSchedules, isDraggable = _a.isDraggable, handleScheduleClick = _a.handleScheduleClick, handleScheduleDragStart = _a.handleScheduleDragStart, handleScheduleDragEnd = _a.handleScheduleDragEnd,
|
32
32
|
// 날짜 관련
|
33
|
-
handleDateClick = _a.handleDateClick, handleDateDragOver = _a.handleDateDragOver, handleDateDragLeave = _a.handleDateDragLeave, handleDateDrop = _a.handleDateDrop,
|
33
|
+
handleDateClick = _a.handleDateClick, handleDateDrag = _a.handleDateDrag, handleDateDragOver = _a.handleDateDragOver, handleDateDragLeave = _a.handleDateDragLeave, handleDateDrop = _a.handleDateDrop,
|
34
34
|
// 유틸리티 함수
|
35
35
|
getSchedulesForDate = _a.getSchedulesForDate, isToday = _a.isToday, isPastDate = _a.isPastDate, getDayTextByDate = _a.getDayTextByDate,
|
36
36
|
// 상태값
|
@@ -56,6 +56,7 @@ var CalendarProvider = function (_a) {
|
|
56
56
|
handleScheduleDragEnd: handleScheduleDragEnd,
|
57
57
|
// 날짜 이벤트 핸들러
|
58
58
|
handleDateClick: handleDateClick,
|
59
|
+
handleDateDrag: handleDateDrag,
|
59
60
|
handleDateDragOver: handleDateDragOver,
|
60
61
|
handleDateDragLeave: handleDateDragLeave,
|
61
62
|
handleDateDrop: handleDateDrop,
|
@@ -1,2 +1,8 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import React from 'react';
|
2
|
+
import type { Schedule } from './types';
|
3
|
+
interface DailyViewProps {
|
4
|
+
schedules: Schedule[];
|
5
|
+
config?: any;
|
6
|
+
}
|
7
|
+
export declare const DailyView: React.FC<DailyViewProps>;
|
8
|
+
export {};
|
@@ -40,6 +40,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
41
|
exports.DailyView = void 0;
|
42
42
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
43
|
+
var react_1 = require("react");
|
43
44
|
var react_i18next_1 = require("react-i18next");
|
44
45
|
var styled_components_1 = __importStar(require("styled-components"));
|
45
46
|
var TextLabel_1 = require("../TextLabel");
|
@@ -48,9 +49,14 @@ var CalendarContext_1 = require("./CalendarContext");
|
|
48
49
|
var CurrentTimeIndicator_1 = require("./CurrentTimeIndicator");
|
49
50
|
var TimeBasedScheduleItem_1 = require("./TimeBasedScheduleItem");
|
50
51
|
var timeFormatUtils_1 = require("./timeFormatUtils");
|
51
|
-
var DailyView = function () {
|
52
|
+
var DailyView = function (_a) {
|
53
|
+
var schedules = _a.schedules, config = _a.config;
|
52
54
|
var i18n = (0, react_i18next_1.useTranslation)().i18n;
|
53
|
-
var
|
55
|
+
var _b = (0, CalendarContext_1.useCalendarContext)(), selectedDate = _b.selectedDate, selectedSchedules = _b.selectedSchedules, displayAllDayScheduleMode = _b.displayAllDayScheduleMode, getSchedulesForDate = _b.getSchedulesForDate, isDragOverDate = _b.isDragOverDate, handleDateDragOver = _b.handleDateDragOver, handleDateDragLeave = _b.handleDateDragLeave, handleDateDrop = _b.handleDateDrop, handleDateClick = _b.handleDateClick, handleDateDrag = _b.handleDateDrag, handleScheduleDragStart = _b.handleScheduleDragStart, handleScheduleDragEnd = _b.handleScheduleDragEnd, handleScheduleClick = _b.handleScheduleClick;
|
56
|
+
// 시간 드래그 상태
|
57
|
+
var _c = (0, react_1.useState)(null), timeSelectionStart = _c[0], setTimeSelectionStart = _c[1];
|
58
|
+
var _d = (0, react_1.useState)(null), timeSelectionEnd = _d[0], setTimeSelectionEnd = _d[1];
|
59
|
+
var _e = (0, react_1.useState)(false), isTimeDragging = _e[0], setIsTimeDragging = _e[1];
|
54
60
|
var currentDateForDaily = [selectedDate][0];
|
55
61
|
var HOURS_IN_DAY = Array.from({ length: 24 }, function (_, i) { return i; });
|
56
62
|
var getTimeSlotDate = function (baseDate, hour) {
|
@@ -58,10 +64,79 @@ var DailyView = function () {
|
|
58
64
|
date.setHours(hour, 0, 0, 0);
|
59
65
|
return date;
|
60
66
|
};
|
67
|
+
// 시간 드래그 시작
|
68
|
+
var handleTimeMouseDown = (0, react_1.useCallback)(function (hour, e) {
|
69
|
+
var _a;
|
70
|
+
if (!((_a = config === null || config === void 0 ? void 0 : config.DATE) === null || _a === void 0 ? void 0 : _a.DRAG))
|
71
|
+
return;
|
72
|
+
e.preventDefault();
|
73
|
+
setTimeSelectionStart(hour);
|
74
|
+
setTimeSelectionEnd(hour);
|
75
|
+
setIsTimeDragging(true);
|
76
|
+
}, [config]);
|
77
|
+
// 시간 드래그 중
|
78
|
+
var handleTimeMouseEnter = (0, react_1.useCallback)(function (hour) {
|
79
|
+
if (!isTimeDragging)
|
80
|
+
return;
|
81
|
+
setTimeSelectionEnd(hour);
|
82
|
+
}, [isTimeDragging]);
|
83
|
+
// 드래그 종료 시 콜백 호출
|
84
|
+
(0, react_1.useEffect)(function () {
|
85
|
+
var handleMouseUp = function () {
|
86
|
+
var _a;
|
87
|
+
if (isTimeDragging &&
|
88
|
+
timeSelectionStart !== null &&
|
89
|
+
timeSelectionEnd !== null &&
|
90
|
+
((_a = config === null || config === void 0 ? void 0 : config.DATE) === null || _a === void 0 ? void 0 : _a.DRAG)) {
|
91
|
+
// 선택된 시간 범위 계산
|
92
|
+
var startHour = Math.min(timeSelectionStart, timeSelectionEnd);
|
93
|
+
var endHour = Math.max(timeSelectionStart, timeSelectionEnd);
|
94
|
+
var startDateTime_1 = new Date(selectedDate);
|
95
|
+
startDateTime_1.setHours(startHour, 0, 0, 0);
|
96
|
+
var endDateTime_1 = new Date(selectedDate);
|
97
|
+
endDateTime_1.setHours(endHour, 59, 59, 999);
|
98
|
+
// 선택된 시간 범위에 포함되는 스케줄들 찾기
|
99
|
+
var schedulesInRange_1 = [];
|
100
|
+
schedules.forEach(function (schedule) {
|
101
|
+
var scheduleStart = new Date(schedule.startDate);
|
102
|
+
var scheduleEnd = new Date(schedule.endDate);
|
103
|
+
// 스케줄이 선택된 시간 범위와 겹치는지 확인
|
104
|
+
if (scheduleStart <= endDateTime_1 && scheduleEnd >= startDateTime_1) {
|
105
|
+
schedulesInRange_1.push(schedule);
|
106
|
+
}
|
107
|
+
});
|
108
|
+
// 선택된 날짜 (현재 날짜만)
|
109
|
+
var selectedDates = [new Date(selectedDate)];
|
110
|
+
handleDateDrag({
|
111
|
+
action: 'DRAG',
|
112
|
+
target: 'DATE',
|
113
|
+
dates: selectedDates,
|
114
|
+
schedules: schedulesInRange_1,
|
115
|
+
startDate: startDateTime_1.toISOString(),
|
116
|
+
endDate: endDateTime_1.toISOString()
|
117
|
+
});
|
118
|
+
}
|
119
|
+
setIsTimeDragging(false);
|
120
|
+
setTimeSelectionStart(null);
|
121
|
+
setTimeSelectionEnd(null);
|
122
|
+
};
|
123
|
+
if (isTimeDragging) {
|
124
|
+
document.addEventListener('mouseup', handleMouseUp);
|
125
|
+
return function () { return document.removeEventListener('mouseup', handleMouseUp); };
|
126
|
+
}
|
127
|
+
}, [isTimeDragging, timeSelectionStart, timeSelectionEnd, config, schedules, selectedDate]);
|
128
|
+
// 선택한 시간이 드래그 범위에 포함되는지 확인
|
129
|
+
var isTimeSlotInDragRange = (0, react_1.useCallback)(function (hour) {
|
130
|
+
if (timeSelectionStart === null || timeSelectionEnd === null)
|
131
|
+
return false;
|
132
|
+
var startHour = Math.min(timeSelectionStart, timeSelectionEnd);
|
133
|
+
var endHour = Math.max(timeSelectionStart, timeSelectionEnd);
|
134
|
+
return hour >= startHour && hour <= endHour;
|
135
|
+
}, [timeSelectionStart, timeSelectionEnd]);
|
61
136
|
return ((0, jsx_runtime_1.jsxs)(S_DailyContainer, { children: [(0, jsx_runtime_1.jsx)(AllDaySchedulesSection_1.AllDaySchedulesSection, { calendarDates: [selectedDate], displayAllDayScheduleMode: displayAllDayScheduleMode, getSchedulesForDate: getSchedulesForDate, handleDateDragOver: handleDateDragOver, handleDateDragLeave: handleDateDragLeave, handleDateDrop: handleDateDrop }), (0, jsx_runtime_1.jsxs)(S_DailyTimeGrid, __assign({ "$displayAllDayScheduleMode": displayAllDayScheduleMode }, { children: [(0, jsx_runtime_1.jsx)(CurrentTimeIndicator_1.CurrentTimeIndicator, { show: true, leftOffset: "80px" }), HOURS_IN_DAY.map(function (hour) {
|
62
137
|
var timeSlotDate = getTimeSlotDate(currentDateForDaily, hour);
|
63
138
|
var isDragOver = (isDragOverDate === null || isDragOverDate === void 0 ? void 0 : isDragOverDate.getTime()) === timeSlotDate.getTime();
|
64
|
-
return ((0, jsx_runtime_1.jsxs)(S_DailyTimeRow, { children: [(0, jsx_runtime_1.jsx)(S_DailyTimeLabel, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption2Bold", text: (0, timeFormatUtils_1.formatHour)(hour, 0, i18n.language), colorTheme: "sysTextTertiary" }) }), (0, jsx_runtime_1.jsx)(S_DailyTimeSlot, __assign({ "$isDragOver": isDragOver, onClick: function () { return handleDateClick(timeSlotDate, {}); }, onDragOver: function (e) { return handleDateDragOver(timeSlotDate, e); }, onDragLeave: handleDateDragLeave, onDrop: function (e) { return handleDateDrop(timeSlotDate, e); } }, { children: hour === 0 && ((0, jsx_runtime_1.jsx)(TimeBasedScheduleItem_1.TimeBasedScheduleItem, { schedules: getSchedulesForDate(currentDateForDaily), selectedSchedules: selectedSchedules, onClick: handleScheduleClick, handleScheduleDragStart: handleScheduleDragStart, handleScheduleDragEnd: handleScheduleDragEnd })) }))] }, hour));
|
139
|
+
return ((0, jsx_runtime_1.jsxs)(S_DailyTimeRow, { children: [(0, jsx_runtime_1.jsx)(S_DailyTimeLabel, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { styleTheme: "caption2Bold", text: (0, timeFormatUtils_1.formatHour)(hour, 0, i18n.language), colorTheme: "sysTextTertiary" }) }), (0, jsx_runtime_1.jsx)(S_DailyTimeSlot, __assign({ "$isDragOver": isDragOver, "$isInTimeDragRange": isTimeSlotInDragRange(hour), "$isTimeDragging": isTimeDragging, onClick: function () { return handleDateClick(timeSlotDate, {}); }, onDragOver: function (e) { return handleDateDragOver(timeSlotDate, e); }, onDragLeave: handleDateDragLeave, onDrop: function (e) { return handleDateDrop(timeSlotDate, e); }, onMouseDown: function (e) { return handleTimeMouseDown(hour, e); }, onMouseEnter: function () { return handleTimeMouseEnter(hour); } }, { children: hour === 0 && ((0, jsx_runtime_1.jsx)(TimeBasedScheduleItem_1.TimeBasedScheduleItem, { schedules: getSchedulesForDate(currentDateForDaily), selectedSchedules: selectedSchedules, onClick: handleScheduleClick, handleScheduleDragStart: handleScheduleDragStart, handleScheduleDragEnd: handleScheduleDragEnd })) }))] }, hour));
|
65
140
|
})] }))] }));
|
66
141
|
};
|
67
142
|
exports.DailyView = DailyView;
|
@@ -74,18 +149,24 @@ var S_DailyTimeGrid = styled_components_1.default.div(templateObject_3 || (templ
|
|
74
149
|
});
|
75
150
|
});
|
76
151
|
var S_DailyTimeRow = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n min-height: 60px;\n"], ["\n display: flex;\n min-height: 60px;\n"])));
|
77
|
-
var S_DailyTimeLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n border-bottom: 1px solid ", ";\n border-right: 1px solid ", ";\n display: flex;\n justify-content: center;\n min-width:
|
152
|
+
var S_DailyTimeLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n border-bottom: 1px solid ", ";\n border-right: 1px solid ", ";\n display: flex;\n justify-content: center;\n min-width: 63px;\n padding: 8px;\n"], ["\n align-items: center;\n border-bottom: 1px solid ", ";\n border-right: 1px solid ", ";\n display: flex;\n justify-content: center;\n min-width: 63px;\n padding: 8px;\n"])), function (_a) {
|
78
153
|
var theme = _a.theme;
|
79
154
|
return theme.ui_cpnt_divider;
|
80
155
|
}, function (_a) {
|
81
156
|
var theme = _a.theme;
|
82
157
|
return theme.ui_cpnt_divider;
|
83
158
|
});
|
84
|
-
var S_DailyTimeSlot = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: ", ";\n border-bottom: 1px solid ", ";\n cursor:
|
159
|
+
var S_DailyTimeSlot = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: ", ";\n border-bottom: 1px solid ", ";\n cursor: ", ";\n flex: 1;\n min-width: 0;\n overflow: visible;\n padding: 4px;\n position: relative;\n user-select: ", ";\n\n &:hover {\n background: ", ";\n }\n"], ["\n background: ", ";\n border-bottom: 1px solid ", ";\n cursor: ", ";\n flex: 1;\n min-width: 0;\n overflow: visible;\n padding: 4px;\n position: relative;\n user-select: ", ";\n\n &:hover {\n background: ", ";\n }\n"])), function (props) {
|
160
|
+
if (props.$isInTimeDragRange)
|
161
|
+
return props.theme.ui_cpnt_sheet_base;
|
162
|
+
if (props.$isDragOver)
|
163
|
+
return props.theme.ui_cpnt_sheet_base;
|
164
|
+
return 'transparent';
|
165
|
+
}, function (_a) {
|
85
166
|
var theme = _a.theme;
|
86
167
|
return theme.ui_cpnt_divider;
|
87
|
-
}, function (_a) {
|
168
|
+
}, function (props) { return (props.$isTimeDragging ? 'grabbing' : 'pointer'); }, function (props) { return (props.$isTimeDragging ? 'none' : 'auto'); }, function (_a) {
|
88
169
|
var theme = _a.theme;
|
89
|
-
return theme.
|
170
|
+
return theme.ui_cpnt_sheet_base;
|
90
171
|
});
|
91
172
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Schedule } from './types';
|
1
|
+
import type { Schedule, Config } from './types';
|
2
2
|
import type React from 'react';
|
3
3
|
interface MonthlyViewProps {
|
4
4
|
getDayTextByDate: (date: Date) => string;
|
@@ -23,6 +23,7 @@ interface MonthlyViewProps {
|
|
23
23
|
handleScheduleDragEnd?: () => void;
|
24
24
|
isDraggable?: boolean;
|
25
25
|
onSwitchToWeeklyView?: (date: Date) => void;
|
26
|
+
config?: Config;
|
26
27
|
}
|
27
28
|
export declare const MonthlyView: React.FC<MonthlyViewProps>;
|
28
29
|
export {};
|