@feedmepos/ui-library 1.2.12-rc.1 → 1.2.12

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 (37) hide show
  1. package/dist/CHANGELOG.md +8 -0
  2. package/dist/components/button/FmButton.vue.d.ts +9 -13
  3. package/dist/components/button/index.d.ts +58 -0
  4. package/dist/components/chart/pie/FmPie.vue.d.ts +1 -1
  5. package/dist/components/snackbar/FmSnackbar.vue.d.ts +1 -1
  6. package/dist/components.d.ts +70 -40
  7. package/dist/federation/{FmDatePicker.vue_vue_type_script_setup_true_lang-Db5BVEjN.js → FmDatePicker.vue_vue_type_script_setup_true_lang-vBp_wK7R.js} +1 -1
  8. package/dist/federation/{FmDateRangePicker.vue_vue_type_script_setup_true_lang-Crh6kLlQ.js → FmDateRangePicker.vue_vue_type_script_setup_true_lang-DgHXEweN.js} +1 -1
  9. package/dist/federation/{FmGlobalSearch.vue_vue_type_script_setup_true_lang-DM8ljvSH.js → FmGlobalSearch.vue_vue_type_script_setup_true_lang-BAKCH3Oj.js} +1 -1
  10. package/dist/federation/{FmPageHead.vue_vue_type_script_setup_true_lang-Xx7u-pzF.js → FmPageHead.vue_vue_type_script_setup_true_lang-D1LegmpV.js} +1 -1
  11. package/dist/federation/{FmSearch.vue_vue_type_script_setup_true_lang-BeKlAwbr.js → FmSearch.vue_vue_type_script_setup_true_lang-DrHvRDoC.js} +1 -1
  12. package/dist/federation/{FmTable.vue_vue_type_script_setup_true_lang-DwOPC14x.js → FmTable.vue_vue_type_script_setup_true_lang-D3lmvDZd.js} +1 -1
  13. package/dist/federation/{FmTimePicker.vue_vue_type_script_setup_true_lang-CqL9fh-D.js → FmTimePicker.vue_vue_type_script_setup_true_lang-DrOFOf2D.js} +1 -1
  14. package/dist/federation/{FmTimeRangePicker.vue_vue_type_script_setup_true_lang-xrjtk57d.js → FmTimeRangePicker.vue_vue_type_script_setup_true_lang-CDFSQiVT.js} +1 -1
  15. package/dist/federation/__federation_expose_FmButton-B_sVEj_Q.js +9 -0
  16. package/dist/federation/__federation_expose_FmButton-DClX10Yo.css +1 -0
  17. package/dist/federation/{__federation_expose_FmDatePicker-CIplFlON.js → __federation_expose_FmDatePicker-KNAZekj1.js} +1 -1
  18. package/dist/federation/{__federation_expose_FmDatePickerMobile-CwKFkWFb.js → __federation_expose_FmDatePickerMobile-DX40af79.js} +1 -1
  19. package/dist/federation/{__federation_expose_FmDateRangePicker-CfO_o3cz.js → __federation_expose_FmDateRangePicker-CQUWK1x1.js} +1 -1
  20. package/dist/federation/{__federation_expose_FmDateRangePickerMobile-Blcb5Epr.js → __federation_expose_FmDateRangePickerMobile-DU-yjyf1.js} +1 -1
  21. package/dist/federation/{__federation_expose_FmDropField-CZjwJVMy.js → __federation_expose_FmDropField-Bkdf1J6f.js} +1 -1
  22. package/dist/federation/{__federation_expose_FmDynamicDialog-Cqa8lvY_.js → __federation_expose_FmDynamicDialog-AhKeIJRO.js} +1 -1
  23. package/dist/federation/{__federation_expose_FmGlobalSearch-Bb_mpbuv.js → __federation_expose_FmGlobalSearch-DQyXxVM2.js} +1 -1
  24. package/dist/federation/{__federation_expose_FmPageHead-Dwzi_bHq.js → __federation_expose_FmPageHead-BLlwSaAX.js} +1 -1
  25. package/dist/federation/{__federation_expose_FmSearch-BZRPX-wz.js → __federation_expose_FmSearch-D0wH4QsS.js} +1 -1
  26. package/dist/federation/{__federation_expose_FmTable-B1Ts9Fi0.js → __federation_expose_FmTable-B-Ee097G.js} +1 -1
  27. package/dist/federation/{__federation_expose_FmTimePicker-CWZViO3T.js → __federation_expose_FmTimePicker-XE_5Fzsp.js} +1 -1
  28. package/dist/federation/{__federation_expose_FmTimeRangePicker-CXZcdeeg.js → __federation_expose_FmTimeRangePicker-DQtAgjEp.js} +1 -1
  29. package/dist/federation/{dialog-plugin-CCUfMY81.js → dialog-plugin-D8O2FOgy.js} +1 -1
  30. package/dist/federation/feedmepos-ui-components.js +1 -1
  31. package/dist/federation/{index-DTBd9G6I.js → index-B6BAvM67.js} +2 -2
  32. package/dist/feedmepos-ui-library.js +4429 -4422
  33. package/dist/feedmepos-ui-library.umd.cjs +23 -23
  34. package/dist/style.css +1 -1
  35. package/package.json +1 -1
  36. package/dist/federation/__federation_expose_FmButton-CfZVt7rM.js +0 -9
  37. package/dist/federation/__federation_expose_FmButton-DwIx5V3J.css +0 -1
package/dist/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.2.12 - 2024-07-06
2
+
3
+ ### Features
4
+
5
+ - `FmButton`
6
+ - Support more color props to allow user to customize the button color
7
+ - The color variant follows the `FmButtonColorThemeVariant` enum
8
+
1
9
  ## 1.2.10 - 2024-07-03
2
10
 
3
11
  ### Features
