@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.
Files changed (34) hide show
  1. package/dist/{CookieConsentSettings.component-Babyi3W7.js → CookieConsentSettings.component-BS3tbqB-.js} +4 -0
  2. package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +5 -1
  3. package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +9 -0
  4. package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -1
  5. package/dist/components/Support/SupportCategoryChip.component.d.ts +0 -1
  6. package/dist/cookie-consent.js +1 -1
  7. package/dist/hooks/use-rich-intl.hook.d.ts +5 -1589
  8. package/dist/{index-Bck6bTkX.js → index-3uag_hfE.js} +4 -4
  9. package/dist/{index-CwQu80hq.js → index-6DUSkyBD.js} +23609 -23273
  10. package/dist/{index-C_ItzEqZ.js → index-B2fR3xdP.js} +2 -2
  11. package/dist/{index-8yeiMsN2.js → index-BDOfjciD.js} +2 -2
  12. package/dist/{index-BpfMLh3g.js → index-BPHG_XSD.js} +3 -3
  13. package/dist/{index-BhERZKZL.js → index-BSk9iaXD.js} +2 -2
  14. package/dist/{index-BPBq7o9R.js → index-Bc6ygwh4.js} +2 -2
  15. package/dist/{index-B6HSnKic.js → index-BlUKNEsn.js} +4 -4
  16. package/dist/{index-vWfRDX8u.js → index-Bqnt_ExQ.js} +4 -4
  17. package/dist/{index-yvn0gNA4.js → index-BzlsqZM7.js} +2 -2
  18. package/dist/{index-y87yi7Ik.js → index-C3lGPmZ4.js} +2 -2
  19. package/dist/{index-D3OGRmMG.js → index-C98eqi39.js} +2 -2
  20. package/dist/{index-B5_AMDvn.js → index-CV_3Qx_A.js} +2 -2
  21. package/dist/{index-DmY-WbY8.js → index-CZWM_rt5.js} +2 -2
  22. package/dist/{index-BZZzNup7.js → index-D-_TGtl5.js} +2 -2
  23. package/dist/{index-CKKJ_tQH.js → index-D91QLhrf.js} +3 -3
  24. package/dist/{index-DQYsp1ra.js → index-DACvHD4x.js} +1 -1
  25. package/dist/{index-FykPQo4w.js → index-DB7YZGYP.js} +2 -2
  26. package/dist/{index-pdKyXaVF.js → index-DQUokZMu.js} +3 -3
  27. package/dist/{index-BlBO8RTR.js → index-DYmtoPaB.js} +2 -2
  28. package/dist/{index-B899a19q.js → index-Dj_vRhwN.js} +2 -2
  29. package/dist/{index-D4JrV75A.js → index-PEU525Qw.js} +3 -3
  30. package/dist/index.js +2 -2
  31. package/dist/translations/en.d.ts +2 -0
  32. package/dist/translations/fr.d.ts +2 -0
  33. package/dist/utils/color.utils.d.ts +0 -1
  34. 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 DatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar';
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) => {
@@ -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-Babyi3W7.js";
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,