sapp-common-package-test-final 1.0.10 → 1.0.12
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/components/SAPPCalendar/LMSWeeklyCalendar/LMSWeeklyCalendar.d.ts +15 -0
- package/dist/components/SAPPCalendar/LMSWeeklyCalendar/LMSWeeklyCell.d.ts +12 -0
- package/dist/components/SAPPCalendar/LMSWeeklyCalendar/LMSWeeklyEvent.d.ts +9 -0
- package/dist/components/SAPPCalendar/WeeklyCalendar/LMSWeeklyCalendar.d.ts +15 -0
- package/dist/constants/index.d.ts +38 -0
- package/dist/index.css +30 -11
- package/dist/index.js +269 -246
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +270 -247
- package/dist/index.modern.js.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
2
|
+
import React from 'react';
|
3
|
+
import { IEvent, INorm } from '../../../types';
|
4
|
+
interface IWeeklyCalendarProps {
|
5
|
+
startDate: Dayjs;
|
6
|
+
endDate: Dayjs;
|
7
|
+
events: IEvent[];
|
8
|
+
norms: INorm[];
|
9
|
+
onOpenDetail: (date: Date, events: IEvent[]) => void;
|
10
|
+
onOpenCreate: (date: Date) => void;
|
11
|
+
onEventDetail?: (event: IEvent) => void;
|
12
|
+
loading?: boolean;
|
13
|
+
}
|
14
|
+
declare const LMSWeeklyCalendar: ({ startDate, events, onOpenDetail, onOpenCreate, onEventDetail, loading }: IWeeklyCalendarProps) => React.JSX.Element;
|
15
|
+
export default LMSWeeklyCalendar;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
2
|
+
import React from 'react';
|
3
|
+
import { IEvent } from '../../../types';
|
4
|
+
interface IWeeklyCellProps {
|
5
|
+
events: IEvent[];
|
6
|
+
date: Dayjs;
|
7
|
+
onOpenDetail: (date: Date, events: IEvent[]) => void;
|
8
|
+
onOpenCreate: (date: Date) => void;
|
9
|
+
onEventDetail?: (event: IEvent) => void;
|
10
|
+
}
|
11
|
+
declare const LMSWeeklyCell: ({ events, date, onOpenDetail, onOpenCreate, onEventDetail }: IWeeklyCellProps) => React.JSX.Element;
|
12
|
+
export default LMSWeeklyCell;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IEvent } from '../../../types';
|
3
|
+
interface IWeeklyEventProps {
|
4
|
+
event: IEvent;
|
5
|
+
onOpenDetail: (date: Date, events: IEvent[]) => void;
|
6
|
+
onEventDetail?: (event: IEvent) => void;
|
7
|
+
}
|
8
|
+
declare const LMSWeeklyEvent: ({ event, onOpenDetail, onEventDetail }: IWeeklyEventProps) => React.JSX.Element;
|
9
|
+
export default LMSWeeklyEvent;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
2
|
+
import React from 'react';
|
3
|
+
import { IEvent, INorm } from '../../../types';
|
4
|
+
interface IWeeklyCalendarProps {
|
5
|
+
startDate: Dayjs;
|
6
|
+
endDate: Dayjs;
|
7
|
+
events: IEvent[];
|
8
|
+
norms: INorm[];
|
9
|
+
onOpenDetail: (date: Date, events: IEvent[]) => void;
|
10
|
+
onOpenCreate: (date: Date) => void;
|
11
|
+
onEventDetail?: (event: IEvent) => void;
|
12
|
+
loading?: boolean;
|
13
|
+
}
|
14
|
+
declare const LMSWeeklyCalendar: ({ startDate, onOpenDetail, onOpenCreate, onEventDetail, loading }: IWeeklyCalendarProps) => React.JSX.Element;
|
15
|
+
export default LMSWeeklyCalendar;
|
@@ -10,6 +10,35 @@ export declare enum DAYS_OF_WEEK {
|
|
10
10
|
Saturday = "Saturday",
|
11
11
|
Sunday = "Sunday"
|
12
12
|
}
|
13
|
+
export declare enum DAYS_OF_WEEK_SHORTEN {
|
14
|
+
Monday = "Mon",
|
15
|
+
Tuesday = "Tue",
|
16
|
+
Wednesday = "Wed",
|
17
|
+
Thursday = "Thur",
|
18
|
+
Friday = "Fri",
|
19
|
+
Saturday = "Sat",
|
20
|
+
Sunday = "Sun"
|
21
|
+
}
|
22
|
+
export declare enum HOUR_OF_DAY {
|
23
|
+
'07:00' = "07:00",
|
24
|
+
'08:00' = "08:00",
|
25
|
+
'09:00' = "09:00",
|
26
|
+
'10:00' = "10:00",
|
27
|
+
'11:00' = "11:00",
|
28
|
+
'12:00' = "12:00",
|
29
|
+
'13:00' = "13:00",
|
30
|
+
'14:00' = "14:00",
|
31
|
+
'15:00' = "15:00",
|
32
|
+
'16:00' = "16:00",
|
33
|
+
'17:00' = "17:00",
|
34
|
+
'18:00' = "18:00",
|
35
|
+
'19:00' = "19:00",
|
36
|
+
'20:00' = "20:00",
|
37
|
+
'21:00' = "21:00",
|
38
|
+
'22:00' = "22:00",
|
39
|
+
'23:00' = "23:00",
|
40
|
+
'24:00' = "24:00"
|
41
|
+
}
|
13
42
|
export declare enum EVENT_TYPES {
|
14
43
|
TEACHING = "TEACHING",
|
15
44
|
BUSY = "BUSY",
|
@@ -20,3 +49,12 @@ export declare const FORMAT_DATE_CARLENDA: {
|
|
20
49
|
MONTH_AND_WEEK: string;
|
21
50
|
DATE: string;
|
22
51
|
};
|
52
|
+
export declare enum LEARNING_MODE {
|
53
|
+
ONLINE = "ONLINE",
|
54
|
+
LIVE_ONLINE = "LIVE_ONLINE",
|
55
|
+
OFFLINE = "OFFLINE",
|
56
|
+
CASE_STUDY = "CASE_STUDY",
|
57
|
+
HOLIDAY = "HOLIDAY",
|
58
|
+
OVERDUE = "OVERDUE",
|
59
|
+
TEST = "TEST"
|
60
|
+
}
|
package/dist/index.css
CHANGED
@@ -65,7 +65,10 @@
|
|
65
65
|
._18t93 {
|
66
66
|
position: relative;
|
67
67
|
display: flex;
|
68
|
-
width: 100
|
68
|
+
width: 100%;
|
69
|
+
align-items: stretch;
|
70
|
+
-moz-column-gap: 12px;
|
71
|
+
column-gap: 12px
|
69
72
|
}
|
70
73
|
|
71
74
|
._18t93 * {
|
@@ -118,16 +121,14 @@
|
|
118
121
|
|
119
122
|
._3WrnL {
|
120
123
|
--tw-bg-opacity: 1;
|
121
|
-
background-color: rgb(
|
124
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
122
125
|
--tw-text-opacity: 1;
|
123
126
|
color: rgb(120 130 157 / var(--tw-text-opacity, 1))
|
124
127
|
}
|
125
128
|
|
126
129
|
._2-qBL {
|
127
|
-
|
128
|
-
|
129
|
-
--tw-bg-opacity: 1;
|
130
|
-
background-color: rgb(255 184 0 / var(--tw-bg-opacity, 1));
|
130
|
+
border-color: '#FFB800';
|
131
|
+
background-color: '#FFB800';
|
131
132
|
--tw-text-opacity: 1;
|
132
133
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
|
133
134
|
}
|
@@ -143,7 +144,7 @@
|
|
143
144
|
._1oq3N {
|
144
145
|
--tw-border-opacity: 1;
|
145
146
|
border-color: rgb(236 148 14 / var(--tw-border-opacity, 1));
|
146
|
-
background-color:
|
147
|
+
background-color: rgba(236,148,14,0.05);
|
147
148
|
--tw-text-opacity: 1;
|
148
149
|
color: rgb(236 148 14 / var(--tw-text-opacity, 1))
|
149
150
|
}
|
@@ -439,11 +440,9 @@ div._1uenJ > div {
|
|
439
440
|
|
440
441
|
._3lPkV > div {
|
441
442
|
position: absolute;
|
442
|
-
left: 5%;
|
443
443
|
z-index: 10;
|
444
444
|
width: 90%;
|
445
445
|
cursor: pointer;
|
446
|
-
border-radius: 0.125rem;
|
447
446
|
border-left-width: 2px !important;
|
448
447
|
border-style: solid !important;
|
449
448
|
padding: 12px
|
@@ -588,10 +587,23 @@ div._12I9I {
|
|
588
587
|
border-color: rgb(255 184 0 / var(--tw-border-opacity, 1)) !important
|
589
588
|
}
|
590
589
|
|
590
|
+
._1fd_Y {
|
591
|
+
display: flex;
|
592
|
+
align-items: center;
|
593
|
+
-moz-column-gap: 16px;
|
594
|
+
column-gap: 16px
|
595
|
+
}
|
596
|
+
|
597
|
+
._1sVO3 {
|
598
|
+
font-weight: 600;
|
599
|
+
--tw-text-opacity: 1;
|
600
|
+
color: rgb(37 47 74 / var(--tw-text-opacity, 1))
|
601
|
+
}
|
602
|
+
|
591
603
|
@tailwind utilities;
|
592
604
|
|
593
605
|
._2OOkM {
|
594
|
-
@apply w-full relative flex;
|
606
|
+
@apply w-full relative flex gap-x-3 items-stretch;
|
595
607
|
}
|
596
608
|
|
597
609
|
._2OOkM * {
|
@@ -781,7 +793,7 @@ div._30qaU > div {
|
|
781
793
|
}
|
782
794
|
|
783
795
|
._1tvYg > div {
|
784
|
-
@apply absolute z-10
|
796
|
+
@apply absolute z-10 w-[90%] !border-l-2 !border-solid p-3 cursor-pointer;
|
785
797
|
}
|
786
798
|
|
787
799
|
._35RRs {
|
@@ -874,6 +886,13 @@ div._1dZBN {
|
|
874
886
|
.ant-picker-cell-selected > div::before {
|
875
887
|
@apply !border-[#FFB800]
|
876
888
|
}
|
889
|
+
._1_tsV {
|
890
|
+
@apply flex items-center gap-x-4;
|
891
|
+
}
|
892
|
+
|
893
|
+
._3AKUg {
|
894
|
+
@apply text-black font-semibold;
|
895
|
+
}
|
877
896
|
|
878
897
|
._2Y9jk ._3puh0 {
|
879
898
|
display: none
|