@feedmepos/ui-library 1.1.18 → 1.1.20

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 (62) hide show
  1. package/dist/CHANGELOG.md +44 -24
  2. package/dist/components/avatar/FmAvatar.vue.d.ts +15 -2
  3. package/dist/components/form/text-field/FmTextField.vue.d.ts +2 -2
  4. package/dist/components/menu/menu-component/FmMenu.vue.d.ts +2 -0
  5. package/dist/components/tooltip/FmTooltip.vue.d.ts +10 -0
  6. package/dist/components.d.ts +182 -7
  7. package/dist/federation/{FmAvatar.vue_vue_type_script_setup_true_lang-CHzAQ9YF.js → FmAvatar.vue_vue_type_script_setup_true_lang-BY0xxm5e.js} +1 -1
  8. package/dist/federation/{FmDatePicker.vue_vue_type_script_setup_true_lang-Biq97xrE.js → FmDatePicker.vue_vue_type_script_setup_true_lang-DWy5lrL4.js} +1 -1
  9. package/dist/federation/{FmDateRangePicker.vue_vue_type_script_setup_true_lang-C93Wk-xv.js → FmDateRangePicker.vue_vue_type_script_setup_true_lang-BKBLFgkC.js} +1 -1
  10. package/dist/federation/FmDialog.vue_vue_type_script_setup_true_lang-CkH0ZE0q.js +1 -0
  11. package/dist/federation/{FmFormGroup.vue_vue_type_script_setup_true_lang-FBCowEhC.js → FmFormGroup.vue_vue_type_script_setup_true_lang-DhAEpcUT.js} +1 -1
  12. package/dist/federation/{FmGlobalSearch.vue_vue_type_script_setup_true_lang-CnLTHqnq.js → FmGlobalSearch.vue_vue_type_script_setup_true_lang-2oFm5iPX.js} +1 -1
  13. package/dist/federation/{FmLabel.vue_vue_type_script_setup_true_lang-Vq-1WSGW.js → FmLabel.vue_vue_type_script_setup_true_lang-sMIW9VLt.js} +1 -1
  14. package/dist/federation/{FmPageHead.vue_vue_type_script_setup_true_lang-Dip7Os-W.js → FmPageHead.vue_vue_type_script_setup_true_lang-BMrtlUCr.js} +1 -1
  15. package/dist/federation/{FmPhoneNumber.vue_vue_type_script_setup_true_lang-DhSvFNQy.js → FmPhoneNumber.vue_vue_type_script_setup_true_lang-CLsImjZb.js} +1 -1
  16. package/dist/federation/{FmPopover-DTigUQFX.js → FmPopover-Do-USmJ9.js} +1 -1
  17. package/dist/federation/{FmRadioGroup.vue_vue_type_script_setup_true_lang-C4YTV30C.js → FmRadioGroup.vue_vue_type_script_setup_true_lang-Cd9u81fp.js} +1 -1
  18. package/dist/federation/{FmSearch.vue_vue_type_script_setup_true_lang-BJUgwEF_.js → FmSearch.vue_vue_type_script_setup_true_lang-BcQ9Gbp5.js} +1 -1
  19. package/dist/federation/{FmTable.vue_vue_type_script_setup_true_lang-BCqbk65c.js → FmTable.vue_vue_type_script_setup_true_lang-7McIiOJR.js} +1 -1
  20. package/dist/federation/{FmTabs.vue_vue_type_script_setup_true_lang-CesM73Tn.js → FmTabs.vue_vue_type_script_setup_true_lang-CJAijXd0.js} +1 -1
  21. package/dist/federation/{FmTextField.vue_vue_type_style_index_0_lang-V4W4cRw0.js → FmTextField.vue_vue_type_style_index_0_lang-CvU6DwNY.js} +1 -1
  22. package/dist/federation/{FmTimePicker.vue_vue_type_script_setup_true_lang-Dc1KOD4d.js → FmTimePicker.vue_vue_type_script_setup_true_lang-BmXHQ7Zs.js} +1 -1
  23. package/dist/federation/{FmTimeRangePicker.vue_vue_type_script_setup_true_lang-BFXQcUMa.js → FmTimeRangePicker.vue_vue_type_script_setup_true_lang-D-JuJhHG.js} +1 -1
  24. package/dist/federation/FmTooltip.vue_vue_type_script_setup_true_lang-DTbMQKoY.js +1 -0
  25. package/dist/federation/{__federation_expose_FmAvatar-Dll-Jwx4.js → __federation_expose_FmAvatar--CFoYIXF.js} +1 -1
  26. package/dist/federation/{__federation_expose_FmDatePicker-2FRaf-qd.js → __federation_expose_FmDatePicker-H_W7z6TK.js} +1 -1
  27. package/dist/federation/{__federation_expose_FmDatePickerMobile-C5LReVmH.js → __federation_expose_FmDatePickerMobile-BM7QhbvX.js} +1 -1
  28. package/dist/federation/{__federation_expose_FmDateRangePicker-BABgRdUR.js → __federation_expose_FmDateRangePicker-B-fMtlTp.js} +1 -1
  29. package/dist/federation/{__federation_expose_FmDateRangePickerMobile-CRLQNBSC.js → __federation_expose_FmDateRangePickerMobile-WMoPHOP_.js} +1 -1
  30. package/dist/federation/{__federation_expose_FmDialog-xXC_HnwJ.js → __federation_expose_FmDialog-B21ZOG2x.js} +1 -1
  31. package/dist/federation/{__federation_expose_FmFormGroup-j7OZMtKG.js → __federation_expose_FmFormGroup-LM7dsrkY.js} +1 -1
  32. package/dist/federation/{__federation_expose_FmGlobalSearch-lBDASC7Y.js → __federation_expose_FmGlobalSearch-BI5zA2nH.js} +1 -1
  33. package/dist/federation/{__federation_expose_FmLabel-2PU56FCx.js → __federation_expose_FmLabel-DKJ6EjZr.js} +1 -1
  34. package/dist/federation/{__federation_expose_FmMenu-CvSrWynl.css → __federation_expose_FmMenu-BH_ktwVS.css} +1 -1
  35. package/dist/federation/__federation_expose_FmMenu-XrcUZO72.js +1 -0
  36. package/dist/federation/{__federation_expose_FmPageHead-ByAU1t-_.js → __federation_expose_FmPageHead-iJfHLNHR.js} +1 -1
  37. package/dist/federation/{__federation_expose_FmPhoneNumber-CxMyG965.js → __federation_expose_FmPhoneNumber-Df79nr_0.js} +1 -1
  38. package/dist/federation/{__federation_expose_FmRadioGroup-DHxaKSqh.js → __federation_expose_FmRadioGroup-WsLaJHof.js} +1 -1
  39. package/dist/federation/{__federation_expose_FmSearch-pxMuKiCB.js → __federation_expose_FmSearch-CXla99Ft.js} +1 -1
  40. package/dist/federation/{__federation_expose_FmSelect-D8bMPkKm.js → __federation_expose_FmSelect-DMHpyujH.js} +1 -1
  41. package/dist/federation/{__federation_expose_FmStepperField-DywZn5xT.js → __federation_expose_FmStepperField-BIorWXET.js} +1 -1
  42. package/dist/federation/{__federation_expose_FmTab-Bp7gbbSc.js → __federation_expose_FmTab-hD2n6fuA.js} +1 -1
  43. package/dist/federation/{__federation_expose_FmTable-X9B0xCbm.js → __federation_expose_FmTable-DQi3ryxM.js} +1 -1
  44. package/dist/federation/{__federation_expose_FmTabs-gG30lLzg.js → __federation_expose_FmTabs-Bk1A1VZp.js} +1 -1
  45. package/dist/federation/{__federation_expose_FmTextField-BndtVOKp.js → __federation_expose_FmTextField-BaVmowhl.js} +1 -1
  46. package/dist/federation/{__federation_expose_FmTextarea-WluQKFkb.js → __federation_expose_FmTextarea-DBW8j3bW.js} +1 -1
  47. package/dist/federation/{__federation_expose_FmTimePicker-D3BbD6r3.js → __federation_expose_FmTimePicker-xnUMNTcG.js} +1 -1
  48. package/dist/federation/{__federation_expose_FmTimeRangePicker-CgXtHy_S.js → __federation_expose_FmTimeRangePicker-CfrRT3ur.js} +1 -1
  49. package/dist/federation/{__federation_expose_FmTooltip-f42mL4o3.js → __federation_expose_FmTooltip-DQOjBEzE.js} +1 -1
  50. package/dist/federation/feedmepos-ui-components.js +1 -1
  51. package/dist/federation/{index-CoP6TxX6.js → index-BU52EZwy.js} +90 -90
  52. package/dist/federation/index-DDLRFpFT.css +1 -0
  53. package/dist/federation/{useInheritFormState-BgpBLhvp.js → useInheritFormState-BS3s39k4.js} +1 -1
  54. package/dist/feedmepos-ui-library.js +1777 -1773
  55. package/dist/feedmepos-ui-library.umd.cjs +73 -73
  56. package/dist/global-components.d.ts +1 -0
  57. package/dist/style.css +1 -1
  58. package/package.json +1 -1
  59. package/dist/federation/FmDialog.vue_vue_type_script_setup_true_lang-CanhbrVN.js +0 -1
  60. package/dist/federation/FmTooltip.vue_vue_type_script_setup_true_lang-BfavF-Eg.js +0 -1
  61. package/dist/federation/__federation_expose_FmMenu-CnlHIVAr.js +0 -1
  62. package/dist/federation/index-DjDZsjW6.css +0 -1
