@abyss-project/commons-front-core 2.4.0 → 2.6.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.
Files changed (38) hide show
  1. package/dist/{CookieConsentSettings.component-C-P3Slsp.js → CookieConsentSettings.component-BfyMWzKA.js} +320 -320
  2. package/dist/components/Data/AbyssTable/abyss-table.logic.d.ts +7 -0
  3. package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +4 -1
  4. package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +1 -0
  5. package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +1 -0
  6. package/dist/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +1 -0
  7. package/dist/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +9 -0
  8. package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -1
  9. package/dist/components/Support/SupportCategoryChip.component.d.ts +1 -0
  10. package/dist/cookie-consent.js +1 -1
  11. package/dist/hooks/use-rich-intl.hook.d.ts +1687 -5
  12. package/dist/{index-m73qgNgv.js → index-BE3xNk7n.js} +2 -2
  13. package/dist/{index-hbVolM0U.js → index-BMXo-RMG.js} +4 -4
  14. package/dist/{index-Bmhqoibc.js → index-BWPaNZKg.js} +2 -2
  15. package/dist/{index-BVoJBh2o.js → index-BaX2_-Rp.js} +1 -1
  16. package/dist/{index-BgGSLcXO.js → index-Bl5weISX.js} +3 -3
  17. package/dist/{index-C4gLrkBR.js → index-C9gdI6da.js} +2 -2
  18. package/dist/{index-B9UONNNU.js → index-CCpN6XHF.js} +2 -2
  19. package/dist/{index-CWWjBAMt.js → index-CDO_ZZWq.js} +2 -2
  20. package/dist/{index-BIJqLO2L.js → index-CFFCjRk4.js} +3 -3
  21. package/dist/{index-C_x4f8Hn.js → index-CNwshHU1.js} +2 -2
  22. package/dist/{index-BT3pVkuj.js → index-CTovdMcl.js} +3 -3
  23. package/dist/{index-C2Np9CaN.js → index-CU195SNB.js} +4 -4
  24. package/dist/{index-_wJOm7mG.js → index-CWK74fx4.js} +2 -2
  25. package/dist/{index-BCzTe2h4.js → index-DBF_kLtp.js} +2 -2
  26. package/dist/{index-Dt2wV3wa.js → index-DDJGN9dK.js} +22797 -22505
  27. package/dist/{index--SIdXoQr.js → index-DLwpJA2k.js} +2 -2
  28. package/dist/{index-D_b-n8ZH.js → index-DjlcuHy7.js} +4 -4
  29. package/dist/{index-By6V_fPb.js → index-DmE6bg82.js} +2 -2
  30. package/dist/{index-CxwUKanU.js → index-DsZwGrr7.js} +3 -3
  31. package/dist/{index-DIcfEH1P.js → index-VD4s_Ap4.js} +2 -2
  32. package/dist/{index-jleE7DcJ.js → index-k6dkGWOC.js} +2 -2
  33. package/dist/{index-CVzlXhX1.js → index-qeOGKdf9.js} +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/translations/en.d.ts +2 -2
  36. package/dist/translations/fr.d.ts +2 -2
  37. package/dist/utils/color.utils.d.ts +1 -0
  38. package/package.json +1 -1
@@ -17,3 +17,10 @@ export interface ResolveSortingStateParams {
17
17
  }
18
18
  export declare function resolveSortingState({ manualSorting, externalSorting, internalSorting, }: ResolveSortingStateParams): SortingEntry[];
19
19
  export declare function shouldSortRowsLocally(enableSorting: boolean, manualSorting: boolean): boolean;
20
+ export declare function isColumnSortable(params: {
21
+ enableSorting: boolean;
22
+ manualSorting: boolean;
23
+ columnEnableSorting: boolean | undefined;
24
+ canSortClientSide: boolean;
25
+ }): boolean;
26
+ export declare function nextManualSorting(current: SortingEntry[], columnId: string): SortingEntry[];
@@ -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;
@@ -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) => {
@@ -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-C-P3Slsp.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-BfyMWzKA.js";
2
2
  export {
3
3
  s as AbyssCookieConsentProvider,
4
4
  a as COOKIE_NAME,