@abyss-project/commons-front-core 2.0.5 → 2.0.7
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/{CookieConsentSettings.component-Babyi3W7.js → CookieConsentSettings.component-BS3tbqB-.js} +4 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +5 -1
- package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +9 -0
- package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -1
- package/dist/components/Support/SupportCategoryChip.component.d.ts +0 -1
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +5 -1589
- package/dist/{index-Bck6bTkX.js → index-3uag_hfE.js} +4 -4
- package/dist/{index-CwQu80hq.js → index-6DUSkyBD.js} +23609 -23273
- package/dist/{index-C_ItzEqZ.js → index-B2fR3xdP.js} +2 -2
- package/dist/{index-8yeiMsN2.js → index-BDOfjciD.js} +2 -2
- package/dist/{index-BpfMLh3g.js → index-BPHG_XSD.js} +3 -3
- package/dist/{index-BhERZKZL.js → index-BSk9iaXD.js} +2 -2
- package/dist/{index-BPBq7o9R.js → index-Bc6ygwh4.js} +2 -2
- package/dist/{index-B6HSnKic.js → index-BlUKNEsn.js} +4 -4
- package/dist/{index-vWfRDX8u.js → index-Bqnt_ExQ.js} +4 -4
- package/dist/{index-yvn0gNA4.js → index-BzlsqZM7.js} +2 -2
- package/dist/{index-y87yi7Ik.js → index-C3lGPmZ4.js} +2 -2
- package/dist/{index-D3OGRmMG.js → index-C98eqi39.js} +2 -2
- package/dist/{index-B5_AMDvn.js → index-CV_3Qx_A.js} +2 -2
- package/dist/{index-DmY-WbY8.js → index-CZWM_rt5.js} +2 -2
- package/dist/{index-BZZzNup7.js → index-D-_TGtl5.js} +2 -2
- package/dist/{index-CKKJ_tQH.js → index-D91QLhrf.js} +3 -3
- package/dist/{index-DQYsp1ra.js → index-DACvHD4x.js} +1 -1
- package/dist/{index-FykPQo4w.js → index-DB7YZGYP.js} +2 -2
- package/dist/{index-pdKyXaVF.js → index-DQUokZMu.js} +3 -3
- package/dist/{index-BlBO8RTR.js → index-DYmtoPaB.js} +2 -2
- package/dist/{index-B899a19q.js → index-Dj_vRhwN.js} +2 -2
- package/dist/{index-D4JrV75A.js → index-PEU525Qw.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/translations/en.d.ts +2 -0
- package/dist/translations/fr.d.ts +2 -0
- package/dist/utils/color.utils.d.ts +0 -1
- package/package.json +17 -21
|
@@ -882,6 +882,8 @@ const q = {
|
|
|
882
882
|
"select-start-date": "Sélectionner la date de début",
|
|
883
883
|
"select-end-date": "Sélectionner la date de fin",
|
|
884
884
|
custom: "Personnalisé",
|
|
885
|
+
"start-time": "Heure de début",
|
|
886
|
+
"end-time": "Heure de fin",
|
|
885
887
|
presets: {
|
|
886
888
|
"7d": "7j",
|
|
887
889
|
"30d": "30j",
|
|
@@ -2064,6 +2066,8 @@ const q = {
|
|
|
2064
2066
|
"select-start-date": "Select start date",
|
|
2065
2067
|
"select-end-date": "Select end date",
|
|
2066
2068
|
custom: "Custom",
|
|
2069
|
+
"start-time": "Start time",
|
|
2070
|
+
"end-time": "End time",
|
|
2067
2071
|
presets: {
|
|
2068
2072
|
"7d": "7d",
|
|
2069
2073
|
"30d": "30d",
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { DatePeriodGranularity } from './date-period-picker.logic';
|
|
4
|
+
export type { DatePeriodGranularity } from './date-period-picker.logic';
|
|
3
5
|
export type DatePeriodPreset = {
|
|
4
6
|
label: string;
|
|
5
7
|
getRange: () => [Date, Date];
|
|
6
8
|
};
|
|
7
|
-
export type
|
|
9
|
+
export type DeprecatedDatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar';
|
|
10
|
+
export type DatePeriodVariant = DeprecatedDatePeriodVariant | 'segmented';
|
|
8
11
|
export type DatePeriodPickerProps = {
|
|
9
12
|
startDate: Date | null;
|
|
10
13
|
endDate: Date | null;
|
|
@@ -12,6 +15,7 @@ export type DatePeriodPickerProps = {
|
|
|
12
15
|
onEndDateChange: (date: Date | null) => void;
|
|
13
16
|
onRangeChange?: (start: Date | null, end: Date | null) => void;
|
|
14
17
|
variant?: DatePeriodVariant;
|
|
18
|
+
granularity?: DatePeriodGranularity;
|
|
15
19
|
presets?: DatePeriodPreset[];
|
|
16
20
|
hidePresets?: boolean;
|
|
17
21
|
minDate?: Date;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
export type EditingBound = 'start' | 'end';
|
|
3
|
+
export type DatePeriodGranularity = 'day' | 'minute';
|
|
3
4
|
export type RangeUpdateInput = {
|
|
4
5
|
editing: EditingBound;
|
|
5
6
|
picked: Date;
|
|
6
7
|
startDate: Date | null;
|
|
7
8
|
endDate: Date | null;
|
|
9
|
+
granularity?: DatePeriodGranularity;
|
|
8
10
|
};
|
|
9
11
|
export type RangeUpdateResult = {
|
|
10
12
|
start: Date | null;
|
|
@@ -12,5 +14,12 @@ export type RangeUpdateResult = {
|
|
|
12
14
|
startChanged: boolean;
|
|
13
15
|
endChanged: boolean;
|
|
14
16
|
};
|
|
17
|
+
export type TimeChangeInput = {
|
|
18
|
+
editing: EditingBound;
|
|
19
|
+
time: Date;
|
|
20
|
+
startDate: Date | null;
|
|
21
|
+
endDate: Date | null;
|
|
22
|
+
};
|
|
15
23
|
export declare const computeRangeUpdate: (input: RangeUpdateInput) => RangeUpdateResult;
|
|
24
|
+
export declare const applyTimeChange: (input: TimeChangeInput) => RangeUpdateResult;
|
|
16
25
|
export declare const resolveDateFnsLocale: (language?: string | null) => Locale;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DatePeriodPicker } from './DatePeriodPicker.component';
|
|
2
|
-
export type { DatePeriodPickerProps, DatePeriodPreset, DatePeriodVariant } from './DatePeriodPicker.component';
|
|
2
|
+
export type { DatePeriodPickerProps, DatePeriodPreset, DatePeriodVariant, DeprecatedDatePeriodVariant, DatePeriodGranularity, } from './DatePeriodPicker.component';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SupportTicketCategory, SupportTicketCategoryGroup } from '@abyss-project/main';
|
|
3
2
|
import { SupportCategoryChipProps } from './types';
|
|
4
3
|
export declare const getCategoryGroup: (category: SupportTicketCategory) => SupportTicketCategoryGroup;
|
|
5
4
|
export declare const getCategoryConfig: (category: SupportTicketCategory) => {
|
package/dist/cookie-consent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as a, C as n, a as i, R as C, V as t, d as r, f as k, r as c, e as A, u as l, b, w as d } from "./CookieConsentSettings.component-
|
|
1
|
+
import { A as s, c as a, C as n, a as i, R as C, V as t, d as r, f as k, r as c, e as A, u as l, b, w as d } from "./CookieConsentSettings.component-BS3tbqB-.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AbyssCookieConsentProvider,
|
|
4
4
|
a as COOKIE_NAME,
|