package/dist/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@
6
6
  - Separate font styles by locale
7
7
  - Redesign the font system
8
8
 
9
+ ## 1.1.20 - 2024-05-23
10
+
11
+ ### Feature
12
+
13
+ - `FmTextField`
14
+ - Support `password` input mode
15
+ - `FmMenu`
16
+ - Support `offset` prop to adjust the position of the menu
17
+ - `FmTooltip`
18
+ - Support `zIndex` prop to adjust the z-index of the tooltip
19
+ - `FmDialog`
20
+ - Hide `dialog-button` when the slot is `undefined`
21
+
22
+ ## 1.1.19 - 2024-05-22
23
+
24
+ ### Feature
25
+
26
+ - `FmPopover`
27
+ - Export `FmPopover` component
28
+
9
29
  ## 1.1.18 - 2024-05-21
10
30
 
11
31
  - `FmAvatar`
@@ -28,7 +48,7 @@
28
48
  ## Bug fixes
29
49
 
30
50
  - `Calendar`
31
- - Fixed the issue that Calendar related component doesn't refer the disable status from fromProvider
51
+ - Fixed the issue that Calendar related component doesn't refer the `disable` status from fromProvider
32
52
 
33
53
  ## 1.1.15 - 2024-05-11
34
54
 
@@ -38,7 +58,7 @@
38
58
  - Set the default size to `md`
