@gravitee/graphene-core 3.48.0 → 3.49.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/USAGE_GUIDE.md +11 -0
- package/dist/composed/DatePicker/DatePicker.d.ts +6 -1
- package/dist/composed/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateRangePicker.d.ts +6 -1
- package/dist/composed/DatePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateTimePicker.d.ts +7 -1
- package/dist/composed/DatePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateTimeRangePicker.d.ts +8 -1
- package/dist/composed/DatePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/index.js +226 -211
- package/package.json +1 -1
package/USAGE_GUIDE.md
CHANGED
|
@@ -1091,6 +1091,17 @@ The components that derive ids from yours. A part exists only when you pass an i
|
|
|
1091
1091
|
| `Calendar` | `${id}-day-<yyyy-MM-dd>` | Day button, with `mode` or `onDayClick`; an outside day too, unless another displayed month shows its date |
|
|
1092
1092
|
| `Calendar` | `${id}-month-<n>` | Month dropdown of the displayed month at position `n` (from 0), with a dropdown `captionLayout` |
|
|
1093
1093
|
| `Calendar` | `${id}-year-<n>` | Year dropdown of the displayed month at position `n` (from 0), with a dropdown `captionLayout` |
|
|
1094
|
+
| `DatePicker` | `${id}-content` | Popover content, while the popover is open |
|
|
1095
|
+
| `DatePicker` | `${id}-calendar` | Calendar root, while the popover is open; its parts are those of `Calendar`: `${id}-calendar-previous`, `${id}-calendar-next`, `${id}-calendar-day-<yyyy-MM-dd>` |
|
|
1096
|
+
| `DateRangePicker` | `${id}-content` | Popover content, while the popover is open |
|
|
1097
|
+
| `DateRangePicker` | `${id}-calendar` | Calendar root, while the popover is open; its parts are those of `Calendar`: `${id}-calendar-previous`, `${id}-calendar-next`, `${id}-calendar-day-<yyyy-MM-dd>` |
|
|
1098
|
+
| `DateTimePicker` | `${id}-content` | Popover content, while the popover is open |
|
|
1099
|
+
| `DateTimePicker` | `${id}-calendar` | Calendar root, while the popover is open; its parts are those of `Calendar`: `${id}-calendar-previous`, `${id}-calendar-next`, `${id}-calendar-day-<yyyy-MM-dd>`, `${id}-calendar-month-<n>`, `${id}-calendar-year-<n>` |
|
|
1100
|
+
| `DateTimePicker` | `${id}-time` | Time input, while the popover is open |
|
|
1101
|
+
| `DateTimeRangePicker` | `${id}-content` | Popover content, while the popover is open |
|
|
1102
|
+
| `DateTimeRangePicker` | `${id}-calendar` | Calendar root, while the popover is open; its parts are those of `Calendar`: `${id}-calendar-previous`, `${id}-calendar-next`, `${id}-calendar-day-<yyyy-MM-dd>`, `${id}-calendar-month-<n>`, `${id}-calendar-year-<n>` |
|
|
1103
|
+
| `DateTimeRangePicker` | `${id}-from-time` | Start time input, while the popover is open |
|
|
1104
|
+
| `DateTimeRangePicker` | `${id}-to-time` | End time input, while the popover is open |
|
|
1094
1105
|
| `DialogContent` | `${id}-close` | Built-in close button, with `showCloseButton` (the default) |
|
|
1095
1106
|
| `DialogFooter` | `${id}-close` | Built-in close button, with `showCloseButton` |
|
|
1096
1107
|
| `SheetContent` | `${id}-close` | Built-in close button, with `showCloseButton` (the default) |
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Locale } from 'react-day-picker';
|
|
2
2
|
interface DatePickerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Lands on the trigger button. Popover content: `${id}-content`, calendar: `${id}-calendar`, which derives
|
|
5
|
+
* `${id}-calendar-previous`, `${id}-calendar-next` and `${id}-calendar-day-<yyyy-MM-dd>`.
|
|
6
|
+
*/
|
|
7
|
+
readonly 'data-testid'?: string;
|
|
3
8
|
readonly id?: string;
|
|
4
9
|
readonly value?: Date;
|
|
5
10
|
readonly onChange?: (date: Date | undefined) => void;
|
|
@@ -21,7 +26,7 @@ interface DatePickerProps {
|
|
|
21
26
|
readonly className?: string;
|
|
22
27
|
readonly 'aria-label'?: string;
|
|
23
28
|
}
|
|
24
|
-
declare function DatePicker({ id, value, onChange, placeholder, disabled, dateFormat, locale, className, 'aria-label': ariaLabel, }: DatePickerProps): import("react").JSX.Element;
|
|
29
|
+
declare function DatePicker({ id, value, onChange, placeholder, disabled, dateFormat, locale, className, 'aria-label': ariaLabel, 'data-testid': testId, }: DatePickerProps): import("react").JSX.Element;
|
|
25
30
|
export { DatePicker };
|
|
26
31
|
export type { DatePickerProps };
|
|
27
32
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAQ/C,UAAU,eAAe;IACvB;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACrD,wEAAwE;IACxE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,iBAAS,UAAU,CAAC,EAClB,EAAE,EACF,KAAK,EACL,QAAQ,EACR,WAA2B,EAC3B,QAAgB,EAChB,UAAkB,EAClB,MAAM,EACN,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,MAAM,GACtB,EAAE,eAAe,+BAqCjB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { DateRange, Locale } from 'react-day-picker';
|
|
2
2
|
interface DateRangePickerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Lands on the trigger button. Popover content: `${id}-content`, calendar: `${id}-calendar`, which derives
|
|
5
|
+
* `${id}-calendar-previous`, `${id}-calendar-next` and `${id}-calendar-day-<yyyy-MM-dd>`.
|
|
6
|
+
*/
|
|
7
|
+
readonly 'data-testid'?: string;
|
|
3
8
|
readonly id?: string;
|
|
4
9
|
readonly value?: DateRange;
|
|
5
10
|
readonly onChange?: (range: DateRange | undefined) => void;
|
|
@@ -23,7 +28,7 @@ interface DateRangePickerProps {
|
|
|
23
28
|
readonly className?: string;
|
|
24
29
|
readonly 'aria-label'?: string;
|
|
25
30
|
}
|
|
26
|
-
declare function DateRangePicker({ id, value, onChange, placeholder, disabled, dateFormat, locale, numberOfMonths, className, 'aria-label': ariaLabel, }: DateRangePickerProps): import("react").JSX.Element;
|
|
31
|
+
declare function DateRangePicker({ id, value, onChange, placeholder, disabled, dateFormat, locale, numberOfMonths, className, 'aria-label': ariaLabel, 'data-testid': testId, }: DateRangePickerProps): import("react").JSX.Element;
|
|
27
32
|
export { DateRangePicker };
|
|
28
33
|
export type { DateRangePickerProps };
|
|
29
34
|
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DateRangePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DateRangePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAQ1D,UAAU,oBAAoB;IAC5B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3D,yEAAyE;IACzE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,gEAAgE;IAChE,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,iBAAS,eAAe,CAAC,EACvB,EAAE,EACF,KAAK,EACL,QAAQ,EACR,WAA2B,EAC3B,QAAgB,EAChB,UAAwB,EACxB,MAAM,EACN,cAAkB,EAClB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,MAAM,GACtB,EAAE,oBAAoB,+BAoDtB;AAED,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -2,6 +2,12 @@ import { Locale } from 'react-day-picker';
|
|
|
2
2
|
type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
|
|
3
3
|
type PopoverAlign = 'start' | 'center' | 'end';
|
|
4
4
|
interface DateTimePickerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Lands on the trigger button. Popover content: `${id}-content`, calendar: `${id}-calendar`, which derives
|
|
7
|
+
* `${id}-calendar-previous`, `${id}-calendar-next`, `${id}-calendar-day-<yyyy-MM-dd>`, and its month and year
|
|
8
|
+
* dropdowns `${id}-calendar-month-0` and `${id}-calendar-year-0`. Time input: `${id}-time`.
|
|
9
|
+
*/
|
|
10
|
+
readonly 'data-testid'?: string;
|
|
5
11
|
readonly id?: string;
|
|
6
12
|
readonly value?: Date;
|
|
7
13
|
readonly onChange?: (date: Date | undefined) => void;
|
|
@@ -27,7 +33,7 @@ interface DateTimePickerProps {
|
|
|
27
33
|
readonly align?: PopoverAlign;
|
|
28
34
|
readonly 'aria-label'?: string;
|
|
29
35
|
}
|
|
30
|
-
declare function DateTimePicker({ id, value, onChange, placeholder, disabled, dateTimeFormat, locale, className, side, align, 'aria-label': ariaLabel, }: DateTimePickerProps): import("react").JSX.Element;
|
|
36
|
+
declare function DateTimePicker({ id, value, onChange, placeholder, disabled, dateTimeFormat, locale, className, side, align, 'aria-label': ariaLabel, 'data-testid': testId, }: DateTimePickerProps): import("react").JSX.Element;
|
|
31
37
|
export { DateTimePicker };
|
|
32
38
|
export type { DateTimePickerProps };
|
|
33
39
|
//# sourceMappingURL=DateTimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DateTimePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"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MAAM,GACtB,EAAE,mBAAmB,+BAgFrB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -2,6 +2,13 @@ import { DateRange, Locale } from 'react-day-picker';
|
|
|
2
2
|
type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
|
|
3
3
|
type PopoverAlign = 'start' | 'center' | 'end';
|
|
4
4
|
interface DateTimeRangePickerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Lands on the trigger button. Popover content: `${id}-content`, calendar: `${id}-calendar`, which derives
|
|
7
|
+
* `${id}-calendar-previous`, `${id}-calendar-next`, `${id}-calendar-day-<yyyy-MM-dd>`, and the month and year
|
|
8
|
+
* dropdowns of each displayed month, `${id}-calendar-month-<n>` and `${id}-calendar-year-<n>` (`n` its display
|
|
9
|
+
* position, from 0). Time inputs: `${id}-from-time` and `${id}-to-time`.
|
|
10
|
+
*/
|
|
11
|
+
readonly 'data-testid'?: string;
|
|
5
12
|
readonly id?: string;
|
|
6
13
|
readonly value?: DateRange;
|
|
7
14
|
readonly onChange?: (range: DateRange | undefined) => void;
|
|
@@ -33,7 +40,7 @@ interface DateTimeRangePickerProps {
|
|
|
33
40
|
readonly numberOfMonths?: number;
|
|
34
41
|
readonly 'aria-label'?: string;
|
|
35
42
|
}
|
|
36
|
-
declare function DateTimeRangePicker({ id, value, onChange, placeholder, disabled, fromLabel, toLabel, dateTimeFormat, locale, className, side, align, numberOfMonths, 'aria-label': ariaLabel, }: DateTimeRangePickerProps): import("react").JSX.Element;
|
|
43
|
+
declare function DateTimeRangePicker({ id, value, onChange, placeholder, disabled, fromLabel, toLabel, dateTimeFormat, locale, className, side, align, numberOfMonths, 'aria-label': ariaLabel, 'data-testid': testId, }: DateTimeRangePickerProps): import("react").JSX.Element;
|
|
37
44
|
export { DateTimeRangePicker };
|
|
38
45
|
export type { DateTimeRangePickerProps };
|
|
39
46
|
//# sourceMappingURL=DateTimeRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DateTimeRangePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"DateTimeRangePicker.d.ts","sourceRoot":"","sources":["../../../src/composed/DatePicker/DateTimeRangePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAY1D,KAAK,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AACvD,KAAK,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/C,UAAU,wBAAwB;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3D,wFAAwF;IACxF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,yEAAyE;IACzE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM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