@atlaskit/datetime-picker 15.11.1 → 15.11.2
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/CHANGELOG.md +8 -0
- package/dist/cjs/components/date-picker-class.js +1 -1
- package/dist/cjs/components/date-picker-fc.js +1 -1
- package/dist/cjs/components/date-time-picker-class.js +1 -1
- package/dist/cjs/components/date-time-picker-fc.js +1 -1
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/parse-time.js +0 -4
- package/dist/es2019/components/date-picker-class.js +1 -1
- package/dist/es2019/components/date-picker-fc.js +1 -1
- package/dist/es2019/components/date-time-picker-class.js +1 -1
- package/dist/es2019/components/date-time-picker-fc.js +1 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/parse-time.js +4 -4
- package/dist/esm/components/date-picker-class.js +1 -1
- package/dist/esm/components/date-picker-fc.js +1 -1
- package/dist/esm/components/date-time-picker-class.js +1 -1
- package/dist/esm/components/date-time-picker-fc.js +1 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/parse-time.js +4 -4
- package/dist/types/internal/parse-time.d.ts +0 -4
- package/dist/types-ts4.5/internal/parse-time.d.ts +0 -4
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 15.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#103710](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103710)
|
|
8
|
+
[`0fc1371775df4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fc1371775df4) -
|
|
9
|
+
Refactor internals and update dev dependencies.
|
|
10
|
+
|
|
3
11
|
## 15.11.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -41,7 +41,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
41
41
|
* @jsx jsx
|
|
42
42
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
43
43
|
var packageName = "@atlaskit/datetime-picker";
|
|
44
|
-
var packageVersion = "15.11.
|
|
44
|
+
var packageVersion = "15.11.2";
|
|
45
45
|
var dropdownIndicatorStyles = (0, _primitives.xcss)({
|
|
46
46
|
minWidth: "var(--ds-space-300, 24px)",
|
|
47
47
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -39,7 +39,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
39
39
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40
40
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
41
41
|
var packageName = "@atlaskit/datetime-picker";
|
|
42
|
-
var packageVersion = "15.11.
|
|
42
|
+
var packageVersion = "15.11.2";
|
|
43
43
|
var analyticsAttributes = {
|
|
44
44
|
componentName: 'datePicker',
|
|
45
45
|
packageName: packageName,
|
|
@@ -37,7 +37,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
|
|
|
37
37
|
return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
|
|
38
38
|
}, _datePickerFc.default, _datePickerClass.default);
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "15.11.
|
|
40
|
+
var packageVersion = "15.11.2";
|
|
41
41
|
// Make DatePicker 50% the width of DateTimePicker
|
|
42
42
|
// If rendering an icon container, shrink the TimePicker
|
|
43
43
|
var datePickerContainerStyles = (0, _react2.css)({
|
|
@@ -37,7 +37,7 @@ function () {
|
|
|
37
37
|
return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
|
|
38
38
|
}, _datePickerFc.default, _datePickerClass.default);
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "15.11.
|
|
40
|
+
var packageVersion = "15.11.2";
|
|
41
41
|
var analyticsAttributes = {
|
|
42
42
|
componentName: 'dateTimePicker',
|
|
43
43
|
packageName: packageName,
|
|
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
27
27
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "15.11.
|
|
30
|
+
var packageVersion = "15.11.2";
|
|
31
31
|
var menuStyles = {
|
|
32
32
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
33
33
|
position: 'static',
|
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.assignToDate = assignToDate;
|
|
7
|
-
exports.checkHour = checkHour;
|
|
8
|
-
exports.checkMinuteSecond = checkMinuteSecond;
|
|
9
6
|
exports.convertTo24hrTime = convertTo24hrTime;
|
|
10
7
|
exports.default = parseTime;
|
|
11
|
-
exports.formatSemi24 = formatSemi24;
|
|
12
8
|
exports.isValid = isValid;
|
|
13
9
|
exports.removeSpacer = removeSpacer;
|
|
14
10
|
var map24 = {
|
|
@@ -25,7 +25,7 @@ import { Menu } from '../internal/menu';
|
|
|
25
25
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
26
26
|
import { makeSingleValue } from '../internal/single-value';
|
|
27
27
|
const packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
const packageVersion = "15.11.
|
|
28
|
+
const packageVersion = "15.11.2";
|
|
29
29
|
const dropdownIndicatorStyles = xcss({
|
|
30
30
|
minWidth: "var(--ds-space-300, 24px)",
|
|
31
31
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -24,7 +24,7 @@ import { Menu } from '../internal/menu';
|
|
|
24
24
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
25
25
|
import { makeSingleValue } from '../internal/single-value';
|
|
26
26
|
const packageName = "@atlaskit/datetime-picker";
|
|
27
|
-
const packageVersion = "15.11.
|
|
27
|
+
const packageVersion = "15.11.2";
|
|
28
28
|
const analyticsAttributes = {
|
|
29
29
|
componentName: 'datePicker',
|
|
30
30
|
packageName,
|
|
@@ -22,7 +22,7 @@ import DatePickerNew from './date-picker-fc';
|
|
|
22
22
|
import TimePicker from './time-picker';
|
|
23
23
|
const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
24
24
|
const packageName = "@atlaskit/datetime-picker";
|
|
25
|
-
const packageVersion = "15.11.
|
|
25
|
+
const packageVersion = "15.11.2";
|
|
26
26
|
// Make DatePicker 50% the width of DateTimePicker
|
|
27
27
|
// If rendering an icon container, shrink the TimePicker
|
|
28
28
|
const datePickerContainerStyles = css({
|
|
@@ -18,7 +18,7 @@ const DatePicker = componentWithCondition(
|
|
|
18
18
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
19
19
|
() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "15.11.
|
|
21
|
+
const packageVersion = "15.11.2";
|
|
22
22
|
const analyticsAttributes = {
|
|
23
23
|
componentName: 'dateTimePicker',
|
|
24
24
|
packageName,
|
|
@@ -11,7 +11,7 @@ import parseTime from '../internal/parse-time';
|
|
|
11
11
|
import { convertTokens } from '../internal/parse-tokens';
|
|
12
12
|
import { makeSingleValue } from '../internal/single-value';
|
|
13
13
|
const packageName = "@atlaskit/datetime-picker";
|
|
14
|
-
const packageVersion = "15.11.
|
|
14
|
+
const packageVersion = "15.11.2";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -48,7 +48,7 @@ export function isValid(timeString) {
|
|
|
48
48
|
export function removeSpacer(time) {
|
|
49
49
|
return time.replace(/[:.]/g, '');
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
function formatSemi24(time) {
|
|
52
52
|
if (time.length === 1) {
|
|
53
53
|
return `0${time}00`;
|
|
54
54
|
}
|
|
@@ -60,7 +60,7 @@ export function formatSemi24(time) {
|
|
|
60
60
|
}
|
|
61
61
|
return time;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
function checkHour(hour, meridiem) {
|
|
64
64
|
if (hour > '24') {
|
|
65
65
|
return null;
|
|
66
66
|
}
|
|
@@ -72,7 +72,7 @@ export function checkHour(hour, meridiem) {
|
|
|
72
72
|
}
|
|
73
73
|
return hour;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
function checkMinuteSecond(value) {
|
|
76
76
|
if (value > '59') {
|
|
77
77
|
return null;
|
|
78
78
|
}
|
|
@@ -94,7 +94,7 @@ export function convertTo24hrTime(time) {
|
|
|
94
94
|
seconds: parseInt(seconds || '0', 10) || 0
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
function assignToDate(time) {
|
|
98
98
|
const dateTime = new Date();
|
|
99
99
|
dateTime.setHours(time.hour);
|
|
100
100
|
dateTime.setMinutes(time.minute);
|
|
@@ -34,7 +34,7 @@ import { Menu } from '../internal/menu';
|
|
|
34
34
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
35
35
|
import { makeSingleValue } from '../internal/single-value';
|
|
36
36
|
var packageName = "@atlaskit/datetime-picker";
|
|
37
|
-
var packageVersion = "15.11.
|
|
37
|
+
var packageVersion = "15.11.2";
|
|
38
38
|
var dropdownIndicatorStyles = xcss({
|
|
39
39
|
minWidth: "var(--ds-space-300, 24px)",
|
|
40
40
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -30,7 +30,7 @@ import { Menu } from '../internal/menu';
|
|
|
30
30
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
31
31
|
import { makeSingleValue } from '../internal/single-value';
|
|
32
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "15.11.
|
|
33
|
+
var packageVersion = "15.11.2";
|
|
34
34
|
var analyticsAttributes = {
|
|
35
35
|
componentName: 'datePicker',
|
|
36
36
|
packageName: packageName,
|
|
@@ -33,7 +33,7 @@ var DatePicker = componentWithCondition(function () {
|
|
|
33
33
|
return fg('dst-date-picker-use-functional-component');
|
|
34
34
|
}, DatePickerNew, DatePickerOld);
|
|
35
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "15.11.
|
|
36
|
+
var packageVersion = "15.11.2";
|
|
37
37
|
// Make DatePicker 50% the width of DateTimePicker
|
|
38
38
|
// If rendering an icon container, shrink the TimePicker
|
|
39
39
|
var datePickerContainerStyles = css({
|
|
@@ -27,7 +27,7 @@ function () {
|
|
|
27
27
|
return fg('dst-date-picker-use-functional-component');
|
|
28
28
|
}, DatePickerNew, DatePickerOld);
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "15.11.
|
|
30
|
+
var packageVersion = "15.11.2";
|
|
31
31
|
var analyticsAttributes = {
|
|
32
32
|
componentName: 'dateTimePicker',
|
|
33
33
|
packageName: packageName,
|
|
@@ -17,7 +17,7 @@ import parseTime from '../internal/parse-time';
|
|
|
17
17
|
import { convertTokens } from '../internal/parse-tokens';
|
|
18
18
|
import { makeSingleValue } from '../internal/single-value';
|
|
19
19
|
var packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
var packageVersion = "15.11.
|
|
20
|
+
var packageVersion = "15.11.2";
|
|
21
21
|
var menuStyles = {
|
|
22
22
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
23
23
|
position: 'static',
|
|
@@ -48,7 +48,7 @@ export function isValid(timeString) {
|
|
|
48
48
|
export function removeSpacer(time) {
|
|
49
49
|
return time.replace(/[:.]/g, '');
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
function formatSemi24(time) {
|
|
52
52
|
if (time.length === 1) {
|
|
53
53
|
return "0".concat(time, "00");
|
|
54
54
|
}
|
|
@@ -60,7 +60,7 @@ export function formatSemi24(time) {
|
|
|
60
60
|
}
|
|
61
61
|
return time;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
function checkHour(hour, meridiem) {
|
|
64
64
|
if (hour > '24') {
|
|
65
65
|
return null;
|
|
66
66
|
}
|
|
@@ -72,7 +72,7 @@ export function checkHour(hour, meridiem) {
|
|
|
72
72
|
}
|
|
73
73
|
return hour;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
function checkMinuteSecond(value) {
|
|
76
76
|
if (value > '59') {
|
|
77
77
|
return null;
|
|
78
78
|
}
|
|
@@ -94,7 +94,7 @@ export function convertTo24hrTime(time) {
|
|
|
94
94
|
seconds: parseInt(seconds || '0', 10) || 0
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
function assignToDate(time) {
|
|
98
98
|
var dateTime = new Date();
|
|
99
99
|
dateTime.setHours(time.hour);
|
|
100
100
|
dateTime.setMinutes(time.minute);
|
|
@@ -5,10 +5,6 @@ type TimeObject = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare function isValid(timeString: string): boolean;
|
|
7
7
|
export declare function removeSpacer(time: string): string;
|
|
8
|
-
export declare function formatSemi24(time: string): string;
|
|
9
|
-
export declare function checkHour(hour: string, meridiem: string): string | null;
|
|
10
|
-
export declare function checkMinuteSecond(value: string): string | null;
|
|
11
8
|
export declare function convertTo24hrTime(time: string): TimeObject | null;
|
|
12
|
-
export declare function assignToDate(time: TimeObject): Date;
|
|
13
9
|
export default function parseTime(time: string): string | Date;
|
|
14
10
|
export {};
|
|
@@ -5,10 +5,6 @@ type TimeObject = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare function isValid(timeString: string): boolean;
|
|
7
7
|
export declare function removeSpacer(time: string): string;
|
|
8
|
-
export declare function formatSemi24(time: string): string;
|
|
9
|
-
export declare function checkHour(hour: string, meridiem: string): string | null;
|
|
10
|
-
export declare function checkMinuteSecond(value: string): string | null;
|
|
11
8
|
export declare function convertTo24hrTime(time: string): TimeObject | null;
|
|
12
|
-
export declare function assignToDate(time: TimeObject): Date;
|
|
13
9
|
export default function parseTime(time: string): string | Date;
|
|
14
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "15.11.
|
|
3
|
+
"version": "15.11.2",
|
|
4
4
|
"description": "A date time picker allows the user to select an associated date and time.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,9 +62,12 @@
|
|
|
62
62
|
"@af/accessibility-testing": "*",
|
|
63
63
|
"@af/integration-testing": "*",
|
|
64
64
|
"@af/visual-regression": "*",
|
|
65
|
+
"@atlaskit/code": "^15.6.9",
|
|
65
66
|
"@atlaskit/codemod-utils": "4.2.4",
|
|
66
67
|
"@atlaskit/docs": "*",
|
|
67
68
|
"@atlaskit/form": "^11.0.0",
|
|
69
|
+
"@atlaskit/heading": "^4.0.1",
|
|
70
|
+
"@atlaskit/link": "^2.0.1",
|
|
68
71
|
"@atlaskit/modal-dialog": "^12.19.0",
|
|
69
72
|
"@atlaskit/popup": "^1.30.0",
|
|
70
73
|
"@atlaskit/range": "^8.0.0",
|
|
@@ -76,6 +79,7 @@
|
|
|
76
79
|
"@atlassian/feature-flags-test-utils": "*",
|
|
77
80
|
"@testing-library/react": "^12.1.5",
|
|
78
81
|
"@testing-library/user-event": "^14.4.3",
|
|
82
|
+
"@types/testing-library__jest-dom": "^5.14.5",
|
|
79
83
|
"jest-in-case": "^1.0.2",
|
|
80
84
|
"jscodeshift": "^0.13.0",
|
|
81
85
|
"moment": "^2.29.2",
|