pds-dev-kit-web 2.2.211 → 2.2.213
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/colorSet/UIColor.json +2 -1
- package/dist/src/common/styles/colorSet/index.d.ts +125 -124
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -0
- package/dist/src/common/styles/scroll/scrollbarStyle.d.ts +2 -0
- package/dist/src/common/styles/scroll/scrollbarStyle.js +4 -3
- 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/DesktopTabBar/DesktopTabBar.d.ts +1 -1
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +21 -8
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.d.ts +2 -1
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +13 -15
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/DesktopBasicModalWithTab.d.ts +3 -1
- package/dist/src/desktop/panels/DesktopBasicModalWithTab/DesktopBasicModalWithTab.js +16 -10
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +2 -1
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +7 -27
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.d.ts +3 -1
- package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.js +11 -5
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.d.ts +3 -1
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.js +11 -4
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.d.ts +3 -1
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +35 -15
- package/dist/src/mobile/panels/MobileBasicModal/MobileBasicModal.d.ts +3 -1
- package/dist/src/mobile/panels/MobileBasicModal/MobileBasicModal.js +13 -6
- package/package.json +1 -1
- package/release-note.md +3 -2
|
@@ -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",
|
|
@@ -1,128 +1,4 @@
|
|
|
1
1
|
declare const colorSet: {
|
|
2
|
-
readonly SemanticColor: {
|
|
3
|
-
blue500: string;
|
|
4
|
-
blue700: string;
|
|
5
|
-
blue300: string;
|
|
6
|
-
green700: string;
|
|
7
|
-
green500: string;
|
|
8
|
-
green300: string;
|
|
9
|
-
red500: string;
|
|
10
|
-
grey900: string;
|
|
11
|
-
grey500: string;
|
|
12
|
-
grey400: string;
|
|
13
|
-
grey100: string;
|
|
14
|
-
grey50: string;
|
|
15
|
-
white: string;
|
|
16
|
-
black: string;
|
|
17
|
-
darkblue500: string;
|
|
18
|
-
grey950: string;
|
|
19
|
-
darkgrey900: string;
|
|
20
|
-
darkgrey500: string;
|
|
21
|
-
darkgrey400: string;
|
|
22
|
-
darkgrey100: string;
|
|
23
|
-
darkgrey50: string;
|
|
24
|
-
darkred500: string;
|
|
25
|
-
darkgreen700: string;
|
|
26
|
-
orange500: string;
|
|
27
|
-
darkorange500: string;
|
|
28
|
-
opacity00: string;
|
|
29
|
-
opacity20: string;
|
|
30
|
-
opacity30: string;
|
|
31
|
-
opacity65: string;
|
|
32
|
-
darkgreen500: string;
|
|
33
|
-
grey70: string;
|
|
34
|
-
navy500: string;
|
|
35
|
-
lightgreen500: string;
|
|
36
|
-
pink500: string;
|
|
37
|
-
darkgrey70: string;
|
|
38
|
-
darknavy500: string;
|
|
39
|
-
darkpink500: string;
|
|
40
|
-
darklightgreen500: string;
|
|
41
|
-
opacity10: string;
|
|
42
|
-
grey600: string;
|
|
43
|
-
darkgrey600: string;
|
|
44
|
-
skyblue500: string;
|
|
45
|
-
skyblue300: string;
|
|
46
|
-
pink300: string;
|
|
47
|
-
lightpink500: string;
|
|
48
|
-
darkblue300: string;
|
|
49
|
-
darkblue700: string;
|
|
50
|
-
darkgreen300: string;
|
|
51
|
-
darkskyblue500: string;
|
|
52
|
-
navy100: string;
|
|
53
|
-
darknavy100: string;
|
|
54
|
-
opacity80: string;
|
|
55
|
-
opacity50: string;
|
|
56
|
-
grey30: string;
|
|
57
|
-
opacity95: string;
|
|
58
|
-
darkgrey30: string;
|
|
59
|
-
opacity40: string;
|
|
60
|
-
kakaoyellow: string;
|
|
61
|
-
pastelblue500: string;
|
|
62
|
-
pastelpink500: string;
|
|
63
|
-
pastelorange500: string;
|
|
64
|
-
pastelgreen500: string;
|
|
65
|
-
pastelpurple500: string;
|
|
66
|
-
darkpastelblue500: string;
|
|
67
|
-
darkpastelpink500: string;
|
|
68
|
-
darkpastelorange500: string;
|
|
69
|
-
darkpastelgreen500: string;
|
|
70
|
-
darkpastelpurple500: string;
|
|
71
|
-
green30: string;
|
|
72
|
-
darkgreen30: string;
|
|
73
|
-
orange50: string;
|
|
74
|
-
darkorange50: string;
|
|
75
|
-
orange30: string;
|
|
76
|
-
darkorange30: string;
|
|
77
|
-
green50: string;
|
|
78
|
-
darkgreen50: string;
|
|
79
|
-
opacity90: string;
|
|
80
|
-
facebookblue: string;
|
|
81
|
-
opacity05: string;
|
|
82
|
-
opacity15: string;
|
|
83
|
-
grey80: string;
|
|
84
|
-
grey200: string;
|
|
85
|
-
darkgrey80: string;
|
|
86
|
-
darkgrey200: string;
|
|
87
|
-
opacity70: string;
|
|
88
|
-
opacity60: string;
|
|
89
|
-
skyblue100: string;
|
|
90
|
-
green100: string;
|
|
91
|
-
darkgreen100: string;
|
|
92
|
-
darkskyblue100: string;
|
|
93
|
-
opacity25: string;
|
|
94
|
-
opacity35: string;
|
|
95
|
-
grey10: string;
|
|
96
|
-
darkgrey10: string;
|
|
97
|
-
blue50: string;
|
|
98
|
-
darkblue50: string;
|
|
99
|
-
blue10: string;
|
|
100
|
-
red10: string;
|
|
101
|
-
green10: string;
|
|
102
|
-
blue30: string;
|
|
103
|
-
red30: string;
|
|
104
|
-
orange300: string;
|
|
105
|
-
darkorange300: string;
|
|
106
|
-
darkpink300: string;
|
|
107
|
-
pastelblue300: string;
|
|
108
|
-
darkpastelblue300: string;
|
|
109
|
-
softpurple500: string;
|
|
110
|
-
darksoftpurple500: string;
|
|
111
|
-
coolpink500: string;
|
|
112
|
-
darkcoolpink500: string;
|
|
113
|
-
brown500: string;
|
|
114
|
-
darkbrown500: string;
|
|
115
|
-
yellow300: string;
|
|
116
|
-
darkyellow300: string;
|
|
117
|
-
grey20: string;
|
|
118
|
-
darkgrey20: string;
|
|
119
|
-
grey300: string;
|
|
120
|
-
darkgrey300: string;
|
|
121
|
-
yellow500: string;
|
|
122
|
-
darkyellow500: string;
|
|
123
|
-
grey450: string;
|
|
124
|
-
darkgrey450: string;
|
|
125
|
-
};
|
|
126
2
|
readonly PaletteColor_Dark: {
|
|
127
3
|
sys_container_background_01: string;
|
|
128
4
|
sys_container_background_02: string;
|
|
@@ -506,6 +382,130 @@ declare const colorSet: {
|
|
|
506
382
|
sys_on_base_hover_01: string;
|
|
507
383
|
sys_on_base_pressed_01: string;
|
|
508
384
|
};
|
|
385
|
+
readonly SemanticColor: {
|
|
386
|
+
blue500: string;
|
|
387
|
+
blue700: string;
|
|
388
|
+
blue300: string;
|
|
389
|
+
green700: string;
|
|
390
|
+
green500: string;
|
|
391
|
+
green300: string;
|
|
392
|
+
red500: string;
|
|
393
|
+
grey900: string;
|
|
394
|
+
grey500: string;
|
|
395
|
+
grey400: string;
|
|
396
|
+
grey100: string;
|
|
397
|
+
grey50: string;
|
|
398
|
+
white: string;
|
|
399
|
+
black: string;
|
|
400
|
+
darkblue500: string;
|
|
401
|
+
grey950: string;
|
|
402
|
+
darkgrey900: string;
|
|
403
|
+
darkgrey500: string;
|
|
404
|
+
darkgrey400: string;
|
|
405
|
+
darkgrey100: string;
|
|
406
|
+
darkgrey50: string;
|
|
407
|
+
darkred500: string;
|
|
408
|
+
darkgreen700: string;
|
|
409
|
+
orange500: string;
|
|
410
|
+
darkorange500: string;
|
|
411
|
+
opacity00: string;
|
|
412
|
+
opacity20: string;
|
|
413
|
+
opacity30: string;
|
|
414
|
+
opacity65: string;
|
|
415
|
+
darkgreen500: string;
|
|
416
|
+
grey70: string;
|
|
417
|
+
navy500: string;
|
|
418
|
+
lightgreen500: string;
|
|
419
|
+
pink500: string;
|
|
420
|
+
darkgrey70: string;
|
|
421
|
+
darknavy500: string;
|
|
422
|
+
darkpink500: string;
|
|
423
|
+
darklightgreen500: string;
|
|
424
|
+
opacity10: string;
|
|
425
|
+
grey600: string;
|
|
426
|
+
darkgrey600: string;
|
|
427
|
+
skyblue500: string;
|
|
428
|
+
skyblue300: string;
|
|
429
|
+
pink300: string;
|
|
430
|
+
lightpink500: string;
|
|
431
|
+
darkblue300: string;
|
|
432
|
+
darkblue700: string;
|
|
433
|
+
darkgreen300: string;
|
|
434
|
+
darkskyblue500: string;
|
|
435
|
+
navy100: string;
|
|
436
|
+
darknavy100: string;
|
|
437
|
+
opacity80: string;
|
|
438
|
+
opacity50: string;
|
|
439
|
+
grey30: string;
|
|
440
|
+
opacity95: string;
|
|
441
|
+
darkgrey30: string;
|
|
442
|
+
opacity40: string;
|
|
443
|
+
kakaoyellow: string;
|
|
444
|
+
pastelblue500: string;
|
|
445
|
+
pastelpink500: string;
|
|
446
|
+
pastelorange500: string;
|
|
447
|
+
pastelgreen500: string;
|
|
448
|
+
pastelpurple500: string;
|
|
449
|
+
darkpastelblue500: string;
|
|
450
|
+
darkpastelpink500: string;
|
|
451
|
+
darkpastelorange500: string;
|
|
452
|
+
darkpastelgreen500: string;
|
|
453
|
+
darkpastelpurple500: string;
|
|
454
|
+
green30: string;
|
|
455
|
+
darkgreen30: string;
|
|
456
|
+
orange50: string;
|
|
457
|
+
darkorange50: string;
|
|
458
|
+
orange30: string;
|
|
459
|
+
darkorange30: string;
|
|
460
|
+
green50: string;
|
|
461
|
+
darkgreen50: string;
|
|
462
|
+
opacity90: string;
|
|
463
|
+
facebookblue: string;
|
|
464
|
+
opacity05: string;
|
|
465
|
+
opacity15: string;
|
|
466
|
+
grey80: string;
|
|
467
|
+
grey200: string;
|
|
468
|
+
darkgrey80: string;
|
|
469
|
+
darkgrey200: string;
|
|
470
|
+
opacity70: string;
|
|
471
|
+
opacity60: string;
|
|
472
|
+
skyblue100: string;
|
|
473
|
+
green100: string;
|
|
474
|
+
darkgreen100: string;
|
|
475
|
+
darkskyblue100: string;
|
|
476
|
+
opacity25: string;
|
|
477
|
+
opacity35: string;
|
|
478
|
+
grey10: string;
|
|
479
|
+
darkgrey10: string;
|
|
480
|
+
blue50: string;
|
|
481
|
+
darkblue50: string;
|
|
482
|
+
blue10: string;
|
|
483
|
+
red10: string;
|
|
484
|
+
green10: string;
|
|
485
|
+
blue30: string;
|
|
486
|
+
red30: string;
|
|
487
|
+
orange300: string;
|
|
488
|
+
darkorange300: string;
|
|
489
|
+
darkpink300: string;
|
|
490
|
+
pastelblue300: string;
|
|
491
|
+
darkpastelblue300: string;
|
|
492
|
+
softpurple500: string;
|
|
493
|
+
darksoftpurple500: string;
|
|
494
|
+
coolpink500: string;
|
|
495
|
+
darkcoolpink500: string;
|
|
496
|
+
brown500: string;
|
|
497
|
+
darkbrown500: string;
|
|
498
|
+
yellow300: string;
|
|
499
|
+
darkyellow300: string;
|
|
500
|
+
grey20: string;
|
|
501
|
+
darkgrey20: string;
|
|
502
|
+
grey300: string;
|
|
503
|
+
darkgrey300: string;
|
|
504
|
+
yellow500: string;
|
|
505
|
+
darkyellow500: string;
|
|
506
|
+
grey450: string;
|
|
507
|
+
darkgrey450: string;
|
|
508
|
+
};
|
|
509
509
|
readonly PaletteColor_light: {
|
|
510
510
|
sys_container_background_01: string;
|
|
511
511
|
sys_container_background_02: string;
|
|
@@ -1796,6 +1796,7 @@ declare const colorSet: {
|
|
|
1796
1796
|
ui_142: string;
|
|
1797
1797
|
ui_143: string;
|
|
1798
1798
|
ui_144: string;
|
|
1799
|
+
ui_cpnt_badge_base_confirm: string;
|
|
1799
1800
|
};
|
|
1800
1801
|
};
|
|
1801
1802
|
export default colorSet;
|
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
|
-
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
8
7
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
8
|
+
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
9
9
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
|
-
SemanticColor: SemanticColor_json_1.default,
|
|
13
12
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
13
|
+
SemanticColor: SemanticColor_json_1.default,
|
|
14
14
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const scrollbarStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
2
2
|
export declare const scrollbarWithPaddingStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
3
|
+
export declare const scrollInvisible: import("styled-components").FlattenSimpleInterpolation;
|
|
4
|
+
export type ScrollVisibleType = 'hidden' | 'visible';
|
|
@@ -4,11 +4,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.scrollbarWithPaddingStyle = exports.scrollbarStyle = void 0;
|
|
7
|
+
exports.scrollInvisible = exports.scrollbarWithPaddingStyle = exports.scrollbarStyle = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
|
-
exports.scrollbarStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n background-clip: padding-box;\n border-radius: 5px;\n border: 2px solid transparent;\n }\n\n ::-webkit-scrollbar {\n display: block;\n width: 10px;\n }\n"], ["\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n background-clip: padding-box;\n border-radius: 5px;\n border: 2px solid transparent;\n }\n\n ::-webkit-scrollbar {\n display: block;\n width: 10px;\n }\n"])), function (_a) {
|
|
9
|
+
exports.scrollbarStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n background-clip: padding-box;\n border-radius: 5px;\n border: 2px solid transparent;\n }\n\n ::-webkit-scrollbar {\n display: block;\n width: 10px;\n }\n\n scrollbar-width: auto;\n"], ["\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n background-clip: padding-box;\n border-radius: 5px;\n border: 2px solid transparent;\n }\n\n ::-webkit-scrollbar {\n display: block;\n width: 10px;\n }\n\n scrollbar-width: auto;\n"])), function (_a) {
|
|
10
10
|
var theme = _a.theme;
|
|
11
11
|
return theme.ui_container_scroll;
|
|
12
12
|
});
|
|
13
13
|
exports.scrollbarWithPaddingStyle = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n\n ::-webkit-scrollbar-track {\n margin-bottom: 24px;\n margin-top: 24px;\n }\n"], ["\n ", "\n\n ::-webkit-scrollbar-track {\n margin-bottom: 24px;\n margin-top: 24px;\n }\n"])), exports.scrollbarStyle);
|
|
14
|
-
|
|
14
|
+
exports.scrollInvisible = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ::-webkit-scrollbar {\n background: transparent;\n display: block;\n width: 10px;\n }\n scrollbar-width: auto;\n"], ["\n ::-webkit-scrollbar {\n background: transparent;\n display: block;\n width: 10px;\n }\n scrollbar-width: auto;\n"])));
|
|
15
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -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 {};
|