@eaera-com/eaera-widgets-v2 0.1.82 → 0.1.83

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 (135) hide show
  1. package/dist/components/base/EaeraAlert.d.ts +1 -1
  2. package/dist/components/base/EaeraAutoComplete.d.ts +1 -1
  3. package/dist/components/base/EaeraAvatarGroup.d.ts +1 -1
  4. package/dist/components/base/EaeraBacktop.d.ts +1 -1
  5. package/dist/components/base/EaeraBadge.d.ts +2 -2
  6. package/dist/components/base/EaeraBreadcrumb.d.ts +1 -1
  7. package/dist/components/base/EaeraButton.d.ts +4 -4
  8. package/dist/components/base/EaeraCarousel.d.ts +4 -4
  9. package/dist/components/base/EaeraCarousel.mjs +1 -1
  10. package/dist/components/base/EaeraCheckbox.d.ts +2 -2
  11. package/dist/components/base/EaeraColorPicker.d.ts +1 -1
  12. package/dist/components/base/EaeraColorPicker.mjs +1 -1
  13. package/dist/components/base/EaeraDatePicker.d.ts +3 -3
  14. package/dist/components/base/EaeraDateTimePicker.d.ts +3 -3
  15. package/dist/components/base/EaeraDescriptions.d.ts +1 -1
  16. package/dist/components/base/EaeraDialog.d.ts +2 -2
  17. package/dist/components/base/EaeraDropdown.d.ts +1 -1
  18. package/dist/components/base/EaeraImage.d.ts +1 -1
  19. package/dist/components/base/EaeraInput.d.ts +1 -1
  20. package/dist/components/base/EaeraInputCode.d.ts +3 -3
  21. package/dist/components/base/EaeraInputNumber.d.ts +1 -1
  22. package/dist/components/base/EaeraInputTag.d.ts +1 -1
  23. package/dist/components/base/EaeraLink.d.ts +1 -1
  24. package/dist/components/base/EaeraPagination.d.ts +7 -7
  25. package/dist/components/base/EaeraPopconfirm.d.ts +2 -2
  26. package/dist/components/base/EaeraPopover.d.ts +2 -2
  27. package/dist/components/base/EaeraProgress.d.ts +3 -3
  28. package/dist/components/base/EaeraScrollbar.d.ts +4 -4
  29. package/dist/components/base/EaeraSegmented.d.ts +6 -6
  30. package/dist/components/base/EaeraSelect.d.ts +3 -3
  31. package/dist/components/base/EaeraSelectStatus.mjs +1 -1
  32. package/dist/components/base/EaeraSelectTag.mjs +1 -1
  33. package/dist/components/base/EaeraSkeleton.d.ts +1 -1
  34. package/dist/components/base/EaeraSlider.d.ts +1 -1
  35. package/dist/components/base/EaeraSlider.mjs +1 -1
  36. package/dist/components/base/EaeraSwitch.d.ts +1 -1
  37. package/dist/components/base/EaeraTab.d.ts +2 -2
  38. package/dist/components/base/EaeraTag.d.ts +3 -3
  39. package/dist/components/base/EaeraTag.mjs +1 -1
  40. package/dist/components/base/EaeraTimePicker.d.ts +1 -1
  41. package/dist/components/base/EaeraTimeSelect.d.ts +2 -2
  42. package/dist/components/base/EaeraTooltip.d.ts +38 -38
  43. package/dist/components/base/EaeraTreeSelect.d.ts +1 -1
  44. package/dist/components/base/EaeraUploadDefault.d.ts +1 -1
  45. package/dist/components/chunks/{EaeraCarousel-nVdAknBO.mjs → EaeraCarousel-5a2qdFil.mjs} +1 -1
  46. package/dist/components/chunks/{EaeraColorPicker-BmBd0tPb.mjs → EaeraColorPicker-B2VKi4o6.mjs} +1 -1
  47. package/dist/components/chunks/{EaeraCountryField-BAUKKPoc.mjs → EaeraCountryField-CrX6AtMI.mjs} +1 -1
  48. package/dist/components/chunks/{EaeraCountryFlag-HdsCS-D7.mjs → EaeraCountryFlag-Vr9lnLti.mjs} +1 -1
  49. package/dist/components/chunks/{EaeraCurrencyIcon-DCPxMDbT.mjs → EaeraCurrencyIcon-BHJ0P96z.mjs} +1 -1
  50. package/dist/components/chunks/{EaeraDynamicFieldRow-mZ5_nqkn.mjs → EaeraDynamicFieldRow-C-VUPCvg.mjs} +1 -1
  51. package/dist/components/chunks/{EaeraForm-DEoXRjat.mjs → EaeraForm-DRMCdjw4.mjs} +1 -1
  52. package/dist/components/chunks/{EaeraInputPhone-BAfQ9DpC.mjs → EaeraInputPhone-Cui1yXmx.mjs} +1 -1
  53. package/dist/components/chunks/{EaeraInputPhoneNumber-CDZnyaLx.mjs → EaeraInputPhoneNumber-YIRrq5-L.mjs} +1 -1
  54. package/dist/components/chunks/{EaeraSelectStatus-3bhsZt3A.mjs → EaeraSelectStatus-DF8-Svsr.mjs} +1 -1
  55. package/dist/components/chunks/{EaeraSelectTag-CGmqeNQJ.mjs → EaeraSelectTag-fwPFHO14.mjs} +1 -1
  56. package/dist/components/chunks/{EaeraSlider-Bk51h1zv.mjs → EaeraSlider-Ckftdbsw.mjs} +1 -1
  57. package/dist/components/chunks/{EaeraTableV2-CBaM5zp9.mjs → EaeraTableV2-CyfoAwDF.mjs} +1 -1
  58. package/dist/components/chunks/{EaeraTag-BgmzVuUW.mjs → EaeraTag-DsDZxISm.mjs} +1 -1
  59. package/dist/components/chunks/{EaeraWidgetBasicTradingStatistics-BMQMj5lo.mjs → EaeraWidgetBasicTradingStatistics-B_vLQ-YR.mjs} +1 -1
  60. package/dist/components/chunks/{EaeraWidgetMarginCalculator-BokNy1a7.mjs → EaeraWidgetMarginCalculator-BoV_EWi6.mjs} +1 -1
  61. package/dist/components/chunks/{EaeraWidgetPositionCalculator-D36MGO-E.mjs → EaeraWidgetPositionCalculator-DVbflfoJ.mjs} +1 -1
  62. package/dist/components/chunks/{iconSvg-BrZD7vO3.mjs → iconSvg-B2wrn2gi.mjs} +1 -1
  63. package/dist/components/chunks/{index-DhwN0sRS.mjs → index-4sT0yI4F.mjs} +1 -1
  64. package/dist/components/chunks/{index-9zJYqMyX.mjs → index-Bva_01ak.mjs} +1 -1
  65. package/dist/components/chunks/{index-ChWzksXo.mjs → index-C95yVkcL.mjs} +1 -1
  66. package/dist/components/chunks/{index-Cu4uZ9Nd.mjs → index-CLfZnTKh.mjs} +1 -1
  67. package/dist/components/chunks/{index-wGZD3Xyh.mjs → index-CdY_wl4g.mjs} +1 -1
  68. package/dist/components/chunks/{index-C-vkb_jO.mjs → index-DBNGSXX7.mjs} +1 -1
  69. package/dist/components/chunks/{index-DaBf9nij.mjs → index-DXC-pgpu.mjs} +1 -1
  70. package/dist/components/chunks/{index-BhBXYVZv.mjs → index-IeLjCes0.mjs} +1 -1
  71. package/dist/components/chunks/{index-Cm-cRnqS.mjs → index-Ton12Mr0.mjs} +1 -1
  72. package/dist/components/chunks/{index-CgcRJ8oq.mjs → index-ocf8b0Fd.mjs} +1 -1
  73. package/dist/components/chunks/{vendor-currency-symbol-map-C-1fEG2R.mjs → vendor-currency-symbol-map-3_wzZimq.mjs} +1 -1
  74. package/dist/components/chunks/vendor-dayjs-BwyIiGHg.mjs +1 -0
  75. package/dist/components/chunks/vendor-unorm-DkILX5Kw.mjs +1 -0
  76. package/dist/components/composite/EaeraDropdownV2.d.ts +7 -7
  77. package/dist/components/composite/EaeraDynamicFieldRow.mjs +1 -1
  78. package/dist/components/composite/EaeraForm.mjs +1 -1
  79. package/dist/components/composite/EaeraTableV2.mjs +1 -1
  80. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxBlockedState.d.ts +11 -0
  81. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxCodeBlock.d.ts +7 -0
  82. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxComposer.d.ts +133 -0
  83. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxHistoryList.d.ts +13 -0
  84. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxMarkdown.d.ts +8 -0
  85. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxMessageBubble.d.ts +7 -0
  86. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxMessageList.d.ts +10 -0
  87. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxMessageNav.d.ts +9 -0
  88. package/dist/components/custom/EaeraChatBox/components/EaeraChatBoxTypingIndicator.d.ts +3 -0
  89. package/dist/components/custom/EaeraChatBox/index.d.ts +22 -0
  90. package/dist/components/custom/EaeraCountryField.d.ts +1 -1
  91. package/dist/components/custom/EaeraCountryField.mjs +1 -1
  92. package/dist/components/custom/EaeraCountryFlag.d.ts +1 -1
  93. package/dist/components/custom/EaeraCountryFlag.mjs +1 -1
  94. package/dist/components/custom/EaeraCurrencyIcon.mjs +1 -1
  95. package/dist/components/custom/EaeraInputPhone.mjs +1 -1
  96. package/dist/components/custom/EaeraInputPhoneNumber.d.ts +17 -17
  97. package/dist/components/custom/EaeraInputPhoneNumber.mjs +1 -1
  98. package/dist/components/custom/EaeraMaskIcon.d.ts +1 -1
  99. package/dist/components/custom/EaeraSelectOther.d.ts +2 -2
  100. package/dist/components/custom/EaeraTreeV2.d.ts +1 -1
  101. package/dist/components/custom/EaeraWidgetBasicTradingStatistics.mjs +1 -1
  102. package/dist/components/custom/EaeraWidgetGrowthBalanceProfitChart.d.ts +1 -1
  103. package/dist/components/custom/EaeraWidgetMarginCalculator.mjs +1 -1
  104. package/dist/components/custom/EaeraWidgetMonthlyGainChart.d.ts +1 -1
  105. package/dist/components/custom/EaeraWidgetPLCalendar.d.ts +1 -1
  106. package/dist/components/custom/EaeraWidgetPositionCalculator.mjs +1 -1
  107. package/dist/components/custom/EaeraWidgetScoreChart.d.ts +1 -1
  108. package/dist/components/custom/EaeraWidgetTradeVolumeStatistics.d.ts +1 -1
  109. package/dist/components/index.d.ts +2 -1
  110. package/dist/components/index.mjs +7 -1
  111. package/dist/components/utils/symbolBadge.mjs +1 -1
  112. package/dist/components/webtrade/EaeraCfdOrderPlacement/index.d.ts +2 -2
  113. package/dist/components/webtrade/EaeraCfdWatchlist.mjs +1 -1
  114. package/dist/components/webtrade/EaeraDrawingOverlay.mjs +1 -1
  115. package/dist/components/webtrade/EaeraLightweightChart.mjs +1 -1
  116. package/dist/components/webtrade/EaeraMarketDepth.mjs +1 -1
  117. package/dist/components/webtrade/EaeraOrderPlacement/index.d.ts +4 -4
  118. package/dist/components/webtrade/EaeraOrderPlacement.mjs +1 -1
  119. package/dist/components/webtrade/EaeraOrderlineOverlay.mjs +1 -1
  120. package/dist/components/webtrade/EaeraSymbolSpec.mjs +1 -1
  121. package/dist/components/webtrade/EaeraTimeNSales.mjs +1 -1
  122. package/dist/components/webtrade/EaeraTradingTable/index.d.ts +5 -5
  123. package/dist/components/webtrade/EaeraTradingTable.mjs +1 -1
  124. package/dist/components/webtrade/EaeraWatchlist/index.d.ts +2 -2
  125. package/dist/components/webtrade/EaeraWatchlist.mjs +1 -1
  126. package/dist/eaera-widgets-v2.es.js +14715 -13762
  127. package/dist/eaera-widgets-v2.umd.cjs +20 -19
  128. package/dist/index.d.ts +4 -0
  129. package/dist/stories/Popover/showcase/Basic.d.ts +8 -8
  130. package/dist/style.css +1 -1
  131. package/dist/types/EaeraChatBox.d.ts +45 -0
  132. package/dist/types/index.d.ts +1 -0
  133. package/package.json +7 -1
  134. package/dist/components/chunks/vendor-dayjs-D8w0D2To.mjs +0 -1
  135. package/dist/components/chunks/vendor-unorm-Degftfa1.mjs +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentOptionsMixin, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties, DefineComponent, ComputedRef, PublicProps } from 'vue';