@@ -1,7 +1,7 @@
1
- type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'plain' | 'fab';
1
+ import { FmButtonColorThemeVariant, FmButtonVariant } from '../../components/button';
2
2
  export interface FmButtonProps {
3
3
  /** Variant of the button. */
4
- variant?: ButtonVariant;
4
+ variant?: FmButtonVariant | `${FmButtonVariant}`;
5
5
  /** Label of the button. */
6
6
  label?: string;
7
7
  /**
@@ -17,11 +17,10 @@ export interface FmButtonProps {
17
17
  size?: 'md' | 'lg';
18
18
  /** Specify if button is disabled. */
19
19
  disabled?: boolean;
20
- /**
21
- * @deprecated
22
- * Design is strict on color, with icon color to be locked in by variant type.
23
- */
24
- iconColor?: string;
20
+ iconColor?: FmButtonColorThemeVariant | string;
21
+ borderColor?: FmButtonColorThemeVariant | string;
22
+ textColor?: FmButtonColorThemeVariant | string;
23
+ bgColor?: FmButtonColorThemeVariant | string;
25
24
  /**
26
25
  * The type of the button.
27
26
  *
@@ -45,24 +44,22 @@ export interface FmButtonProps {
45
44
  disableIconStatus?: boolean;
46
45
  }
47
46
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmButtonProps>, {
48
- variant: string;
47
+ variant: FmButtonVariant;
49
48
  label: string;
50
49
  icon: string;
51
50
  size: string;
52
51
  disabled: boolean;
53
- iconColor: string;
54
52
  type: string;
55
53
  iconPosition: string;
56
54
  prependIcon: string;
57
55
  appendIcon: string;
58
56
  loading: boolean;
59
57
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmButtonProps>, {
60
- variant: string;
58
+ variant: FmButtonVariant;
61
59
  label: string;
62
60
  icon: string;
63
61
  size: string;
64
62
  disabled: boolean;
65
- iconColor: string;
66
63
  type: string;
67
64
  iconPosition: string;
68
65
  prependIcon: string;
@@ -70,12 +67,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
70
67
  loading: boolean;
71
68
  }>>>, {
72
69
  label: string;
73
- variant: ButtonVariant;
70
+ variant: "primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | FmButtonVariant;
74
71
  type: "button" | "submit" | "reset";
75
72
  size: "md" | "lg";
76
73
  disabled: boolean;
77
74
  icon: string;
78
- iconColor: string;
79
75
  iconPosition: "prepend" | "append";
80
76
  prependIcon: string;
81
77
  appendIcon: string;
@@ -0,0 +1,58 @@
1
+ export declare enum FmButtonVariant {
2
+ Primary = "primary",
3
+ Secondary = "secondary",
4
+ Destructive = "destructive",
5
+ Tertiary = "tertiary",
6
+ Plain = "plain",
7
+ Fab = "fab"
8
+ }
9
+ export declare enum FmButtonColorThemeVariant {
10
+ Transparent = "transparent",
11
+ ColorPrimary = "primary",
12
+ ColorPrimaryOats = "primary-oats",
13
+ SecondaryMacaron = "secondary-macaron",
14
+ SecondaryBlueberry = "secondary-blueberry",
15
+ SecondarySalmon = "secondary-salmon",
16
+ SecondaryTuna = "secondary-tuna",
17
+ SecondaryCitrus = "secondary-citrus",
18
+ SecondaryHalite = "secondary-halite",
19
+ SecondaryMustard = "secondary-mustard",
20
+ SecondaryMint = "secondary-mint",
21
+ SecondaryPlum = "secondary-plum",
22
+ SecondaryCocoa = "secondary-cocoa",
23
+ NeutralWhite = "neutral-white",
24
+ NeutralBlack = "neutral-gray-500",
25
+ NeutralGray100 = "neutral-gray-100",
26
+ NeutralGray200 = "neutral-gray-200",
27
+ NeutralGray300 = "neutral-gray-300",
28
+ NeutralGray400 = "neutral-gray-400",
29
+ TypoWhite = "typo-white",
30
+ TypoDisabled = "typo-disabled",
31
+ TypoPrimary = "typo-primary",
32
+ TypoTertiary = "typo-tertiary",
33
+ TypoSecondary = "typo-secondary",
34
+ TypoSuccess = "typo-success",
35
+ TypoWarning = "typo-warning",
36
+ TypoError = "typo-error",
37
+ TypoInfo = "typo-info",
38
+ SystemSuccess100 = "system-success-100",
39
+ SystemSuccess200 = "system-success-200",
40
+ SystemSuccess300 = "system-success-300",
41
+ SystemSuccess400 = "system-success-400",
42
+ SystemWarning100 = "system-warning-100",
43
+ SystemWarning200 = "system-warning-200",
44
+ SystemWarning300 = "system-warning-300",
45
+ SystemWarning400 = "system-warning-400",
46
+ SystemError100 = "system-error-100",
47
+ SystemError200 = "system-error-200",
48
+ SystemError300 = "system-error-300",
49
+ SystemError400 = "system-error-400",
50
+ SystemInfo100 = "system-info-100",
51
+ SystemInfo200 = "system-info-200",
52
+ SystemInfo300 = "system-info-300",
53
+ SystemInfo400 = "system-info-400",
54
+ OverlayBackground = "overlay-background",
55
+ OpacitySm = "opacity-sm",
56
+ OpacityMd = "opacity-md",
57
+ OpacityLg = "opacity-lg"
58
+ }
@@ -76,9 +76,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
76
76
  legend: Partial<LegendOptions<"doughnut">>;
77
77
  text: string;
78
78
  name: string;
79
+ textColor: string;
79
80
  paragraph: string;
80
81
  maintainAspectRatio: boolean;
81
- textColor: string;
82
82
  textStyle: string;
83
83
  percentage: string;
84
84
  }, {}>, {
@@ -86,10 +86,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
86
86
  color: string;
87
87
  zIndex: number;
88
88
  spinner: boolean;
89
+ bgColor: string;
89
90
  description: string;
90
91
  dismissable: boolean;
91
92
  action: string;
92
- bgColor: string;
93
93
  }, {}>, {
94
94
  actions?(_: {}): any;
95
95
  }>;
@@ -259,8 +259,8 @@ export declare const components: {
259
259
  default: string;
260
260
  };
261
261
  variant: {
262
- type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab">;
263
- default: string;
262
+ type: import("vue").PropType<"primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant>;
263
+ default: import("./components/button").FmButtonVariant;
264
264
  };
265
265
  type: {
266
266
  type: import("vue").PropType<"button" | "submit" | "reset">;
@@ -280,7 +280,15 @@ export declare const components: {
280
280
  };
281
281
  iconColor: {
282
282
  type: import("vue").PropType<string>;
283
- default: string;
283
+ };
284
+ borderColor: {
285
+ type: import("vue").PropType<string>;
286
+ };
287
+ textColor: {
288
+ type: import("vue").PropType<string>;
289
+ };
290
+ bgColor: {
291
+ type: import("vue").PropType<string>;
284
292
  };
285
293
  iconPosition: {
286
294
  type: import("vue").PropType<"prepend" | "append">;
@@ -307,8 +315,8 @@ export declare const components: {
307
315
  default: string;
308
316
  };
309
317
  variant: {
310
- type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab">;
311
- default: string;
318
+ type: import("vue").PropType<"primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant>;
319
+ default: import("./components/button").FmButtonVariant;
312
320
  };
313
321
  type: {
314
322
  type: import("vue").PropType<"button" | "submit" | "reset">;
@@ -328,7 +336,15 @@ export declare const components: {
328
336
  };
329
337
  iconColor: {
330
338
  type: import("vue").PropType<string>;
331
- default: string;
339
+ };
340
+ borderColor: {
341
+ type: import("vue").PropType<string>;
342
+ };
343
+ textColor: {
344
+ type: import("vue").PropType<string>;
345
+ };
346
+ bgColor: {
347
+ type: import("vue").PropType<string>;
332
348
  };
333
349
  iconPosition: {
334
350
  type: import("vue").PropType<"prepend" | "append">;
@@ -351,12 +367,11 @@ export declare const components: {
351
367
  };
352
368
  }>>, {
353
369
  label: string;
354
- variant: "primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab";
370
+ variant: "primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant;
355
371
  type: "button" | "submit" | "reset";
356
372
  size: "md" | "lg";
357
373
  disabled: boolean;
358
374
  icon: string;
359
- iconColor: string;
360
375
  iconPosition: "prepend" | "append";
361
376
  prependIcon: string;
362
377
  appendIcon: string;
@@ -374,8 +389,8 @@ export declare const components: {
374
389
  default: string;
375
390
  };
376
391
  variant: {
377
- type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab">;
378
- default: string;
392
+ type: import("vue").PropType<"primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant>;
393
+ default: import("./components/button").FmButtonVariant;
379
394
  };
380
395
  type: {
381
396
  type: import("vue").PropType<"button" | "submit" | "reset">;
@@ -395,7 +410,15 @@ export declare const components: {
395
410
  };
396
411
  iconColor: {
397
412
  type: import("vue").PropType<string>;
398
- default: string;
413
+ };
414
+ borderColor: {
415
+ type: import("vue").PropType<string>;
416
+ };
417
+ textColor: {
418
+ type: import("vue").PropType<string>;
419
+ };
420
+ bgColor: {
421
+ type: import("vue").PropType<string>;
399
422
  };
400
423
  iconPosition: {
401
424
  type: import("vue").PropType<"prepend" | "append">;
@@ -418,12 +441,11 @@ export declare const components: {
418
441
  };
419
442
  }>>, {}, {}, {}, {}, {
420
443
  label: string;
421
- variant: "primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab";
444
+ variant: "primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant;
422
445
  type: "button" | "submit" | "reset";
423
446
  size: "md" | "lg";
424
447
  disabled: boolean;
425
448
  icon: string;
426
- iconColor: string;
427
449
  iconPosition: "prepend" | "append";
428
450
  prependIcon: string;
429
451
  appendIcon: string;
@@ -438,8 +460,8 @@ export declare const components: {
438
460
  default: string;
439
461
  };
440
462
  variant: {
441
- type: import("vue").PropType<"primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab">;
442
- default: string;
463
+ type: import("vue").PropType<"primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant>;
464
+ default: import("./components/button").FmButtonVariant;
443
465
  };
444
466
  type: {
445
467
  type: import("vue").PropType<"button" | "submit" | "reset">;
@@ -459,7 +481,15 @@ export declare const components: {
459
481
  };
460
482
  iconColor: {
461
483
  type: import("vue").PropType<string>;
462
- default: string;
484
+ };
485
+ borderColor: {
486
+ type: import("vue").PropType<string>;
487
+ };
488
+ textColor: {
489
+ type: import("vue").PropType<string>;
490
+ };
491
+ bgColor: {
492
+ type: import("vue").PropType<string>;
463
493
  };
464
494
  iconPosition: {
465
495
  type: import("vue").PropType<"prepend" | "append">;
@@ -482,12 +512,11 @@ export declare const components: {
482
512
  };
483
513
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
484
514
  label: string;
485
- variant: "primary" | "secondary" | "tertiary" | "destructive" | "plain" | "fab";
515
+ variant: "primary" | "secondary" | "destructive" | "tertiary" | "plain" | "fab" | import("./components/button").FmButtonVariant;
486
516
  type: "button" | "submit" | "reset";
487
517
  size: "md" | "lg";
488
518
  disabled: boolean;
489
519
  icon: string;
490
- iconColor: string;
491
520
  iconPosition: "prepend" | "append";
492
521
  prependIcon: string;
493
522
  appendIcon: string;
@@ -1724,6 +1753,10 @@ export declare const components: {
1724
1753
  type: import("vue").PropType<string>;
1725
1754
  default: undefined;
1726
1755
  };
1756
+ textColor: {
1757
+ type: import("vue").PropType<string>;
1758
+ default: string;
1759
+ };
1727
1760
  paragraph: {
1728
1761
  type: import("vue").PropType<string>;
1729
1762
  default: undefined;
@@ -1740,10 +1773,6 @@ export declare const components: {
1740
1773
  type: import("vue").PropType<string[]>;
1741
1774
  required: true;
1742
1775
  };
1743
- textColor: {
1744
- type: import("vue").PropType<string>;
1745
- default: string;
1746
- };
1747
1776
  textStyle: {
1748
1777
  type: import("vue").PropType<string>;
1749
1778
  default: string;
@@ -1769,6 +1798,10 @@ export declare const components: {
1769
1798
  type: import("vue").PropType<string>;
1770
1799
  default: undefined;
1771
1800
  };
1801
+ textColor: {
1802
+ type: import("vue").PropType<string>;
1803
+ default: string;
1804
+ };
1772
1805
  paragraph: {
1773
1806
  type: import("vue").PropType<string>;
1774
1807
  default: undefined;
@@ -1785,10 +1818,6 @@ export declare const components: {
1785
1818
  type: import("vue").PropType<string[]>;
1786
1819
  required: true;
1787
1820
  };
1788
- textColor: {
1789
- type: import("vue").PropType<string>;
1790
- default: string;
1791
- };
1792
1821
  textStyle: {
1793
1822
  type: import("vue").PropType<string>;
1794
1823
  default: string;
@@ -1801,9 +1830,9 @@ export declare const components: {
1801
1830
  legend: Partial<import("chart.js").LegendOptions<"doughnut">>;
1802
1831
  text: string;
1803
1832
  name: string;
1833
+ textColor: string;
1804
1834
  paragraph: string;
1805
1835
  maintainAspectRatio: boolean;
1806
- textColor: string;
1807
1836
  textStyle: string;
1808
1837
  percentage: string;
1809
1838
  }, true, {}, {}, {
@@ -1830,6 +1859,10 @@ export declare const components: {
1830
1859
  type: import("vue").PropType<string>;
1831
1860
  default: undefined;
1832
1861
  };
1862
+ textColor: {
1863
+ type: import("vue").PropType<string>;
1864
+ default: string;
1865
+ };
1833
1866
  paragraph: {
1834
1867
  type: import("vue").PropType<string>;
1835
1868
  default: undefined;
@@ -1846,10 +1879,6 @@ export declare const components: {
1846
1879
  type: import("vue").PropType<string[]>;
1847
1880
  required: true;
1848
1881
  };
1849
- textColor: {
1850
- type: import("vue").PropType<string>;
1851
- default: string;
1852
- };
1853
1882
  textStyle: {
1854
1883
  type: import("vue").PropType<string>;
1855
1884
  default: string;
@@ -1862,9 +1891,9 @@ export declare const components: {
1862
1891
  legend: Partial<import("chart.js").LegendOptions<"doughnut">>;
1863
1892
  text: string;
1864
1893
  name: string;
1894
+ textColor: string;
1865
1895
  paragraph: string;
1866
1896
  maintainAspectRatio: boolean;
1867
- textColor: string;
1868
1897
  textStyle: string;
1869
1898
  percentage: string;
1870
1899
  }>;
@@ -1888,6 +1917,10 @@ export declare const components: {
1888
1917
  type: import("vue").PropType<string>;
1889
1918
  default: undefined;
1890
1919
  };
1920
+ textColor: {
1921
+ type: import("vue").PropType<string>;
1922
+ default: string;
1923
+ };
1891
1924
  paragraph: {
1892
1925
  type: import("vue").PropType<string>;
1893
1926
  default: undefined;
@@ -1904,10 +1937,6 @@ export declare const components: {
1904
1937
  type: import("vue").PropType<string[]>;
1905
1938
  required: true;
1906
1939
  };
1907
- textColor: {
1908
- type: import("vue").PropType<string>;
1909
- default: string;
1910
- };
1911
1940
  textStyle: {
1912
1941
  type: import("vue").PropType<string>;
1913
1942
  default: string;
@@ -1920,9 +1949,9 @@ export declare const components: {
1920
1949
  legend: Partial<import("chart.js").LegendOptions<"doughnut">>;
1921
1950
  text: string;
1922
1951
  name: string;
1952
+ textColor: string;
1923
1953
  paragraph: string;
1924
1954
  maintainAspectRatio: boolean;
1925
- textColor: string;
1926
1955
  textStyle: string;
1927
1956
  percentage: string;
1928
1957
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -10552,10 +10581,10 @@ export declare const components: {
10552
10581
  color: string;
10553
10582
  zIndex: number;
10554
10583
  spinner: boolean;
10584
+ bgColor: string;
10555
10585
  description: string;
10556
10586
  dismissable: boolean;
10557
10587
  action: string;
10558
- bgColor: string;
10559
10588
  }, true, {}, {}, {
10560
10589
  P: {};
10561
10590
  B: {};
@@ -10609,10 +10638,10 @@ export declare const components: {
10609
10638
  color: string;
10610
10639
  zIndex: number;
10611
10640
  spinner: boolean;
10641
+ bgColor: string;
10612
10642
  description: string;
10613
10643
  dismissable: boolean;
10614
10644
  action: string;
10615
- bgColor: string;
10616
10645
  }>;
10617
10646
  __isFragment?: undefined;
10618
10647
  __isTeleport?: undefined;
@@ -10666,10 +10695,10 @@ export declare const components: {
10666
10695
  color: string;
10667
10696
  zIndex: number;
10668
10697
  spinner: boolean;
10698
+ bgColor: string;
10669
10699
  description: string;
10670
10700
  dismissable: boolean;
10671
10701
  action: string;
10672
- bgColor: string;
10673
10702
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
10674
10703
  $slots: {
10675
10704
  actions?(_: {}): any;
@@ -12500,6 +12529,7 @@ export type * from './components/badge/FmBadge.vue';
12500
12529
  export type * from './components/bottom-sheet/FmBottomSheet.vue';
12501
12530
  export type * from './components/breadcrumb/FmBreadcrumb.vue';
12502
12531
  export type * from './components/button/FmButton.vue';
12532
+ export * from './components/button';
12503
12533
  export type * from './components/button-group/FmButtonGroup.vue';
12504
12534
  export type * from './components/card/FmCard.vue';
12505
12535
  export type * from './components/card/FmCardActionArea.vue';
@@ -1 +1 @@
1
- import{importShared as g,__tla as ke}from"./__federation_fn_import-DThBtRAV.js";import{u as ge,__tla as Ve}from"./useBreakpoints-DqA4Z0bX.js";import{d as _}from"./dayjs.min-DE2R3_3L.js";import ne,{__tla as we}from"./__federation_expose_FmIcon-BKc-kUKB.js";import ue,{__tla as Ce}from"./__federation_expose_FmButton-CfZVt7rM.js";import{u as ie,__tla as Be}from"./useProxiedModel-DA9duj_S.js";import Se,{__tla as ze}from"./__federation_expose_FmField-C4U6qz8m.js";import{_ as Me,__tla as Pe}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-DKU2Ql0w.js";import{_ as se,u as $e,__tla as De}from"./useInheritFormState-Cck9CmNw.js";import{F as Ie,__tla as Ye}from"./FmPopover-BeLBRWG0.js";import{D as x,n as Fe,g as Ue}from"./helper-Dphf0qEj.js";import{F as Ee}from"./provider-keys-nUDvvk3o.js";import{_ as je}from"./_plugin-vue_export-helper-DlAUqK2U.js";import qe,{__tla as Ne}from"./__federation_expose_FmDatePickerMobile-CwKFkWFb.js";let me,Re=Promise.all([(()=>{try{return ke}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{let R,m,y,T,pe,A,O,V,M,r,i,d,P,p,w,C,c,L,ce,fe,G,H,J,K,W,X,Z,Q,ee,le,b,ae,te,oe,s,$,D,I,Y,F,U,E,B,j,q,re,de;({defineComponent:R}=await g("vue")),{unref:m,renderSlot:y,normalizeProps:T,guardReactiveProps:pe,mergeProps:A,createCommentVNode:O,toDisplayString:V,normalizeClass:M,createElementVNode:r,withCtx:i,openBlock:d,createBlock:P,createVNode:p,renderList:w,Fragment:C,createElementBlock:c,isRef:L,pushScopeId:ce,popScopeId:fe}=await g("vue"),G={class:"p-12 w-[360px]"},H={class:"w-max"},J={class:"flex h-40 justify-between px-4 py-8"},K={class:"flex gap-4 items-center"},W={class:"flex gap-4 items-center justify-center"},X={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Z=["onClick"],Q={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},{computed:ee,inject:le,ref:b}=await g("vue"),ae=R({__name:"FmDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>_().subtract(50,"year").format(x)},max:{default:()=>_().add(25,"year").format(x)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(N){const v=N,h=le(Ee,null),l=ie(v,"modelValue"),f=b(_(l.value,x)),t=b(!1),n=ee(()=>v.disabled??(h==null?void 0:h.getDisabled())??!1),a=b(_().startOf("month")),_e=b(!1),ve=b(!1),ye=e=>{f.value=e},be=()=>{l.value=f.value.format(x),setTimeout(()=>{t.value=!1},0)},he=()=>{f.value=l.value?_(l.value):null,t.value=!1},S=e=>{_e.value=!1,ve.value=!1,a.value=e};return(e,o)=>(d(),P(Me,{modelValue:m(l),"onUpdate:modelValue":o[5]||(o[5]=z=>L(l)?l.value=z:null),disabled:n.value,focused:t.value,"helper-state":e.helperState,"helper-text":e.helperText,info:e.labelInfo,label:e.label,optional:e.labelMark==="optional",required:e.labelMark==="required",rules:e.rules,tag:"div"},{label:i(()=>[y(e.$slots,"label",{},void 0,!0)]),default:i(({invalid:z})=>[p(Ie,{disabled:n.value,"show-popover":t.value,"z-index":e.zIndex,onPopoverChanged:o[4]||(o[4]=u=>t.value=u)},{"popover-button":i(()=>[e.$slots["trigger-button"]?y(e.$slots,"trigger-button",T(A({key:0},{invalid:z,opened:t.value,showValidBorder:e.showValidBorder,disabled:n.value})),void 0,!0):(d(),P(Se,{key:1,disabled:n.value,focused:t.value,"icon-outlined":!t.value,invalid:z,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month"},{prepend:i(()=>[y(e.$slots,"prepend",{},void 0,!0)]),append:i(()=>[y(e.$slots,"append",{},void 0,!0)]),default:i(()=>[r("div",{class:M([[n.value?"text-fm-color-typo-disabled":m(l)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},V(m(l)?m(_)(m(l)).format("D MMM YYYY"):"DD MM YYYY"),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:i(()=>[r("div",G,[r("div",H,[r("div",J,[r("div",K,[p(se,{max:e.max,min:e.min,"model-value":a.value,picker:"month","onUpdate:modelValue":o[0]||(o[0]=u=>S(u))},null,8,["max","min","model-value"]),p(se,{max:e.max,min:e.min,"model-value":a.value,picker:"year","onUpdate:modelValue":o[1]||(o[1]=u=>S(u))},null,8,["max","min","model-value"])]),r("div",W,[p(ne,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_left",onClick:o[2]||(o[2]=()=>S(a.value.subtract(1,"month")))}),p(ne,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_right",onClick:o[3]||(o[3]=()=>S(a.value.add(1,"month")))})])]),r("div",null,[r("div",X,[(d(!0),c(C,null,w(m(Fe),u=>(d(),c("div",{key:u,class:"fm-calendar__cell"},V(u),1))),128))]),r("div",null,[(d(!0),c(C,null,w(m(Ue)(a.value),(u,xe)=>(d(),c("div",{key:xe,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(d(!0),c(C,null,w(u,k=>(d(),c("div",{key:k.date.date(),class:"fm-calendar__cell"},[k.isCurrentMonth?(d(),c("button",{key:0,class:M([{"fm-calendar__cell__button--selected":k.date.isSame(f.value)},"fm-calendar__cell__button"]),type:"button",onClick:()=>ye(k.date)},V(k.date.date()),11,Z)):O("",!0)]))),128))]))),128))])])]),r("div",Q,[p(ue,{label:"Cancel",size:"md",variant:"tertiary",onClick:he}),p(ue,{disabled:!f.value,label:"Apply",size:"md",variant:"primary",onClick:be},null,8,["disabled"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":i(()=>[y(e.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),te=je(ae,[["__scopeId","data-v-6d34db79"]]),{defineComponent:oe}=await g("vue"),{unref:s,normalizeProps:$,guardReactiveProps:D,renderSlot:I,isRef:Y,mergeProps:F,withCtx:U,createSlots:E,openBlock:B,createBlock:j,createCommentVNode:q,Fragment:re,createElementBlock:de}=await g("vue"),me=oe({__name:"FmDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>_().subtract(50,"year").format(x)},max:{default:()=>_().add(25,"year").format(x)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(N){const{breakpoints:v}=ge(),h=N,l=ie(h,"modelValue"),f=$e(h);return(t,n)=>(B(),de(re,null,[s(v).md||s(v).lg?(B(),j(te,F({key:0},s(f),{modelValue:s(l),"onUpdate:modelValue":n[0]||(n[0]=a=>Y(l)?l.value=a:null)}),E({_:2},[t.$slots["trigger-button"]?{name:"trigger-button",fn:U(a=>[I(t.$slots,"trigger-button",$(D(a)))]),key:"0"}:void 0]),1040,["modelValue"])):q("",!0),s(v).xs||s(v).sm?(B(),j(qe,F({key:1},s(f),{modelValue:s(l),"onUpdate:modelValue":n[1]||(n[1]=a=>Y(l)?l.value=a:null)}),E({_:2},[t.$slots["trigger-button"]?{name:"trigger-button",fn:U(a=>[I(t.$slots,"trigger-button",$(D(a)))]),key:"0"}:void 0]),1040,["modelValue"])):q("",!0)],64))}})});export{me as _,Re as __tla};
1
+ import{importShared as g,__tla as ke}from"./__federation_fn_import-DThBtRAV.js";import{u as ge,__tla as Ve}from"./useBreakpoints-DqA4Z0bX.js";import{d as _}from"./dayjs.min-DE2R3_3L.js";import ne,{__tla as we}from"./__federation_expose_FmIcon-BKc-kUKB.js";import ue,{__tla as Ce}from"./__federation_expose_FmButton-B_sVEj_Q.js";import{u as ie,__tla as Be}from"./useProxiedModel-DA9duj_S.js";import Se,{__tla as ze}from"./__federation_expose_FmField-C4U6qz8m.js";import{_ as Me,__tla as Pe}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-DKU2Ql0w.js";import{_ as se,u as $e,__tla as De}from"./useInheritFormState-Cck9CmNw.js";import{F as Ie,__tla as Ye}from"./FmPopover-BeLBRWG0.js";import{D as x,n as Fe,g as Ue}from"./helper-Dphf0qEj.js";import{F as Ee}from"./provider-keys-nUDvvk3o.js";import{_ as je}from"./_plugin-vue_export-helper-DlAUqK2U.js";import qe,{__tla as Ne}from"./__federation_expose_FmDatePickerMobile-DX40af79.js";let me,Re=Promise.all([(()=>{try{return ke}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{let R,m,y,T,pe,A,O,V,M,r,i,d,P,p,w,C,c,L,ce,fe,G,H,J,K,W,X,Z,Q,ee,le,b,ae,te,oe,s,$,D,I,Y,F,U,E,B,j,q,re,de;({defineComponent:R}=await g("vue")),{unref:m,renderSlot:y,normalizeProps:T,guardReactiveProps:pe,mergeProps:A,createCommentVNode:O,toDisplayString:V,normalizeClass:M,createElementVNode:r,withCtx:i,openBlock:d,createBlock:P,createVNode:p,renderList:w,Fragment:C,createElementBlock:c,isRef:L,pushScopeId:ce,popScopeId:fe}=await g("vue"),G={class:"p-12 w-[360px]"},H={class:"w-max"},J={class:"flex h-40 justify-between px-4 py-8"},K={class:"flex gap-4 items-center"},W={class:"flex gap-4 items-center justify-center"},X={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Z=["onClick"],Q={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},{computed:ee,inject:le,ref:b}=await g("vue"),ae=R({__name:"FmDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>_().subtract(50,"year").format(x)},max:{default:()=>_().add(25,"year").format(x)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(N){const v=N,h=le(Ee,null),l=ie(v,"modelValue"),f=b(_(l.value,x)),t=b(!1),n=ee(()=>v.disabled??(h==null?void 0:h.getDisabled())??!1),a=b(_().startOf("month")),_e=b(!1),ve=b(!1),ye=e=>{f.value=e},be=()=>{l.value=f.value.format(x),setTimeout(()=>{t.value=!1},0)},he=()=>{f.value=l.value?_(l.value):null,t.value=!1},S=e=>{_e.value=!1,ve.value=!1,a.value=e};return(e,o)=>(d(),P(Me,{modelValue:m(l),"onUpdate:modelValue":o[5]||(o[5]=z=>L(l)?l.value=z:null),disabled:n.value,focused:t.value,"helper-state":e.helperState,"helper-text":e.helperText,info:e.labelInfo,label:e.label,optional:e.labelMark==="optional",required:e.labelMark==="required",rules:e.rules,tag:"div"},{label:i(()=>[y(e.$slots,"label",{},void 0,!0)]),default:i(({invalid:z})=>[p(Ie,{disabled:n.value,"show-popover":t.value,"z-index":e.zIndex,onPopoverChanged:o[4]||(o[4]=u=>t.value=u)},{"popover-button":i(()=>[e.$slots["trigger-button"]?y(e.$slots,"trigger-button",T(A({key:0},{invalid:z,opened:t.value,showValidBorder:e.showValidBorder,disabled:n.value})),void 0,!0):(d(),P(Se,{key:1,disabled:n.value,focused:t.value,"icon-outlined":!t.value,invalid:z,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month"},{prepend:i(()=>[y(e.$slots,"prepend",{},void 0,!0)]),append:i(()=>[y(e.$slots,"append",{},void 0,!0)]),default:i(()=>[r("div",{class:M([[n.value?"text-fm-color-typo-disabled":m(l)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},V(m(l)?m(_)(m(l)).format("D MMM YYYY"):"DD MM YYYY"),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:i(()=>[r("div",G,[r("div",H,[r("div",J,[r("div",K,[p(se,{max:e.max,min:e.min,"model-value":a.value,picker:"month","onUpdate:modelValue":o[0]||(o[0]=u=>S(u))},null,8,["max","min","model-value"]),p(se,{max:e.max,min:e.min,"model-value":a.value,picker:"year","onUpdate:modelValue":o[1]||(o[1]=u=>S(u))},null,8,["max","min","model-value"])]),r("div",W,[p(ne,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_left",onClick:o[2]||(o[2]=()=>S(a.value.subtract(1,"month")))}),p(ne,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_right",onClick:o[3]||(o[3]=()=>S(a.value.add(1,"month")))})])]),r("div",null,[r("div",X,[(d(!0),c(C,null,w(m(Fe),u=>(d(),c("div",{key:u,class:"fm-calendar__cell"},V(u),1))),128))]),r("div",null,[(d(!0),c(C,null,w(m(Ue)(a.value),(u,xe)=>(d(),c("div",{key:xe,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(d(!0),c(C,null,w(u,k=>(d(),c("div",{key:k.date.date(),class:"fm-calendar__cell"},[k.isCurrentMonth?(d(),c("button",{key:0,class:M([{"fm-calendar__cell__button--selected":k.date.isSame(f.value)},"fm-calendar__cell__button"]),type:"button",onClick:()=>ye(k.date)},V(k.date.date()),11,Z)):O("",!0)]))),128))]))),128))])])]),r("div",Q,[p(ue,{label:"Cancel",size:"md",variant:"tertiary",onClick:he}),p(ue,{disabled:!f.value,label:"Apply",size:"md",variant:"primary",onClick:be},null,8,["disabled"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":i(()=>[y(e.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),te=je(ae,[["__scopeId","data-v-6d34db79"]]),{defineComponent:oe}=await g("vue"),{unref:s,normalizeProps:$,guardReactiveProps:D,renderSlot:I,isRef:Y,mergeProps:F,withCtx:U,createSlots:E,openBlock:B,createBlock:j,createCommentVNode:q,Fragment:re,createElementBlock:de}=await g("vue"),me=oe({__name:"FmDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>_().subtract(50,"year").format(x)},max:{default:()=>_().add(25,"year").format(x)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(N){const{breakpoints:v}=ge(),h=N,l=ie(h,"modelValue"),f=$e(h);return(t,n)=>(B(),de(re,null,[s(v).md||s(v).lg?(B(),j(te,F({key:0},s(f),{modelValue:s(l),"onUpdate:modelValue":n[0]||(n[0]=a=>Y(l)?l.value=a:null)}),E({_:2},[t.$slots["trigger-button"]?{name:"trigger-button",fn:U(a=>[I(t.$slots,"trigger-button",$(D(a)))]),key:"0"}:void 0]),1040,["modelValue"])):q("",!0),s(v).xs||s(v).sm?(B(),j(qe,F({key:1},s(f),{modelValue:s(l),"onUpdate:modelValue":n[1]||(n[1]=a=>Y(l)?l.value=a:null)}),E({_:2},[t.$slots["trigger-button"]?{name:"trigger-button",fn:U(a=>[I(t.$slots,"trigger-button",$(D(a)))]),key:"0"}:void 0]),1040,["modelValue"])):q("",!0)],64))}})});export{me as _,Re as __tla};
@@ -1 +1 @@
1
- import{importShared as N,__tla as Pa}from"./__federation_fn_import-DThBtRAV.js";import{d as r}from"./dayjs.min-DE2R3_3L.js";import{D as s,n as pa,g as ya}from"./helper-Dphf0qEj.js";import ba,{__tla as Aa}from"./__federation_expose_FmIcon-BKc-kUKB.js";import Da,{__tla as Oa}from"./__federation_expose_FmButton-CfZVt7rM.js";import{u as _a,__tla as Sa}from"./useProxiedModel-DA9duj_S.js";import{_ as $a,__tla as La}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-DKU2Ql0w.js";import W,{__tla as Ra}from"./__federation_expose_FmField-C4U6qz8m.js";import{F as Ta,__tla as za}from"./FmPopover-BeLBRWG0.js";import{_ as K,u as Ia,__tla as Ua}from"./useInheritFormState-Cck9CmNw.js";import ha,{__tla as Ea}from"./__federation_expose_FmMenuItem-DFl_DdOJ.js";import{_ as Fa,__tla as ja}from"./FmMenuDivider.vue_vue_type_script_setup_true_lang-BXNEveuZ.js";import Na,{__tla as Wa}from"./__federation_expose_FmSwitch-CmgsT_mG.js";import{_ as ie,__tla as qa}from"./FmLabel.vue_vue_type_script_setup_true_lang-CWZsudf4.js";import Ga,{C as S,__tla as Ha}from"./__federation_expose_FmDateRangePickerMobile-Blcb5Epr.js";import{i as k}from"./helpers-D8-zcjH0.js";import{F as Ja}from"./provider-keys-nUDvvk3o.js";import{_ as Ka}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{u as Qa,__tla as Xa}from"./useBreakpoints-DqA4Z0bX.js";let ga,Za=Promise.all([(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Xa}catch{}})()]).then(async()=>{let me,p,fe,Ya,B,ce,h,b,D,u,y,c,i,f,x,V,Q,ve,pe,ye,be,X,De,_e,he,ge,Ye,xe,ke,we,Me,Ce,Be,Ve,Pe,Ae,Oe,Se,$e,Le,Re,Te,ze,Ie,Ue,Ee,Fe,je,Ne,We,qe,U,Ge,P,He,Je,Ke,Qe,A,Z,ee,ae,te,le,re,oe,q,se,ne,Xe,Ze;({defineComponent:me}=await N("vue")),{unref:p,normalizeProps:fe,guardReactiveProps:Ya,renderSlot:B,mergeProps:ce,createCommentVNode:h,toDisplayString:b,normalizeClass:D,createElementVNode:u,withCtx:y,createVNode:c,openBlock:i,createElementBlock:f,Fragment:x,renderList:V,createBlock:Q,isRef:ve,createSlots:pe,pushScopeId:ye,popScopeId:be}=await N("vue"),X=L=>(ye("data-v-a35b0ec8"),L=L(),be(),L),De={key:0,class:"flex gap-4 items-center relative w-full"},_e={class:"flex flex-col gap-4 w-full"},he=X(()=>u("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1)),ge={class:"flex flex-col gap-4 w-full"},Ye={key:1,class:"flex flex-col gap-4 w-full"},xe={class:"flex gap-4 p-12"},ke={key:0,class:"max-h-[549px] overflow-y-auto w-[171px]"},we={key:0,class:"px-8"},Me={key:1,class:"-my-12 border-fm-color-neutral-gray-100 border-l shrink-0"},Ce={class:"flex flex-col gap-24"},Be={key:0,class:"flex gap-4 items-center px-12 w-full"},Ve={class:"flex flex-col gap-4 w-full"},Pe=X(()=>u("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," - ",-1)),Ae={class:"flex flex-col gap-4 w-full"},Oe={class:"flex gap-24"},Se={class:"w-max"},$e={class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},Le={class:"flex gap-4 items-center"},Re={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Te={class:"h-[288px]"},ze={key:0,class:"fm-calendar__cell__button--today"},Ie=["onClick","onMouseover"],Ue={class:"w-max"},Ee={class:"flex gap-16 h-10 items-center justify-end px-4 py-8"},Fe={class:"flex gap-4 items-center"},je={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Ne={key:0,class:"fm-calendar__cell__button--today"},We=["onClick","onMouseover"],qe={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},{computed:U,inject:Ge,ref:P,watch:He}=await N("vue"),Je=me({__name:"FmDateRangePickerDesktop",props:{modelValue:{},startLabel:{default:"Start date"},endLabel:{default:"End date"},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:r().format(s),endDate:r().format(s)}},{label:"Yesterday",value:{startDate:r().subtract(1,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This week",value:{startDate:r().startOf("week").format(s),endDate:r().endOf("week").format(s)}},{label:"Last week",value:{startDate:r().subtract(1,"week").startOf("week").format(s),endDate:r().subtract(1,"week").endOf("week").format(s)}},{label:"Last 7 days",value:{startDate:r().subtract(7,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This month",value:{startDate:r().startOf("month").format(s),endDate:r().endOf("month").format(s)}},{label:"Last month",value:{startDate:r().subtract(1,"month").startOf("month").format(s),endDate:r().subtract(1,"month").endOf("month").format(s)}},{label:"This year",value:{startDate:r().startOf("year").format(s),endDate:r().endOf("year").format(s)}}]},compare:{type:Boolean,default:!1},compareLabel:{default:"Date"},min:{default:()=>r().subtract(50,"year").format(s)},max:{default:()=>r().add(25,"year").format(s)},zIndex:{default:void 0},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(L){var la,ra;const z=[{id:S.PrecedingPeriod,label:"Preceding period",sublabel:"",action:()=>{O.value=S.PrecedingPeriod;const e=o.value;if(e[0].startDate&&e[0].endDate){const a=e[0].startDate.diff(e[0].endDate,"day");e[1]={startDate:e[0].startDate.subtract(+(1-a),"day"),endDate:e[0].startDate.subtract(1,"day")}}}},{id:S.PrecedingWeek,label:"Preceding period",sublabel:"Match day of week",action:()=>{O.value=S.PrecedingWeek;const e=o.value;if(e[0].startDate&&e[0].endDate){let a=e[0].endDate.diff(e[0].startDate,"week");a===0&&(a+=1),e[1]={startDate:e[0].startDate.subtract(a,"week"),endDate:e[0].endDate.subtract(a,"week")}}}},{id:S.PrecedingMonth,label:"Preceding period",sublabel:"Match day of month",action:()=>{O.value=S.PrecedingMonth;const e=o.value;if(e[0].startDate&&e[0].endDate){let a=e[0].endDate.diff(e[0].startDate,"month");a===0&&(a+=1),e[1]={startDate:e[0].startDate.subtract(a,"month"),endDate:e[0].endDate.subtract(a,"month")}}}},{id:S.Custom,label:"Custom",sublabel:"",action:()=>{O.value=S.Custom}}],w=L,M=Ge(Ja,null),R=r(),n=_a(w,"modelValue"),o=P([{startDate:(la=n.value)!=null&&la.startDate?r(n.value.startDate,s):null,endDate:(ra=n.value)!=null&&ra.endDate?r(n.value.endDate,s):null},{startDate:null,endDate:null}]),v=P(!1),g=U(()=>w.disabled??(M==null?void 0:M.getDisabled())??!1),_=P(!1),O=P(""),T=P(r().startOf("month")),E=P(r().startOf("month").add(1,"month")),de=P(""),ue=P(null);let Y=0;const ea=e=>{var a;if(de.value="",o.value[Y].startDate&&o.value[Y].endDate){Y===1&&(o.value=o.value.map(()=>({startDate:null,endDate:null})),Y=0),o.value[0]={startDate:e,endDate:null};return}else if(!o.value[Y].startDate&&!o.value[Y].endDate)o.value[Y].startDate=e;else{if(e.isBefore(o.value[Y].startDate)){const d=o.value[Y].startDate;o.value[Y]={startDate:e,endDate:d}}else o.value[Y].endDate=e;_.value&&(Y=1),z.find(d=>d.id===O.value)||(O.value=S.Custom)}(a=z.find(d=>d.id===O.value))==null||a.action()},xa=()=>{_.value?n.value=o.value.map(e=>({startDate:e.startDate.format(s),endDate:e.endDate.format(s)})):n.value={startDate:o.value[0].startDate.format(s),endDate:o.value[0].endDate.format(s)},setTimeout(()=>{v.value=!1})},ka=()=>{var e,a;Array.isArray(n.value)?o.value=n.value:o.value[0]={startDate:(e=n.value)!=null&&e.startDate?r(n.value.startDate,s):null,endDate:(a=n.value)!=null&&a.endDate?r(n.value.endDate,s):null},v.value=!1},I=(e,a)=>{e==="left"?(T.value=a,E.value=a.add(1,"month")):e==="right"&&(E.value=a,T.value=a.subtract(1,"month"))},aa=e=>{const a=o.value[0].startDate,d=o.value[0].endDate,t=o.value[1].startDate,m=o.value[1].endDate,l=ue.value,C=a==null?void 0:a.isSame(e),F=d==null?void 0:d.isSame(e),$=t==null?void 0:t.isSame(e),j=m==null?void 0:m.isSame(e),H=l==null?void 0:l.isSame(e),oa=C&&d&&!(C&&F)||a&&!d&&C&&(l==null?void 0:l.isAfter(a))||a&&!d&&H&&(l==null?void 0:l.isBefore(a)),sa=$&&m&&!($&&j)||t&&!m&&$&&(l==null?void 0:l.isAfter(t))||t&&!m&&H&&(l==null?void 0:l.isBefore(t)),na=F&&a&&!(C&&F)||a&&!d&&C&&(l==null?void 0:l.isBefore(a))||a&&!d&&H&&(l==null?void 0:l.isAfter(a)),da=j&&t&&!($&&j)||t&&!m&&$&&(l==null?void 0:l.isBefore(t))||t&&!m&&H&&(l==null?void 0:l.isAfter(t)),ua=C&&F||C&&!d,ia=$&&j||$&&!m,ma=a&&(d||l)&&d?e.isAfter(a)&&e.isBefore(d):e.isAfter(l)&&e.isBefore(a)||e.isBefore(l)&&e.isAfter(a),fa=t&&(m||l)&&m?e.isAfter(t)&&e.isBefore(m):e.isAfter(l)&&e.isBefore(t)||e.isBefore(l)&&e.isAfter(t),J=()=>{if(o.value.filter(ca=>{var va;for(const Va in ca)if((va=ca[Va])!=null&&va.isSame(e,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(C&&F&&(k(e,t,m)||k(e,t,l)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if($&&j&&(k(e,a,d)||k(e,a,l)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(oa||na)return k(e,t,m)||k(e,t,l)?"bg-fm-color-primary before:bg-fm-color-system-success-100 after:bg-fm-color-system-info-100":"bg-fm-color-primary before:bg-fm-color-system-warning-100";if(sa||da)return k(e,a,d)||k(e,a,l)?"bg-fm-color-system-info-300 before:bg-fm-color-system-success-100 after:bg-fm-color-system-warning-100":"bg-fm-color-system-info-300 before:bg-fm-color-system-info-100";if(ua)return"bg-fm-color-primary";if(ia)return"bg-fm-color-system-info-300";if(k(e,a,d)&&(k(e,t,m)||k(e,t,l)))return"bg-fm-color-system-success-100";if(ma)return"bg-fm-color-system-warning-100";if(fa)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${J()}`]:oa||sa,[`fm-calendar__cell__button--selected-end ${J()}`]:na||da,[`fm-calendar__cell__button--selected-between ${J()}`]:ma||fa,[`fm-calendar__cell__button--selected ${J()}`]:ua||ia}},ta=e=>{const a=o.value;if(a[0].startDate&&!a[0].endDate||a[1].startDate&&!a[1].endDate){ue.value=e;return}ue.value=null},wa=e=>{de.value=e.label,o.value[0]={startDate:r(e.value.startDate,s),endDate:r(e.value.endDate,s)}},Ma=U(()=>_.value?!o.value.every(e=>e.startDate&&e.endDate):!(o.value[0].startDate&&o.value[0].endDate)),Ca=e=>{O.value="",_.value=e,o.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),Y=0},G=U(()=>{if(!n.value)return{startDate:"DD MM YYYY",endDate:"DD MM YYYY"};const e=_.value&&Array.isArray(n.value)?n.value[0].startDate:n.value.startDate,a=_.value&&Array.isArray(n.value)?n.value[0].endDate:n.value.endDate;return{startDate:e?r(e).format("D MMM YYYY"):"DD MM YYYY",endDate:a?r(a).format("D MMM YYYY"):"DD MM YYYY"}}),Ba=U(()=>{const e=_.value&&Array.isArray(n.value)?n.value[1].startDate:null,a=_.value&&Array.isArray(n.value)?n.value[1].endDate:null;return e&&a?`Compared: ${r(e).format("D MMM YYYY")} - ${r(a).format("D MMM YYYY")}`:""});return He(()=>n.value,()=>{var e,a;_.value?o.value=n.value.map(d=>({startDate:d!=null&&d.startDate?r(d.startDate,s):null,endDate:d!=null&&d.endDate?r(d.endDate,s):null})):o.value[0]={startDate:(e=n.value)!=null&&e.startDate?r(n.value.startDate,s):null,endDate:(a=n.value)!=null&&a.endDate?r(n.value.endDate,s):null}}),(e,a)=>(i(),Q($a,{modelValue:p(n),"onUpdate:modelValue":a[8]||(a[8]=d=>ve(n)?n.value=d:null),disabled:g.value,focused:v.value,"helper-state":e.helperState,"helper-text":_.value?Ba.value:e.helperText,rules:e.rules,tag:"div"},pe({default:y(({invalid:d})=>[c(Ta,{disabled:g.value,"show-popover":v.value,"z-index":w.zIndex,onPopoverChanged:a[7]||(a[7]=t=>v.value=t)},{"popover-button":y(()=>[e.$slots["trigger-button"]?B(e.$slots,"trigger-button",fe(ce({key:0},{opened:v.value,invalid:d,showValidBorder:e.showValidBorder,isComparing:_.value,disabled:g.value})),void 0,!0):(i(),f(x,{key:1},[e.compare?h("",!0):(i(),f("div",De,[u("label",_e,[u("div",{class:D([[g.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},b(w.startLabel),3),c(W,{class:D(g.value?"cursor-not-allowed":"cursor-pointer"),disabled:g.value,focused:v.value,"icon-outlined":!v.value,invalid:d,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month"},{prepend:y(()=>[B(e.$slots,"prepend",{},void 0,!0)]),append:y(()=>[B(e.$slots,"append",{},void 0,!0)]),default:y(()=>{var t;return[u("div",{class:D([[g.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},b((t=p(n))!=null&&t.startDate?p(r)(p(n).startDate).format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),he,u("label",ge,[u("div",{class:D([[g.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},b(w.endLabel),3),c(W,{class:D(g.value?"cursor-not-allowed":"cursor-pointer"),disabled:g.value,focused:v.value,"icon-outlined":!v.value,invalid:d,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month"},{prepend:y(()=>[B(e.$slots,"prepend",{},void 0,!0)]),append:y(()=>[B(e.$slots,"append",{},void 0,!0)]),default:y(()=>{var t;return[u("div",{class:D([[g.value?"text-fm-color-typo-disabled":G.value.startDate!=="DD MM YYYY"?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b((t=p(n))!=null&&t.endDate?p(r)(p(n).endDate).format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])])),e.compare?(i(),f("label",Ye,[c(ie,{label:e.compareLabel},null,8,["label"]),c(W,{class:D(g.value?"cursor-not-allowed":"cursor-pointer"),focused:v.value,invalid:d,"show-valid-border":e.showValidBorder},{prepend:y(()=>[B(e.$slots,"prepend",{},void 0,!0)]),append:y(()=>[B(e.$slots,"append",{},void 0,!0)]),default:y(()=>[u("div",{class:D([[g.value?"text-fm-color-typo-disabled":G.value.startDate!=="DD MM YYYY"?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b(G.value.startDate)+" - "+b(G.value.endDate),3)]),_:2},1032,["class","focused","invalid","show-valid-border"])])):h("",!0)],64))]),default:y(()=>[u("div",xe,[e.showPredefinedRange?(i(),f("div",ke,[(i(!0),f(x,null,V(e.predefinedRange,(t,m)=>(i(),Q(ha,{key:m,label:t.label,"model-value":de.value===t.label,selectable:"",onClick:l=>wa(t)},null,8,["label","model-value","onClick"]))),128)),e.compare&&e.predefinedRange?(i(),f("div",we,[c(Fa,{inset:""})])):h("",!0),e.compare?(i(),f(x,{key:1},[c(Na,{"model-value":_.value,class:"justify-between px-12",label:"Compare","onUpdate:modelValue":a[0]||(a[0]=t=>Ca(t))},null,8,["model-value"]),_.value?(i(),f(x,{key:0},V(z,(t,m)=>c(ha,{key:m,label:t.label,"model-value":O.value===t.id,sublabel:t.sublabel,selectable:"",onClick:l=>t.action()},null,8,["label","model-value","sublabel","onClick"])),64)):h("",!0)],64)):h("",!0)])):h("",!0),e.showPredefinedRange?(i(),f("div",Me)):h("",!0),u("div",{class:D({"pl-4":e.showPredefinedRange})},[u("div",Ce,[_.value?(i(),f("div",Be,[u("label",Ve,[c(ie,{label:"Custom"}),c(W,{focused:!1},{default:y(()=>{var t,m;return[u("div",{class:D([[(t=o.value[0])!=null&&t.startDate&&((m=o.value[0])!=null&&m.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b(o.value[0].startDate!==null?o.value[0].startDate.format("D MMM YYYY"):"DD MM YYYY")+" - "+b(o.value[0].endDate!==null?o.value[0].endDate.format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:1})]),Pe,u("label",Ae,[c(ie,{label:"Compare"}),c(W,{focused:!1},{default:y(()=>{var t,m;return[u("div",{class:D([[(t=o.value[1])!=null&&t.startDate&&((m=o.value[1])!=null&&m.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b(o.value[1].startDate!==null?o.value[1].startDate.format("D MMM YYYY"):"DD MM YYYY")+" - "+b(o.value[1].endDate!==null?o.value[1].endDate.format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:1})])])):h("",!0),u("div",Oe,[u("div",Se,[u("div",$e,[u("div",Le,[c(ba,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",onClick:a[1]||(a[1]=()=>I("left",T.value.subtract(1,"month")))}),c(K,{max:e.max,min:e.min,"model-value":T.value,picker:"month","onUpdate:modelValue":a[2]||(a[2]=t=>I("left",t))},null,8,["max","min","model-value"]),c(K,{max:e.max,min:e.min,"model-value":T.value,picker:"year","onUpdate:modelValue":a[3]||(a[3]=t=>I("left",t))},null,8,["max","min","model-value"])])]),u("div",null,[u("div",Re,[(i(!0),f(x,null,V(p(pa),t=>(i(),f("div",{key:t,class:"fm-calendar__cell"},b(t),1))),128))]),u("div",Te,[(i(!0),f(x,null,V(p(ya)(T.value),(t,m)=>(i(),f("div",{key:m,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(i(!0),f(x,null,V(t,l=>(i(),f("div",{key:l.date.date(),class:"fm-calendar__cell"},[l.date.isSame(p(R),"day")&&l.isCurrentMonth?(i(),f("div",ze)):h("",!0),l.isCurrentMonth?(i(),f("button",{key:1,class:D([[aa(l.date),{"fm-typo-en-body-lg-600":l.date.isSame(p(R),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>ea(l.date),onMouseover:C=>ta(l.date)},b(l.date.date()),43,Ie)):h("",!0)]))),128))]))),128))])])]),u("div",Ue,[u("div",Ee,[u("div",Fe,[c(K,{max:e.max,min:e.min,"model-value":E.value,picker:"month","onUpdate:modelValue":a[4]||(a[4]=t=>I("right",t))},null,8,["max","min","model-value"]),c(K,{max:e.max,min:e.min,"model-value":E.value,picker:"year","onUpdate:modelValue":a[5]||(a[5]=t=>I("right",t))},null,8,["max","min","model-value"])]),c(ba,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",onClick:a[6]||(a[6]=()=>I("left",T.value.add(1,"month")))})]),u("div",null,[u("div",je,[(i(!0),f(x,null,V(p(pa),t=>(i(),f("div",{key:t,class:"fm-calendar__cell"},b(t),1))),128))]),u("div",null,[(i(!0),f(x,null,V(p(ya)(E.value),(t,m)=>(i(),f("div",{key:m,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(i(!0),f(x,null,V(t,l=>(i(),f("div",{key:l.date.date(),class:"fm-calendar__cell"},[l.date.isSame(p(R),"day")&&l.isCurrentMonth?(i(),f("div",Ne)):h("",!0),l.isCurrentMonth?(i(),f("button",{key:1,class:D([[aa(l.date),{"fm-typo-en-body-lg-600":l.date.isSame(p(R),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>ea(l.date),onMouseover:C=>ta(l.date)},b(l.date.date()),43,We)):h("",!0)]))),128))]))),128))])])])])]),u("div",qe,[c(Da,{label:"Cancel",size:"md",variant:"tertiary",onClick:ka}),c(Da,{disabled:Ma.value,label:"Apply",size:"md",variant:"primary",onClick:xa},null,8,["disabled"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[e.$slots["helper-text"]?{name:"helper-text",fn:y(()=>[B(e.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),Ke=Ka(Je,[["__scopeId","data-v-a35b0ec8"]]),{defineComponent:Qe}=await N("vue"),{unref:A,normalizeProps:Z,guardReactiveProps:ee,renderSlot:ae,isRef:te,mergeProps:le,withCtx:re,createSlots:oe,openBlock:q,createBlock:se,createCommentVNode:ne,Fragment:Xe,createElementBlock:Ze}=await N("vue"),ga=Qe({__name:"FmDateRangePicker",props:{modelValue:{},startLabel:{default:"Start date"},endLabel:{default:"End date"},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:r().format(s),endDate:r().format(s)}},{label:"Yesterday",value:{startDate:r().subtract(1,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This week",value:{startDate:r().startOf("week").format(s),endDate:r().endOf("week").format(s)}},{label:"Last week",value:{startDate:r().subtract(1,"week").startOf("week").format(s),endDate:r().subtract(1,"week").endOf("week").format(s)}},{label:"Last 7 days",value:{startDate:r().subtract(7,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This month",value:{startDate:r().startOf("month").format(s),endDate:r().endOf("month").format(s)}},{label:"Last month",value:{startDate:r().subtract(1,"month").startOf("month").format(s),endDate:r().subtract(1,"month").endOf("month").format(s)}},{label:"This year",value:{startDate:r().startOf("year").format(s),endDate:r().endOf("year").format(s)}}]},compare:{type:Boolean,default:!1},compareLabel:{default:"Date"},min:{default:()=>r().subtract(50,"year").format(s)},max:{default:()=>r().add(25,"year").format(s)},zIndex:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(L){const z=L,{breakpoints:w}=Qa(),M=_a(z,"modelValue"),R=Ia(z);return(n,o)=>(q(),Ze(Xe,null,[A(w).md||A(w).lg?(q(),se(Ke,le({key:0},A(R),{modelValue:A(M),"onUpdate:modelValue":o[0]||(o[0]=v=>te(M)?M.value=v:null)}),oe({_:2},[n.$slots["trigger-button"]?{name:"trigger-button",fn:re(v=>[ae(n.$slots,"trigger-button",Z(ee(v)))]),key:"0"}:void 0]),1040,["modelValue"])):ne("",!0),A(w).xs||A(w).sm?(q(),se(Ga,le({key:1},A(R),{modelValue:A(M),"onUpdate:modelValue":o[1]||(o[1]=v=>te(M)?M.value=v:null)}),oe({_:2},[n.$slots["trigger-button"]?{name:"trigger-button",fn:re(v=>[ae(n.$slots,"trigger-button",Z(ee(v)))]),key:"0"}:void 0]),1040,["modelValue"])):ne("",!0)],64))}})});export{ga as _,Za as __tla};
1
+ import{importShared as N,__tla as Pa}from"./__federation_fn_import-DThBtRAV.js";import{d as r}from"./dayjs.min-DE2R3_3L.js";import{D as s,n as pa,g as ya}from"./helper-Dphf0qEj.js";import ba,{__tla as Aa}from"./__federation_expose_FmIcon-BKc-kUKB.js";import Da,{__tla as Oa}from"./__federation_expose_FmButton-B_sVEj_Q.js";import{u as _a,__tla as Sa}from"./useProxiedModel-DA9duj_S.js";import{_ as $a,__tla as La}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-DKU2Ql0w.js";import W,{__tla as Ra}from"./__federation_expose_FmField-C4U6qz8m.js";import{F as Ta,__tla as za}from"./FmPopover-BeLBRWG0.js";import{_ as K,u as Ia,__tla as Ua}from"./useInheritFormState-Cck9CmNw.js";import ha,{__tla as Ea}from"./__federation_expose_FmMenuItem-DFl_DdOJ.js";import{_ as Fa,__tla as ja}from"./FmMenuDivider.vue_vue_type_script_setup_true_lang-BXNEveuZ.js";import Na,{__tla as Wa}from"./__federation_expose_FmSwitch-CmgsT_mG.js";import{_ as ie,__tla as qa}from"./FmLabel.vue_vue_type_script_setup_true_lang-CWZsudf4.js";import Ga,{C as S,__tla as Ha}from"./__federation_expose_FmDateRangePickerMobile-DU-yjyf1.js";import{i as k}from"./helpers-D8-zcjH0.js";import{F as Ja}from"./provider-keys-nUDvvk3o.js";import{_ as Ka}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{u as Qa,__tla as Xa}from"./useBreakpoints-DqA4Z0bX.js";let ga,Za=Promise.all([(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Xa}catch{}})()]).then(async()=>{let me,p,fe,Ya,B,ce,h,b,D,u,y,c,i,f,x,V,Q,ve,pe,ye,be,X,De,_e,he,ge,Ye,xe,ke,we,Me,Ce,Be,Ve,Pe,Ae,Oe,Se,$e,Le,Re,Te,ze,Ie,Ue,Ee,Fe,je,Ne,We,qe,U,Ge,P,He,Je,Ke,Qe,A,Z,ee,ae,te,le,re,oe,q,se,ne,Xe,Ze;({defineComponent:me}=await N("vue")),{unref:p,normalizeProps:fe,guardReactiveProps:Ya,renderSlot:B,mergeProps:ce,createCommentVNode:h,toDisplayString:b,normalizeClass:D,createElementVNode:u,withCtx:y,createVNode:c,openBlock:i,createElementBlock:f,Fragment:x,renderList:V,createBlock:Q,isRef:ve,createSlots:pe,pushScopeId:ye,popScopeId:be}=await N("vue"),X=L=>(ye("data-v-a35b0ec8"),L=L(),be(),L),De={key:0,class:"flex gap-4 items-center relative w-full"},_e={class:"flex flex-col gap-4 w-full"},he=X(()=>u("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1)),ge={class:"flex flex-col gap-4 w-full"},Ye={key:1,class:"flex flex-col gap-4 w-full"},xe={class:"flex gap-4 p-12"},ke={key:0,class:"max-h-[549px] overflow-y-auto w-[171px]"},we={key:0,class:"px-8"},Me={key:1,class:"-my-12 border-fm-color-neutral-gray-100 border-l shrink-0"},Ce={class:"flex flex-col gap-24"},Be={key:0,class:"flex gap-4 items-center px-12 w-full"},Ve={class:"flex flex-col gap-4 w-full"},Pe=X(()=>u("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," - ",-1)),Ae={class:"flex flex-col gap-4 w-full"},Oe={class:"flex gap-24"},Se={class:"w-max"},$e={class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},Le={class:"flex gap-4 items-center"},Re={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Te={class:"h-[288px]"},ze={key:0,class:"fm-calendar__cell__button--today"},Ie=["onClick","onMouseover"],Ue={class:"w-max"},Ee={class:"flex gap-16 h-10 items-center justify-end px-4 py-8"},Fe={class:"flex gap-4 items-center"},je={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Ne={key:0,class:"fm-calendar__cell__button--today"},We=["onClick","onMouseover"],qe={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},{computed:U,inject:Ge,ref:P,watch:He}=await N("vue"),Je=me({__name:"FmDateRangePickerDesktop",props:{modelValue:{},startLabel:{default:"Start date"},endLabel:{default:"End date"},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:r().format(s),endDate:r().format(s)}},{label:"Yesterday",value:{startDate:r().subtract(1,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This week",value:{startDate:r().startOf("week").format(s),endDate:r().endOf("week").format(s)}},{label:"Last week",value:{startDate:r().subtract(1,"week").startOf("week").format(s),endDate:r().subtract(1,"week").endOf("week").format(s)}},{label:"Last 7 days",value:{startDate:r().subtract(7,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This month",value:{startDate:r().startOf("month").format(s),endDate:r().endOf("month").format(s)}},{label:"Last month",value:{startDate:r().subtract(1,"month").startOf("month").format(s),endDate:r().subtract(1,"month").endOf("month").format(s)}},{label:"This year",value:{startDate:r().startOf("year").format(s),endDate:r().endOf("year").format(s)}}]},compare:{type:Boolean,default:!1},compareLabel:{default:"Date"},min:{default:()=>r().subtract(50,"year").format(s)},max:{default:()=>r().add(25,"year").format(s)},zIndex:{default:void 0},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(L){var la,ra;const z=[{id:S.PrecedingPeriod,label:"Preceding period",sublabel:"",action:()=>{O.value=S.PrecedingPeriod;const e=o.value;if(e[0].startDate&&e[0].endDate){const a=e[0].startDate.diff(e[0].endDate,"day");e[1]={startDate:e[0].startDate.subtract(+(1-a),"day"),endDate:e[0].startDate.subtract(1,"day")}}}},{id:S.PrecedingWeek,label:"Preceding period",sublabel:"Match day of week",action:()=>{O.value=S.PrecedingWeek;const e=o.value;if(e[0].startDate&&e[0].endDate){let a=e[0].endDate.diff(e[0].startDate,"week");a===0&&(a+=1),e[1]={startDate:e[0].startDate.subtract(a,"week"),endDate:e[0].endDate.subtract(a,"week")}}}},{id:S.PrecedingMonth,label:"Preceding period",sublabel:"Match day of month",action:()=>{O.value=S.PrecedingMonth;const e=o.value;if(e[0].startDate&&e[0].endDate){let a=e[0].endDate.diff(e[0].startDate,"month");a===0&&(a+=1),e[1]={startDate:e[0].startDate.subtract(a,"month"),endDate:e[0].endDate.subtract(a,"month")}}}},{id:S.Custom,label:"Custom",sublabel:"",action:()=>{O.value=S.Custom}}],w=L,M=Ge(Ja,null),R=r(),n=_a(w,"modelValue"),o=P([{startDate:(la=n.value)!=null&&la.startDate?r(n.value.startDate,s):null,endDate:(ra=n.value)!=null&&ra.endDate?r(n.value.endDate,s):null},{startDate:null,endDate:null}]),v=P(!1),g=U(()=>w.disabled??(M==null?void 0:M.getDisabled())??!1),_=P(!1),O=P(""),T=P(r().startOf("month")),E=P(r().startOf("month").add(1,"month")),de=P(""),ue=P(null);let Y=0;const ea=e=>{var a;if(de.value="",o.value[Y].startDate&&o.value[Y].endDate){Y===1&&(o.value=o.value.map(()=>({startDate:null,endDate:null})),Y=0),o.value[0]={startDate:e,endDate:null};return}else if(!o.value[Y].startDate&&!o.value[Y].endDate)o.value[Y].startDate=e;else{if(e.isBefore(o.value[Y].startDate)){const d=o.value[Y].startDate;o.value[Y]={startDate:e,endDate:d}}else o.value[Y].endDate=e;_.value&&(Y=1),z.find(d=>d.id===O.value)||(O.value=S.Custom)}(a=z.find(d=>d.id===O.value))==null||a.action()},xa=()=>{_.value?n.value=o.value.map(e=>({startDate:e.startDate.format(s),endDate:e.endDate.format(s)})):n.value={startDate:o.value[0].startDate.format(s),endDate:o.value[0].endDate.format(s)},setTimeout(()=>{v.value=!1})},ka=()=>{var e,a;Array.isArray(n.value)?o.value=n.value:o.value[0]={startDate:(e=n.value)!=null&&e.startDate?r(n.value.startDate,s):null,endDate:(a=n.value)!=null&&a.endDate?r(n.value.endDate,s):null},v.value=!1},I=(e,a)=>{e==="left"?(T.value=a,E.value=a.add(1,"month")):e==="right"&&(E.value=a,T.value=a.subtract(1,"month"))},aa=e=>{const a=o.value[0].startDate,d=o.value[0].endDate,t=o.value[1].startDate,m=o.value[1].endDate,l=ue.value,C=a==null?void 0:a.isSame(e),F=d==null?void 0:d.isSame(e),$=t==null?void 0:t.isSame(e),j=m==null?void 0:m.isSame(e),H=l==null?void 0:l.isSame(e),oa=C&&d&&!(C&&F)||a&&!d&&C&&(l==null?void 0:l.isAfter(a))||a&&!d&&H&&(l==null?void 0:l.isBefore(a)),sa=$&&m&&!($&&j)||t&&!m&&$&&(l==null?void 0:l.isAfter(t))||t&&!m&&H&&(l==null?void 0:l.isBefore(t)),na=F&&a&&!(C&&F)||a&&!d&&C&&(l==null?void 0:l.isBefore(a))||a&&!d&&H&&(l==null?void 0:l.isAfter(a)),da=j&&t&&!($&&j)||t&&!m&&$&&(l==null?void 0:l.isBefore(t))||t&&!m&&H&&(l==null?void 0:l.isAfter(t)),ua=C&&F||C&&!d,ia=$&&j||$&&!m,ma=a&&(d||l)&&d?e.isAfter(a)&&e.isBefore(d):e.isAfter(l)&&e.isBefore(a)||e.isBefore(l)&&e.isAfter(a),fa=t&&(m||l)&&m?e.isAfter(t)&&e.isBefore(m):e.isAfter(l)&&e.isBefore(t)||e.isBefore(l)&&e.isAfter(t),J=()=>{if(o.value.filter(ca=>{var va;for(const Va in ca)if((va=ca[Va])!=null&&va.isSame(e,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(C&&F&&(k(e,t,m)||k(e,t,l)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if($&&j&&(k(e,a,d)||k(e,a,l)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(oa||na)return k(e,t,m)||k(e,t,l)?"bg-fm-color-primary before:bg-fm-color-system-success-100 after:bg-fm-color-system-info-100":"bg-fm-color-primary before:bg-fm-color-system-warning-100";if(sa||da)return k(e,a,d)||k(e,a,l)?"bg-fm-color-system-info-300 before:bg-fm-color-system-success-100 after:bg-fm-color-system-warning-100":"bg-fm-color-system-info-300 before:bg-fm-color-system-info-100";if(ua)return"bg-fm-color-primary";if(ia)return"bg-fm-color-system-info-300";if(k(e,a,d)&&(k(e,t,m)||k(e,t,l)))return"bg-fm-color-system-success-100";if(ma)return"bg-fm-color-system-warning-100";if(fa)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${J()}`]:oa||sa,[`fm-calendar__cell__button--selected-end ${J()}`]:na||da,[`fm-calendar__cell__button--selected-between ${J()}`]:ma||fa,[`fm-calendar__cell__button--selected ${J()}`]:ua||ia}},ta=e=>{const a=o.value;if(a[0].startDate&&!a[0].endDate||a[1].startDate&&!a[1].endDate){ue.value=e;return}ue.value=null},wa=e=>{de.value=e.label,o.value[0]={startDate:r(e.value.startDate,s),endDate:r(e.value.endDate,s)}},Ma=U(()=>_.value?!o.value.every(e=>e.startDate&&e.endDate):!(o.value[0].startDate&&o.value[0].endDate)),Ca=e=>{O.value="",_.value=e,o.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),Y=0},G=U(()=>{if(!n.value)return{startDate:"DD MM YYYY",endDate:"DD MM YYYY"};const e=_.value&&Array.isArray(n.value)?n.value[0].startDate:n.value.startDate,a=_.value&&Array.isArray(n.value)?n.value[0].endDate:n.value.endDate;return{startDate:e?r(e).format("D MMM YYYY"):"DD MM YYYY",endDate:a?r(a).format("D MMM YYYY"):"DD MM YYYY"}}),Ba=U(()=>{const e=_.value&&Array.isArray(n.value)?n.value[1].startDate:null,a=_.value&&Array.isArray(n.value)?n.value[1].endDate:null;return e&&a?`Compared: ${r(e).format("D MMM YYYY")} - ${r(a).format("D MMM YYYY")}`:""});return He(()=>n.value,()=>{var e,a;_.value?o.value=n.value.map(d=>({startDate:d!=null&&d.startDate?r(d.startDate,s):null,endDate:d!=null&&d.endDate?r(d.endDate,s):null})):o.value[0]={startDate:(e=n.value)!=null&&e.startDate?r(n.value.startDate,s):null,endDate:(a=n.value)!=null&&a.endDate?r(n.value.endDate,s):null}}),(e,a)=>(i(),Q($a,{modelValue:p(n),"onUpdate:modelValue":a[8]||(a[8]=d=>ve(n)?n.value=d:null),disabled:g.value,focused:v.value,"helper-state":e.helperState,"helper-text":_.value?Ba.value:e.helperText,rules:e.rules,tag:"div"},pe({default:y(({invalid:d})=>[c(Ta,{disabled:g.value,"show-popover":v.value,"z-index":w.zIndex,onPopoverChanged:a[7]||(a[7]=t=>v.value=t)},{"popover-button":y(()=>[e.$slots["trigger-button"]?B(e.$slots,"trigger-button",fe(ce({key:0},{opened:v.value,invalid:d,showValidBorder:e.showValidBorder,isComparing:_.value,disabled:g.value})),void 0,!0):(i(),f(x,{key:1},[e.compare?h("",!0):(i(),f("div",De,[u("label",_e,[u("div",{class:D([[g.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},b(w.startLabel),3),c(W,{class:D(g.value?"cursor-not-allowed":"cursor-pointer"),disabled:g.value,focused:v.value,"icon-outlined":!v.value,invalid:d,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month"},{prepend:y(()=>[B(e.$slots,"prepend",{},void 0,!0)]),append:y(()=>[B(e.$slots,"append",{},void 0,!0)]),default:y(()=>{var t;return[u("div",{class:D([[g.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},b((t=p(n))!=null&&t.startDate?p(r)(p(n).startDate).format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),he,u("label",ge,[u("div",{class:D([[g.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},b(w.endLabel),3),c(W,{class:D(g.value?"cursor-not-allowed":"cursor-pointer"),disabled:g.value,focused:v.value,"icon-outlined":!v.value,invalid:d,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month"},{prepend:y(()=>[B(e.$slots,"prepend",{},void 0,!0)]),append:y(()=>[B(e.$slots,"append",{},void 0,!0)]),default:y(()=>{var t;return[u("div",{class:D([[g.value?"text-fm-color-typo-disabled":G.value.startDate!=="DD MM YYYY"?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b((t=p(n))!=null&&t.endDate?p(r)(p(n).endDate).format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])])),e.compare?(i(),f("label",Ye,[c(ie,{label:e.compareLabel},null,8,["label"]),c(W,{class:D(g.value?"cursor-not-allowed":"cursor-pointer"),focused:v.value,invalid:d,"show-valid-border":e.showValidBorder},{prepend:y(()=>[B(e.$slots,"prepend",{},void 0,!0)]),append:y(()=>[B(e.$slots,"append",{},void 0,!0)]),default:y(()=>[u("div",{class:D([[g.value?"text-fm-color-typo-disabled":G.value.startDate!=="DD MM YYYY"?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b(G.value.startDate)+" - "+b(G.value.endDate),3)]),_:2},1032,["class","focused","invalid","show-valid-border"])])):h("",!0)],64))]),default:y(()=>[u("div",xe,[e.showPredefinedRange?(i(),f("div",ke,[(i(!0),f(x,null,V(e.predefinedRange,(t,m)=>(i(),Q(ha,{key:m,label:t.label,"model-value":de.value===t.label,selectable:"",onClick:l=>wa(t)},null,8,["label","model-value","onClick"]))),128)),e.compare&&e.predefinedRange?(i(),f("div",we,[c(Fa,{inset:""})])):h("",!0),e.compare?(i(),f(x,{key:1},[c(Na,{"model-value":_.value,class:"justify-between px-12",label:"Compare","onUpdate:modelValue":a[0]||(a[0]=t=>Ca(t))},null,8,["model-value"]),_.value?(i(),f(x,{key:0},V(z,(t,m)=>c(ha,{key:m,label:t.label,"model-value":O.value===t.id,sublabel:t.sublabel,selectable:"",onClick:l=>t.action()},null,8,["label","model-value","sublabel","onClick"])),64)):h("",!0)],64)):h("",!0)])):h("",!0),e.showPredefinedRange?(i(),f("div",Me)):h("",!0),u("div",{class:D({"pl-4":e.showPredefinedRange})},[u("div",Ce,[_.value?(i(),f("div",Be,[u("label",Ve,[c(ie,{label:"Custom"}),c(W,{focused:!1},{default:y(()=>{var t,m;return[u("div",{class:D([[(t=o.value[0])!=null&&t.startDate&&((m=o.value[0])!=null&&m.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b(o.value[0].startDate!==null?o.value[0].startDate.format("D MMM YYYY"):"DD MM YYYY")+" - "+b(o.value[0].endDate!==null?o.value[0].endDate.format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:1})]),Pe,u("label",Ae,[c(ie,{label:"Compare"}),c(W,{focused:!1},{default:y(()=>{var t,m;return[u("div",{class:D([[(t=o.value[1])!=null&&t.startDate&&((m=o.value[1])!=null&&m.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},b(o.value[1].startDate!==null?o.value[1].startDate.format("D MMM YYYY"):"DD MM YYYY")+" - "+b(o.value[1].endDate!==null?o.value[1].endDate.format("D MMM YYYY"):"DD MM YYYY"),3)]}),_:1})])])):h("",!0),u("div",Oe,[u("div",Se,[u("div",$e,[u("div",Le,[c(ba,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",onClick:a[1]||(a[1]=()=>I("left",T.value.subtract(1,"month")))}),c(K,{max:e.max,min:e.min,"model-value":T.value,picker:"month","onUpdate:modelValue":a[2]||(a[2]=t=>I("left",t))},null,8,["max","min","model-value"]),c(K,{max:e.max,min:e.min,"model-value":T.value,picker:"year","onUpdate:modelValue":a[3]||(a[3]=t=>I("left",t))},null,8,["max","min","model-value"])])]),u("div",null,[u("div",Re,[(i(!0),f(x,null,V(p(pa),t=>(i(),f("div",{key:t,class:"fm-calendar__cell"},b(t),1))),128))]),u("div",Te,[(i(!0),f(x,null,V(p(ya)(T.value),(t,m)=>(i(),f("div",{key:m,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(i(!0),f(x,null,V(t,l=>(i(),f("div",{key:l.date.date(),class:"fm-calendar__cell"},[l.date.isSame(p(R),"day")&&l.isCurrentMonth?(i(),f("div",ze)):h("",!0),l.isCurrentMonth?(i(),f("button",{key:1,class:D([[aa(l.date),{"fm-typo-en-body-lg-600":l.date.isSame(p(R),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>ea(l.date),onMouseover:C=>ta(l.date)},b(l.date.date()),43,Ie)):h("",!0)]))),128))]))),128))])])]),u("div",Ue,[u("div",Ee,[u("div",Fe,[c(K,{max:e.max,min:e.min,"model-value":E.value,picker:"month","onUpdate:modelValue":a[4]||(a[4]=t=>I("right",t))},null,8,["max","min","model-value"]),c(K,{max:e.max,min:e.min,"model-value":E.value,picker:"year","onUpdate:modelValue":a[5]||(a[5]=t=>I("right",t))},null,8,["max","min","model-value"])]),c(ba,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",onClick:a[6]||(a[6]=()=>I("left",T.value.add(1,"month")))})]),u("div",null,[u("div",je,[(i(!0),f(x,null,V(p(pa),t=>(i(),f("div",{key:t,class:"fm-calendar__cell"},b(t),1))),128))]),u("div",null,[(i(!0),f(x,null,V(p(ya)(E.value),(t,m)=>(i(),f("div",{key:m,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(i(!0),f(x,null,V(t,l=>(i(),f("div",{key:l.date.date(),class:"fm-calendar__cell"},[l.date.isSame(p(R),"day")&&l.isCurrentMonth?(i(),f("div",Ne)):h("",!0),l.isCurrentMonth?(i(),f("button",{key:1,class:D([[aa(l.date),{"fm-typo-en-body-lg-600":l.date.isSame(p(R),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>ea(l.date),onMouseover:C=>ta(l.date)},b(l.date.date()),43,We)):h("",!0)]))),128))]))),128))])])])])]),u("div",qe,[c(Da,{label:"Cancel",size:"md",variant:"tertiary",onClick:ka}),c(Da,{disabled:Ma.value,label:"Apply",size:"md",variant:"primary",onClick:xa},null,8,["disabled"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[e.$slots["helper-text"]?{name:"helper-text",fn:y(()=>[B(e.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),Ke=Ka(Je,[["__scopeId","data-v-a35b0ec8"]]),{defineComponent:Qe}=await N("vue"),{unref:A,normalizeProps:Z,guardReactiveProps:ee,renderSlot:ae,isRef:te,mergeProps:le,withCtx:re,createSlots:oe,openBlock:q,createBlock:se,createCommentVNode:ne,Fragment:Xe,createElementBlock:Ze}=await N("vue"),ga=Qe({__name:"FmDateRangePicker",props:{modelValue:{},startLabel:{default:"Start date"},endLabel:{default:"End date"},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:r().format(s),endDate:r().format(s)}},{label:"Yesterday",value:{startDate:r().subtract(1,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This week",value:{startDate:r().startOf("week").format(s),endDate:r().endOf("week").format(s)}},{label:"Last week",value:{startDate:r().subtract(1,"week").startOf("week").format(s),endDate:r().subtract(1,"week").endOf("week").format(s)}},{label:"Last 7 days",value:{startDate:r().subtract(7,"day").format(s),endDate:r().subtract(1,"day").format(s)}},{label:"This month",value:{startDate:r().startOf("month").format(s),endDate:r().endOf("month").format(s)}},{label:"Last month",value:{startDate:r().subtract(1,"month").startOf("month").format(s),endDate:r().subtract(1,"month").endOf("month").format(s)}},{label:"This year",value:{startDate:r().startOf("year").format(s),endDate:r().endOf("year").format(s)}}]},compare:{type:Boolean,default:!1},compareLabel:{default:"Date"},min:{default:()=>r().subtract(50,"year").format(s)},max:{default:()=>r().add(25,"year").format(s)},zIndex:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(L){const z=L,{breakpoints:w}=Qa(),M=_a(z,"modelValue"),R=Ia(z);return(n,o)=>(q(),Ze(Xe,null,[A(w).md||A(w).lg?(q(),se(Ke,le({key:0},A(R),{modelValue:A(M),"onUpdate:modelValue":o[0]||(o[0]=v=>te(M)?M.value=v:null)}),oe({_:2},[n.$slots["trigger-button"]?{name:"trigger-button",fn:re(v=>[ae(n.$slots,"trigger-button",Z(ee(v)))]),key:"0"}:void 0]),1040,["modelValue"])):ne("",!0),A(w).xs||A(w).sm?(q(),se(Ga,le({key:1},A(R),{modelValue:A(M),"onUpdate:modelValue":o[1]||(o[1]=v=>te(M)?M.value=v:null)}),oe({_:2},[n.$slots["trigger-button"]?{name:"trigger-button",fn:re(v=>[ae(n.$slots,"trigger-button",Z(ee(v)))]),key:"0"}:void 0]),1040,["modelValue"])):ne("",!0)],64))}})});export{ga as _,Za as __tla};