@devtron-labs/devtron-fe-common-lib 1.16.0 → 1.17.0-pre-0
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/{@code-editor-CEmGYRXP.js → @code-editor-IalENjkh.js} +9490 -9066
- package/dist/{@common-rjsf-qWtqbYmP.js → @common-rjsf-ChkYseh5.js} +6 -6
- package/dist/{@framer-motion-DAmKhMSi.js → @framer-motion-j6RIjEIR.js} +20 -20
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-BVyHiOGU.js} +2065 -2140
- package/dist/{@react-select-Cmser7OI.js → @react-select-BQNFZu0Y.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-DbxoIktR.js} +29809 -29542
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
- package/dist/Common/GenericDescription/types.d.ts +4 -1
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +21 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/Hooks/useStateFilters/types.d.ts +2 -2
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +2 -1
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -0
- package/dist/Common/Pagination/constants.d.ts +4 -0
- package/dist/Common/Pagination/index.d.ts +1 -0
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +8 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +35 -2
- package/dist/Pages/ResourceBrowser/constants.d.ts +13 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +17 -0
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -3
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +5 -9
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
- package/dist/Shared/Components/Backdrop/types.d.ts +28 -2
- package/dist/Shared/Components/Backdrop/utils.d.ts +1 -0
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +4 -9
- package/dist/Shared/Components/Button/Button.component.d.ts +376 -2
- package/dist/Shared/Components/Button/types.d.ts +6 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +7 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +6 -0
- package/dist/Shared/Components/GenericModal/constants.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/index.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +37 -0
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +0 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -3
- package/dist/Shared/Components/Icon/Icon.d.ts +18 -1
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +3 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +3 -0
- package/dist/Shared/Components/Table/constants.d.ts +1 -0
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +48 -21
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +6 -1
- package/dist/Shared/Components/Table/utils.d.ts +5 -0
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +75 -41
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +10 -12
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +13 -2
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +3 -2
- package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +3 -2
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +3 -0
- package/dist/Shared/Providers/{types.d.ts → MainContextProvider/types.d.ts} +4 -4
- package/dist/Shared/Providers/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/Shared/types.d.ts +15 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-bug.8a8dc1fc.svg +3 -0
- package/dist/assets/ic-check-all.fdea6b38.svg +5 -0
- package/dist/assets/ic-check-square.e355731d.svg +4 -0
- package/dist/assets/ic-clean-brush.c21cbe1e.svg +3 -0
- package/dist/assets/ic-container.92a4c33a.svg +3 -0
- package/dist/assets/ic-deploy-color.73a8df48.svg +14 -0
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +16 -0
- package/dist/assets/ic-download.468a0cb7.svg +3 -0
- package/dist/assets/ic-file-code.0926d194.svg +3 -0
- package/dist/assets/ic-gavel.a3b064b5.svg +3 -0
- package/dist/assets/ic-git-branch.d6b3d950.svg +3 -0
- package/dist/assets/ic-info-filled-color.47953fcf.svg +8 -0
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +7 -0
- package/dist/assets/ic-logs.d310db72.svg +3 -0
- package/dist/assets/{ic-minus.416da21b.svg → ic-minus.aac464f7.svg} +1 -1
- package/dist/assets/ic-pause-circle.f9405070.svg +3 -0
- package/dist/assets/ic-speedometer.3ecaae3b.svg +3 -0
- package/dist/assets/ic-two-cubes.056d1333.svg +3 -0
- package/dist/assets/ic-webhook.ffd8ded6.svg +21 -0
- package/dist/assets/workflow-options-modal-header.0444485e.svg +38 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +854 -838
- package/package.json +7 -7
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -3
- package/dist/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-check-all.0376437d.svg +0 -21
- package/dist/assets/ic-check-square.2a3d3fb9.svg +0 -20
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +0 -42
- package/dist/assets/ic-source-build.7d776b10.svg +0 -22
- package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
- package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
- package/dist/assets/select-image-source.fb911f42.png +0 -0
- /package/dist/Shared/Providers/{MainContextProvider.d.ts → MainContextProvider/MainContextProvider.d.ts} +0 -0
- /package/dist/assets/{ic-container.4e1e6455.svg → ic-container-registry.4e1e6455.svg} +0 -0
@@ -1,13 +1,13 @@
|
|
1
|
-
import { j as n,
|
1
|
+
import { j as n, at as b, av as k, au as W } from "./@vendor-DbxoIktR.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-IalENjkh.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as $, getTemplate as B, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as ae, deepEquals as se } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as oe } from "./assets/ic-add.cfaa779b.svg";
|
9
|
-
import { ReactComponent as ie } from "./assets/ic-
|
10
|
-
import { ReactComponent as le } from "./assets/ic-
|
9
|
+
import { ReactComponent as ie } from "./assets/ic-warning.ecf7ff97.svg";
|
10
|
+
import { ReactComponent as le } from "./assets/ic-cross.01e03666.svg";
|
11
11
|
import './assets/@common-rjsf.css';const C = {
|
12
12
|
SELECT: "Please select an option",
|
13
13
|
INPUT: "Please enter an input",
|
@@ -153,7 +153,7 @@ import './assets/@common-rjsf.css';const C = {
|
|
153
153
|
]
|
154
154
|
}
|
155
155
|
) });
|
156
|
-
}, fe = ({ icon: e, iconType: t, registry: a, uiSchema: r, ...s }) => /* @__PURE__ */ n.jsx("button", { ...s, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(
|
156
|
+
}, fe = ({ icon: e, iconType: t, registry: a, uiSchema: r, ...s }) => /* @__PURE__ */ n.jsx("button", { ...s, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(le, { className: "icon-dim-16 fcn-6" }) }), he = ({ uiSchema: e }) => {
|
157
157
|
const { submitText: t, norender: a, props: r = {} } = Z(e);
|
158
158
|
return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...r, className: `cta ${r.className || ""}`, children: t }) });
|
159
159
|
}, O = ({
|
@@ -217,7 +217,7 @@ import './assets/@common-rjsf.css';const C = {
|
|
217
217
|
return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: e.filter((r) => !!r).map((r, s) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
|
218
218
|
/* @__PURE__ */ n.jsx("span", {}),
|
219
219
|
/* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
|
220
|
-
/* @__PURE__ */ n.jsx(
|
220
|
+
/* @__PURE__ */ n.jsx(ie, { className: "form__icon form__icon--error" }),
|
221
221
|
r
|
222
222
|
] })
|
223
223
|
] }, s)) });
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ay as m, az as lt, aA as R, aB as Zr, aC as Le, aD as oe, aE as T, aF as $e, aG as at, aH as Gt, aI as Q, aJ as $r, aK as oi, aL as si, aM as ui, aN as li, aO as fi, aP as ci, aQ as vi, aR as di, aS as qr, aT as pi, aU as hi, aV as mi, aW as gi, aX as yi, aY as Jr, aZ as Pt, a_ as he, a$ as X, b0 as bi, b1 as Qr, b2 as z, b3 as tn, b4 as me, b5 as Z, b6 as Pi, b7 as Ot, b8 as Vi, b9 as Ti, ba as en, bb as Ft, bc as O, bd as ge, be as Si, bf as se, bg as xi, bh as Ci } from "./@vendor-DbxoIktR.js";
|
2
2
|
import * as Y from "react";
|
3
3
|
import Re, { createContext as St, useContext as F, useLayoutEffect as Ai, useEffect as N, useState as Me, useRef as $, useCallback as ye, useMemo as Vt, forwardRef as wi, createElement as Ei, cloneElement as Li, Children as Ri, isValidElement as Mi } from "react";
|
4
4
|
var qe = "production", De = typeof process > "u" || process.env === void 0 ? qe : process.env.NODE_ENV || qe, tt = function(t) {
|
@@ -1030,20 +1030,20 @@ function Fn(t, e) {
|
|
1030
1030
|
var Qt = function(t) {
|
1031
1031
|
return t * 1e3;
|
1032
1032
|
}, or = {
|
1033
|
-
linear:
|
1034
|
-
easeIn:
|
1035
|
-
easeInOut:
|
1036
|
-
easeOut:
|
1037
|
-
circIn:
|
1038
|
-
circInOut:
|
1039
|
-
circOut:
|
1040
|
-
backIn:
|
1041
|
-
backInOut:
|
1042
|
-
backOut:
|
1043
|
-
anticipate:
|
1044
|
-
bounceIn:
|
1045
|
-
bounceInOut:
|
1046
|
-
bounceOut:
|
1033
|
+
linear: Jr,
|
1034
|
+
easeIn: yi,
|
1035
|
+
easeInOut: gi,
|
1036
|
+
easeOut: mi,
|
1037
|
+
circIn: hi,
|
1038
|
+
circInOut: pi,
|
1039
|
+
circOut: qr,
|
1040
|
+
backIn: di,
|
1041
|
+
backInOut: vi,
|
1042
|
+
backOut: ci,
|
1043
|
+
anticipate: fi,
|
1044
|
+
bounceIn: li,
|
1045
|
+
bounceInOut: ui,
|
1046
|
+
bounceOut: si
|
1047
1047
|
}, sr = function(t) {
|
1048
1048
|
if (Array.isArray(t)) {
|
1049
1049
|
lt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
@@ -1132,7 +1132,7 @@ function Qa(t) {
|
|
1132
1132
|
var fr = !1;
|
1133
1133
|
function to(t) {
|
1134
1134
|
var e = t.ease, r = t.times, n = t.yoyo, i = t.flip, s = t.loop, o = Q(t, ["ease", "times", "yoyo", "flip", "loop"]), a = m({}, o);
|
1135
|
-
return r && (a.offset = r), o.duration && (a.duration = Qt(o.duration)), o.repeatDelay && (a.repeatDelay = Qt(o.repeatDelay)), e && (a.ease = Za(e) ? e.map(sr) : sr(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (
|
1135
|
+
return r && (a.offset = r), o.duration && (a.duration = Qt(o.duration)), o.repeatDelay && (a.repeatDelay = Qt(o.repeatDelay)), e && (a.ease = Za(e) ? e.map(sr) : sr(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (tn(!fr, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), fr = !0, n ? a.repeatType = "reverse" : s ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = s || n || i || o.repeat), o.type !== "spring" && (a.type = "keyframes"), a;
|
1136
1136
|
}
|
1137
1137
|
function eo(t, e) {
|
1138
1138
|
var r, n, i = Ge(t, e) || {};
|
@@ -1149,7 +1149,7 @@ function io(t, e, r, n, i) {
|
|
1149
1149
|
var s, o = Ge(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = ur(t, r);
|
1150
1150
|
a === "none" && u && typeof r == "string" ? a = Ke(t, r) : cr(a) && typeof r == "string" ? a = vr(r) : !Array.isArray(r) && cr(r) && typeof a == "string" && (r = vr(a));
|
1151
1151
|
var l = ur(t, a);
|
1152
|
-
|
1152
|
+
tn(l === u, "You are trying to animate ".concat(t, ' from "').concat(a, '" to "').concat(r, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(r, " via the `style` property."));
|
1153
1153
|
function f() {
|
1154
1154
|
var c = {
|
1155
1155
|
from: a,
|
@@ -1160,7 +1160,7 @@ function io(t, e, r, n, i) {
|
|
1160
1160
|
return e.set(d);
|
1161
1161
|
}
|
1162
1162
|
};
|
1163
|
-
return o.type === "inertia" || o.type === "decay" ? bi(m(m({}, c), o)) :
|
1163
|
+
return o.type === "inertia" || o.type === "decay" ? bi(m(m({}, c), o)) : Qr(m(m({}, no(o, c, t)), { onUpdate: function(d) {
|
1164
1164
|
var p;
|
1165
1165
|
c.onUpdate(d), (p = o.onUpdate) === null || p === void 0 || p.call(o, d);
|
1166
1166
|
}, onComplete: function() {
|
@@ -2747,7 +2747,7 @@ function Fr(t, e) {
|
|
2747
2747
|
var r;
|
2748
2748
|
return (r = t[e]) !== null && r !== void 0 ? r : t.borderRadius;
|
2749
2749
|
}
|
2750
|
-
var Ss = Qn(0, 0.5,
|
2750
|
+
var Ss = Qn(0, 0.5, qr), xs = Qn(0.5, 0.95, Jr);
|
2751
2751
|
function Qn(t, e, r) {
|
2752
2752
|
return function(n) {
|
2753
2753
|
return n < t ? 0 : n > e ? 1 : r(ge(t, e, n));
|
@@ -3538,7 +3538,7 @@ function fu(t, e) {
|
|
3538
3538
|
var r = F(_t).isStatic, n = $(null), i = ii(q(t) ? t.get() : t);
|
3539
3539
|
return Vt(function() {
|
3540
3540
|
return i.attach(function(s, o) {
|
3541
|
-
return r ? o(s) : (n.current && n.current.stop(), n.current =
|
3541
|
+
return r ? o(s) : (n.current && n.current.stop(), n.current = Qr(m(m({ from: i.get(), to: s, velocity: i.getVelocity() }, e), { onUpdate: o })), i.get());
|
3542
3542
|
});
|
3543
3543
|
}, [JSON.stringify(e)]), eu(t, function(s) {
|
3544
3544
|
return i.set(parseFloat(s));
|
@@ -3,7 +3,7 @@ function Yi(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
4
4
|
}
|
5
5
|
function Ss(e) {
|
6
|
-
if (e
|
6
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
7
7
|
var t = e.default;
|
8
8
|
if (typeof t == "function") {
|
9
9
|
var s = function r() {
|
@@ -517,8 +517,13 @@ function Et(e, t, s) {
|
|
517
517
|
return void (a ? r.setUTCHours(s) : r.setHours(s));
|
518
518
|
case "Date":
|
519
519
|
return void (a ? r.setUTCDate(s) : r.setDate(s));
|
520
|
+
// case 'Day': // Not real
|
521
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
522
|
+
// case 'Month': // Not used because we need to pass two variables
|
523
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
520
524
|
case "FullYear":
|
521
525
|
break;
|
526
|
+
// See below ...
|
522
527
|
default:
|
523
528
|
return;
|
524
529
|
}
|
@@ -1627,18 +1632,23 @@ function Za(e, t, s) {
|
|
1627
1632
|
case "second":
|
1628
1633
|
n = (this - r) / 1e3;
|
1629
1634
|
break;
|
1635
|
+
// 1000
|
1630
1636
|
case "minute":
|
1631
1637
|
n = (this - r) / 6e4;
|
1632
1638
|
break;
|
1639
|
+
// 1000 * 60
|
1633
1640
|
case "hour":
|
1634
1641
|
n = (this - r) / 36e5;
|
1635
1642
|
break;
|
1643
|
+
// 1000 * 60 * 60
|
1636
1644
|
case "day":
|
1637
1645
|
n = (this - r - a) / 864e5;
|
1638
1646
|
break;
|
1647
|
+
// 1000 * 60 * 60 * 24, negate dst
|
1639
1648
|
case "week":
|
1640
1649
|
n = (this - r - a) / 6048e5;
|
1641
1650
|
break;
|
1651
|
+
// 1000 * 60 * 60 * 24 * 7, negate dst
|
1642
1652
|
default:
|
1643
1653
|
n = this - r;
|
1644
1654
|
}
|
@@ -2426,6 +2436,7 @@ function Xn(e) {
|
|
2426
2436
|
return t * 1440 + r / 6e4;
|
2427
2437
|
case "second":
|
2428
2438
|
return t * 86400 + r / 1e3;
|
2439
|
+
// Math.floor prevents floating point math errors here
|
2429
2440
|
case "millisecond":
|
2430
2441
|
return Math.floor(t * 864e5) + r;
|
2431
2442
|
default:
|