39
59
  - If the button is just an icon, make it square
40
60
  - `ToolTip`
41
- - Now tooltip supported touch devices
61
+ - Now tooltip supports touch devices
42
62
 
43
63
  ## 1.1.14 - 2024-05-10
44
64
 
@@ -71,12 +91,12 @@
71
91
  ### Feature
72
92
 
73
93
  - `FmTable`
74
- - Add prop `forceMobileFooter` for Allow user to force the table footer persist on mobile layout
94
+ - Add prop `forceMobileFooter` for Allow user to force the table footer to persist on mobile layout
75
95
 
76
96
  ### Bug fixes
77
97
 
78
98
  - `FmStepperField`
79
- - Fix the issue that the stepper field will not be disabled when it be set to disabled
99
+ - Fix the issue that the stepper field will not be disabled when it is set to disabled
80
100
 
81
101
  ## 1.1.10 - 2024-05-08
82
102
 
@@ -85,7 +105,7 @@
85
105
  - `FmSimpleCalendar`
86
106
  - Now it will forward the calendar to the endDate of the month when the user uses quick select
87
107
  - `FmTable`
88
- - Allow user assign className for row
108
+ - Allow user to assign className for row
89
109
 
90
110
  ## 1.1.9 - 2024-05-06
91
111
 
@@ -94,7 +114,7 @@
94
114
  - `FmChip`
95
115
  - Now support right side icon
96
116
  - `FmSimpleCalendar`
97
- - revert value when calendar close that due to user click outside
117
+ - revert value when the calendar closes that due to user click outside
98
118
  - Allow user to specify the default compare type
99
119
 
100
120
  ## 1.1.6
@@ -103,16 +123,16 @@
103
123
 
104
124
  - `FmTable`
105
125
  - `shrink-at` accept false as a value to prevent the table from shrinking in any breakpoint
106
- - adjust the footer to display well on mobile where the table are not allowed to shrink.
126
+ - adjust the footer to display well on mobile where the table is not allowed to shrink.
107
127
  - `FmPopover`/`FmOverlay` related components
108
128
  - Add `zIndex` prop to allow user to customize the z-index of the overlay
109
129
  - `FmSimpleDatePicker`/`FmSimpleDateRangePicker`
110
130
  - New component for handling date comparison separately.
111
131
  - `FmSelect`
112
- - Now select item accepts sublabel
132
+ - Now select item accepts `sublabel`
113
133
  - `FmSwitch`
114
134
  - Remove `min-height`
115
- - Update sublabel color
135
+ - Update `sublabel` color
116
136
  - `FmBar`/`FmLine`
117
137
  - Add `hideXAxis`/`hideYAxis`/`hideLegend` props to hide the axis and legend
118
138
 
@@ -127,11 +147,11 @@
127
147
  - new UI
128
148
  - Ellipsis for tab label if it's over 2 lines
129
149
  - `FmButton`
130
- - Reduce size of the button
150
+ - Reduce the size of the button
131
151
  - `FmButtonGroup`
132
- - Reduce size of the button
152
+ - Reduce the size of the button
133
153
  - `FmTooltip`
134
- - Reduce size of the tooltip
154
+ - Reduce the size of the tooltip
135
155
  - `FmTimePicker`/`FmDateTimePicker`
136
156
  - allow user use customize `#trigger-button`
137
157
 
@@ -145,16 +165,16 @@
145
165
  ### Feature
146
166
 
147
167
  - `FmTable`
148
- - when on viewport 'xs' or 'sm', renders table row into `FmList` with padding: 0
168
+ - when on viewport `xs` or `sm`, renders table row into `FmList` with padding: 0
149
169
  - specify different breakpoints with prop `<FmTable shrink-at="xs | sm | ..."`
150
- - disable behaviour with prop `<FmTable shrink-at="0"`
170
+ - disable behavior with prop `<FmTable shrink-at="0"`
151
171
  - add `<template #table-row` to render custom table row
152
172
  - add `<template #list-row` to render custom list row
153
173
  - `useDialog`
154
174
  - add `dismissAway` to close dialog on clicking overlay (`overlay` must be `true`)