2
- import { AriaProps, Options, Placement, PopperEffect, TooltipTriggerType, Measurable, UseTooltipProps, PopperInstance, TooltipContentInstance } from 'element-plus';
2
+ import { AriaProps, PopperEffect, Options, Placement, TooltipTriggerType, Measurable, UseTooltipProps, PopperInstance, TooltipContentInstance } from 'element-plus';
3
3
  import { Arrayable } from 'element-plus/es/utils/typescript';
4
4
  import { OnCleanup } from '@vue/reactivity';
5
5
  type PlacementType = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
@@ -30,7 +30,7 @@ declare function __VLS_template(): {
30
30
  $props: {
31
31
  readonly showArrow?: boolean | undefined;
32
32
  readonly "onUpdate:visible"?: (((value: boolean) => void) & ((...args: any[]) => any)) | undefined;
33
- readonly role?: ("dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
33
+ readonly role?: ("dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
34
34
  readonly appendTo?: (string | HTMLElement) | undefined;
35
35
  readonly content?: string | undefined;
36
36
  readonly rawContent?: boolean | undefined;
@@ -68,8 +68,11 @@ declare function __VLS_template(): {
68
68
  } | (string | {
69
69
  [x: string]: boolean;
70
70
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
71
- readonly popperOptions?: Partial< Options> | undefined;
71
+ readonly style?: StyleValue;
72
+ readonly id?: string | undefined;
72
73
  readonly offset?: number | undefined;
74
+ readonly effect?: PopperEffect | undefined;
75
+ readonly popperOptions?: Partial< Options> | undefined;
73
76
  readonly popperClass?: (string | {
74
77
  [x: string]: boolean;
75
78
  } | (string | {
@@ -95,11 +98,8 @@ declare function __VLS_template(): {
95
98
  } | (string | {
96
99
  [x: string]: boolean;
97
100
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
98
- readonly style?: StyleValue;
99
101
  readonly placement?: Placement | undefined;
100
102
  readonly virtualTriggering?: boolean | undefined;
101
- readonly id?: string | undefined;
102
- readonly effect?: PopperEffect | undefined;
103
103
  readonly enterable?: boolean | undefined;
104
104
  readonly pure?: boolean | undefined;
105
105
  readonly focusOnShow?: boolean | undefined;
@@ -144,7 +144,7 @@ declare function __VLS_template(): {
144
144
  $root: ComponentPublicInstance | null;
145
145
  $parent: ComponentPublicInstance | null;
146
146
  $host: Element | null;
147
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
147
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
148
148
  $el: any;
149
149
  $options: ComponentOptionsBase<Readonly< UseTooltipProps> & Readonly<{
150
150
  onClose?: ((...args: any[]) => any) | undefined;
@@ -172,7 +172,7 @@ declare function __VLS_template(): {
172
172
  "before-hide": (...args: any[]) => void;
173
173
  }, string, {
174
174
  style: string | false | CSSProperties | StyleValue[] | null;
175
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
175
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
176
176
  visible: boolean | null;
177
177
  content: string;
178
178
  teleported: boolean;
@@ -220,7 +220,7 @@ declare function __VLS_template(): {
220
220
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
221
221
  } & Readonly<{
222
222
  style: string | false | CSSProperties | StyleValue[] | null;
223
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
223
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
224
224
  visible: boolean | null;
225
225
  content: string;
226
226
  teleported: boolean;
@@ -254,7 +254,7 @@ declare function __VLS_template(): {
254
254
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
255
255
  "onBefore-show"?: ((...args: any[]) => any) | undefined;
256
256
  "onBefore-hide"?: ((...args: any[]) => any) | undefined;
257
- }>, "popperOptions" | "showArrow" | "offset" | "style" | "content" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "effect" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "role" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "onClose" | "onOpen" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper" | "hide"> & {
257
+ }>, "style" | "hide" | "onOpen" | "role" | "offset" | "onClose" | "effect" | "content" | "popperOptions" | "showArrow" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper"> & {
258
258
  popperRef: PopperInstance | undefined;
259
259
  contentRef: TooltipContentInstance | undefined;
260
260
  isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
@@ -280,7 +280,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
280
280
  $props: {
281
281
  readonly showArrow?: boolean | undefined;
282
282
  readonly "onUpdate:visible"?: (((value: boolean) => void) & ((...args: any[]) => any)) | undefined;
283
- readonly role?: ("dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
283
+ readonly role?: ("dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
284
284
  readonly appendTo?: (string | HTMLElement) | undefined;
285
285
  readonly content?: string | undefined;
286
286
  readonly rawContent?: boolean | undefined;
@@ -318,8 +318,11 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
318
318
  } | (string | {
319
319
  [x: string]: boolean;
320
320
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
321
- readonly popperOptions?: Partial< Options> | undefined;
321
+ readonly style?: StyleValue;
322
+ readonly id?: string | undefined;
322
323
  readonly offset?: number | undefined;
324
+ readonly effect?: PopperEffect | undefined;
325
+ readonly popperOptions?: Partial< Options> | undefined;
323
326
  readonly popperClass?: (string | {
324
327
  [x: string]: boolean;
325
328
  } | (string | {
@@ -345,11 +348,8 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
345
348
  } | (string | {
346
349
  [x: string]: boolean;
347
350
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
348
- readonly style?: StyleValue;
349
351
  readonly placement?: Placement | undefined;
350
352
  readonly virtualTriggering?: boolean | undefined;
351
- readonly id?: string | undefined;
352
- readonly effect?: PopperEffect | undefined;
353
353
  readonly enterable?: boolean | undefined;
354
354
  readonly pure?: boolean | undefined;
355
355
  readonly focusOnShow?: boolean | undefined;
@@ -394,7 +394,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
394
394
  $root: ComponentPublicInstance | null;
395
395
  $parent: ComponentPublicInstance | null;
396
396
  $host: Element | null;
397
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
397
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
398
398
  $el: any;
399
399
  $options: ComponentOptionsBase<Readonly< UseTooltipProps> & Readonly<{
400
400
  onClose?: ((...args: any[]) => any) | undefined;
@@ -422,7 +422,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
422
422
  "before-hide": (...args: any[]) => void;
423
423
  }, string, {
424
424
  style: string | false | CSSProperties | StyleValue[] | null;
425
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
425
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
426
426
  visible: boolean | null;
427
427
  content: string;
428
428
  teleported: boolean;
@@ -470,7 +470,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
470
470
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
471
471
  } & Readonly<{
472
472
  style: string | false | CSSProperties | StyleValue[] | null;
473
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
473
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
474
474
  visible: boolean | null;
475
475
  content: string;
476
476
  teleported: boolean;
@@ -504,7 +504,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
504
504
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
505
505
  "onBefore-show"?: ((...args: any[]) => any) | undefined;
506
506
  "onBefore-hide"?: ((...args: any[]) => any) | undefined;
507
- }>, "popperOptions" | "showArrow" | "offset" | "style" | "content" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "effect" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "role" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "onClose" | "onOpen" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper" | "hide"> & {
507
+ }>, "style" | "hide" | "onOpen" | "role" | "offset" | "onClose" | "effect" | "content" | "popperOptions" | "showArrow" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper"> & {
508
508
  popperRef: PopperInstance | undefined;
509
509
  contentRef: TooltipContentInstance | undefined;
510
510
  isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
@@ -524,7 +524,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
524
524
  $props: {
525
525
  readonly showArrow?: boolean | undefined;
526
526
  readonly "onUpdate:visible"?: (((value: boolean) => void) & ((...args: any[]) => any)) | undefined;
527
- readonly role?: ("dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
527
+ readonly role?: ("dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
528
528
  readonly appendTo?: (string | HTMLElement) | undefined;
529
529
  readonly content?: string | undefined;
530
530
  readonly rawContent?: boolean | undefined;
@@ -562,8 +562,11 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
562
562
  } | (string | {
563
563
  [x: string]: boolean;
564
564
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
565
- readonly popperOptions?: Partial< Options> | undefined;
565
+ readonly style?: StyleValue;
566
+ readonly id?: string | undefined;
566
567
  readonly offset?: number | undefined;
568
+ readonly effect?: PopperEffect | undefined;
569
+ readonly popperOptions?: Partial< Options> | undefined;
567
570
  readonly popperClass?: (string | {
568
571
  [x: string]: boolean;
569
572
  } | (string | {
@@ -589,11 +592,8 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
589
592
  } | (string | {
590
593
  [x: string]: boolean;
591
594
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
592
- readonly style?: StyleValue;
593
595
  readonly placement?: Placement | undefined;
594
596
  readonly virtualTriggering?: boolean | undefined;
595
- readonly id?: string | undefined;
596
- readonly effect?: PopperEffect | undefined;
597
597
  readonly enterable?: boolean | undefined;
598
598
  readonly pure?: boolean | undefined;
599
599
  readonly focusOnShow?: boolean | undefined;
@@ -638,7 +638,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
638
638
  $root: ComponentPublicInstance | null;
639
639
  $parent: ComponentPublicInstance | null;
640
640
  $host: Element | null;
641
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
641
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
642
642
  $el: any;
643
643
  $options: ComponentOptionsBase<Readonly< UseTooltipProps> & Readonly<{
644
644
  onClose?: ((...args: any[]) => any) | undefined;
@@ -666,7 +666,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
666
666
  "before-hide": (...args: any[]) => void;
667
667
  }, string, {
668
668
  style: string | false | CSSProperties | StyleValue[] | null;
669
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
669
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
670
670
  visible: boolean | null;
671
671
  content: string;
672
672
  teleported: boolean;
@@ -714,7 +714,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
714
714
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
715
715
  } & Readonly<{
716
716
  style: string | false | CSSProperties | StyleValue[] | null;
717
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
717
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
718
718
  visible: boolean | null;
719
719
  content: string;
720
720
  teleported: boolean;
@@ -748,7 +748,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
748
748
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
749
749
  "onBefore-show"?: ((...args: any[]) => any) | undefined;
750
750
  "onBefore-hide"?: ((...args: any[]) => any) | undefined;
751
- }>, "popperOptions" | "showArrow" | "offset" | "style" | "content" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "effect" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "role" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "onClose" | "onOpen" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper" | "hide"> & {
751
+ }>, "style" | "hide" | "onOpen" | "role" | "offset" | "onClose" | "effect" | "content" | "popperOptions" | "showArrow" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper"> & {
752
752
  popperRef: PopperInstance | undefined;
753
753
  contentRef: TooltipContentInstance | undefined;
754
754
  isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
@@ -774,8 +774,8 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
774
774
  className: string;
775
775
  disabled: boolean;
776
776
  offset: number;
777
- popperClass: string;
778
777
  content: string;
778
+ popperClass: string;
779
779
  trigger: TriggerType | TriggerType[];
780
780
  placement: PlacementType;
781
781
  rawContent: boolean;
@@ -788,7 +788,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
788
788
  $props: {
789
789
  readonly showArrow?: boolean | undefined;
790
790
  readonly "onUpdate:visible"?: (((value: boolean) => void) & ((...args: any[]) => any)) | undefined;
791
- readonly role?: ("dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
791
+ readonly role?: ("dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree") | undefined;
792
792
  readonly appendTo?: (string | HTMLElement) | undefined;
793
793
  readonly content?: string | undefined;
794
794
  readonly rawContent?: boolean | undefined;
@@ -826,8 +826,11 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
826
826
  } | (string | {
827
827
  [x: string]: boolean;
828
828
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
829
- readonly popperOptions?: Partial< Options> | undefined;
829
+ readonly style?: StyleValue;
830
+ readonly id?: string | undefined;
830
831
  readonly offset?: number | undefined;
832
+ readonly effect?: PopperEffect | undefined;
833
+ readonly popperOptions?: Partial< Options> | undefined;
831
834
  readonly popperClass?: (string | {
832
835
  [x: string]: boolean;
833
836
  } | (string | {
@@ -853,11 +856,8 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
853
856
  } | (string | {
854
857
  [x: string]: boolean;
855
858
  } | any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
856
- readonly style?: StyleValue;
857
859
  readonly placement?: Placement | undefined;
858
860
  readonly virtualTriggering?: boolean | undefined;
859
- readonly id?: string | undefined;
860
- readonly effect?: PopperEffect | undefined;
861
861
  readonly enterable?: boolean | undefined;
862
862
  readonly pure?: boolean | undefined;
863
863
  readonly focusOnShow?: boolean | undefined;
@@ -902,7 +902,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
902
902
  $root: ComponentPublicInstance | null;
903
903
  $parent: ComponentPublicInstance | null;
904
904
  $host: Element | null;
905
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
905
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void) & ((event: "before-show", ...args: any[]) => void) & ((event: "before-hide", ...args: any[]) => void);
906
906
  $el: any;
907
907
  $options: ComponentOptionsBase<Readonly< UseTooltipProps> & Readonly<{
908
908
  onClose?: ((...args: any[]) => any) | undefined;
@@ -930,7 +930,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
930
930
  "before-hide": (...args: any[]) => void;
931
931
  }, string, {
932
932
  style: string | false | CSSProperties | StyleValue[] | null;
933
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
933
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
934
934
  visible: boolean | null;
935
935
  content: string;
936
936
  teleported: boolean;
@@ -978,7 +978,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
978
978
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
979
979
  } & Readonly<{
980
980
  style: string | false | CSSProperties | StyleValue[] | null;
981
- role: "dialog" | "menu" | "grid" | "group" | "listbox" | "navigation" | "tooltip" | "tree";
981
+ role: "dialog" | "menu" | "group" | "grid" | "listbox" | "navigation" | "tooltip" | "tree";
982
982
  visible: boolean | null;
983
983
  content: string;
984
984
  teleported: boolean;
@@ -1012,7 +1012,7 @@ declare const __VLS_component: DefineComponent<TooltipProps, {
1012
1012
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1013
1013
  "onBefore-show"?: ((...args: any[]) => any) | undefined;
1014
1014
  "onBefore-hide"?: ((...args: any[]) => any) | undefined;
1015
- }>, "popperOptions" | "showArrow" | "offset" | "style" | "content" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "effect" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "role" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "onClose" | "onOpen" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper" | "hide"> & {
1015
+ }>, "style" | "hide" | "onOpen" | "role" | "offset" | "onClose" | "effect" | "content" | "popperOptions" | "showArrow" | "trigger" | "placement" | "autoClose" | "virtualTriggering" | "visible" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "loop" | "boundariesPadding" | "gpuAcceleration" | "strategy" | "arrowOffset" | "teleported" | "showAfter" | "hideAfter" | "triggerKeys" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper"> & {
1016
1016
  popperRef: PopperInstance | undefined;
1017
1017
  contentRef: TooltipContentInstance | undefined;
1018
1018
  isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
@@ -23,9 +23,9 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
23
23
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
24
24
  }>, {
25
25
  size: "lg" | "sm" | "xs" | "md" | "";
26
+ multiple: boolean;
26
27
  clearable: boolean;
27
28
  popperOptions: any;
28
- multiple: boolean;
29
29
  options: any[];
30
30
  collapseTags: boolean;
31
31
  filterable: boolean;
@@ -30,8 +30,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
30
  declare const __VLS_component: DefineComponent<__VLS_Props, {
31
31
  uploadRef: Ref<UploadInstance | undefined, UploadInstance | undefined>;
32
32
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
- type: "file" | "button" | "image";
34
33
  disabled: boolean;
34
+ type: "file" | "button" | "image";
35
35
  title: string;
36
36
  fileStyle: "block" | "compact";
37
37
  buttonSize: "sm" | "md" | "lg";
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,computed as r,onMounted as t,onUnmounted as l,openBlock as o,createElementBlock as i,mergeProps as s,createVNode as n,unref as c,normalizeClass as u,withCtx as d,Fragment as p,renderList as v,createBlock as m,renderSlot as f,createElementVNode as y,createCommentVNode as _}from"vue";import{ElCarousel as g,ElCarouselItem as S}from"element-plus";import{_ as w}from"./EaeraButton-BPVKRBOn.mjs";import{ChevronLeft as b,ChevronRight as k}from"@lucide/vue";import{g as C}from"./iconSvg-BrZD7vO3.mjs";const B={key:0,class:"carousel-nav-bar"},x={class:"carousel-nav-bar__indicators"},I=["onClick"],z={class:"carousel-nav-bar__controls"},A=e({inheritAttrs:!1,__name:"EaeraCarousel",props:{className:{},list:{},height:{default:""},trigger:{default:"click"},direction:{default:"horizontal"},arrow:{default:"never"},autoplay:{type:Boolean,default:!1},interval:{},type:{default:"card"},motionBlur:{type:Boolean,default:!1},cardScale:{},arrowSeparate:{type:Boolean,default:!1}},emits:["handleChange"],setup(e,{expose:A,emit:L}){let M=null;const N=e,O=L,$=a(),j=a(0),q=r(()=>[N.className]),E=()=>$.value?.next(),H=()=>$.value?.prev(),T=e=>$.value?.setActiveItem(e),R=(e,a)=>{j.value=e,O("handleChange",e)},D=e=>{const a=e.querySelector(".el-carousel__arrow--left"),r=e.querySelector(".el-carousel__arrow--right");a&&(a.innerHTML=C(b,16)),r&&(r.innerHTML=C(k,16))};return t(()=>{if(N.arrowSeparate)return;const e=$.value?.$el;e&&(D(e),M=new MutationObserver(()=>D(e)),M.observe(e,{childList:!0,subtree:!0}))}),l(()=>M?.disconnect()),A({nextSlide:E,prevSlide:H,setActiveItem:T}),(a,r)=>(o(),i("div",s(a.$attrs,{class:"custom-carousel-wrapper"}),[n(c(g),{ref_key:"carouselRef",ref:$,class:u(["custom-carousel",q.value]),height:e.height,trigger:e.trigger,direction:e.direction,autoplay:e.autoplay,type:e.type,interval:e.interval,arrow:e.arrowSeparate?"never":e.arrow,"motion-blur":e.motionBlur,cardScale:e.cardScale,"indicator-position":e.arrowSeparate?"none":void 0,onChange:R},{default:d(()=>[(o(!0),i(p,null,v(e.list,(e,r)=>(o(),m(c(S),{key:r,id:e.currency??r,class:u(e.className)},{default:d(()=>[f(a.$slots,"item",{item:e,idx:r})]),_:2},1032,["id","class"]))),128))]),_:3},8,["class","height","trigger","direction","autoplay","type","interval","arrow","motion-blur","cardScale","indicator-position"]),e.arrowSeparate?(o(),i("div",B,[y("div",x,[(o(!0),i(p,null,v(e.list,(e,a)=>(o(),i("span",{key:a,class:u(["carousel-nav-bar__dot",{"is-active":j.value===a}]),onClick:e=>(e=>{T(e),j.value=e})(a)},null,10,I))),128))]),y("div",z,[n(w,{color:"contrast",isIconOnly:"",plain:"",circle:"",size:"sm",onClick:H},{default:d(()=>[n(c(b))]),_:1}),n(w,{color:"contrast",isIconOnly:"",plain:"",circle:"",size:"sm",onClick:E},{default:d(()=>[n(c(k))]),_:1})])])):_("",!0)],16))}});export{A as _};
1
+ import{defineComponent as e,ref as a,computed as r,onMounted as t,onUnmounted as l,openBlock as o,createElementBlock as i,mergeProps as s,createVNode as n,unref as c,normalizeClass as u,withCtx as d,Fragment as p,renderList as v,createBlock as m,renderSlot as f,createElementVNode as y,createCommentVNode as _}from"vue";import{ElCarousel as g,ElCarouselItem as S}from"element-plus";import{_ as w}from"./EaeraButton-BPVKRBOn.mjs";import{ChevronLeft as b,ChevronRight as k}from"@lucide/vue";import{g as C}from"./iconSvg-B2wrn2gi.mjs";const B={key:0,class:"carousel-nav-bar"},x={class:"carousel-nav-bar__indicators"},I=["onClick"],z={class:"carousel-nav-bar__controls"},A=e({inheritAttrs:!1,__name:"EaeraCarousel",props:{className:{},list:{},height:{default:""},trigger:{default:"click"},direction:{default:"horizontal"},arrow:{default:"never"},autoplay:{type:Boolean,default:!1},interval:{},type:{default:"card"},motionBlur:{type:Boolean,default:!1},cardScale:{},arrowSeparate:{type:Boolean,default:!1}},emits:["handleChange"],setup(e,{expose:A,emit:L}){let M=null;const N=e,O=L,$=a(),j=a(0),q=r(()=>[N.className]),E=()=>$.value?.next(),H=()=>$.value?.prev(),T=e=>$.value?.setActiveItem(e),R=(e,a)=>{j.value=e,O("handleChange",e)},D=e=>{const a=e.querySelector(".el-carousel__arrow--left"),r=e.querySelector(".el-carousel__arrow--right");a&&(a.innerHTML=C(b,16)),r&&(r.innerHTML=C(k,16))};return t(()=>{if(N.arrowSeparate)return;const e=$.value?.$el;e&&(D(e),M=new MutationObserver(()=>D(e)),M.observe(e,{childList:!0,subtree:!0}))}),l(()=>M?.disconnect()),A({nextSlide:E,prevSlide:H,setActiveItem:T}),(a,r)=>(o(),i("div",s(a.$attrs,{class:"custom-carousel-wrapper"}),[n(c(g),{ref_key:"carouselRef",ref:$,class:u(["custom-carousel",q.value]),height:e.height,trigger:e.trigger,direction:e.direction,autoplay:e.autoplay,type:e.type,interval:e.interval,arrow:e.arrowSeparate?"never":e.arrow,"motion-blur":e.motionBlur,cardScale:e.cardScale,"indicator-position":e.arrowSeparate?"none":void 0,onChange:R},{default:d(()=>[(o(!0),i(p,null,v(e.list,(e,r)=>(o(),m(c(S),{key:r,id:e.currency??r,class:u(e.className)},{default:d(()=>[f(a.$slots,"item",{item:e,idx:r})]),_:2},1032,["id","class"]))),128))]),_:3},8,["class","height","trigger","direction","autoplay","type","interval","arrow","motion-blur","cardScale","indicator-position"]),e.arrowSeparate?(o(),i("div",B,[y("div",x,[(o(!0),i(p,null,v(e.list,(e,a)=>(o(),i("span",{key:a,class:u(["carousel-nav-bar__dot",{"is-active":j.value===a}]),onClick:e=>(e=>{T(e),j.value=e})(a)},null,10,I))),128))]),y("div",z,[n(w,{color:"contrast",isIconOnly:"",plain:"",circle:"",size:"sm",onClick:H},{default:d(()=>[n(c(b))]),_:1}),n(w,{color:"contrast",isIconOnly:"",plain:"",circle:"",size:"sm",onClick:E},{default:d(()=>[n(c(k))]),_:1})])])):_("",!0)],16))}});export{A as _};
@@ -1 +1 @@
1
- import{defineComponent as e,useModel as l,computed as o,ref as r,onMounted as s,onUnmounted as a,openBlock as t,createElementBlock as p,createVNode as u,unref as d,normalizeClass as c,mergeModels as i}from"vue";import{ElColorPicker as n}from"element-plus";import{X as m,ChevronDown as f}from"@lucide/vue";import{g as v}from"./iconSvg-BrZD7vO3.mjs";const b=e({__name:"EaeraColorPicker",props:i({className:{},disabled:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0},size:{default:"md"},showAlpha:{type:Boolean,default:!1},predefine:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:i}){const b=e,_=l(e,"modelValue");let k=null;const w=o(()=>["custom-color-picker",b.className,b.size]),y=r(),V=r(null),A=o(()=>y.value?.color),M=e=>{const l="sm"===b.size?16:20;const o=e.querySelector(".el-color-picker__empty");o&&(o.innerHTML=v(m,l));const r=e.querySelector(".el-color-picker__icon");r&&(r.innerHTML=v(f,l))};return s(()=>{const e=V.value;e&&(M(e),k=new MutationObserver(()=>M(e)),k.observe(e,{childList:!0,subtree:!0}))}),a(()=>k?.disconnect()),i({color:A,show:()=>y.value?.show(),hide:()=>y.value?.hide(),focus:()=>y.value?.focus(),blur:()=>y.value?.blur()}),(l,o)=>(t(),p("div",{ref_key:"wrapperRef",ref:V},[u(d(n),{ref_key:"colorPickerRef",ref:y,class:c(w.value),modelValue:_.value,"onUpdate:modelValue":o[0]||(o[0]=e=>_.value=e),teleported:e.teleported,disabled:e.disabled,showAlpha:e.showAlpha,predefine:e.predefine,"popper-class":"custom-popper-color-picker"},null,8,["class","modelValue","teleported","disabled","showAlpha","predefine"])],512))}});export{b as _};
1
+ import{defineComponent as e,useModel as l,computed as o,ref as r,onMounted as s,onUnmounted as a,openBlock as t,createElementBlock as p,createVNode as u,unref as d,normalizeClass as c,mergeModels as i}from"vue";import{ElColorPicker as n}from"element-plus";import{X as m,ChevronDown as f}from"@lucide/vue";import{g as v}from"./iconSvg-B2wrn2gi.mjs";const b=e({__name:"EaeraColorPicker",props:i({className:{},disabled:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0},size:{default:"md"},showAlpha:{type:Boolean,default:!1},predefine:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:i}){const b=e,_=l(e,"modelValue");let k=null;const w=o(()=>["custom-color-picker",b.className,b.size]),y=r(),V=r(null),A=o(()=>y.value?.color),M=e=>{const l="sm"===b.size?16:20;const o=e.querySelector(".el-color-picker__empty");o&&(o.innerHTML=v(m,l));const r=e.querySelector(".el-color-picker__icon");r&&(r.innerHTML=v(f,l))};return s(()=>{const e=V.value;e&&(M(e),k=new MutationObserver(()=>M(e)),k.observe(e,{childList:!0,subtree:!0}))}),a(()=>k?.disconnect()),i({color:A,show:()=>y.value?.show(),hide:()=>y.value?.hide(),focus:()=>y.value?.focus(),blur:()=>y.value?.blur()}),(l,o)=>(t(),p("div",{ref_key:"wrapperRef",ref:V},[u(d(n),{ref_key:"colorPickerRef",ref:y,class:c(w.value),modelValue:_.value,"onUpdate:modelValue":o[0]||(o[0]=e=>_.value=e),teleported:e.teleported,disabled:e.disabled,showAlpha:e.showAlpha,predefine:e.predefine,"popper-class":"custom-popper-color-picker"},null,8,["class","modelValue","teleported","disabled","showAlpha","predefine"])],512))}});export{b as _};