@gooddata/sdk-ui-kit 10.16.0-alpha.7 → 10.16.0-alpha.9
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/Datepicker/Datepicker.js +1 -1
- package/esm/Datepicker/Datepicker.js.map +1 -1
- package/esm/RecurrenceForm/DateTime.d.ts +2 -2
- package/esm/RecurrenceForm/DateTime.d.ts.map +1 -1
- package/esm/RecurrenceForm/DateTime.js +3 -3
- package/esm/RecurrenceForm/DateTime.js.map +1 -1
- package/esm/RecurrenceForm/RecurrenceForm.d.ts.map +1 -1
- package/esm/RecurrenceForm/RecurrenceForm.js +2 -2
- package/esm/RecurrenceForm/RecurrenceForm.js.map +1 -1
- package/esm/Timepicker/Timepicker.d.ts +1 -1
- package/esm/Timepicker/Timepicker.d.ts.map +1 -1
- package/esm/Timepicker/utils/timeUtilities.d.ts +1 -1
- package/esm/Timepicker/utils/timeUtilities.d.ts.map +1 -1
- package/esm/Timepicker/utils/timeUtilities.js +4 -4
- package/esm/Timepicker/utils/timeUtilities.js.map +1 -1
- package/esm/sdk-ui-kit.d.ts +2 -2
- package/package.json +8 -8
@@ -135,7 +135,7 @@ export class WrappedDatePicker extends React.PureComponent {
|
|
135
135
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
136
136
|
const { props } = this;
|
137
137
|
if (props.date > nextProps.date || props.date < nextProps.date) {
|
138
|
-
const selectedDate = this.updateDate(nextProps.date);
|
138
|
+
const selectedDate = this.updateDate(nextProps.date || new Date());
|
139
139
|
this.setState({ selectedDate });
|
140
140
|
this.setState({ monthDate: selectedDate });
|
141
141
|
this.setState({ inputValue: formatDate(selectedDate, props.dateFormat) });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Datepicker.js","sourceRoot":"","sources":["../../src/Datepicker/Datepicker.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,QAA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AAe,EAAE,IAAI,EACrB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAC/B,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,IAAI,CAAC,kBAAkB,EACtC,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GACtD,CACA,CACT,CAAC,CAAC,CAAC,IAAI;YACR,8BAAM,SAAS,EAAC,qCAAqC,GAAG,CACtD,CACT,CAAC;IACN,CAAC;;AAGL,MAAM,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,aAAkC;IAC7D,MAAM;QACT,OAAO,CACH,oBAAC,WAAW,IAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;YAClC,oBAAC,kBAAkB,OAAK,IAAI,CAAC,KAAK,GAAI,CAC5B,CACjB,CAAC;IACN,CAAC;CACJ"}
|
@@ -2,13 +2,13 @@ import * as React from "react";
|
|
2
2
|
import { WeekStart } from "@gooddata/sdk-model";
|
3
3
|
interface IDateTimeProps {
|
4
4
|
label: string;
|
5
|
-
date: Date;
|
5
|
+
date: Date | null;
|
6
6
|
locale?: string;
|
7
7
|
timezone?: string;
|
8
8
|
weekStart?: WeekStart;
|
9
9
|
dateFormat?: string;
|
10
10
|
timeFormat?: string;
|
11
|
-
onDateChange: (date: Date) => void;
|
11
|
+
onDateChange: (date: Date | null, valid: boolean) => void;
|
12
12
|
}
|
13
13
|
export declare const DateTime: React.FC<IDateTimeProps>;
|
14
14
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../src/RecurrenceForm/DateTime.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKhD,UAAU,cAAc;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../src/RecurrenceForm/DateTime.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKhD,UAAU,cAAc;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA4C7C,CAAC"}
|
@@ -7,16 +7,16 @@ export const DateTime = (props) => {
|
|
7
7
|
const { label, date, dateFormat, locale, timezone, onDateChange, weekStart, timeFormat } = props;
|
8
8
|
const handleDateChange = (selectedDate) => {
|
9
9
|
const newDate = normalizeTime(date, selectedDate, TIME_ANCHOR);
|
10
|
-
onDateChange(newDate);
|
10
|
+
onDateChange(newDate, !!selectedDate);
|
11
11
|
};
|
12
12
|
const handleTimeChange = (selectedTime) => {
|
13
13
|
const newDate = normalizeTime(selectedTime, date, TIME_ANCHOR);
|
14
|
-
onDateChange(newDate);
|
14
|
+
onDateChange(newDate, !!selectedTime);
|
15
15
|
};
|
16
16
|
return (React.createElement("div", { className: "gd-recurrence-form-datetime s-recurrence-form-datetime gd-input-component" },
|
17
17
|
React.createElement("label", { className: "gd-label" }, label),
|
18
18
|
React.createElement("div", { className: "gd-recurrence-form-datetime-inner" },
|
19
|
-
React.createElement(Datepicker, { className: "gd-recurrence-form-datetime-date s-recurrence-form-datetime-date", date: date, dateFormat: dateFormat, locale: locale, placeholder: dateFormat,
|
19
|
+
React.createElement(Datepicker, { className: "gd-recurrence-form-datetime-date s-recurrence-form-datetime-date", date: date, dateFormat: dateFormat, locale: locale, placeholder: dateFormat, onChange: handleDateChange, weekStart: weekStart }),
|
20
20
|
React.createElement(Timepicker, { className: "gd-recurrence-form-datetime-time s-recurrence-form-datetime-time", maxVisibleItemsCount: MAX_VISIBLE_TIME_ITEMS_COUNT, time: date, onChange: handleTimeChange, overlayPositionType: "sameAsTarget", overlayZIndex: DEFAULT_DROPDOWN_ZINDEX, timeAnchor: TIME_ANCHOR, timeFormat: timeFormat })),
|
21
21
|
timezone ? (React.createElement("div", { className: "gd-recurrence-form-datetime-timezone s-recurrence-form-datetime-timezone" }, timezone)) : null));
|
22
22
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../src/RecurrenceForm/DateTime.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAapG,MAAM,CAAC,MAAM,QAAQ,GAA6B,CAAC,KAAK,EAAE,EAAE;IACxD,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAEjG,MAAM,gBAAgB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../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CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACzC;
|
1
|
+
{"version":3,"file":"RecurrenceForm.d.ts","sourceRoot":"","sources":["../../src/RecurrenceForm/RecurrenceForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAahD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACzC;AA0FD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAIzD,CAAC"}
|
@@ -14,10 +14,10 @@ const RecurrenceFormCore = (props) => {
|
|
14
14
|
const [dateValue, setDateValue] = useState(startDate);
|
15
15
|
const [cronValue, setCronValue] = useState(cronExpression);
|
16
16
|
const [recurrenceType, setRecurrenceType] = useState(transformCronExpressionToRecurrenceType(dateValue, cronExpression, allowHourlyRecurrence, weekStart));
|
17
|
-
const onDateChange = useCallback((date) => {
|
17
|
+
const onDateChange = useCallback((date, valid) => {
|
18
18
|
setDateValue(date);
|
19
19
|
const newExpression = constructCronExpression(date, recurrenceType, cronExpression, weekStart);
|
20
|
-
onChange(newExpression, date, isCronExpressionValid(newExpression, allowHourlyRecurrence));
|
20
|
+
onChange(newExpression, date, valid && isCronExpressionValid(newExpression, allowHourlyRecurrence));
|
21
21
|
}, [cronExpression, onChange, recurrenceType, weekStart, allowHourlyRecurrence]);
|
22
22
|
const onRepeatTypeChange = useCallback((type) => {
|
23
23
|
setRecurrenceType(type);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RecurrenceForm.js","sourceRoot":"","sources":["../../src/RecurrenceForm/RecurrenceForm.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EACH,uCAAuC,EACvC,uBAAuB,EACvB,qBAAqB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAuB9G,MAAM,kBAAkB,GAAmC,CAAC,KAAK,EAAE,EAAE;IACjE,MAAM,EACF,SAAS,GAAG,IAAI,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,GAAG,cAAc,EACvB,UAAU,GAAG,mBAAmB,EAChC,UAAU,GAAG,mBAAm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AqB,EAC5C,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,wBAAwB,EAAE,wBAAwB,EAClD,wBAAwB,EAAE,wBAAwB,GACpD,CACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAmC,CAAC,KAAK,EAAE,EAAE,CAAC,CACrE,oBAAC,WAAW,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM;IAC7B,oBAAC,kBAAkB,OAAK,KAAK,GAAI,CACvB,CACjB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Timepicker.d.ts","sourceRoot":"","sources":["../../src/Timepicker/Timepicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAM/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAyC,MAAM,0BAA0B,CAAC;AAQ5G,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"Timepicker.d.ts","sourceRoot":"","sources":["../../src/Timepicker/Timepicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAM/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAyC,MAAM,0BAA0B,CAAC;AAQ5G,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,KAAK,IAAI,CAAC;IACxC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AAE1E,UAAU,gBAAgB;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,IAAI,CAAC;CACtB;AAED,qBAAa,iBAAkB,SAAQ,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAClF,WAAW,kCAAqC;IAEvD,OAAc,YAAY;;;;;;;;;MASxB;gBAEU,KAAK,EAAE,eAAe;IAc3B,gCAAgC,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAWjE,iBAAiB,IAAI,IAAI;IAIhC,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,YAAY,CAqBlB;IAEF,OAAO,CAAC,mBAAmB,CAGzB;IAEF,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,iBAAiB,CASvB;IAEK,MAAM;CAoDhB;AAID;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;IAC7D,MAAM;CAOhB"}
|
@@ -15,5 +15,5 @@ export declare function updateTime(h: number, m: number, date?: Date): Date;
|
|
15
15
|
* return 8:00 if time is 7:35
|
16
16
|
* return 0:00 if time is 23:45
|
17
17
|
*/
|
18
|
-
export declare function normalizeTime(time
|
18
|
+
export declare function normalizeTime(time?: Date, date?: Date, timeAnchor?: number): Date;
|
19
19
|
//# sourceMappingURL=timeUtilities.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timeUtilities.d.ts","sourceRoot":"","sources":["../../../src/Timepicker/utils/timeUtilities.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,WAAW,KAAK,CAAC;AAG9B;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAKxE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAOlE;AAwBD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,SAAc,GAAG,IAAI,
|
1
|
+
{"version":3,"file":"timeUtilities.d.ts","sourceRoot":"","sources":["../../../src/Timepicker/utils/timeUtilities.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,WAAW,KAAK,CAAC;AAG9B;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAKxE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAOlE;AAwBD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,SAAc,GAAG,IAAI,CAGtF"}
|
@@ -23,13 +23,13 @@ export function updateTime(h, m, date) {
|
|
23
23
|
function getNormalizedHourAndMinute(time, timeAnchor = TIME_ANCHOR) {
|
24
24
|
let h;
|
25
25
|
let m;
|
26
|
-
const hours = time
|
27
|
-
const minutes = time
|
26
|
+
const hours = time?.getHours() ?? 0;
|
27
|
+
const minutes = time?.getMinutes() ?? 0;
|
28
28
|
// Do not shift time if it is exactly on the new hour (0 == 60 when timeAnchor is 60)
|
29
29
|
if (minutes === 0 && timeAnchor === 60) {
|
30
30
|
return { hours, minutes: 0 };
|
31
31
|
}
|
32
|
-
if (
|
32
|
+
if (minutes < timeAnchor) {
|
33
33
|
h = hours;
|
34
34
|
m = timeAnchor;
|
35
35
|
}
|
@@ -51,6 +51,6 @@ function getNormalizedHourAndMinute(time, timeAnchor = TIME_ANCHOR) {
|
|
51
51
|
*/
|
52
52
|
export function normalizeTime(time, date, timeAnchor = TIME_ANCHOR) {
|
53
53
|
const { hours, minutes } = getNormalizedHourAndMinute(time, timeAnchor);
|
54
|
-
return updateTime(hours, minutes, date);
|
54
|
+
return updateTime(hours, minutes, date || time);
|
55
55
|
}
|
56
56
|
//# sourceMappingURL=timeUtilities.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timeUtilities.js","sourceRoot":"","sources":["../../../src/Timepicker/utils/timeUtilities.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAC/B,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAC9B,MAAM,WAAW,GAAW,SAAS,CAAC;AAEtC;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,CAAS,EAAE,CAAS,EAAE,MAAe;IAC5D,OAAO,MAAM,EAAE;SACV,KAAK,CAAC,CAAC,CAAC;SACR,OAAO,CAAC,CAAC,CAAC;SACV,MAAM,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,CAAS,EAAE,CAAS,EAAE,IAAW;IACxD,MAAM,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AAC;IAChC,OAAO,YAAY,CAAC;AACxB,CAAC;AAED,SAAS,0BAA0B,CAAC,IAAW,EAAE,UAAU,GAAG,WAAW;IACrE,IAAI,CAAS,CAAC;IACd,IAAI,CAAS,CAAC;IACd,MAAM,KAAK,GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAExC,qFAAqF;IACrF,IAAI,OAAO,KAAK,CAAC,IAAI,UAAU,KAAK,EAAE,EAAE,CAAC;QACrC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACjC,CAAC;IAED,IAAI,OAAO,GAAG,UAAU,EAAE,CAAC;QACvB,CAAC,GAAG,KAAK,CAAC;QACV,CAAC,GAAG,UAAU,CAAC;IACnB,CAAC;SAAM,CAAC;QACJ,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,YAAY,CAAC;QAC/B,CAAC,GAAG,CAAC,CAAC;IACV,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AACpC,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,IAAW,EAAE,IAAW,EAAE,UAAU,GAAG,WAAW;IAC5E,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,0BAA0B,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACxE,OAAO,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
package/esm/sdk-ui-kit.d.ts
CHANGED
@@ -3952,7 +3952,7 @@ export declare interface ITextAreaWithSubmitState {
|
|
3952
3952
|
* @internal
|
3953
3953
|
*/
|
3954
3954
|
export declare interface ITimepickerOwnProps {
|
3955
|
-
time: Date;
|
3955
|
+
time: Date | null;
|
3956
3956
|
className?: string;
|
3957
3957
|
maxVisibleItemsCount?: number;
|
3958
3958
|
onChange?: (selectedTime: Date) => void;
|
@@ -4269,7 +4269,7 @@ export declare const NoData: React_2.FC<INoDataProps>;
|
|
4269
4269
|
* return 8:00 if time is 7:35
|
4270
4270
|
* return 0:00 if time is 23:45
|
4271
4271
|
*/
|
4272
|
-
export declare function normalizeTime(time
|
4272
|
+
export declare function normalizeTime(time?: Date, date?: Date, timeAnchor?: number): Date;
|
4273
4273
|
|
4274
4274
|
/**
|
4275
4275
|
* @internal
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
3
|
-
"version": "10.16.0-alpha.
|
3
|
+
"version": "10.16.0-alpha.9",
|
4
4
|
"description": "GoodData SDK - UI Building Components",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -62,11 +62,11 @@
|
|
62
62
|
"ts-invariant": "^0.7.5",
|
63
63
|
"tslib": "^2.5.0",
|
64
64
|
"uuid": "^8.3.2",
|
65
|
-
"@gooddata/sdk-backend-spi": "10.16.0-alpha.
|
66
|
-
"@gooddata/sdk-
|
67
|
-
"@gooddata/
|
68
|
-
"@gooddata/sdk-ui-theme-provider": "10.16.0-alpha.
|
69
|
-
"@gooddata/
|
65
|
+
"@gooddata/sdk-backend-spi": "10.16.0-alpha.9",
|
66
|
+
"@gooddata/sdk-ui": "10.16.0-alpha.9",
|
67
|
+
"@gooddata/util": "10.16.0-alpha.9",
|
68
|
+
"@gooddata/sdk-ui-theme-provider": "10.16.0-alpha.9",
|
69
|
+
"@gooddata/sdk-model": "10.16.0-alpha.9"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
@@ -125,8 +125,8 @@
|
|
125
125
|
"typescript": "5.3.3",
|
126
126
|
"vitest": "1.0.4",
|
127
127
|
"vitest-dom": "0.1.1",
|
128
|
-
"@gooddata/reference-workspace": "10.16.0-alpha.
|
129
|
-
"@gooddata/sdk-backend-mockingbird": "10.16.0-alpha.
|
128
|
+
"@gooddata/reference-workspace": "10.16.0-alpha.9",
|
129
|
+
"@gooddata/sdk-backend-mockingbird": "10.16.0-alpha.9"
|
130
130
|
},
|
131
131
|
"scripts": {
|
132
132
|
"clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",
|