155
175
  - add `onClose` handler
156
176
  - `FmMenu`
157
- - add `stop-click-propagation` to avoid click to be propagated to parent component
177
+ - add `stop-click-propagation` to avoid click to be propagated to a parent component
158
178
  - `FmPageHead`
159
179
  - add `prepend` and `append` slot
160
180
 
@@ -166,7 +186,7 @@
166
186
  - render toast with z-index 10
167
187
  - `FmTable`
168
188
  - render pinned table header component after `<tbody>` to avoid using z-index
169
- - show cursor pointer if `@row-click` is defined
189
+ - show the pointer as cursor if `@row-click` is defined
170
190
  - `FmTableToolbar`
171
191
  - fix search button width
172
192
  - fix extra spacing on action buttons
@@ -190,7 +210,7 @@
190
210
  - `FmCheckbox`, `FmRadio` and `FmSwitch`
191
211
  - Reduce the gap between the label and the action box
192
212
  - `FmMenuHeader`
193
- - Reduce th spacing
213
+ - Reduce the spacing
194
214
  - `FmBreadcrumb`
195
215
  - Reduce the font size from 16px to 14px
196
216
  - `FmStepperField`
@@ -215,7 +235,7 @@
215
235
  - `FmMenuItem`
216
236
  - reduce font size:
217
237
  - label: 16px -> 14px
218
- - sublabel: 14px -> 12px
238
+ - `sublabel`: 14px -> 12px
219
239
 
220
240
  ## 1.1.1
221
241
 
@@ -225,8 +245,8 @@
225
245
  show the picker.
226
246
  - Fixed the click propagation issue in `FmChip`
227
247
  - Fixed the selection box in `FmTable` being re-rendered when the table is updated
228
- - Now, the `FmRadio` can self-control its disable status even if the parent component changes the disable status
229
- - Upgrade version for `Material Symbols` for supporting more icons
248
+ - Now, the `FmRadio` can self-control its disable status even if the parent component changes the `disable` status
249
+ - Upgrade the version for `Material Symbols` for supporting more icons
230
250
 
231
251
  ## 1.1.0
232
252
 
@@ -239,7 +259,7 @@
239
259
  - Fixed UI issues on `FmDynamicDialog` when content or footer is not specified
240
260
  - Fixed focus issues on collapsible `FmSearch`
241
261
  - Fixed disabled `FmMenu` from behaving incorrectly
242
- - Color system is now updated with latest colors from design
262
+ - The Color system is now updated with the latest colors from design
243
263
  - Fixed `FmSelect` extra spacing issues when label or helper is not specified
244
264
  - Fixed missing flags on `FmPhoneNumber`
245
265
  - Fixed `FmTable` not reflecting new column definitions changes
@@ -256,9 +276,9 @@
256
276
  - Fixed `label` and `helper` template not rendering in form field components
257
277
  - Fixed country flags not rendering in `FmPhoneNumber`
258
278
  - Fixed import statements in UI library package for better code editor integration
259
- - Fixed collapsible `FmSearch` not focusing on text field on expand
260
- - Fixed full screen heights in all sheets
261
- - Fixed closing popover when opening other popover
279
+ - Fixed collapsible `FmSearch` not focusing on text field on expanding
280
+ - Fixed full-screen heights in all sheets
281
+ - Fixed closing popover when opening another popover
262
282
 
263
283
  ### Features
264
284
 
@@ -14,9 +14,22 @@ export interface FmAvatarProps {
14
14
  * Image asset to render as avatar background.
15
15
  */
16
16
  src?: string;
17
- /** Default: md */
17
+ /** Default: md
18
+ * sm: 24x24
19
+ * sm2: 36x36
20
+ * md: 40x40
21
+ * lg: 48x48
22
+ * xl: 56x56
23
+ * */
18
24
  size?: 'sm' | 'sm2' | 'md' | 'lg' | 'xl';
19
- /** Default: xxxl */
25
+ /** Default: xxxl
26
+ * sm: 4
27
+ * md: 8
28
+ * lg: 16
29
+ * xl: 32
30
+ * xxl: 128
31
+ * xxxl: 360
32
+ * */
20
33
  rounded?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
21
34
  }
