qaema-ui 0.0.26 → 0.0.28
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/_virtual/index.js +5 -5
- package/dist/_virtual/index2.js +4 -4
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +4 -4
- package/dist/assets/icons/RiyalIcon.d.ts +1 -1
- package/dist/components/AccordionCard.d.ts +1 -1
- package/dist/components/ActionInput.d.ts +2 -2
- package/dist/components/AddOnCardInput.d.ts +2 -2
- package/dist/components/Alert.d.ts +1 -1
- package/dist/components/AmountItem.d.ts +2 -2
- package/dist/components/Badge.d.ts +3 -3
- package/dist/components/Button.d.ts +3 -2
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/CardsList.d.ts +2 -2
- package/dist/components/Chart.d.ts +1 -1
- package/dist/components/ChartLegend/ChartLegend.d.ts +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +8 -7
- package/dist/components/ChartLegend/PieChartLegend.d.ts +1 -1
- package/dist/components/ChartLegend/styles.d.ts +5 -5
- package/dist/components/CollapsableCard.d.ts +1 -1
- package/dist/components/ConfigList.d.ts +1 -1
- package/dist/components/ConfirmationPopup.d.ts +1 -1
- package/dist/components/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/Divider.d.ts +2 -2
- package/dist/components/Draggable.d.ts +1 -1
- package/dist/components/DropDown.d.ts +1 -1
- package/dist/components/DropDownWithTable/DropDownWithTable.d.ts +1 -1
- package/dist/components/DropDownWithTable/DropDownWithTable.js +69 -64
- package/dist/components/DropDownWithTable/DropDownWithTable.types.d.ts +2 -1
- package/dist/components/DropDownWithTable/Table/Table.d.ts +1 -1
- package/dist/components/DropDownWithTable/Table/Table.js +66 -66
- package/dist/components/DropDownWithTable/Table/Table.styles.d.ts +27 -27
- package/dist/components/DropDownWithTable/Table/components/CellComponents.d.ts +6 -6
- package/dist/components/DropDownWithTable/Table/components/CellComponents.js +82 -82
- package/dist/components/DropDownWithTable/Table/components/TableHead.d.ts +1 -1
- package/dist/components/FileDownloadCard.d.ts +1 -1
- package/dist/components/Filter.d.ts +14 -14
- package/dist/components/FilterActiveBar.d.ts +1 -1
- package/dist/components/Header.d.ts +3 -2
- package/dist/components/HelpCard.d.ts +2 -2
- package/dist/components/Hint.d.ts +2 -2
- package/dist/components/HorizontalChart.d.ts +2 -2
- package/dist/components/Image.d.ts +2 -2
- package/dist/components/InfoCard.d.ts +1 -1
- package/dist/components/InfoItem.d.ts +1 -1
- package/dist/components/InputField.d.ts +2 -2
- package/dist/components/Layout.d.ts +4 -3
- package/dist/components/Legend.d.ts +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/ListToolbar.d.ts +5 -5
- package/dist/components/MethodCard.d.ts +1 -1
- package/dist/components/Modal.d.ts +2 -2
- package/dist/components/ModalWithRequestCard.d.ts +2 -2
- package/dist/components/NavItem.d.ts +2 -2
- package/dist/components/NavigationPanel.d.ts +2 -2
- package/dist/components/NextActionBox.d.ts +1 -1
- package/dist/components/NextActionBox.js +104 -0
- package/dist/components/NumberInput.d.ts +1 -1
- package/dist/components/OTP.d.ts +1 -1
- package/dist/components/OptionCardGroup.d.ts +2 -2
- package/dist/components/OptionCardGroup.js +16 -15
- package/dist/components/Pagination.d.ts +1 -1
- package/dist/components/PasswordInputField.d.ts +2 -2
- package/dist/components/PaymentLinkDetails.d.ts +1 -1
- package/dist/components/PaymentTooltip.d.ts +2 -2
- package/dist/components/PhoneInputField.d.ts +2 -2
- package/dist/components/QuickActionItem.d.ts +2 -2
- package/dist/components/QuickStartCard.d.ts +4 -4
- package/dist/components/RadioInput.d.ts +1 -1
- package/dist/components/ReconciliationGroups.d.ts +1 -1
- package/dist/components/RequestCard.d.ts +7 -7
- package/dist/components/RequestSummaryCard.d.ts +6 -6
- package/dist/components/SectionHeader.d.ts +1 -1
- package/dist/components/SideMenuLinks.d.ts +1 -1
- package/dist/components/Sidemenu.d.ts +2 -2
- package/dist/components/Spinner.d.ts +1 -1
- package/dist/components/StatCard.d.ts +1 -1
- package/dist/components/StatIndicator.d.ts +1 -1
- package/dist/components/StatusFeedback.d.ts +2 -2
- package/dist/components/StepperProcess.d.ts +391 -571
- package/dist/components/SummaryCard.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.styles.d.ts +27 -27
- package/dist/components/Table/components/CellComponents.d.ts +6 -6
- package/dist/components/Table/components/TableHead.d.ts +1 -1
- package/dist/components/Tabs.d.ts +1 -1
- package/dist/components/TextArea.d.ts +1 -1
- package/dist/components/ThemeProvider.d.ts +2 -2
- package/dist/components/ToastNotification.d.ts +2 -2
- package/dist/components/Toggle.d.ts +2 -2
- package/dist/components/ToggleForm.d.ts +2 -2
- package/dist/components/Typography.d.ts +3 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/hooks/useFormikInput.d.ts +11 -11
- package/dist/hooks/useTypographyVariant.d.ts +1 -1
- package/dist/i18n/i18n.d.ts +3 -3
- package/dist/index.js +173 -171
- package/dist/node_modules/@react-spring/core/dist/react-spring_core.modern.js +1 -1
- package/dist/node_modules/@restart/ui/esm/ImperativeTransition.js +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +4 -3
- package/dist/node_modules/d3-format/src/formatDecimal.js +4 -4
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +5 -5
- package/dist/node_modules/d3-format/src/locale.js +37 -37
- package/dist/node_modules/d3-shape/src/symbol/circle.js +3 -3
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -5
- package/dist/node_modules/d3-time-format/src/locale.js +14 -14
- package/dist/node_modules/date-fns/addDays.js +3 -2
- package/dist/node_modules/date-fns/addMonths.js +9 -8
- package/dist/node_modules/date-fns/constructFrom.js +2 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +3 -2
- package/dist/node_modules/date-fns/endOfMonth.js +4 -3
- package/dist/node_modules/date-fns/endOfWeek.js +5 -4
- package/dist/node_modules/date-fns/format.js +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +4 -3
- package/dist/node_modules/date-fns/getDaysInMonth.js +6 -5
- package/dist/node_modules/date-fns/getDefaultOptions.js +3 -2
- package/dist/node_modules/date-fns/getISODay.js +6 -5
- package/dist/node_modules/date-fns/getISOWeek.js +5 -4
- package/dist/node_modules/date-fns/getISOWeekYear.js +1 -0
- package/dist/node_modules/date-fns/getWeek.js +6 -5
- package/dist/node_modules/date-fns/getWeekYear.js +1 -0
- package/dist/node_modules/date-fns/getYear.js +3 -2
- package/dist/node_modules/date-fns/isAfter.js +3 -2
- package/dist/node_modules/date-fns/isBefore.js +4 -3
- package/dist/node_modules/date-fns/isDate.js +1 -0
- package/dist/node_modules/date-fns/isSameDay.js +9 -8
- package/dist/node_modules/date-fns/isSameMonth.js +6 -5
- package/dist/node_modules/date-fns/isValid.js +5 -4
- package/dist/node_modules/date-fns/locale/ar-SA.js +7 -6
- package/dist/node_modules/date-fns/locale/en-US.js +9 -8
- package/dist/node_modules/date-fns/parse.js +11 -10
- package/dist/node_modules/date-fns/setDay.js +7 -6
- package/dist/node_modules/date-fns/setISODay.js +4 -3
- package/dist/node_modules/date-fns/setISOWeek.js +5 -4
- package/dist/node_modules/date-fns/setMonth.js +6 -5
- package/dist/node_modules/date-fns/setWeek.js +4 -3
- package/dist/node_modules/date-fns/setYear.js +5 -4
- package/dist/node_modules/date-fns/startOfDay.js +5 -4
- package/dist/node_modules/date-fns/startOfISOWeek.js +3 -2
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +6 -5
- package/dist/node_modules/date-fns/startOfMonth.js +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +8 -7
- package/dist/node_modules/date-fns/startOfWeekYear.js +5 -4
- package/dist/node_modules/date-fns/startOfYear.js +1 -0
- package/dist/node_modules/date-fns/subMonths.js +4 -3
- package/dist/node_modules/date-fns/toDate.js +4 -3
- package/dist/node_modules/date-fns/transpose.js +3 -2
- package/dist/node_modules/fast-equals/dist/esm/index.js +298 -0
- package/dist/node_modules/react-bootstrap/esm/Alert.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertHeading.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/AlertLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Button.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/CloseButton.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Collapse.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Dropdown.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownDivider.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownItemText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownMenu.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/DropdownToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Fade.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Feedback.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FloatingLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Form.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/FormCheck.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckInput.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormCheckLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormControl.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormFloating.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormLabel.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormRange.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormSelect.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/FormText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Image.js +2 -2
- package/dist/node_modules/react-bootstrap/esm/Nav.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavItem.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavLink.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Navbar.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarBrand.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarText.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/NavbarToggle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Offcanvas.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasTitle.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/OffcanvasToggling.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/Toast.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastBody.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/ToastHeader.js +1 -1
- package/dist/node_modules/react-bootstrap/esm/divWithClassName.js +1 -1
- package/dist/node_modules/react-helmet-async/lib/index.esm.js +2 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/recharts/es6/component/Cursor.js +2 -2
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +2 -2
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +7 -7
- package/dist/node_modules/victory-vendor/es/d3-scale.js +40 -40
- package/dist/styles/Currency.styles.d.ts +1 -1
- package/dist/styles/Dropdown.styles.d.ts +30 -29
- package/dist/styles/Dropdown.styles.js +18 -11
- package/dist/styles/Input.styles.d.ts +1 -1
- package/dist/styles/Scrollbar.styles.d.ts +1 -1
- package/dist/styles/StatusFeedback.styles.d.ts +7 -7
- package/dist/theme/theme.d.ts +1 -1
- package/package.json +2 -3
- package/dist/i18n/locales/ar.json.d.ts +0 -55
- package/dist/i18n/locales/en.json.d.ts +0 -55
- package/dist/node_modules/fast-equals/dist/es/index.js +0 -324
- package/dist/node_modules/react-bootstrap/esm/Spinner.js +0 -26
- package/dist/theme/styled-components.d.ts +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { utcMonday as F, timeMonday as N,
|
|
1
|
+
import { utcMonday as F, timeMonday as N, utcThursday as S, utcSunday as Ye, timeThursday as w, timeSunday as He } from "../../d3-time/src/week.js";
|
|
2
2
|
import { utcDay as B, timeDay as G } from "../../d3-time/src/day.js";
|
|
3
|
-
import {
|
|
3
|
+
import { utcYear as d, timeYear as x } from "../../d3-time/src/year.js";
|
|
4
4
|
function H(e) {
|
|
5
5
|
if (0 <= e.y && e.y < 100) {
|
|
6
6
|
var n = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
|
|
@@ -347,7 +347,7 @@ function Je(e, n) {
|
|
|
347
347
|
return f(e.getHours() % 12 || 12, n, 2);
|
|
348
348
|
}
|
|
349
349
|
function Ke(e, n) {
|
|
350
|
-
return f(1 + G.count(
|
|
350
|
+
return f(1 + G.count(x(e), e), n, 3);
|
|
351
351
|
}
|
|
352
352
|
function z(e, n) {
|
|
353
353
|
return f(e.getMilliseconds(), n, 3);
|
|
@@ -369,20 +369,20 @@ function un(e) {
|
|
|
369
369
|
return n === 0 ? 7 : n;
|
|
370
370
|
}
|
|
371
371
|
function on(e, n) {
|
|
372
|
-
return f(
|
|
372
|
+
return f(He.count(x(e) - 1, e), n, 2);
|
|
373
373
|
}
|
|
374
374
|
function $(e) {
|
|
375
375
|
var n = e.getDay();
|
|
376
|
-
return n >= 4 || n === 0 ?
|
|
376
|
+
return n >= 4 || n === 0 ? w(e) : w.ceil(e);
|
|
377
377
|
}
|
|
378
378
|
function an(e, n) {
|
|
379
|
-
return e = $(e), f(
|
|
379
|
+
return e = $(e), f(w.count(x(e), e) + (x(e).getDay() === 4), n, 2);
|
|
380
380
|
}
|
|
381
381
|
function cn(e) {
|
|
382
382
|
return e.getDay();
|
|
383
383
|
}
|
|
384
384
|
function fn(e, n) {
|
|
385
|
-
return f(N.count(
|
|
385
|
+
return f(N.count(x(e) - 1, e), n, 2);
|
|
386
386
|
}
|
|
387
387
|
function ln(e, n) {
|
|
388
388
|
return f(e.getFullYear() % 100, n, 2);
|
|
@@ -395,7 +395,7 @@ function mn(e, n) {
|
|
|
395
395
|
}
|
|
396
396
|
function gn(e, n) {
|
|
397
397
|
var t = e.getDay();
|
|
398
|
-
return e = t >= 4 || t === 0 ?
|
|
398
|
+
return e = t >= 4 || t === 0 ? w(e) : w.ceil(e), f(e.getFullYear() % 1e4, n, 4);
|
|
399
399
|
}
|
|
400
400
|
function yn(e) {
|
|
401
401
|
var n = e.getTimezoneOffset();
|
|
@@ -411,7 +411,7 @@ function Tn(e, n) {
|
|
|
411
411
|
return f(e.getUTCHours() % 12 || 12, n, 2);
|
|
412
412
|
}
|
|
413
413
|
function Un(e, n) {
|
|
414
|
-
return f(1 + B.count(
|
|
414
|
+
return f(1 + B.count(d(e), e), n, 3);
|
|
415
415
|
}
|
|
416
416
|
function E(e, n) {
|
|
417
417
|
return f(e.getUTCMilliseconds(), n, 3);
|
|
@@ -433,20 +433,20 @@ function Dn(e) {
|
|
|
433
433
|
return n === 0 ? 7 : n;
|
|
434
434
|
}
|
|
435
435
|
function Sn(e, n) {
|
|
436
|
-
return f(
|
|
436
|
+
return f(Ye.count(d(e) - 1, e), n, 2);
|
|
437
437
|
}
|
|
438
438
|
function J(e) {
|
|
439
439
|
var n = e.getUTCDay();
|
|
440
|
-
return n >= 4 || n === 0 ?
|
|
440
|
+
return n >= 4 || n === 0 ? S(e) : S.ceil(e);
|
|
441
441
|
}
|
|
442
442
|
function wn(e, n) {
|
|
443
|
-
return e = J(e), f(
|
|
443
|
+
return e = J(e), f(S.count(d(e), e) + (d(e).getUTCDay() === 4), n, 2);
|
|
444
444
|
}
|
|
445
445
|
function dn(e) {
|
|
446
446
|
return e.getUTCDay();
|
|
447
447
|
}
|
|
448
448
|
function xn(e, n) {
|
|
449
|
-
return f(F.count(
|
|
449
|
+
return f(F.count(d(e) - 1, e), n, 2);
|
|
450
450
|
}
|
|
451
451
|
function kn(e, n) {
|
|
452
452
|
return f(e.getUTCFullYear() % 100, n, 2);
|
|
@@ -459,7 +459,7 @@ function Ln(e, n) {
|
|
|
459
459
|
}
|
|
460
460
|
function Yn(e, n) {
|
|
461
461
|
var t = e.getUTCDay();
|
|
462
|
-
return e = t >= 4 || t === 0 ?
|
|
462
|
+
return e = t >= 4 || t === 0 ? S(e) : S.ceil(e), f(e.getUTCFullYear() % 1e4, n, 4);
|
|
463
463
|
}
|
|
464
464
|
function Hn() {
|
|
465
465
|
return "+0000";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { constructFrom as t } from "./constructFrom.js";
|
|
2
2
|
import { toDate as c } from "./toDate.js";
|
|
3
|
-
function
|
|
3
|
+
function N(f, a, r) {
|
|
4
4
|
const e = c(f, r == null ? void 0 : r.in);
|
|
5
5
|
return isNaN(a) ? t((r == null ? void 0 : r.in) || f, NaN) : (a && e.setDate(e.getDate() + a), e);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
N as addDays,
|
|
9
|
+
N as default
|
|
9
10
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { constructFrom as
|
|
1
|
+
import { constructFrom as f } from "./constructFrom.js";
|
|
2
2
|
import { toDate as c } from "./toDate.js";
|
|
3
|
-
function
|
|
3
|
+
function M(r, n, o) {
|
|
4
4
|
const t = c(r, o == null ? void 0 : o.in);
|
|
5
|
-
if (isNaN(n)) return
|
|
5
|
+
if (isNaN(n)) return f(r, NaN);
|
|
6
6
|
if (!n)
|
|
7
7
|
return t;
|
|
8
|
-
const
|
|
8
|
+
const a = t.getDate(), e = f(r, t.getTime());
|
|
9
9
|
e.setMonth(t.getMonth() + n + 1, 0);
|
|
10
|
-
const
|
|
11
|
-
return
|
|
10
|
+
const s = e.getDate();
|
|
11
|
+
return a >= s ? e : (t.setFullYear(
|
|
12
12
|
e.getFullYear(),
|
|
13
13
|
e.getMonth(),
|
|
14
|
-
|
|
14
|
+
a
|
|
15
15
|
), t);
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
M as addMonths,
|
|
19
|
+
M as default
|
|
19
20
|
};
|
|
@@ -2,7 +2,7 @@ import { getTimezoneOffsetInMilliseconds as a } from "./_lib/getTimezoneOffsetIn
|
|
|
2
2
|
import { normalizeDates as c } from "./_lib/normalizeDates.js";
|
|
3
3
|
import { millisecondsInDay as D } from "./constants.js";
|
|
4
4
|
import { startOfDay as m } from "./startOfDay.js";
|
|
5
|
-
function
|
|
5
|
+
function p(n, i, e) {
|
|
6
6
|
const [f, l] = c(
|
|
7
7
|
e == null ? void 0 : e.in,
|
|
8
8
|
n,
|
|
@@ -11,5 +11,6 @@ function u(n, i, e) {
|
|
|
11
11
|
return Math.round((o - s) / D);
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
p as default,
|
|
15
|
+
p as differenceInCalendarDays
|
|
15
16
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { toDate as
|
|
1
|
+
import { toDate as n } from "./toDate.js";
|
|
2
2
|
function l(r, e) {
|
|
3
|
-
const t =
|
|
4
|
-
return t.setFullYear(t.getFullYear(),
|
|
3
|
+
const t = n(r, e == null ? void 0 : e.in), a = t.getMonth();
|
|
4
|
+
return t.setFullYear(t.getFullYear(), a + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
+
l as default,
|
|
7
8
|
l as endOfMonth
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { toDate as d } from "./toDate.js";
|
|
2
|
-
function
|
|
3
|
-
const a = e == null ? void 0 : e.weekStartsOn, t = d(
|
|
4
|
-
return t.setDate(t.getDate() +
|
|
2
|
+
function D(f, e) {
|
|
3
|
+
const a = e == null ? void 0 : e.weekStartsOn, t = d(f, e == null ? void 0 : e.in), r = t.getDay(), c = (r < a ? -7 : 0) + 6 - (r - a);
|
|
4
|
+
return t.setDate(t.getDate() + c), t.setHours(23, 59, 59, 999), t;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
D as default,
|
|
8
|
+
D as endOfWeek
|
|
8
9
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { differenceInCalendarDays as e } from "./differenceInCalendarDays.js";
|
|
2
2
|
import { startOfYear as t } from "./startOfYear.js";
|
|
3
3
|
import { toDate as d } from "./toDate.js";
|
|
4
|
-
function y(
|
|
5
|
-
const
|
|
6
|
-
return e(
|
|
4
|
+
function y(f, r) {
|
|
5
|
+
const a = d(f, r == null ? void 0 : r.in);
|
|
6
|
+
return e(a, t(a)) + 1;
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
|
+
y as default,
|
|
9
10
|
y as getDayOfYear
|
|
10
11
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { constructFrom as c } from "./constructFrom.js";
|
|
2
|
-
import { toDate as
|
|
3
|
-
function
|
|
4
|
-
const e =
|
|
5
|
-
return r.setFullYear(
|
|
2
|
+
import { toDate as s } from "./toDate.js";
|
|
3
|
+
function m(a, t) {
|
|
4
|
+
const e = s(a, t == null ? void 0 : t.in), n = e.getFullYear(), o = e.getMonth(), r = c(e, 0);
|
|
5
|
+
return r.setFullYear(n, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
m as default,
|
|
9
|
+
m as getDaysInMonth
|
|
9
10
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { toDate as
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
return
|
|
1
|
+
import { toDate as r } from "./toDate.js";
|
|
2
|
+
function u(t, a) {
|
|
3
|
+
const e = r(t, a == null ? void 0 : a.in).getDay();
|
|
4
|
+
return e === 0 ? 7 : e;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
u as default,
|
|
8
|
+
u as getISODay
|
|
8
9
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { millisecondsInWeek as m } from "./constants.js";
|
|
2
|
-
import { startOfISOWeek as
|
|
3
|
-
import { startOfISOWeekYear as
|
|
4
|
-
import { toDate as
|
|
2
|
+
import { startOfISOWeek as a } from "./startOfISOWeek.js";
|
|
3
|
+
import { startOfISOWeekYear as o } from "./startOfISOWeekYear.js";
|
|
4
|
+
import { toDate as d } from "./toDate.js";
|
|
5
5
|
function k(t, e) {
|
|
6
|
-
const r =
|
|
6
|
+
const r = d(t, e == null ? void 0 : e.in), f = +a(r) - +o(r);
|
|
7
7
|
return Math.round(f / m) + 1;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
+
k as default,
|
|
10
11
|
k as getISOWeek
|
|
11
12
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { millisecondsInWeek as m } from "./constants.js";
|
|
2
2
|
import { startOfWeek as a } from "./startOfWeek.js";
|
|
3
|
-
import { startOfWeekYear as
|
|
4
|
-
import { toDate as
|
|
5
|
-
function
|
|
6
|
-
const r =
|
|
3
|
+
import { startOfWeekYear as d } from "./startOfWeekYear.js";
|
|
4
|
+
import { toDate as c } from "./toDate.js";
|
|
5
|
+
function l(t, e) {
|
|
6
|
+
const r = c(t, e == null ? void 0 : e.in), f = +a(r, e) - +d(r, e);
|
|
7
7
|
return Math.round(f / m) + 1;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
l as default,
|
|
11
|
+
l as getWeek
|
|
11
12
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { toDate as
|
|
1
|
+
import { toDate as a } from "./toDate.js";
|
|
2
2
|
function u(r, e) {
|
|
3
|
-
return
|
|
3
|
+
return a(r, e == null ? void 0 : e.in).getFullYear();
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
|
+
u as default,
|
|
6
7
|
u as getYear
|
|
7
8
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { normalizeDates as
|
|
1
|
+
import { normalizeDates as d } from "./_lib/normalizeDates.js";
|
|
2
2
|
import { startOfDay as t } from "./startOfDay.js";
|
|
3
|
-
function
|
|
4
|
-
const [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
function D(e, r, a) {
|
|
4
|
+
const [f, m] = d(
|
|
5
|
+
a == null ? void 0 : a.in,
|
|
6
|
+
e,
|
|
7
|
+
r
|
|
8
8
|
);
|
|
9
|
-
return +t(
|
|
9
|
+
return +t(f) == +t(m);
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
D as default,
|
|
13
|
+
D as isSameDay
|
|
13
14
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { normalizeDates as n } from "./_lib/normalizeDates.js";
|
|
2
|
-
function
|
|
3
|
-
const [t,
|
|
2
|
+
function g(r, l, e) {
|
|
3
|
+
const [t, a] = n(
|
|
4
4
|
e == null ? void 0 : e.in,
|
|
5
|
-
|
|
5
|
+
r,
|
|
6
6
|
l
|
|
7
7
|
);
|
|
8
|
-
return t.getFullYear() ===
|
|
8
|
+
return t.getFullYear() === a.getFullYear() && t.getMonth() === a.getMonth();
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
g as default,
|
|
12
|
+
g as isSameMonth
|
|
12
13
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { isDate as r } from "./isDate.js";
|
|
2
|
-
import { toDate as
|
|
3
|
-
function
|
|
4
|
-
return !(!r(o) && typeof o != "number" || isNaN(+
|
|
2
|
+
import { toDate as t } from "./toDate.js";
|
|
3
|
+
function f(o) {
|
|
4
|
+
return !(!r(o) && typeof o != "number" || isNaN(+t(o)));
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default,
|
|
8
|
+
f as isValid
|
|
8
9
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { formatDistance as o } from "./ar-SA/_lib/formatDistance.js";
|
|
2
2
|
import { formatLong as t } from "./ar-SA/_lib/formatLong.js";
|
|
3
|
-
import { formatRelative as
|
|
4
|
-
import { localize as
|
|
3
|
+
import { formatRelative as a } from "./ar-SA/_lib/formatRelative.js";
|
|
4
|
+
import { localize as r } from "./ar-SA/_lib/localize.js";
|
|
5
5
|
import { match as m } from "./ar-SA/_lib/match.js";
|
|
6
|
-
const
|
|
6
|
+
const s = {
|
|
7
7
|
code: "ar-SA",
|
|
8
8
|
formatDistance: o,
|
|
9
9
|
formatLong: t,
|
|
10
|
-
formatRelative:
|
|
11
|
-
localize:
|
|
10
|
+
formatRelative: a,
|
|
11
|
+
localize: r,
|
|
12
12
|
match: m,
|
|
13
13
|
options: {
|
|
14
14
|
weekStartsOn: 0,
|
|
@@ -16,5 +16,6 @@ const p = {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
s as arSA,
|
|
20
|
+
s as default
|
|
20
21
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { formatDistance as o } from "./en-US/_lib/formatDistance.js";
|
|
2
2
|
import { formatLong as t } from "./en-US/_lib/formatLong.js";
|
|
3
|
-
import { formatRelative as
|
|
4
|
-
import { localize as
|
|
5
|
-
import { match as
|
|
6
|
-
const
|
|
3
|
+
import { formatRelative as a } from "./en-US/_lib/formatRelative.js";
|
|
4
|
+
import { localize as r } from "./en-US/_lib/localize.js";
|
|
5
|
+
import { match as e } from "./en-US/_lib/match.js";
|
|
6
|
+
const s = {
|
|
7
7
|
code: "en-US",
|
|
8
8
|
formatDistance: o,
|
|
9
9
|
formatLong: t,
|
|
10
|
-
formatRelative:
|
|
11
|
-
localize:
|
|
12
|
-
match:
|
|
10
|
+
formatRelative: a,
|
|
11
|
+
localize: r,
|
|
12
|
+
match: e,
|
|
13
13
|
options: {
|
|
14
14
|
weekStartsOn: 0,
|
|
15
15
|
firstWeekContainsDate: 1
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
s as default,
|
|
20
|
+
s as enUS
|
|
20
21
|
};
|
|
@@ -8,8 +8,8 @@ import { parsers as Y } from "./parse/_lib/parsers.js";
|
|
|
8
8
|
import { enUS as j } from "./locale/en-US.js";
|
|
9
9
|
const q = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, z = /^'([^]*?)'?$/, Q = /''/g, H = /\S/, I = /[a-zA-Z]/;
|
|
10
10
|
function _(n, c, f, o) {
|
|
11
|
-
var k, w, T,
|
|
12
|
-
const
|
|
11
|
+
var k, w, T, d;
|
|
12
|
+
const a = () => A(f, NaN), i = W(), l = i.locale ?? j, P = i.firstWeekContainsDate ?? ((w = (k = i.locale) == null ? void 0 : k.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, b = i.weekStartsOn ?? ((d = (T = i.locale) == null ? void 0 : T.options) == null ? void 0 : d.weekStartsOn) ?? 0, m = {
|
|
13
13
|
firstWeekContainsDate: P,
|
|
14
14
|
weekStartsOn: b,
|
|
15
15
|
locale: l
|
|
@@ -25,10 +25,10 @@ function _(n, c, f, o) {
|
|
|
25
25
|
F(t) && x(t, c, n), $(t) && x(t, c, n);
|
|
26
26
|
const e = t[0], r = Y[e];
|
|
27
27
|
if (r) {
|
|
28
|
-
const { incompatibleTokens:
|
|
29
|
-
if (Array.isArray(
|
|
28
|
+
const { incompatibleTokens: y } = r;
|
|
29
|
+
if (Array.isArray(y)) {
|
|
30
30
|
const E = u.find(
|
|
31
|
-
(O) =>
|
|
31
|
+
(O) => y.includes(O.token) || O.token === e
|
|
32
32
|
);
|
|
33
33
|
if (E)
|
|
34
34
|
throw new RangeError(
|
|
@@ -46,7 +46,7 @@ function _(n, c, f, o) {
|
|
|
46
46
|
m
|
|
47
47
|
);
|
|
48
48
|
if (!g)
|
|
49
|
-
return
|
|
49
|
+
return a();
|
|
50
50
|
p.push(g.setter), n = g.rest;
|
|
51
51
|
} else {
|
|
52
52
|
if (e.match(I))
|
|
@@ -56,20 +56,20 @@ function _(n, c, f, o) {
|
|
|
56
56
|
if (t === "''" ? t = "'" : e === "'" && (t = K(t)), n.indexOf(t) === 0)
|
|
57
57
|
n = n.slice(t.length);
|
|
58
58
|
else
|
|
59
|
-
return
|
|
59
|
+
return a();
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if (n.length > 0 && H.test(n))
|
|
63
|
-
return
|
|
63
|
+
return a();
|
|
64
64
|
const C = p.map((t) => t.priority).sort((t, e) => e - t).filter((t, e, r) => r.indexOf(t) === e).map(
|
|
65
65
|
(t) => p.filter((e) => e.priority === t).sort((e, r) => r.subPriority - e.subPriority)
|
|
66
66
|
).map((t) => t[0]);
|
|
67
67
|
let s = N(f, o == null ? void 0 : o.in);
|
|
68
|
-
if (isNaN(+s)) return
|
|
68
|
+
if (isNaN(+s)) return a();
|
|
69
69
|
const h = {};
|
|
70
70
|
for (const t of C) {
|
|
71
71
|
if (!t.validate(s, m))
|
|
72
|
-
return
|
|
72
|
+
return a();
|
|
73
73
|
const e = t.set(s, h, m);
|
|
74
74
|
Array.isArray(e) ? (s = e[0], Object.assign(h, e[1])) : s = e;
|
|
75
75
|
}
|
|
@@ -79,6 +79,7 @@ function K(n) {
|
|
|
79
79
|
return n.match(z)[1].replace(Q, "'");
|
|
80
80
|
}
|
|
81
81
|
export {
|
|
82
|
+
_ as default,
|
|
82
83
|
R as longFormatters,
|
|
83
84
|
_ as parse,
|
|
84
85
|
Y as parsers
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { getDefaultOptions as
|
|
2
|
-
import { addDays as
|
|
3
|
-
import { toDate as
|
|
1
|
+
import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { addDays as w } from "./addDays.js";
|
|
3
|
+
import { toDate as S } from "./toDate.js";
|
|
4
4
|
function _(O, t, e) {
|
|
5
|
-
var f,
|
|
6
|
-
const a =
|
|
7
|
-
return
|
|
5
|
+
var f, d, l, m;
|
|
6
|
+
const a = s(), u = (e == null ? void 0 : e.weekStartsOn) ?? ((d = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? a.weekStartsOn ?? ((m = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, c = S(O, e == null ? void 0 : e.in), n = c.getDay(), D = (t % 7 + 7) % 7, r = 7 - u, k = t < 0 || t > 6 ? t - (n + r) % 7 : (D + r) % 7 - (n + r) % 7;
|
|
7
|
+
return w(c, k, e);
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
+
_ as default,
|
|
10
11
|
_ as setDay
|
|
11
12
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { addDays as c } from "./addDays.js";
|
|
2
|
-
import { getISODay as
|
|
3
|
-
import { toDate as
|
|
2
|
+
import { getISODay as d } from "./getISODay.js";
|
|
3
|
+
import { toDate as D } from "./toDate.js";
|
|
4
4
|
function I(a, e, r) {
|
|
5
|
-
const t =
|
|
5
|
+
const t = D(a, r == null ? void 0 : r.in), f = d(t, r), m = e - f;
|
|
6
6
|
return c(t, m, r);
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
|
+
I as default,
|
|
9
10
|
I as setISODay
|
|
10
11
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { getISOWeek as m } from "./getISOWeek.js";
|
|
2
2
|
import { toDate as c } from "./toDate.js";
|
|
3
|
-
function
|
|
4
|
-
const t = c(r, e == null ? void 0 : e.in),
|
|
5
|
-
return t.setDate(t.getDate() -
|
|
3
|
+
function D(r, a, e) {
|
|
4
|
+
const t = c(r, e == null ? void 0 : e.in), f = m(t, e) - a;
|
|
5
|
+
return t.setDate(t.getDate() - f * 7), t;
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
D as default,
|
|
9
|
+
D as setISOWeek
|
|
9
10
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { constructFrom as m } from "./constructFrom.js";
|
|
2
2
|
import { getDaysInMonth as u } from "./getDaysInMonth.js";
|
|
3
3
|
import { toDate as M } from "./toDate.js";
|
|
4
|
-
function
|
|
5
|
-
const t = M(n,
|
|
6
|
-
|
|
7
|
-
const c = u(
|
|
4
|
+
function d(n, o, e) {
|
|
5
|
+
const t = M(n, e == null ? void 0 : e.in), a = t.getFullYear(), s = t.getDate(), r = m(n, 0);
|
|
6
|
+
r.setFullYear(a, o, 15), r.setHours(0, 0, 0, 0);
|
|
7
|
+
const c = u(r);
|
|
8
8
|
return t.setMonth(o, Math.min(s, c)), t;
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
d as default,
|
|
12
|
+
d as setMonth
|
|
12
13
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { getWeek as c } from "./getWeek.js";
|
|
2
2
|
import { toDate as t } from "./toDate.js";
|
|
3
|
-
function
|
|
4
|
-
const r = t(
|
|
3
|
+
function D(a, f, e) {
|
|
4
|
+
const r = t(a, e == null ? void 0 : e.in), m = c(r, e) - f;
|
|
5
5
|
return r.setDate(r.getDate() - m * 7), t(r, e == null ? void 0 : e.in);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
D as default,
|
|
9
|
+
D as setWeek
|
|
9
10
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { constructFrom as
|
|
2
|
-
import { toDate as
|
|
1
|
+
import { constructFrom as u } from "./constructFrom.js";
|
|
2
|
+
import { toDate as f } from "./toDate.js";
|
|
3
3
|
function N(e, a, r) {
|
|
4
|
-
const t =
|
|
5
|
-
return isNaN(+t) ?
|
|
4
|
+
const t = f(e, r == null ? void 0 : r.in);
|
|
5
|
+
return isNaN(+t) ? u(e, NaN) : (t.setFullYear(a), t);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
+
N as default,
|
|
8
9
|
N as setYear
|
|
9
10
|
};
|