@abyss-project/commons-front-core 2.4.0 → 2.5.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/{CookieConsentSettings.component-C-P3Slsp.js → CookieConsentSettings.component-ChZZCl46.js} +4 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +4 -1
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +1 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +1 -0
- package/dist/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +1 -0
- 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 +1 -0
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +1689 -3
- package/dist/{index-jleE7DcJ.js → index-3NrT-MnQ.js} +2 -2
- package/dist/{index-hbVolM0U.js → index-4sQWgqws.js} +4 -4
- package/dist/{index--SIdXoQr.js → index-6CbShgvy.js} +2 -2
- package/dist/{index-DIcfEH1P.js → index-7euPucrI.js} +2 -2
- package/dist/{index-C_x4f8Hn.js → index-AQKIK3bX.js} +2 -2
- package/dist/{index-Bmhqoibc.js → index-B3VObdi_.js} +2 -2
- package/dist/{index-BIJqLO2L.js → index-BFsSydXc.js} +3 -3
- package/dist/{index-m73qgNgv.js → index-BPQYFfIe.js} +2 -2
- package/dist/{index-CWWjBAMt.js → index-BsiIylc2.js} +2 -2
- package/dist/{index-CVzlXhX1.js → index-C--EilDN.js} +2 -2
- package/dist/{index-CxwUKanU.js → index-CW44ZaOX.js} +3 -3
- package/dist/{index-BVoJBh2o.js → index-CeUy4Tb9.js} +1 -1
- package/dist/{index-By6V_fPb.js → index-CzFMsm9h.js} +2 -2
- package/dist/{index-D_b-n8ZH.js → index-DQQ7RXeN.js} +4 -4
- package/dist/{index-Dt2wV3wa.js → index-DU11Jihs.js} +22733 -22456
- package/dist/{index-_wJOm7mG.js → index-DhNJc-MH.js} +2 -2
- package/dist/{index-C2Np9CaN.js → index-DisKzF7x.js} +4 -4
- package/dist/{index-C4gLrkBR.js → index-DmVnpqOX.js} +2 -2
- package/dist/{index-B9UONNNU.js → index-FlpI__b4.js} +2 -2
- package/dist/{index-BCzTe2h4.js → index-a0895ZMW.js} +2 -2
- package/dist/{index-BgGSLcXO.js → index-et0hOxQg.js} +3 -3
- package/dist/{index-BT3pVkuj.js → index-zCADulic.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 +1 -0
- package/package.json +17 -21
|
@@ -936,6 +936,8 @@ const Bs = {
|
|
|
936
936
|
"select-start-date": "Sélectionner la date de début",
|
|
937
937
|
"select-end-date": "Sélectionner la date de fin",
|
|
938
938
|
custom: "Personnalisé",
|
|
939
|
+
"start-time": "Heure de début",
|
|
940
|
+
"end-time": "Heure de fin",
|
|
939
941
|
presets: {
|
|
940
942
|
"7d": "7j",
|
|
941
943
|
"30d": "30j",
|
|
@@ -2166,6 +2168,8 @@ const Bs = {
|
|
|
2166
2168
|
"select-start-date": "Select start date",
|
|
2167
2169
|
"select-end-date": "Select end date",
|
|
2168
2170
|
custom: "Custom",
|
|
2171
|
+
"start-time": "Start time",
|
|
2172
|
+
"end-time": "End time",
|
|
2169
2173
|
presets: {
|
|
2170
2174
|
"7d": "7d",
|
|
2171
2175
|
"30d": "30d",
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Locale } from 'date-fns';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { DatePeriodGranularity } from './date-period-picker.logic';
|
|
3
4
|
import { DatePeriodPreset } from './date-period-presets.util';
|
|
5
|
+
export type { DatePeriodGranularity } from './date-period-picker.logic';
|
|
4
6
|
export type { DatePeriodPreset } from './date-period-presets.util';
|
|
5
|
-
export type DatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar';
|
|
7
|
+
export type DatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar' | 'segmented';
|
|
6
8
|
export type DatePeriodPickerProps = {
|
|
7
9
|
startDate: Date | null;
|
|
8
10
|
endDate: Date | null;
|
|
@@ -10,6 +12,7 @@ export type DatePeriodPickerProps = {
|
|
|
10
12
|
onEndDateChange: (date: Date | null) => void;
|
|
11
13
|
onRangeChange?: (start: Date | null, end: Date | null) => void;
|
|
12
14
|
variant?: DatePeriodVariant;
|
|
15
|
+
granularity?: DatePeriodGranularity;
|
|
13
16
|
presets?: DatePeriodPreset[];
|
|
14
17
|
hidePresets?: boolean;
|
|
15
18
|
minDate?: Date;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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, DatePeriodGranularity, } from './DatePeriodPicker.component';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SupportTicketCategory, SupportTicketCategoryGroup } from '@abyss-project/main';
|
|
2
3
|
import { SupportCategoryChipProps } from './types';
|
|
3
4
|
export declare const getCategoryGroup: (category: SupportTicketCategory) => SupportTicketCategoryGroup;
|
|
4
5
|
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-ChZZCl46.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AbyssCookieConsentProvider,
|
|
4
4
|
a as COOKIE_NAME,
|