22
35
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmAvatarProps>, {
@@ -4,7 +4,7 @@ export interface FmTextFieldProps extends FormChildProps {
4
4
  minLength?: number;
5
5
  maxLength?: number;
6
6
  /** To display virtual keyboard */
7
- inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
7
+ inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'password';
8
8
  readonly?: boolean;
9
9
  labelMark?: 'required' | 'optional' | 'none';
10
10
  prependIcon?: string;
@@ -70,7 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
70
70
  minLength: number;
71
71
  placeholder: string;
72
72
  showValidBorder: boolean;
73
- inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal";
73
+ inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal";
74
74
  readonly: boolean;
75
75
  showWordCount: boolean;
76
76
  }, {}>, {
@@ -22,6 +22,8 @@ interface FmMenu {
22
22
  stopClickPropagation?: boolean;
23
23
  /** Z-index of the menu */
24
24
  zIndex?: number;
25
+ /** Offset for the menu */
26
+ offset?: number;
25
27
  }
26
28
  export interface MenuProvider {
27
29
  register: ({ injectProps, }: {
@@ -15,7 +15,14 @@ type FmTooltipProp = {
15
15
  * The text content of the tooltip
16
16
  */
17
17
  content?: string;
18
+ /**
19
+ * The disabled state of the tooltip
20
+ */
18
21
  disabled?: boolean;
22
+ /**
23
+ * The z-index of the tooltip
24
+ */
25
+ zIndex?: number;
19
26
  };
20
27
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmTooltipProp>, {
21
28
  variant: string;
@@ -23,14 +30,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
30
  hideArrow: boolean;
24
31
  content: string;
25
32
  disabled: boolean;
33
+ zIndex: undefined;
26
34
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FmTooltipProp>, {
27
35
  variant: string;
28
36
  placement: string;
29
37
  hideArrow: boolean;
30
38
  content: string;
31
39
  disabled: boolean;
40
+ zIndex: undefined;
32
41
  }>>>, {
33
42
  variant: "plain" | "rich";
43
+ zIndex: number;
34
44
  disabled: boolean;
35
45
  placement: "left" | "right" | "bottom" | "top";
36
46
  hideArrow: boolean;
@@ -7892,7 +7892,7 @@ export declare const components: {
7892
7892
  default: boolean;
7893
7893
  };
7894
7894
  inputmode: {
7895
- type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal">;
7895
+ type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal">;
7896
7896
  default: string;
7897
7897
  };
7898
7898
  readonly: {
@@ -7975,7 +7975,7 @@ export declare const components: {
7975
7975
  default: boolean;
7976
7976
  };
7977
7977
  inputmode: {
7978
- type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal">;
7978
+ type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal">;
7979
7979
  default: string;
7980
7980
  };
7981
7981
  readonly: {
@@ -8003,7 +8003,7 @@ export declare const components: {
8003
8003
  minLength: number;
8004
8004
  placeholder: string;
8005
8005
  showValidBorder: boolean;
8006
- inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal";
8006
+ inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal";
8007
8007
  readonly: boolean;
8008
8008
  showWordCount: boolean;
8009
8009
  }, true, {}, {}, {
@@ -8077,7 +8077,7 @@ export declare const components: {
8077
8077
  default: boolean;
8078
8078
  };
8079
8079
  inputmode: {
8080
- type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal">;
8080
+ type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal">;
8081
8081
  default: string;
8082
8082
  };
8083
8083
  readonly: {
@@ -8107,7 +8107,7 @@ export declare const components: {
8107
8107
  minLength: number;
8108
8108
  placeholder: string;
8109
8109
  showValidBorder: boolean;
8110
- inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal";
8110
+ inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal";
8111
8111
  readonly: boolean;
8112
8112
  showWordCount: boolean;
8113
8113
  }>;
@@ -8178,7 +8178,7 @@ export declare const components: {
8178
8178
  default: boolean;
8179
8179
  };
8180
8180
  inputmode: {
8181
- type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal">;
8181
+ type: import("vue").PropType<"text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal">;
8182
8182
  default: string;
8183
8183
  };
8184
8184
  readonly: {
@@ -8211,7 +8211,7 @@ export declare const components: {
8211
8211
  minLength: number;
8212
8212
  placeholder: string;
8213
8213
  showValidBorder: boolean;
8214
- inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "url" | "decimal";
8214
+ inputmode: "text" | "numeric" | "search" | "none" | "email" | "tel" | "password" | "url" | "decimal";
8215
8215
  readonly: boolean;
8216
8216
  showWordCount: boolean;
8217
8217
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -9389,6 +9389,9 @@ export declare const components: {
9389
9389
  stopClickPropagation: {
9390
9390
  type: import("vue").PropType<boolean>;
9391
9391
  };
9392
+ offset: {
9393
+ type: import("vue").PropType<number>;
9394
+ };
9392
9395
  }>> & {
9393
9396
  "onMenu-changed"?: ((opened: boolean) => any) | undefined;
9394
9397
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -9429,6 +9432,9 @@ export declare const components: {
9429
9432
  stopClickPropagation: {
9430
9433
  type: import("vue").PropType<boolean>;
9431
9434
  };
9435
+ offset: {
9436
+ type: import("vue").PropType<number>;
9437
+ };
9432
9438
  }>> & {
9433
9439
  "onMenu-changed"?: ((opened: boolean) => any) | undefined;
9434
9440
  }, {
@@ -9483,6 +9489,9 @@ export declare const components: {
9483
9489
  stopClickPropagation: {
9484
9490
  type: import("vue").PropType<boolean>;
9485
9491
  };
9492
+ offset: {
9493
+ type: import("vue").PropType<number>;
9494
+ };
9486
9495
  }>> & {
9487
9496
  "onMenu-changed"?: ((opened: boolean) => any) | undefined;
9488
9497
  }, {}, {}, {}, {}, {
@@ -9534,6 +9543,9 @@ export declare const components: {
9534
9543
  stopClickPropagation: {
9535
9544
  type: import("vue").PropType<boolean>;
9536
9545
  };
9546
+ offset: {
9547
+ type: import("vue").PropType<number>;
9548
+ };
9537
9549
  }>> & {
9538
9550
  "onMenu-changed"?: ((opened: boolean) => any) | undefined;
9539
9551
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -11274,6 +11286,10 @@ export declare const components: {
11274
11286
  type: import("vue").PropType<"plain" | "rich">;
11275
11287
  default: string;
11276
11288
  };
11289
+ zIndex: {
11290
+ type: import("vue").PropType<number>;
11291
+ default: undefined;
11292
+ };
11277
11293
  disabled: {
11278
11294
  type: import("vue").PropType<boolean>;
11279
11295
  default: boolean;
@@ -11295,6 +11311,10 @@ export declare const components: {
11295
11311
  type: import("vue").PropType<"plain" | "rich">;
11296
11312
  default: string;
11297
11313
  };
11314
+ zIndex: {
11315
+ type: import("vue").PropType<number>;
11316
+ default: undefined;
11317
+ };
11298
11318
  disabled: {
11299
11319
  type: import("vue").PropType<boolean>;
11300
11320
  default: boolean;
@@ -11313,6 +11333,7 @@ export declare const components: {
11313
11333
  };
11314
11334
  }>>, {
11315
11335
  variant: "plain" | "rich";
11336
+ zIndex: number;
11316
11337
  disabled: boolean;
11317
11338
  placement: "left" | "right" | "bottom" | "top";
11318
11339
  hideArrow: boolean;
@@ -11329,6 +11350,10 @@ export declare const components: {
11329
11350
  type: import("vue").PropType<"plain" | "rich">;
11330
11351
  default: string;
11331
11352
  };
11353
+ zIndex: {
11354
+ type: import("vue").PropType<number>;
11355
+ default: undefined;
11356
+ };
11332
11357
  disabled: {
11333
11358
  type: import("vue").PropType<boolean>;
11334
11359
  default: boolean;
@@ -11347,6 +11372,7 @@ export declare const components: {
11347
11372
  };
11348
11373
  }>>, {}, {}, {}, {}, {
11349
11374
  variant: "plain" | "rich";
11375
+ zIndex: number;
11350
11376
  disabled: boolean;
11351
11377
  placement: "left" | "right" | "bottom" | "top";
11352
11378
  hideArrow: boolean;
@@ -11360,6 +11386,10 @@ export declare const components: {
11360
11386
  type: import("vue").PropType<"plain" | "rich">;
11361
11387
  default: string;
11362
11388
  };
11389
+ zIndex: {
11390
+ type: import("vue").PropType<number>;
11391
+ default: undefined;
11392
+ };
11363
11393
  disabled: {
11364
11394
  type: import("vue").PropType<boolean>;
11365
11395
  default: boolean;
@@ -11378,6 +11408,7 @@ export declare const components: {
11378
11408
  };
11379
11409
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
11380
11410
  variant: "plain" | "rich";
11411
+ zIndex: number;
11381
11412
  disabled: boolean;
11382
11413
  placement: "left" | "right" | "bottom" | "top";
11383
11414
  hideArrow: boolean;
@@ -11737,4 +11768,148 @@ export declare const components: {
11737
11768
  "top-sheet-footer"?(_: {}): any;
11738
11769
  };
11739
11770
  });
11771
+ FmPopover: {
11772
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
11773
+ zIndex: {
11774
+ type: import("vue").PropType<number>;
11775
+ default: number;
11776
+ };
11777
+ disabled: {
11778
+ type: import("vue").PropType<boolean>;
11779
+ default: boolean;
11780
+ };
11781
+ placement: {
11782
+ type: import("vue").PropType<import("@floating-ui/vue").Placement>;
11783
+ default: string;
11784
+ };
11785
+ showPopover: {
11786
+ type: import("vue").PropType<boolean>;
11787
+ default: boolean;
11788
+ };
11789
+ excludeElFromClickOutside: {
11790
+ type: import("vue").PropType<string[]>;
11791
+ default: undefined;
11792
+ };
11793
+ }>> & {
11794
+ "onPopover-changed"?: ((opened: boolean) => any) | undefined;
11795
+ }, {
11796
+ show: () => void;
11797
+ hide: () => void;
11798
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11799
+ "popover-changed": (opened: boolean) => void;
11800
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
11801
+ zIndex: {
11802
+ type: import("vue").PropType<number>;
11803
+ default: number;
11804
+ };
11805
+ disabled: {
11806
+ type: import("vue").PropType<boolean>;
11807
+ default: boolean;
11808
+ };
11809
+ placement: {
11810
+ type: import("vue").PropType<import("@floating-ui/vue").Placement>;
11811
+ default: string;
11812
+ };
11813
+ showPopover: {
11814
+ type: import("vue").PropType<boolean>;
11815
+ default: boolean;
11816
+ };
11817
+ excludeElFromClickOutside: {
11818
+ type: import("vue").PropType<string[]>;
11819
+ default: undefined;
11820
+ };
11821
+ }>> & {
11822
+ "onPopover-changed"?: ((opened: boolean) => any) | undefined;
11823
+ }, {
11824
+ zIndex: number;
11825
+ disabled: boolean;
11826
+ placement: import("@floating-ui/vue").Placement;
11827
+ showPopover: boolean;
11828
+ excludeElFromClickOutside: string[];
11829
+ }, true, {}, {}, {
11830
+ P: {};
11831
+ B: {};
11832
+ D: {};
11833
+ C: {};
11834
+ M: {};
11835
+ Defaults: {};
11836
+ }, Readonly<import("vue").ExtractPropTypes<{
11837
+ zIndex: {
11838
+ type: import("vue").PropType<number>;
11839
+ default: number;
11840
+ };
11841
+ disabled: {
11842
+ type: import("vue").PropType<boolean>;
11843
+ default: boolean;
11844
+ };
11845
+ placement: {
11846
+ type: import("vue").PropType<import("@floating-ui/vue").Placement>;
11847
+ default: string;
11848
+ };
11849
+ showPopover: {
11850
+ type: import("vue").PropType<boolean>;
11851
+ default: boolean;
11852
+ };
11853
+ excludeElFromClickOutside: {
11854
+ type: import("vue").PropType<string[]>;
11855
+ default: undefined;
11856
+ };
11857
+ }>> & {
11858
+ "onPopover-changed"?: ((opened: boolean) => any) | undefined;
11859
+ }, {
11860
+ show: () => void;
11861
+ hide: () => void;
11862
+ }, {}, {}, {}, {
11863
+ zIndex: number;
11864
+ disabled: boolean;
11865
+ placement: import("@floating-ui/vue").Placement;
11866
+ showPopover: boolean;
11867
+ excludeElFromClickOutside: string[];
11868
+ }>;
11869
+ __isFragment?: undefined;
11870
+ __isTeleport?: undefined;
11871
+ __isSuspense?: undefined;
11872
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
11873
+ zIndex: {
11874
+ type: import("vue").PropType<number>;
11875
+ default: number;
11876
+ };
11877
+ disabled: {
11878
+ type: import("vue").PropType<boolean>;
11879
+ default: boolean;
11880
+ };
11881
+ placement: {
11882
+ type: import("vue").PropType<import("@floating-ui/vue").Placement>;
11883
+ default: string;
11884
+ };
11885
+ showPopover: {
11886
+ type: import("vue").PropType<boolean>;
11887
+ default: boolean;
11888
+ };
11889
+ excludeElFromClickOutside: {
11890
+ type: import("vue").PropType<string[]>;
11891
+ default: undefined;
11892
+ };
11893
+ }>> & {
11894
+ "onPopover-changed"?: ((opened: boolean) => any) | undefined;
11895
+ }, {
11896
+ show: () => void;
11897
+ hide: () => void;
11898
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11899
+ "popover-changed": (opened: boolean) => void;
11900
+ }, string, {
11901
+ zIndex: number;
11902
+ disabled: boolean;
11903
+ placement: import("@floating-ui/vue").Placement;
11904
+ showPopover: boolean;
11905
+ excludeElFromClickOutside: string[];
11906
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
11907
+ $slots: {
11908
+ "popover-button"?(_: {}): any;
11909
+ default?(_: {
11910
+ hide: () => void;
11911
+ show: () => void;
11912
+ }): any;
11913
+ };
11914
+ });
11740
11915
  };
@@ -1 +1 @@
1
- import{importShared as t,__tla as f}from"./__federation_fn_import-DzgSLNaX.js";let m,x=Promise.all([(()=>{try{return f}catch{}})()]).then(async()=>{let n,d,l,a,s,i,u;({defineComponent:n}=await t("vue")),{toDisplayString:d,normalizeClass:l,normalizeStyle:a,openBlock:s,createElementBlock:i}=await t("vue"),{computed:u}=await t("vue"),m=n({__name:"FmAvatar",props:{initials:{default:()=>""},name:{default:()=>""},src:{default:void 0},size:{default:()=>"md"},rounded:{default:()=>"xxxl"}},setup(c){const r=c,p=u(()=>{if(r.initials)return r.initials.slice(0,2);if(r.name){const[e,o]=r.name.split(" ");return o?`${e[0]}${o[0]}`:e.slice(0,2)}return r.src?"":"?"});return(e,o)=>(s(),i("div",{class:l(["inline-flex items-center justify-center uppercase",{"w-24 h-24 fm-typo-en-body-sm-600":e.size==="sm","w-36 h-36 fm-typo-en-body-sm-600":e.size==="sm2","w-40 h-40 fm-typo-en-body-md-600":e.size==="md","w-48 h-48 fm-typo-en-body-lg-600":e.size==="lg","w-56 h-56 fm-typo-en-body-lg-600":e.size==="xl","bg-fm-color-neutral-gray-100":!r.src},{"rounded-xxxl":e.rounded==="xxxl","rounded-xxl":e.rounded==="xxl","rounded-xl":e.rounded==="xl","rounded-lg":e.rounded==="lg","rounded-md":e.rounded==="md","rounded-sm":e.rounded==="sm"}]),style:a({background:r.src?`url(${r.src})`:void 0,backgroundSize:r.src?"cover":void 0,backgroundPosition:r.src?"center":void 0,backgroundRepeat:r.src?"no-repeat":void 0})},d(p.value),7))}})});export{m as _,x as __tla};
1
+ import{importShared as t,__tla as f}from"./__federation_fn_import-DzgSLNaX.js";let m,x=Promise.all([(()=>{try{return f}catch{}})()]).then(async()=>{let n,d,l,a,s,i,u;({defineComponent:n}=await t("vue")),{toDisplayString:d,normalizeClass:l,normalizeStyle:a,openBlock:s,createElementBlock:i}=await t("vue"),{computed:u}=await t("vue"),m=n({__name:"FmAvatar",props:{initials:{default:()=>""},name:{default:()=>""},src:{default:void 0},size:{default:()=>"md"},rounded:{default:()=>"xxxl"}},setup(c){const r=c,p=u(()=>{if(r.initials)return r.initials.slice(0,2);if(r.name){const[e,o]=r.name.split(" ");return o?`${e[0]}${o[0]}`:e.slice(0,2)}return r.src?"":"?"});return(e,o)=>(s(),i("div",{class:l(["inline-flex items-center justify-center uppercase",{"w-24 h-24 fm-typo-en-body-sm-600":e.size==="sm","w-9 h-9 fm-typo-en-body-sm-600":e.size==="sm2","w-40 h-40 fm-typo-en-body-md-600":e.size==="md","w-48 h-48 fm-typo-en-body-lg-600":e.size==="lg","w-56 h-56 fm-typo-en-body-lg-600":e.size==="xl","bg-fm-color-neutral-gray-100":!r.src},{"rounded-xxxl":e.rounded==="xxxl","rounded-xxl":e.rounded==="xxl","rounded-xl":e.rounded==="xl","rounded-lg":e.rounded==="lg","rounded-md":e.rounded==="md","rounded-sm":e.rounded==="sm"}]),style:a({background:r.src?`url(${r.src})`:void 0,backgroundSize:r.src?"cover":void 0,backgroundPosition:r.src?"center":void 0,backgroundRepeat:r.src?"no-repeat":void 0})},d(p.value),7))}})});export{m as _,x as __tla};
@@ -1 +1 @@
1
- import{importShared as g,__tla as ke}from"./__federation_fn_import-DzgSLNaX.js";import{u as ge,__tla as Ve}from"./useBreakpoints-BoARERQ5.js";import{d as _}from"./dayjs.min-CEntt5aC.js";import ne,{__tla as we}from"./__federation_expose_FmIcon-Cl5V-PdJ.js";import ue,{__tla as Ce}from"./__federation_expose_FmButton-CAYP6Mjn.js";import{u as ie,__tla as Be}from"./useProxiedModel-tBxtSc23.js";import Se,{__tla as ze}from"./__federation_expose_FmField-6Ip2Onqj.js";import{_ as Me,__tla as Pe}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-FBCowEhC.js";import{_ as se,u as $e,__tla as De}from"./useInheritFormState-BgpBLhvp.js";import{F as Ie,__tla as Ye}from"./FmPopover-DTigUQFX.js";import{D as x,n as Fe,g as Ue}from"./helper-C1v82Eij.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-C5LReVmH.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),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,focused:t.value,"icon-outlined":!t.value,invalid:z,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month",disabled:n.value},{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,["focused","icon-outlined","invalid","show-valid-border","disabled"]))]),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-e40816a0"]]),{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-DzgSLNaX.js";import{u as ge,__tla as Ve}from"./useBreakpoints-BoARERQ5.js";import{d as _}from"./dayjs.min-CEntt5aC.js";import ne,{__tla as we}from"./__federation_expose_FmIcon-Cl5V-PdJ.js";import ue,{__tla as Ce}from"./__federation_expose_FmButton-CAYP6Mjn.js";import{u as ie,__tla as Be}from"./useProxiedModel-tBxtSc23.js";import Se,{__tla as ze}from"./__federation_expose_FmField-6Ip2Onqj.js";import{_ as Me,__tla as Pe}from"./FmFormGroup.vue_vue_type_script_setup_true_lang-DhAEpcUT.js";import{_ as se,u as $e,__tla as De}from"./useInheritFormState-BS3s39k4.js";import{F as Ie,__tla as Ye}from"./FmPopover-Do-USmJ9.js";import{D as x,n as Fe,g as Ue}from"./helper-C1v82Eij.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-BM7QhbvX.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),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,focused:t.value,"icon-outlined":!t.value,invalid:z,"show-valid-border":e.showValidBorder,"prepend-icon":"calendar_month",disabled:n.value},{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,["focused","icon-outlined","invalid","show-valid-border","disabled"]))]),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-e40816a0"]]),{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};