@egov3/system-design 1.3.231 → 1.3.233
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/cjs/baseComponents/ProgressBar/ProgressBar.module.css.js +1 -1
- package/dist/cjs/components/Calendar/Body/index.js +5 -3
- package/dist/cjs/components/Calendar/Body/index.js.map +1 -1
- package/dist/cjs/components/Calendar/index.js +9 -5
- package/dist/cjs/components/Calendar/index.js.map +1 -1
- package/dist/cjs/components/ErrorModal/index.js +4 -51
- package/dist/cjs/components/ErrorModal/index.js.map +1 -1
- package/dist/cjs/components/ScreenMessage/ScreenMessage.module.css.js +22 -0
- package/dist/cjs/components/ScreenMessage/ScreenMessage.module.css.js.map +1 -0
- package/dist/cjs/components/ScreenMessage/index.js +60 -0
- package/dist/cjs/components/ScreenMessage/index.js.map +1 -0
- package/dist/cjs/constants/i18n/ErrorModal.js +0 -5
- package/dist/cjs/constants/i18n/ErrorModal.js.map +1 -1
- package/dist/cjs/constants/i18n/ScreenMessage.js +12 -0
- package/dist/cjs/constants/i18n/ScreenMessage.js.map +1 -0
- package/dist/cjs/constants/i18n/index.js +2 -0
- package/dist/cjs/constants/i18n/index.js.map +1 -1
- package/dist/cjs/customHooks/useCalendar.js +26 -12
- package/dist/cjs/customHooks/useCalendar.js.map +1 -1
- package/dist/cjs/index.js +44 -42
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/calendar.js +34 -5
- package/dist/cjs/utils/calendar.js.map +1 -1
- package/dist/esm/baseComponents/ProgressBar/ProgressBar.module.css.js +1 -1
- package/dist/esm/components/Calendar/Body/index.js +5 -3
- package/dist/esm/components/Calendar/Body/index.js.map +1 -1
- package/dist/esm/components/Calendar/index.js +10 -6
- package/dist/esm/components/Calendar/index.js.map +1 -1
- package/dist/esm/components/ErrorModal/index.js +5 -52
- package/dist/esm/components/ErrorModal/index.js.map +1 -1
- package/dist/esm/components/ScreenMessage/ScreenMessage.module.css.js +18 -0
- package/dist/esm/components/ScreenMessage/ScreenMessage.module.css.js.map +1 -0
- package/dist/esm/components/ScreenMessage/index.js +58 -0
- package/dist/esm/components/ScreenMessage/index.js.map +1 -0
- package/dist/esm/constants/i18n/ErrorModal.js +0 -5
- package/dist/esm/constants/i18n/ErrorModal.js.map +1 -1
- package/dist/esm/constants/i18n/ScreenMessage.js +10 -0
- package/dist/esm/constants/i18n/ScreenMessage.js.map +1 -0
- package/dist/esm/constants/i18n/index.js +2 -0
- package/dist/esm/constants/i18n/index.js.map +1 -1
- package/dist/esm/customHooks/useCalendar.js +27 -13
- package/dist/esm/customHooks/useCalendar.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/calendar.js +31 -6
- package/dist/esm/utils/calendar.js.map +1 -1
- package/dist/types/components/Calendar/Body/index.d.ts +3 -1
- package/dist/types/components/Calendar/index.d.ts +3 -1
- package/dist/types/components/ScreenMessage/index.d.ts +16 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/components/ErrorModal/ErrorModal.module.css.js +0 -22
- package/dist/cjs/components/ErrorModal/ErrorModal.module.css.js.map +0 -1
- package/dist/esm/components/ErrorModal/ErrorModal.module.css.js +0 -18
- package/dist/esm/components/ErrorModal/ErrorModal.module.css.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22,17 +22,17 @@ var index$G = require('./baseComponents/ProgressBar/index.js');
|
|
|
22
22
|
var index$a = require('./baseComponents/RadioGroup/index.js');
|
|
23
23
|
var index$I = require('./baseComponents/RadioToggle/index.js');
|
|
24
24
|
var index$J = require('./baseComponents/Responses/index.js');
|
|
25
|
-
var index$
|
|
26
|
-
var index$
|
|
27
|
-
var index$
|
|
28
|
-
var index$
|
|
29
|
-
var index$
|
|
30
|
-
var index$
|
|
31
|
-
var index
|
|
32
|
-
var index$
|
|
33
|
-
var index
|
|
34
|
-
var index$
|
|
35
|
-
var index$
|
|
25
|
+
var index$M = require('./baseComponents/SearchBar/index.js');
|
|
26
|
+
var index$N = require('./baseComponents/SelectBoxButton/index.js');
|
|
27
|
+
var index$R = require('./baseComponents/StatusStepper/index.js');
|
|
28
|
+
var index$S = require('./baseComponents/StatusText/index.js');
|
|
29
|
+
var index$T = require('./baseComponents/TabButtons/index.js');
|
|
30
|
+
var index$U = require('./baseComponents/Table/index.js');
|
|
31
|
+
var index$10 = require('./baseComponents/TextareaField/index.js');
|
|
32
|
+
var index$_ = require('./baseComponents/TextPair/index.js');
|
|
33
|
+
var index$$ = require('./baseComponents/TextWithAction/index.js');
|
|
34
|
+
var index$11 = require('./baseComponents/Title/index.js');
|
|
35
|
+
var index$12 = require('./baseComponents/Typography/index.js');
|
|
36
36
|
var index$6 = require('./components/Calendar/index.js');
|
|
37
37
|
var index$7 = require('./components/Calendar/Body/index.js');
|
|
38
38
|
var index$f = require('./components/ErrorModal/index.js');
|
|
@@ -48,7 +48,7 @@ var index$j = require('./components/Messages/HelpNotificationItem/index.js');
|
|
|
48
48
|
var index$s = require('./components/Messages/MsgBody/index.js');
|
|
49
49
|
var index$t = require('./components/Messages/MsgComponentHeader/index.js');
|
|
50
50
|
var index$u = require('./components/Messages/MsgSearch/index.js');
|
|
51
|
-
var index$
|
|
51
|
+
var index$14 = require('./components/Navigation/ViewToggle/index.js');
|
|
52
52
|
var index$w = require('./components/Notification/Item/index.js');
|
|
53
53
|
var index$x = require('./components/Notification/Wrapper/index.js');
|
|
54
54
|
var index$D = require('./components/Presale/index.js');
|
|
@@ -57,20 +57,21 @@ var index$b = require('./components/Profile/DocCard/index.js');
|
|
|
57
57
|
var index$k = require('./components/Profile/IconToggleItem/index.js');
|
|
58
58
|
var index$F = require('./components/Profile/ProfileHealthGeneral/index.js');
|
|
59
59
|
var index$K = require('./components/Profile/RightMenuSectionItem/index.js');
|
|
60
|
-
var index$
|
|
60
|
+
var index$P = require('./components/Profile/SetUpAccess/index.js');
|
|
61
61
|
var index$H = require('./components/QRAppButton/index.js');
|
|
62
62
|
var index$g = require('./components/Services/Feedback/index.js');
|
|
63
63
|
var index$h = require('./components/Services/FileForUpload/index.js');
|
|
64
64
|
var index$v = require('./components/Services/NextStepComponent/index.js');
|
|
65
65
|
var index$B = require('./components/Services/PersonalIDTemplate/index.js');
|
|
66
|
-
var index$
|
|
67
|
-
var index$
|
|
68
|
-
var index$
|
|
69
|
-
var index$
|
|
70
|
-
var index$V = require('./baseComponents/Table/
|
|
71
|
-
var index$W = require('./baseComponents/Table/
|
|
72
|
-
var index$X = require('./baseComponents/Table/
|
|
73
|
-
var index$Y = require('./baseComponents/Table/
|
|
66
|
+
var index$O = require('./components/Services/ServiceCardComponent/index.js');
|
|
67
|
+
var index$13 = require('./components/Services/UsefulServiceCard/index.js');
|
|
68
|
+
var index$L = require('./components/ScreenMessage/index.js');
|
|
69
|
+
var index$Q = require('./components/SocialCard/index.js');
|
|
70
|
+
var index$V = require('./baseComponents/Table/TableCell/index.js');
|
|
71
|
+
var index$W = require('./baseComponents/Table/TableFooter/index.js');
|
|
72
|
+
var index$X = require('./baseComponents/Table/TableHead/index.js');
|
|
73
|
+
var index$Y = require('./baseComponents/Table/TableHeadCell/index.js');
|
|
74
|
+
var index$Z = require('./baseComponents/Table/TableRow/index.js');
|
|
74
75
|
|
|
75
76
|
|
|
76
77
|
|
|
@@ -94,17 +95,17 @@ exports.CustomRadioButton = index$a.CustomRadioButton;
|
|
|
94
95
|
exports.RadioGroup = index$a.RadioGroup;
|
|
95
96
|
exports.RadioToggle = index$I.RadioToggle;
|
|
96
97
|
exports.Responses = index$J.Responses;
|
|
97
|
-
exports.SearchBar = index$
|
|
98
|
-
exports.SelectBoxButton = index$
|
|
99
|
-
exports.StatusStepper = index$
|
|
100
|
-
exports.StatusText = index$
|
|
101
|
-
exports.TabButtons = index$
|
|
102
|
-
exports.Table = index$
|
|
103
|
-
exports.TextareaField = index
|
|
104
|
-
exports.TextPair = index$
|
|
105
|
-
exports.TextWithAction = index
|
|
106
|
-
exports.Title = index$
|
|
107
|
-
exports.Typography = index$
|
|
98
|
+
exports.SearchBar = index$M.SearchBar;
|
|
99
|
+
exports.SelectBoxButton = index$N.SelectBoxButton;
|
|
100
|
+
exports.StatusStepper = index$R.StatusStepper;
|
|
101
|
+
exports.StatusText = index$S.StatusText;
|
|
102
|
+
exports.TabButtons = index$T.TabButtons;
|
|
103
|
+
exports.Table = index$U.Table;
|
|
104
|
+
exports.TextareaField = index$10.TextareaField;
|
|
105
|
+
exports.TextPair = index$_.TextPair;
|
|
106
|
+
exports.TextWithAction = index$$.TextWithAction;
|
|
107
|
+
exports.Title = index$11.Title;
|
|
108
|
+
exports.Typography = index$12.Typography;
|
|
108
109
|
exports.Calendar = index$6.Calendar;
|
|
109
110
|
exports.CalendarBody = index$7.CalendarBody;
|
|
110
111
|
exports.ErrorModal = index$f.ErrorModal;
|
|
@@ -120,7 +121,7 @@ exports.HelpNotificationItem = index$j.HelpNotificationItem;
|
|
|
120
121
|
exports.MsgBody = index$s.MsgBody;
|
|
121
122
|
exports.MsgComponentHeader = index$t.MsgComponentHeader;
|
|
122
123
|
exports.MsgSearch = index$u.MsgSearch;
|
|
123
|
-
exports.ViewToggle = index$
|
|
124
|
+
exports.ViewToggle = index$14.ViewToggle;
|
|
124
125
|
exports.NotificationItem = index$w.NotificationItem;
|
|
125
126
|
exports.NotificationWrapper = index$x.NotificationWrapper;
|
|
126
127
|
exports.PresaleComponent = index$D.PresaleComponent;
|
|
@@ -129,18 +130,19 @@ exports.DocCard = index$b.DocCard;
|
|
|
129
130
|
exports.IconToggleItem = index$k.IconToggleItem;
|
|
130
131
|
exports.ProfileHealthGeneral = index$F.ProfileHealthGeneral;
|
|
131
132
|
exports.RightMenuSectionItem = index$K.RightMenuSectionItem;
|
|
132
|
-
exports.SetUpAccess = index$
|
|
133
|
+
exports.SetUpAccess = index$P.SetUpAccess;
|
|
133
134
|
exports.QRAppButton = index$H.QRAppButton;
|
|
134
135
|
exports.Feedback = index$g.Feedback;
|
|
135
136
|
exports.FileForUpload = index$h.FileForUpload;
|
|
136
137
|
exports.NextStepComponent = index$v.NextStepComponent;
|
|
137
138
|
exports.PersonalIDTemplate = index$B.PersonalIDTemplate;
|
|
138
|
-
exports.ServiceCardComponent = index$
|
|
139
|
-
exports.UsefulServiceCard = index$
|
|
140
|
-
exports.
|
|
141
|
-
exports.
|
|
142
|
-
exports.
|
|
143
|
-
exports.
|
|
144
|
-
exports.
|
|
145
|
-
exports.
|
|
139
|
+
exports.ServiceCardComponent = index$O.ServiceCardComponent;
|
|
140
|
+
exports.UsefulServiceCard = index$13.UsefulServiceCard;
|
|
141
|
+
exports.ScreenMessage = index$L.ScreenMessage;
|
|
142
|
+
exports.SocialCard = index$Q.SocialCard;
|
|
143
|
+
exports.TableCell = index$V.TableCell;
|
|
144
|
+
exports.TableFooter = index$W.TableFooter;
|
|
145
|
+
exports.TableHead = index$X.TableHead;
|
|
146
|
+
exports.TableHeadCell = index$Y.TableHeadCell;
|
|
147
|
+
exports.TableRow = index$Z.TableRow;
|
|
146
148
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var convertType = require('./date/convertType.js');
|
|
4
|
+
var getDaysInMonth = require('./date/getDaysInMonth.js');
|
|
4
5
|
|
|
5
6
|
const formatCalendarDate = (date) => {
|
|
6
7
|
if (!date) {
|
|
@@ -26,6 +27,24 @@ const isCalendarDateAfter = (date, maxDate) => {
|
|
|
26
27
|
return (getCalendarDateWithoutTime(date).getTime() >
|
|
27
28
|
getCalendarDateWithoutTime(maxDate).getTime());
|
|
28
29
|
};
|
|
30
|
+
const isCalendarDateBefore = (date, minDate) => {
|
|
31
|
+
if (!date || !minDate) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return (getCalendarDateWithoutTime(date).getTime() <
|
|
35
|
+
getCalendarDateWithoutTime(minDate).getTime());
|
|
36
|
+
};
|
|
37
|
+
const addCalendarMonths = (date, months) => {
|
|
38
|
+
const targetMonthStart = new Date(date.getFullYear(), date.getMonth() + months, 1);
|
|
39
|
+
const lastDayOfTargetMonth = getDaysInMonth.getDaysInMonth(targetMonthStart.getMonth(), targetMonthStart.getFullYear());
|
|
40
|
+
return new Date(targetMonthStart.getFullYear(), targetMonthStart.getMonth(), Math.min(date.getDate(), lastDayOfTargetMonth));
|
|
41
|
+
};
|
|
42
|
+
const isCalendarPeriodWithinLimit = (fromDate, toDate, maxPeriodMonths) => {
|
|
43
|
+
if (!fromDate || !toDate || !maxPeriodMonths || maxPeriodMonths <= 0) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
return !isCalendarDateAfter(toDate, addCalendarMonths(fromDate, maxPeriodMonths));
|
|
47
|
+
};
|
|
29
48
|
const getPeriodDateKey = (periodKey) => `${periodKey}Date`;
|
|
30
49
|
const updateSelectedPeriod = (currentPeriod, selectedPeriodInterval, nextDate) => {
|
|
31
50
|
const periodDateKey = getPeriodDateKey(selectedPeriodInterval);
|
|
@@ -44,20 +63,30 @@ const updateSelectedPeriod = (currentPeriod, selectedPeriodInterval, nextDate) =
|
|
|
44
63
|
};
|
|
45
64
|
const isCalendarMonthAfterDate = (month, year, date) => year > date.getFullYear() ||
|
|
46
65
|
(year === date.getFullYear() && month > date.getMonth());
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
const isCalendarMonthBeforeDate = (month, year, date) => year < date.getFullYear() ||
|
|
67
|
+
(year === date.getFullYear() && month < date.getMonth());
|
|
68
|
+
const clampCalendarVisibleDate = (date, maxDate, minDate) => {
|
|
69
|
+
if (maxDate &&
|
|
70
|
+
isCalendarMonthAfterDate(date.getMonth(), date.getFullYear(), maxDate)) {
|
|
71
|
+
return new Date(maxDate.getFullYear(), maxDate.getMonth(), 1);
|
|
72
|
+
}
|
|
73
|
+
if (minDate &&
|
|
74
|
+
isCalendarMonthBeforeDate(date.getMonth(), date.getFullYear(), minDate)) {
|
|
75
|
+
return new Date(minDate.getFullYear(), minDate.getMonth(), 1);
|
|
51
76
|
}
|
|
52
|
-
return
|
|
77
|
+
return date;
|
|
53
78
|
};
|
|
54
79
|
|
|
80
|
+
exports.addCalendarMonths = addCalendarMonths;
|
|
55
81
|
exports.clampCalendarVisibleDate = clampCalendarVisibleDate;
|
|
56
82
|
exports.formatCalendarDate = formatCalendarDate;
|
|
57
83
|
exports.getCalendarDateWithoutTime = getCalendarDateWithoutTime;
|
|
58
84
|
exports.getPeriodDateKey = getPeriodDateKey;
|
|
59
85
|
exports.isCalendarDateAfter = isCalendarDateAfter;
|
|
86
|
+
exports.isCalendarDateBefore = isCalendarDateBefore;
|
|
60
87
|
exports.isCalendarMonthAfterDate = isCalendarMonthAfterDate;
|
|
88
|
+
exports.isCalendarMonthBeforeDate = isCalendarMonthBeforeDate;
|
|
89
|
+
exports.isCalendarPeriodWithinLimit = isCalendarPeriodWithinLimit;
|
|
61
90
|
exports.isSameCalendarDate = isSameCalendarDate;
|
|
62
91
|
exports.normalizeCalendarDate = normalizeCalendarDate;
|
|
63
92
|
exports.updateSelectedPeriod = updateSelectedPeriod;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sources":["../../../src/utils/calendar.tsx"],"sourcesContent":[null],"names":["convertType"],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.js","sources":["../../../src/utils/calendar.tsx"],"sourcesContent":[null],"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,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,EACvE;AACA,QAAA,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC/D;AACA,IAAA,OAAO,IAAI;AACb;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var css_248z = "@property --progress {\n syntax: \"<angle>\";\n inherits: true;\n initial-value: 0deg;\n}\n\n.ProgressBar-module_circularProgress__8HM2U {\n width: 160px;\n height: 160px;\n flex-shrink: 0;\n transition: --progress 400ms ease-out;\n}\n\n.ProgressBar-module_circularProgressRing__naIHN {\n width: 160px;\n height: 160px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: conic-gradient(\n from
|
|
1
|
+
var css_248z = "@property --progress {\n syntax: \"<angle>\";\n inherits: true;\n initial-value: 0deg;\n}\n\n.ProgressBar-module_circularProgress__8HM2U {\n width: 160px;\n height: 160px;\n flex-shrink: 0;\n transition: --progress 400ms ease-out;\n}\n\n.ProgressBar-module_circularProgressRing__naIHN {\n width: 160px;\n height: 160px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: conic-gradient(\n from 0deg at 50% 50%,\n #247afb 0deg,\n #86c7ee calc(var(--progress) / 2),\n #247afb var(--progress),\n #dee6ef var(--progress),\n #dee6ef 360deg\n );\n}\n\n.ProgressBar-module_circularProgressInner__72Ule {\n width: 128px;\n height: 128px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--surface-surface-2);\n}\n\n.ProgressBar-module_circularProgressCompleted__P-l4j .ProgressBar-module_circularProgressRing__naIHN {\n background: var(--icon-accent-color);\n}\n";
|
|
2
2
|
var styles = {"circularProgress":"ProgressBar-module_circularProgress__8HM2U","circularProgressRing":"ProgressBar-module_circularProgressRing__naIHN","circularProgressInner":"ProgressBar-module_circularProgressInner__72Ule","circularProgressCompleted":"ProgressBar-module_circularProgressCompleted__P-l4j"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
@@ -55,15 +55,17 @@ import { useCalendar } from '../../../customHooks/useCalendar.js';
|
|
|
55
55
|
import { getMonthNameProper } from '../../../utils/date/getMonthNameProper.js';
|
|
56
56
|
import styles from './CalendarBody.module.css.js';
|
|
57
57
|
|
|
58
|
-
const CalendarBody = ({ lang, month = new Date().getMonth(), year = new Date().getFullYear(), selectedDate = null, rangeStart = null, rangeEnd = null, maxDate = null, selectedPeriodInterval = PERIOD_KEYS.from, onDayClick, onMonthChange, }) => {
|
|
59
|
-
const { days, years, visibleMonth, visibleYear, isYearPickerOpen, isNextMonthDisabled, setIsYearPickerOpen, yearListRef, changeMonth, pickYear, } = useCalendar({
|
|
58
|
+
const CalendarBody = ({ lang, month = new Date().getMonth(), year = new Date().getFullYear(), selectedDate = null, rangeStart = null, rangeEnd = null, minDate = null, maxDate = null, maxPeriodMonths = null, selectedPeriodInterval = PERIOD_KEYS.from, onDayClick, onMonthChange, }) => {
|
|
59
|
+
const { days, years, visibleMonth, visibleYear, isYearPickerOpen, isNextMonthDisabled, isPrevMonthDisabled, setIsYearPickerOpen, yearListRef, changeMonth, pickYear, } = useCalendar({
|
|
60
60
|
month,
|
|
61
61
|
year,
|
|
62
62
|
selectedDate,
|
|
63
63
|
selectedPeriodInterval,
|
|
64
64
|
rangeStart,
|
|
65
65
|
rangeEnd,
|
|
66
|
+
minDate,
|
|
66
67
|
maxDate,
|
|
68
|
+
maxPeriodMonths,
|
|
67
69
|
onMonthChange,
|
|
68
70
|
});
|
|
69
71
|
const monthName = getMonthNameProper(visibleMonth, lang);
|
|
@@ -74,7 +76,7 @@ const CalendarBody = ({ lang, month = new Date().getMonth(), year = new Date().g
|
|
|
74
76
|
setIsYearPickerOpen(false);
|
|
75
77
|
}, "data-testid": "Calendar_CLOSE_YEAR_PICKER_BTN", children: jsx(CloseIcon, { width: "24px", height: "24px" }) })) : (jsxs(Fragment, { children: [jsx("button", { className: styles.navButton, type: "button", onClick: () => {
|
|
76
78
|
changeMonth(-1);
|
|
77
|
-
}, "data-testid": "Calendar_PREV_MONTH_BTN", children: jsx(ChevronLeftIcon, { width: "24px", height: "24px", fill: "var(--icon-accent-color)" }) }), jsx("button", { className: styles.navButton, type: "button", onClick: () => {
|
|
79
|
+
}, "data-testid": "Calendar_PREV_MONTH_BTN", disabled: isPrevMonthDisabled, children: jsx(ChevronLeftIcon, { width: "24px", height: "24px", fill: "var(--icon-accent-color)" }) }), jsx("button", { className: styles.navButton, type: "button", onClick: () => {
|
|
78
80
|
changeMonth(1);
|
|
79
81
|
}, "data-testid": "Calendar_NEXT_MONTH_BTN", disabled: isNextMonthDisabled, children: jsx(ChevronRightIcon, { width: "24px", height: "24px", fill: "var(--icon-accent-color)" }) })] }))] }), isYearPickerOpen ? (jsx("div", { ref: yearListRef, className: styles.years, "data-testid": "Calendar_YEARS_LIST", children: years.map((yearItem) => (jsx("button", { "data-testid": `CalendarBody_YEAR_${yearItem}`, "data-year": yearItem, type: "button", className: joinClasses(styles.yearItem, yearItem === visibleYear && styles.yearItemSelected), onClick: () => {
|
|
80
82
|
pickYear(yearItem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Calendar/Body/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Calendar/Body/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BO,MAAM,YAAY,GAAG,CAAC,EAC3B,IAAI,EACJ,KAAK,GAAG,IAAI,IAAI,EAAE,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 @@ import '../../baseComponents/TextareaField/index.js';
|
|
|
46
46
|
import '../../baseComponents/TextWithAction/TextWithAction.module.css.js';
|
|
47
47
|
import '../../baseComponents/Title/Title.module.css.js';
|
|
48
48
|
import { PERIOD_KEYS } from '../../constants/calendar/index.js';
|
|
49
|
-
import { normalizeCalendarDate, isCalendarDateAfter, updateSelectedPeriod } from '../../utils/calendar.js';
|
|
49
|
+
import { normalizeCalendarDate, isCalendarPeriodWithinLimit, isCalendarDateBefore, isCalendarDateAfter, updateSelectedPeriod } from '../../utils/calendar.js';
|
|
50
50
|
import { CalendarBody } from './Body/index.js';
|
|
51
51
|
import styles from './Calendar.module.css.js';
|
|
52
52
|
import { CalendarHeader } from './Header/index.js';
|
|
@@ -66,9 +66,10 @@ const normalizeSelectedPeriod = (period = EMPTY_PERIOD) => {
|
|
|
66
66
|
periodSelected: Boolean(fromDate && toDate),
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
const Calendar = ({ mode = "period", isOpen = true, setIsOpen, lang, title, maxDate = null, selectedDate, selectedPeriod, defaultPeriodInterval = PERIOD_KEYS.from, onDateChange, onPeriodChange, onSave, }) => {
|
|
69
|
+
const Calendar = ({ mode = "period", isOpen = true, setIsOpen, lang, title, minDate = null, maxDate = null, maxPeriodMonths = null, selectedDate, selectedPeriod, defaultPeriodInterval = PERIOD_KEYS.from, onDateChange, onPeriodChange, onSave, }) => {
|
|
70
70
|
const langDic = i18n.Calendar;
|
|
71
71
|
const isPeriodMode = mode === "period";
|
|
72
|
+
const normalizedMinDate = normalizeCalendarDate(minDate);
|
|
72
73
|
const normalizedMaxDate = normalizeCalendarDate(maxDate);
|
|
73
74
|
const normalizedSelectedDate = normalizeCalendarDate(selectedDate);
|
|
74
75
|
const actualSelectedPeriod = normalizeSelectedPeriod(selectedPeriod);
|
|
@@ -85,11 +86,14 @@ const Calendar = ({ mode = "period", isOpen = true, setIsOpen, lang, title, maxD
|
|
|
85
86
|
? langDic.SelectPeriodTitle[lang]
|
|
86
87
|
: langDic.SelectDateTitle[lang];
|
|
87
88
|
const modalTitle = title ?? defaultModalTitle;
|
|
89
|
+
const isDateOutOfBounds = (date) => isCalendarDateBefore(date, normalizedMinDate) ||
|
|
90
|
+
isCalendarDateAfter(date, normalizedMaxDate);
|
|
88
91
|
const isSaveDisabled = isPeriodMode
|
|
89
92
|
? !actualSelectedPeriod.periodSelected ||
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
isDateOutOfBounds(rangeStart) ||
|
|
94
|
+
isDateOutOfBounds(rangeEnd) ||
|
|
95
|
+
!isCalendarPeriodWithinLimit(rangeStart, rangeEnd, maxPeriodMonths)
|
|
96
|
+
: !normalizedSelectedDate || isDateOutOfBounds(normalizedSelectedDate);
|
|
93
97
|
const handleDateChange = (date) => {
|
|
94
98
|
const nextDate = normalizedSelectedDate?.getTime() === date.getTime() ? null : date;
|
|
95
99
|
onDateChange?.(nextDate);
|
|
@@ -117,7 +121,7 @@ const Calendar = ({ mode = "period", isOpen = true, setIsOpen, lang, title, maxD
|
|
|
117
121
|
onClick: handleSave,
|
|
118
122
|
isDisabled: isSaveDisabled,
|
|
119
123
|
},
|
|
120
|
-
], children: jsxs("div", { className: styles.wrapper, "data-testid": "Calendar_WRAPPER", children: [isPeriodMode && (jsx(CalendarHeader, { lang: lang, selectedPeriod: actualSelectedPeriod, selectedPeriodInterval: selectedPeriodInterval, setSelectedPeriodInterval: setSelectedPeriodInterval })), jsx(CalendarBody, { lang: lang, month: visibleDate.getMonth(), year: visibleDate.getFullYear(), selectedDate: selectedCalendarDate, selectedPeriodInterval: selectedPeriodInterval, rangeStart: rangeStart, rangeEnd: rangeEnd, maxDate: normalizedMaxDate, onDayClick: handleDayClick })] }) }));
|
|
124
|
+
], children: jsxs("div", { className: styles.wrapper, "data-testid": "Calendar_WRAPPER", children: [isPeriodMode && (jsx(CalendarHeader, { lang: lang, selectedPeriod: actualSelectedPeriod, selectedPeriodInterval: selectedPeriodInterval, setSelectedPeriodInterval: setSelectedPeriodInterval })), jsx(CalendarBody, { lang: lang, month: visibleDate.getMonth(), year: visibleDate.getFullYear(), selectedDate: selectedCalendarDate, selectedPeriodInterval: selectedPeriodInterval, rangeStart: rangeStart, rangeEnd: rangeEnd, minDate: normalizedMinDate, maxDate: normalizedMaxDate, maxPeriodMonths: maxPeriodMonths, onDayClick: handleDayClick })] }) }));
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
export { Calendar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Calendar/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Calendar/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAM,YAAY,GAAoB;AACpC,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,cAAc,EAAE,KAAK;CACtB;AAED,MAAM,uBAAuB,GAAG,CAC9B,MAAA,GAA0B,YAAY,KACnB;IACnB,MAAM,QAAQ,GAAG,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC;IACvD,MAAM,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC;IAEnD,OAAO;AACL,QAAA,GAAG,MAAM;QACT,QAAQ;QACR,MAAM;AACN,QAAA,cAAc,EAAE,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC;KAC5C;AACH,CAAC;MAkBY,QAAQ,GAAG,CAAC,EACvB,IAAI,GAAG,QAAQ,EACf,MAAM,GAAG,IAAI,EACb,SAAS,EACT,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,IAAI,EACd,OAAO,GAAG,IAAI,EACd,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;AACnB,gBAAA,UAAU,EAAE,cAAc;AAC3B,aAAA;AACF,SAAA,EAAA,QAAA,EAEDC,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,iBAAc,kBAAkB,EAAA,QAAA,EAAA,CAC3D,YAAY,KACXD,IAAC,cAAc,EAAA,EACb,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,oBAAoB,EACpC,sBAAsB,EAAE,sBAAsB,EAC9C,yBAAyB,EAAE,yBAAyB,EAAA,CACpD,CACH,EAEDA,GAAA,CAAC,YAAY,IACX,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE,EAC7B,IAAI,EAAE,WAAW,CAAC,WAAW,EAAE,EAC/B,YAAY,EAAE,oBAAoB,EAClC,sBAAsB,EAAE,sBAAsB,EAC9C,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,iBAAiB,EAC1B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,cAAc,GAC1B,CAAA,EAAA,CACE,EAAA,CACA;AAEZ;;;;"}
|
|
@@ -1,62 +1,15 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import { CloseIcon } from '@egov3/graphics/General/Close';
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { InternetNotAvailableIllustration } from '@egov3/graphics/Illustrations/InternetNotAvailable';
|
|
4
3
|
import { VerificationIllustration } from '@egov3/graphics/Illustrations/Verification';
|
|
5
|
-
import { EgovIcon } from '@egov3/graphics/Logo/Egov';
|
|
6
|
-
import '../../styles/colors.css.js';
|
|
7
|
-
import '../../baseComponents/Accordion/Accordion.module.css.js';
|
|
8
|
-
import 'react';
|
|
9
|
-
import '../../baseComponents/Overlay/Overlay.module.css.js';
|
|
10
|
-
import '../../styles/typography.module.css.js';
|
|
11
|
-
import '../../baseComponents/BottomSheet/BottomSheet.module.css.js';
|
|
12
|
-
import { Button } from '../../baseComponents/Button/index.js';
|
|
13
|
-
import '@egov3/graphics/General/CheckboxEmpty';
|
|
14
|
-
import '@egov3/graphics/General/CheckboxEmptyFilled';
|
|
15
|
-
import '../../baseComponents/Checkbox/Checkbox.module.css.js';
|
|
16
|
-
import '../../baseComponents/RadioGroup/RadioGroup.module.css.js';
|
|
17
|
-
import '@egov3/graphics/Basic/ChevronDownSmall';
|
|
18
4
|
import { i18n } from '../../constants/i18n/index.js';
|
|
19
|
-
import '
|
|
20
|
-
import '../../baseComponents/DropdownSelect/DropdownSelect.module.css.js';
|
|
21
|
-
import '../../baseComponents/InputField/index.js';
|
|
22
|
-
import '../../baseComponents/InputFieldGroup/InputFieldGroup.module.css.js';
|
|
23
|
-
import '../../baseComponents/Label/Label.module.css.js';
|
|
24
|
-
import '../../baseComponents/Loader/Loader.module.css.js';
|
|
25
|
-
import '../../baseComponents/LoadingSkeleton/LoadingSkeleton.module.css.js';
|
|
26
|
-
import { Modal } from '../../baseComponents/Modal/index.js';
|
|
27
|
-
import '@egov3/graphics/Basic/Check';
|
|
28
|
-
import '../../baseComponents/PageSizeSelector/PageSizeSelector.module.css.js';
|
|
29
|
-
import '../../baseComponents/TabButtons/TabButtons.module.css.js';
|
|
30
|
-
import '../../baseComponents/Pagination/Pagination.module.css.js';
|
|
31
|
-
import '../../baseComponents/PhotoCutter/PhotoCutter.module.css.js';
|
|
32
|
-
import '../../baseComponents/ProgressBar/ProgressBar.module.css.js';
|
|
33
|
-
import '../../baseComponents/RadioToggle/RadioToggle.module.css.js';
|
|
34
|
-
import '@egov3/graphics/General/DocFilled';
|
|
35
|
-
import '@egov3/graphics/General/CheckedRound';
|
|
36
|
-
import '@egov3/graphics/General/Error';
|
|
37
|
-
import '@egov3/graphics/General/InfoStroke';
|
|
38
|
-
import '../../baseComponents/TextPair/TextPair.module.css.js';
|
|
39
|
-
import '../../baseComponents/StatusText/StatusText.module.css.js';
|
|
40
|
-
import '../../baseComponents/Responses/Responses.module.css.js';
|
|
41
|
-
import '@egov3/graphics/General/Clear';
|
|
42
|
-
import '@egov3/graphics/General/Loader';
|
|
43
|
-
import '@egov3/graphics/General/Search';
|
|
44
|
-
import '../../baseComponents/SearchBar/SearchBar.module.css.js';
|
|
45
|
-
import '@egov3/graphics/General/Hourglass';
|
|
46
|
-
import '../../baseComponents/StatusStepper/StatusStepper.module.css.js';
|
|
47
|
-
import '../../baseComponents/Table/Table.module.css.js';
|
|
48
|
-
import '../../baseComponents/TextareaField/index.js';
|
|
49
|
-
import '../../baseComponents/TextWithAction/TextWithAction.module.css.js';
|
|
50
|
-
import { Title } from '../../baseComponents/Title/index.js';
|
|
51
|
-
import styles from './ErrorModal.module.css.js';
|
|
5
|
+
import { ScreenMessage } from '../ScreenMessage/index.js';
|
|
52
6
|
|
|
53
|
-
const
|
|
54
|
-
const ErrorModal = ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons = EMPTY_FOOTER_BUTTONS, }) => {
|
|
7
|
+
const ErrorModal = ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons, }) => {
|
|
55
8
|
const isAuthError = status === 401;
|
|
56
9
|
const langDic = i18n.ErrorModal;
|
|
57
10
|
const langDicMsg = message ?? (isAuthError ? langDic.NotAuthorizedMessage[lang] : "");
|
|
58
|
-
return (jsx(
|
|
59
|
-
|
|
11
|
+
return (jsx(ScreenMessage, { illustration: illustration ??
|
|
12
|
+
(isAuthError ? (jsx(VerificationIllustration, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsx(InternetNotAvailableIllustration, { "data-testid": "ErrorModal_ICON_COMMON" }))), title: title ?? langDic.Title[lang], subtext: langDicMsg, lang: lang, isOpen: isOpen, onClose: onClose, footerButtons: footerButtons }));
|
|
60
13
|
};
|
|
61
14
|
|
|
62
15
|
export { ErrorModal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;MAsBa,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GACI,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AAEpE,IAAA,QACEA,GAAA,CAAC,aAAa,EAAA,EACZ,YAAY,EACV,YAAY;aACX,WAAW,IACVA,IAAC,wBAAwB,EAAA,EAAA,aAAA,EAAa,sBAAsB,EAAA,CAAG,KAE/DA,GAAA,CAAC,gCAAgC,EAAA,EAAA,aAAA,EAAa,wBAAwB,EAAA,CAAG,CAC1E,CAAC,EAEJ,KAAK,EAAE,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EACnC,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,EAAA,CAC5B;AAEN;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var css_248z = ".ScreenMessage-module_wrapper__uMBm- {\n display: flex;\n flex-direction: column;\n}\n\n.ScreenMessage-module_headerWrapper__XOnmV {\n display: flex;\n height: 48px;\n padding: 12px 12px 12px 16px;\n align-items: center;\n justify-content: flex-end;\n gap: 16px;\n align-self: stretch;\n}\n\n.ScreenMessage-module_iconEgov__k65TY {\n display: flex;\n justify-content: center;\n width: 276px;\n height: 16px;\n}\n\n.ScreenMessage-module_actionButton__fO-iL {\n display: flex;\n padding: 8px;\n justify-content: center;\n align-items: center;\n gap: 8px;\n}\n\n.ScreenMessage-module_bodyWrapper__jBTQ- {\n display: flex;\n padding: 32px;\n flex-direction: column;\n align-items: center;\n gap: 32px;\n align-self: stretch;\n}\n\n.ScreenMessage-module_buttonWrapper__zjsYA {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n";
|
|
2
|
+
var styles = {"wrapper":"ScreenMessage-module_wrapper__uMBm-","headerWrapper":"ScreenMessage-module_headerWrapper__XOnmV","iconEgov":"ScreenMessage-module_iconEgov__k65TY","actionButton":"ScreenMessage-module_actionButton__fO-iL","bodyWrapper":"ScreenMessage-module_bodyWrapper__jBTQ-","buttonWrapper":"ScreenMessage-module_buttonWrapper__zjsYA"};
|
|
3
|
+
function styleInject(css, options) {
|
|
4
|
+
if (typeof document === 'undefined') return;
|
|
5
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
6
|
+
const style = document.createElement('style');
|
|
7
|
+
style.type = 'text/css';
|
|
8
|
+
if (style.styleSheet) {
|
|
9
|
+
style.styleSheet.cssText = css;
|
|
10
|
+
} else {
|
|
11
|
+
style.appendChild(document.createTextNode(css));
|
|
12
|
+
}
|
|
13
|
+
head.appendChild(style);
|
|
14
|
+
}
|
|
15
|
+
styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
export { styles as default };
|
|
18
|
+
//# sourceMappingURL=ScreenMessage.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenMessage.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { CloseIcon } from '@egov3/graphics/General/Close';
|
|
3
|
+
import { EgovIcon } from '@egov3/graphics/Logo/Egov';
|
|
4
|
+
import '../../styles/colors.css.js';
|
|
5
|
+
import '../../baseComponents/Accordion/Accordion.module.css.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '../../baseComponents/Overlay/Overlay.module.css.js';
|
|
8
|
+
import '../../styles/typography.module.css.js';
|
|
9
|
+
import '../../baseComponents/BottomSheet/BottomSheet.module.css.js';
|
|
10
|
+
import { Button } from '../../baseComponents/Button/index.js';
|
|
11
|
+
import '@egov3/graphics/General/CheckboxEmpty';
|
|
12
|
+
import '@egov3/graphics/General/CheckboxEmptyFilled';
|
|
13
|
+
import '../../baseComponents/Checkbox/Checkbox.module.css.js';
|
|
14
|
+
import '../../baseComponents/RadioGroup/RadioGroup.module.css.js';
|
|
15
|
+
import '@egov3/graphics/Basic/ChevronDownSmall';
|
|
16
|
+
import { i18n } from '../../constants/i18n/index.js';
|
|
17
|
+
import '../../baseComponents/SelectBoxButton/SelectBoxButton.module.css.js';
|
|
18
|
+
import '../../baseComponents/DropdownSelect/DropdownSelect.module.css.js';
|
|
19
|
+
import '../../baseComponents/InputField/index.js';
|
|
20
|
+
import '../../baseComponents/InputFieldGroup/InputFieldGroup.module.css.js';
|
|
21
|
+
import '../../baseComponents/Label/Label.module.css.js';
|
|
22
|
+
import '../../baseComponents/Loader/Loader.module.css.js';
|
|
23
|
+
import '../../baseComponents/LoadingSkeleton/LoadingSkeleton.module.css.js';
|
|
24
|
+
import { Modal } from '../../baseComponents/Modal/index.js';
|
|
25
|
+
import '@egov3/graphics/Basic/Check';
|
|
26
|
+
import '../../baseComponents/PageSizeSelector/PageSizeSelector.module.css.js';
|
|
27
|
+
import '../../baseComponents/TabButtons/TabButtons.module.css.js';
|
|
28
|
+
import '../../baseComponents/Pagination/Pagination.module.css.js';
|
|
29
|
+
import '../../baseComponents/PhotoCutter/PhotoCutter.module.css.js';
|
|
30
|
+
import '../../baseComponents/ProgressBar/ProgressBar.module.css.js';
|
|
31
|
+
import '../../baseComponents/RadioToggle/RadioToggle.module.css.js';
|
|
32
|
+
import '@egov3/graphics/General/DocFilled';
|
|
33
|
+
import '@egov3/graphics/General/CheckedRound';
|
|
34
|
+
import '@egov3/graphics/General/Error';
|
|
35
|
+
import '@egov3/graphics/General/InfoStroke';
|
|
36
|
+
import '../../baseComponents/TextPair/TextPair.module.css.js';
|
|
37
|
+
import '../../baseComponents/StatusText/StatusText.module.css.js';
|
|
38
|
+
import '../../baseComponents/Responses/Responses.module.css.js';
|
|
39
|
+
import '@egov3/graphics/General/Clear';
|
|
40
|
+
import '@egov3/graphics/General/Loader';
|
|
41
|
+
import '@egov3/graphics/General/Search';
|
|
42
|
+
import '../../baseComponents/SearchBar/SearchBar.module.css.js';
|
|
43
|
+
import '@egov3/graphics/General/Hourglass';
|
|
44
|
+
import '../../baseComponents/StatusStepper/StatusStepper.module.css.js';
|
|
45
|
+
import '../../baseComponents/Table/Table.module.css.js';
|
|
46
|
+
import '../../baseComponents/TextareaField/index.js';
|
|
47
|
+
import '../../baseComponents/TextWithAction/TextWithAction.module.css.js';
|
|
48
|
+
import { Title } from '../../baseComponents/Title/index.js';
|
|
49
|
+
import styles from './ScreenMessage.module.css.js';
|
|
50
|
+
|
|
51
|
+
const EMPTY_FOOTER_BUTTONS = [];
|
|
52
|
+
const ScreenMessage = ({ illustration, title, subtext, lang, isOpen, onClose, footerButtons = EMPTY_FOOTER_BUTTONS, }) => {
|
|
53
|
+
const langDic = i18n.ScreenMessage;
|
|
54
|
+
return (jsx(Modal, { isOpen: isOpen, setIsOpen: onClose, variant: "small", lang: lang, isContentScroll: false, children: jsxs("div", { className: styles.wrapper, "data-testid": "ScreenMessage_WRAPPER", children: [jsxs("div", { className: styles.headerWrapper, "data-testid": "ScreenMessage_HEADER", children: [jsx("span", { className: styles.iconEgov, "data-testid": "ScreenMessage_LOGO", children: jsx(EgovIcon, { width: "70px", height: "24px", viewBox: "0 0 70 24" }) }), jsx("button", { type: "button", onClick: onClose, className: styles.actionButton, "data-testid": "ScreenMessage_CLOSE_BTN", "aria-label": langDic.CloseModalButton[lang], children: jsx(CloseIcon, { width: "16px", height: "16px" }) })] }), jsxs("div", { className: styles.bodyWrapper, "data-testid": "ScreenMessage_BODY", children: [illustration, jsx(Title, { isCentered: true, title: title, size: "medium", subtext: subtext }), footerButtons.length > 0 && (jsx("div", { className: styles.buttonWrapper, "data-testid": "ModalFooterButton_WRAP", children: footerButtons.map((item) => (jsx(Button, { "aria-label": item.text, "data-testid": item.dataTestid, disabled: item.isDisabled, onClick: item.onClick, size: "large", variant: item.variant, children: item.text }, item.text))) }))] })] }) }));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { ScreenMessage };
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ScreenMessage/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,oBAAoB,GAAyB,EAAE;MAExC,aAAa,GAAG,CAAC,EAC5B,YAAY,EACZ,KAAK,EACL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,oBAAoB,GAChB,KAAI;AACxB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa;IAElC,QACEA,IAAC,KAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,KAAK,EAAA,QAAA,EAEtBC,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,OAAO,EAAA,aAAA,EAAc,uBAAuB,EAAA,QAAA,EAAA,CACjEA,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,aAAA,EACnB,sBAAsB,EAAA,QAAA,EAAA,CAElCD,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAA,aAAA,EAAc,oBAAoB,EAAA,QAAA,EAChEA,GAAA,CAAC,QAAQ,EAAA,EAAC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|
4
4
|
kk: "Назар аударыңыз!",
|
|
5
5
|
en: "Attention!",
|
|
6
6
|
},
|
|
7
|
-
CloseModalButton: {
|
|
8
|
-
ru: "Закрыть окно",
|
|
9
|
-
kk: "Терезені жабу",
|
|
10
|
-
en: "Close the modal",
|
|
11
|
-
},
|
|
12
7
|
NotAuthorizedMessage: {
|
|
13
8
|
ru: "Чтобы продолжить, пожалуйста, авторизуйтесь.",
|
|
14
9
|
kk: "Жалғастыру үшін жүйеге кіріңіз.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorModal.js","sources":["../../../../src/constants/i18n/ErrorModal.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG;AACxB,IAAA,KAAK,EAAE;AACL,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,EAAE,EAAE,kBAAkB;AACtB,QAAA,EAAE,EAAE,YAAY;AACjB,KAAA;AACD,IAAA,
|
|
1
|
+
{"version":3,"file":"ErrorModal.js","sources":["../../../../src/constants/i18n/ErrorModal.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG;AACxB,IAAA,KAAK,EAAE;AACL,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,EAAE,EAAE,kBAAkB;AACtB,QAAA,EAAE,EAAE,YAAY;AACjB,KAAA;AACD,IAAA,oBAAoB,EAAE;AACpB,QAAA,EAAE,EAAE,8CAA8C;AAClD,QAAA,EAAE,EAAE,iCAAiC;AACrC,QAAA,EAAE,EAAE,6BAA6B;AAClC,KAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenMessage.js","sources":["../../../../src/constants/i18n/ScreenMessage.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG;AAC3B,IAAA,gBAAgB,EAAE;AAChB,QAAA,EAAE,EAAE,cAAc;AAClB,QAAA,EAAE,EAAE,eAAe;AACnB,QAAA,EAAE,EAAE,iBAAiB;AACtB,KAAA;;;;;"}
|
|
@@ -16,6 +16,7 @@ import { PrivacyModal } from './PrivacyModal.js';
|
|
|
16
16
|
import { DocCard } from './Profile/DocCard.js';
|
|
17
17
|
import { ProfileHealthGeneral } from './Profile/ProfileHealthGeneral.js';
|
|
18
18
|
import { SetUpAccess } from './Profile/SetUpAccess.js';
|
|
19
|
+
import { ScreenMessage } from './ScreenMessage.js';
|
|
19
20
|
import { SearchBar } from './SearchBar.js';
|
|
20
21
|
import { SelectBoxButton } from './SelectBoxButton.js';
|
|
21
22
|
import { Feedback } from './Services/Feedback.js';
|
|
@@ -43,6 +44,7 @@ const i18n = {
|
|
|
43
44
|
MsgComponentHeader,
|
|
44
45
|
FileUpload,
|
|
45
46
|
PrivacyModal,
|
|
47
|
+
ScreenMessage,
|
|
46
48
|
SearchBar,
|
|
47
49
|
ServiceDetails,
|
|
48
50
|
Table,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAM,IAAI,GAAG;IAClB,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;IACL,eAAe;IACf,UAAU;IACV,WAAW;IACX,oBAAoB;IACpB,UAAU;IACV,IAAI;IACJ,SAAS;IACT,SAAS;IACT,oBAAoB;IAEpB,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,UAAU;IACV,YAAY;IACZ,aAAa;IACb,SAAS;IACT,cAAc;IACd,KAAK;;;;;"}
|