@rhino-design/vue 0.2.1 → 0.2.2

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 (158) hide show
  1. package/README.md +3 -5
  2. package/dist/components/XAffix.vue.d.ts +1 -1
  3. package/dist/components/XAnchor.vue.d.ts +2 -2
  4. package/dist/components/XAutoComplete.vue.d.ts +649 -15
  5. package/dist/components/XAvatar.vue.d.ts +2 -2
  6. package/dist/components/XBackTop.vue.d.ts +23 -7
  7. package/dist/components/XBadge.vue.d.ts +3 -3
  8. package/dist/components/XBaseMenu.vue.d.ts +5 -5
  9. package/dist/components/XBreadcrumb.vue.d.ts +24 -4
  10. package/dist/components/XBreadcrumbItem.vue.d.ts +14 -2
  11. package/dist/components/XButton.vue.d.ts +4 -4
  12. package/dist/components/XButtonG.vue.d.ts +2 -2
  13. package/dist/components/XButtonGroup.vue.d.ts +1 -1
  14. package/dist/components/XCalendar.vue.d.ts +5 -2
  15. package/dist/components/XCard.vue.d.ts +1 -1
  16. package/dist/components/XCarousel.vue.d.ts +2 -2
  17. package/dist/components/XCascader.vue.d.ts +19 -19
  18. package/dist/components/XCascaderPanel.vue.d.ts +6 -6
  19. package/dist/components/XChatInput.vue.d.ts +5 -5
  20. package/dist/components/XCheckbox.vue.d.ts +14 -8
  21. package/dist/components/XCheckboxGroup.vue.d.ts +36 -13
  22. package/dist/components/XCollapse.vue.d.ts +14 -7
  23. package/dist/components/XCollapseItem.vue.d.ts +16 -4
  24. package/dist/components/XColorGroup.vue.d.ts +1 -1
  25. package/dist/components/XConfigProvider.vue.d.ts +17 -4
  26. package/dist/components/XCountdown.vue.d.ts +2 -2
  27. package/dist/components/XCropper.vue.d.ts +2 -2
  28. package/dist/components/XDatePicker.vue.d.ts +17 -17
  29. package/dist/components/XDescriptions.vue.d.ts +4 -4
  30. package/dist/components/XDescriptionsItem.vue.d.ts +2 -1
  31. package/dist/components/{XScrollbar.vue.d.ts → XDgroup.vue.d.ts} +4 -4
  32. package/dist/components/XDoption.vue.d.ts +38 -0
  33. package/dist/components/XDrawer.vue.d.ts +7 -7
  34. package/dist/components/XDropdown.vue.d.ts +38 -13
  35. package/dist/components/XDropdownButton.vue.d.ts +65 -0
  36. package/dist/components/XDropdownItem.vue.d.ts +29 -0
  37. package/dist/components/XDropdownPanel.vue.d.ts +33 -0
  38. package/dist/components/XDsubmenu.vue.d.ts +48 -0
  39. package/dist/components/XEmpty.vue.d.ts +2 -2
  40. package/dist/components/XForm.vue.d.ts +2 -2
  41. package/dist/components/XFormItem.vue.d.ts +21 -5
  42. package/dist/components/XGrid.vue.d.ts +1 -1
  43. package/dist/components/XGridItem.vue.d.ts +3 -3
  44. package/dist/components/XGridLayoutItem.vue.d.ts +1 -1
  45. package/dist/components/XIcon.d.ts +1 -1
  46. package/dist/components/XIconLite.d.ts +1 -1
  47. package/dist/components/XImage.vue.d.ts +7 -3
  48. package/dist/components/XInput.vue.d.ts +5 -5
  49. package/dist/components/XInputComposite.vue.d.ts +12 -12
  50. package/dist/components/XInputNumber.vue.d.ts +9 -9
  51. package/dist/components/XInputPassword.vue.d.ts +24 -24
  52. package/dist/components/XInputSearch.vue.d.ts +26 -26
  53. package/dist/components/XInputTag.vue.d.ts +10 -10
  54. package/dist/components/XLink.vue.d.ts +1 -1
  55. package/dist/components/XList.vue.d.ts +8 -5
  56. package/dist/components/XListItem.vue.d.ts +2 -3
  57. package/dist/components/XMention.vue.d.ts +899 -0
  58. package/dist/components/XMenu.vue.d.ts +7 -7
  59. package/dist/components/XMenuItem.vue.d.ts +43 -43
  60. package/dist/components/XMessage.vue.d.ts +1 -1
  61. package/dist/components/XMessageList.d.ts +1 -1
  62. package/dist/components/XMessageService.d.ts +2 -0
  63. package/dist/components/XModal.vue.d.ts +8 -8
  64. package/dist/components/XModalService.d.ts +2 -0
  65. package/dist/components/XNotification.vue.d.ts +31 -20
  66. package/dist/components/XNotificationList.d.ts +39 -0
  67. package/dist/components/XNotificationService.d.ts +54 -15
  68. package/dist/components/XOptgroup.vue.d.ts +1 -0
  69. package/dist/components/XOption.vue.d.ts +1 -0
  70. package/dist/components/XOverflowList.vue.d.ts +38 -8
  71. package/dist/components/XPageHeader.vue.d.ts +11 -5
  72. package/dist/components/XPopconfirm.vue.d.ts +82 -77
  73. package/dist/components/XPopover.vue.d.ts +3 -3
  74. package/dist/components/XProgress.vue.d.ts +2 -2
  75. package/dist/components/XQRCode.vue.d.ts +3 -3
  76. package/dist/components/XRadio.vue.d.ts +1 -1
  77. package/dist/components/XRadioButton.vue.d.ts +1 -1
  78. package/dist/components/XRadioGroup.vue.d.ts +3 -3
  79. package/dist/components/XRangePicker.vue.d.ts +45 -0
  80. package/dist/components/XRate.vue.d.ts +3 -3
  81. package/dist/components/XResizeBox.vue.d.ts +41 -9
  82. package/dist/components/XRichTextEditor.vue.d.ts +2 -2
  83. package/dist/components/XScrollbarThumb.vue.d.ts +26 -0
  84. package/dist/components/XSelect.vue.d.ts +27 -27
  85. package/dist/components/XSkeleton.vue.d.ts +100 -29
  86. package/dist/components/XSkeletonLine.vue.d.ts +15 -0
  87. package/dist/components/XSkeletonShape.vue.d.ts +9 -0
  88. package/dist/components/XSlider.vue.d.ts +86 -86
  89. package/dist/components/XSpace.vue.d.ts +59 -28
  90. package/dist/components/XSplit.vue.d.ts +3 -3
  91. package/dist/components/XStatistic.vue.d.ts +5 -5
  92. package/dist/components/XStep.vue.d.ts +3 -3
  93. package/dist/components/XSteps.vue.d.ts +2 -2
  94. package/dist/components/XSubMenu.vue.d.ts +30 -30
  95. package/dist/components/XSubMenuPop.vue.d.ts +29 -29
  96. package/dist/components/XSwitch.vue.d.ts +5 -5
  97. package/dist/components/XTabPane.vue.d.ts +4 -4
  98. package/dist/components/XTable.vue.d.ts +5 -5
  99. package/dist/components/XTabs.vue.d.ts +53 -25
  100. package/dist/components/XTag.vue.d.ts +5 -3
  101. package/dist/components/XTextarea.vue.d.ts +9 -9
  102. package/dist/components/XTimePicker.vue.d.ts +13 -13
  103. package/dist/components/XTimeline.vue.d.ts +2 -2
  104. package/dist/components/XTimelineItem.vue.d.ts +3 -3
  105. package/dist/components/XTooltip.vue.d.ts +76 -76
  106. package/dist/components/XTree.vue.d.ts +3 -1
  107. package/dist/components/XTreeSelect.vue.d.ts +175 -29
  108. package/dist/components/XTrigger.vue.d.ts +6 -6
  109. package/dist/components/XTypography.vue.d.ts +4 -4
  110. package/dist/components/XTypographyParagraph.vue.d.ts +2 -2
  111. package/dist/components/XTypographyText.vue.d.ts +3 -3
  112. package/dist/components/XTypographyTitle.vue.d.ts +2 -2
  113. package/dist/components/XUpload.vue.d.ts +7 -5
  114. package/dist/components/XVerificationCode.vue.d.ts +3 -3
  115. package/dist/components/XWatermark.vue.d.ts +30 -4
  116. package/dist/components/__tests__/XAutoComplete.test.d.ts +1 -0
  117. package/dist/components/__tests__/XBackTop.test.d.ts +1 -0
  118. package/dist/components/__tests__/XBreadcrumb.test.d.ts +1 -0
  119. package/dist/components/__tests__/XCheckbox.test.d.ts +1 -0
  120. package/dist/components/__tests__/XCollapse.test.d.ts +1 -0
  121. package/dist/components/__tests__/XComplexTriggerTheme.test.d.ts +1 -0
  122. package/dist/components/__tests__/XDropdown.test.d.ts +1 -0
  123. package/dist/components/__tests__/XImage.test.d.ts +1 -0
  124. package/dist/components/__tests__/XOverflowList.test.d.ts +1 -0
  125. package/dist/components/__tests__/XOverlayServiceTheme.test.d.ts +1 -0
  126. package/dist/components/__tests__/XPageHeader.test.d.ts +1 -0
  127. package/dist/components/__tests__/XRadioGroup.test.d.ts +1 -0
  128. package/dist/components/__tests__/XResizeBox.test.d.ts +1 -0
  129. package/dist/components/__tests__/XSkeleton.test.d.ts +1 -0
  130. package/dist/components/__tests__/XSteps.test.d.ts +1 -0
  131. package/dist/components/__tests__/XTabs.test.d.ts +1 -0
  132. package/dist/components/__tests__/XThemeAttrAllComponentsSmoke.test.d.ts +1 -0
  133. package/dist/components/__tests__/XThemeAttrsForwarding.test.d.ts +1 -0
  134. package/dist/components/__tests__/XTour.test.d.ts +1 -0
  135. package/dist/components/__tests__/XTreeSelect.test.d.ts +1 -0
  136. package/dist/components/__tests__/XTriggerWrappersTheme.test.d.ts +1 -0
  137. package/dist/components/__tests__/XWatermark.test.d.ts +1 -0
  138. package/dist/components/index.d.ts +500 -1
  139. package/dist/components/x-breadcrumb-context.d.ts +9 -0
  140. package/dist/components/x-checkbox-context.d.ts +19 -0
  141. package/dist/components/x-dropdown-context.d.ts +7 -0
  142. package/dist/components/x-icon-shared.d.ts +1 -1
  143. package/dist/components/x-list-shared.d.ts +20 -8
  144. package/dist/composables/collapse.d.ts +8 -5
  145. package/dist/composables/config-provider.d.ts +29 -0
  146. package/dist/composables/i18n.d.ts +4 -2
  147. package/dist/composables/scrollbar-visibility.d.ts +1 -0
  148. package/dist/composables/steps.d.ts +1 -0
  149. package/dist/composables/tabs.d.ts +19 -8
  150. package/dist/composables/theme-context.d.ts +9 -0
  151. package/dist/index.cjs +10 -10
  152. package/dist/index.cjs.map +1 -1
  153. package/dist/index.js +21426 -17973
  154. package/dist/index.js.map +1 -1
  155. package/dist/locales/da-DK.d.ts +381 -0
  156. package/dist/locales/nl-NL.d.ts +381 -0
  157. package/dist/style.css +1 -1
  158. package/package.json +1 -1
@@ -152,12 +152,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
152
152
  onMenuItemClick?: ((...args: any[]) => any) | undefined;
153
153
  onSubMenuClick?: ((...args: any[]) => any) | undefined;
154
154
  }>, {
155
- mode: "horizontal" | "vertical" | "pop" | "popButton";
155
+ mode: "pop" | "horizontal" | "vertical" | "popButton";
156
+ popupMaxHeight: number | boolean;
156
157
  collapsed: boolean;
157
158
  accordion: boolean;
158
159
  defaultCollapsed: boolean;
159
160
  autoScrollIntoView: boolean;
160
- popupMaxHeight: number | boolean;
161
161
  autoOpen: boolean;
162
162
  showCollapseButton: boolean;
163
163
  defaultSelectedKeys: string[];
@@ -358,15 +358,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
358
358
  "onMenu-item-click"?: ((...args: any[]) => any) | undefined;
359
359
  "onSub-menu-click"?: ((...args: any[]) => any) | undefined;
360
360
  }>, {
361
- mode: "horizontal" | "vertical" | "pop" | "popButton";
361
+ mode: "pop" | "horizontal" | "vertical" | "popButton";
362
+ popupMaxHeight: number | boolean;
363
+ prefixCls: string;
364
+ theme: "dark" | "light";
362
365
  collapsed: boolean;
363
366
  accordion: boolean;
364
- theme: "dark" | "light";
365
367
  defaultCollapsed: boolean;
366
368
  autoScrollIntoView: boolean;
367
369
  inTrigger: boolean;
368
- popupMaxHeight: number | boolean;
369
- prefixCls: string;
370
370
  siderCollapsed: boolean;
371
371
  isRoot: boolean;
372
372
  autoOpen: boolean;
@@ -420,9 +420,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
420
420
  default: boolean;
421
421
  };
422
422
  }>> & Readonly<{}>, {
423
+ size: string | number;
423
424
  color: string;
424
425
  strokeWidth: string | number;
425
- size: string | number;
426
426
  spin: boolean;
427
427
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
428
428
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -67,13 +67,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
67
67
  "update:popupVisible": (value: boolean) => any;
68
68
  popupVisibleChange: (value: boolean) => any;
69
69
  }, import('vue').PublicProps, {
70
- disabled: boolean;
71
70
  content: string;
71
+ disabled: boolean;
72
72
  position: import('../composables/popup').XPopupPlacement;
73
73
  mini: boolean;
74
- trigger: "click" | "hover" | "focus" | "contextMenu" | Array<"click" | "hover" | "focus" | "contextMenu">;
75
74
  popupVisible: boolean;
76
75
  defaultPopupVisible: boolean;
76
+ trigger: "click" | "hover" | "focus" | "contextMenu" | Array<"click" | "hover" | "focus" | "contextMenu">;
77
77
  showArrow: boolean;
78
78
  unmountOnClose: boolean;
79
79
  contentClass: string | string[];
@@ -90,16 +90,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
90
90
  $data: {};
91
91
  $props: Partial<{
92
92
  disabled: boolean;
93
- animationName: string;
94
93
  position: import('../composables/popup').XPopupPlacement;
95
- offset: number;
96
- duration: number | {
97
- enter: number;
98
- leave: number;
99
- };
100
- trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
94
+ updateAtScroll: boolean;
95
+ scrollToClose: boolean;
101
96
  popupVisible: boolean;
102
97
  defaultPopupVisible: boolean;
98
+ trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
99
+ offset: number;
103
100
  popupOffset: number;
104
101
  popupTranslate: import('../composables/popup').XPopupTranslate;
105
102
  showArrow: boolean;
@@ -114,6 +111,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
114
111
  arrowClass: string | string[] | Record<string, boolean>;
115
112
  arrowStyle: import('vue').CSSProperties;
116
113
  popupStyle: import('vue').CSSProperties;
114
+ animationName: string;
115
+ duration: number | {
116
+ enter: number;
117
+ leave: number;
118
+ };
117
119
  mouseEnterDelay: number;
118
120
  mouseLeaveDelay: number;
119
121
  focusDelay: number;
@@ -121,7 +123,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
121
123
  autoFitPopupMinWidth: boolean;
122
124
  autoFixPosition: boolean;
123
125
  popupContainer: string | HTMLElement;
124
- updateAtScroll: boolean;
125
126
  autoFitTransformOrigin: boolean;
126
127
  hideEmpty: boolean;
127
128
  openedClass: string | string[] | Record<string, boolean>;
@@ -129,15 +130,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
129
130
  renderToBody: boolean;
130
131
  preventFocus: boolean;
131
132
  allowOverflow: boolean;
132
- scrollToClose: boolean;
133
133
  scrollToCloseDistance: number;
134
134
  }> & Omit<{
135
135
  readonly disabled: boolean;
136
- readonly animationName: string;
137
136
  readonly position: import('../composables/popup').XPopupPlacement;
138
- readonly offset: number;
139
- readonly trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
137
+ readonly updateAtScroll: boolean;
138
+ readonly scrollToClose: boolean;
140
139
  readonly defaultPopupVisible: boolean;
140
+ readonly trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
141
+ readonly offset: number;
141
142
  readonly showArrow: boolean;
142
143
  readonly alignPoint: boolean;
143
144
  readonly popupHoverStay: boolean;
@@ -150,6 +151,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
150
151
  readonly arrowClass: string | string[] | Record<string, boolean>;
151
152
  readonly arrowStyle: import('vue').CSSProperties;
152
153
  readonly popupStyle: import('vue').CSSProperties;
154
+ readonly animationName: string;
153
155
  readonly mouseEnterDelay: number;
154
156
  readonly mouseLeaveDelay: number;
155
157
  readonly focusDelay: number;
@@ -157,7 +159,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
157
159
  readonly autoFitPopupMinWidth: boolean;
158
160
  readonly autoFixPosition: boolean;
159
161
  readonly popupContainer: string | HTMLElement;
160
- readonly updateAtScroll: boolean;
161
162
  readonly autoFitTransformOrigin: boolean;
162
163
  readonly hideEmpty: boolean;
163
164
  readonly openedClass: string | string[] | Record<string, boolean>;
@@ -165,22 +166,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
165
166
  readonly renderToBody: boolean;
166
167
  readonly preventFocus: boolean;
167
168
  readonly allowOverflow: boolean;
168
- readonly scrollToClose: boolean;
169
169
  readonly scrollToCloseDistance: number;
170
+ readonly popupVisible?: boolean | undefined;
171
+ readonly popupOffset?: number | undefined;
172
+ readonly popupTranslate?: import('../composables/popup').XPopupTranslate | undefined;
170
173
  readonly duration?: (number | {
171
174
  enter: number;
172
175
  leave: number;
173
176
  }) | undefined;
174
- readonly popupVisible?: boolean | undefined;
175
- readonly popupOffset?: number | undefined;
176
- readonly popupTranslate?: import('../composables/popup').XPopupTranslate | undefined;
177
177
  readonly onResize?: (() => any) | undefined;
178
178
  readonly onHide?: (() => any) | undefined;
179
179
  readonly onShow?: (() => any) | undefined;
180
180
  readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
181
181
  readonly onPopupVisibleChange?: ((value: boolean) => any) | undefined;
182
182
  readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
183
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "animationName" | "position" | "offset" | "duration" | "trigger" | "popupVisible" | "defaultPopupVisible" | "popupOffset" | "popupTranslate" | "showArrow" | "alignPoint" | "popupHoverStay" | "blurToClose" | "clickToClose" | "clickOutsideToClose" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "popupStyle" | "mouseEnterDelay" | "mouseLeaveDelay" | "focusDelay" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "autoFixPosition" | "popupContainer" | "updateAtScroll" | "autoFitTransformOrigin" | "hideEmpty" | "openedClass" | "autoFitPosition" | "renderToBody" | "preventFocus" | "allowOverflow" | "scrollToClose" | "scrollToCloseDistance">;
183
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "position" | "updateAtScroll" | "scrollToClose" | "popupVisible" | "defaultPopupVisible" | "trigger" | "offset" | "popupOffset" | "popupTranslate" | "showArrow" | "alignPoint" | "popupHoverStay" | "blurToClose" | "clickToClose" | "clickOutsideToClose" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "popupStyle" | "animationName" | "duration" | "mouseEnterDelay" | "mouseLeaveDelay" | "focusDelay" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "autoFixPosition" | "popupContainer" | "autoFitTransformOrigin" | "hideEmpty" | "openedClass" | "autoFitPosition" | "renderToBody" | "preventFocus" | "allowOverflow" | "scrollToCloseDistance">;
184
184
  $attrs: import('vue').Attrs;
185
185
  $refs: {
186
186
  [x: string]: unknown;
@@ -376,16 +376,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
376
376
  "popup-visible-change": (value: boolean) => any;
377
377
  }, string, {
378
378
  disabled: boolean;
379
- animationName: string;
380
379
  position: import('../composables/popup').XPopupPlacement;
381
- offset: number;
382
- duration: number | {
383
- enter: number;
384
- leave: number;
385
- };
386
- trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
380
+ updateAtScroll: boolean;
381
+ scrollToClose: boolean;
387
382
  popupVisible: boolean;
388
383
  defaultPopupVisible: boolean;
384
+ trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
385
+ offset: number;
389
386
  popupOffset: number;
390
387
  popupTranslate: import('../composables/popup').XPopupTranslate;
391
388
  showArrow: boolean;
@@ -400,6 +397,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
400
397
  arrowClass: string | string[] | Record<string, boolean>;
401
398
  arrowStyle: import('vue').CSSProperties;
402
399
  popupStyle: import('vue').CSSProperties;
400
+ animationName: string;
401
+ duration: number | {
402
+ enter: number;
403
+ leave: number;
404
+ };
403
405
  mouseEnterDelay: number;
404
406
  mouseLeaveDelay: number;
405
407
  focusDelay: number;
@@ -407,7 +409,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
407
409
  autoFitPopupMinWidth: boolean;
408
410
  autoFixPosition: boolean;
409
411
  popupContainer: string | HTMLElement;
410
- updateAtScroll: boolean;
411
412
  autoFitTransformOrigin: boolean;
412
413
  hideEmpty: boolean;
413
414
  openedClass: string | string[] | Record<string, boolean>;
@@ -415,7 +416,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
415
416
  renderToBody: boolean;
416
417
  preventFocus: boolean;
417
418
  allowOverflow: boolean;
418
- scrollToClose: boolean;
419
419
  scrollToCloseDistance: number;
420
420
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
421
421
  beforeCreate?: (() => void) | (() => void)[];
@@ -439,16 +439,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
439
439
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
440
440
  } & Readonly<{
441
441
  disabled: boolean;
442
- animationName: string;
443
442
  position: import('../composables/popup').XPopupPlacement;
444
- offset: number;
445
- duration: number | {
446
- enter: number;
447
- leave: number;
448
- };
449
- trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
443
+ updateAtScroll: boolean;
444
+ scrollToClose: boolean;
450
445
  popupVisible: boolean;
451
446
  defaultPopupVisible: boolean;
447
+ trigger: ("click" | "focus" | "hover" | "contextMenu") | ("click" | "focus" | "hover" | "contextMenu")[];
448
+ offset: number;
452
449
  popupOffset: number;
453
450
  popupTranslate: import('../composables/popup').XPopupTranslate;
454
451
  showArrow: boolean;
@@ -463,6 +460,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
463
460
  arrowClass: string | string[] | Record<string, boolean>;
464
461
  arrowStyle: import('vue').CSSProperties;
465
462
  popupStyle: import('vue').CSSProperties;
463
+ animationName: string;
464
+ duration: number | {
465
+ enter: number;
466
+ leave: number;
467
+ };
466
468
  mouseEnterDelay: number;
467
469
  mouseLeaveDelay: number;
468
470
  focusDelay: number;
@@ -470,7 +472,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
470
472
  autoFitPopupMinWidth: boolean;
471
473
  autoFixPosition: boolean;
472
474
  popupContainer: string | HTMLElement;
473
- updateAtScroll: boolean;
474
475
  autoFitTransformOrigin: boolean;
475
476
  hideEmpty: boolean;
476
477
  openedClass: string | string[] | Record<string, boolean>;
@@ -478,7 +479,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
478
479
  renderToBody: boolean;
479
480
  preventFocus: boolean;
480
481
  allowOverflow: boolean;
481
- scrollToClose: boolean;
482
482
  scrollToCloseDistance: number;
483
483
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
484
484
  popupVisible: {
@@ -647,7 +647,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
647
647
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
648
648
  onPopupVisibleChange?: ((value: boolean) => any) | undefined;
649
649
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
650
- }>, "hide" | "show" | "updatePosition" | ("disabled" | "animationName" | "position" | "offset" | "duration" | "trigger" | "popupVisible" | "defaultPopupVisible" | "popupOffset" | "popupTranslate" | "showArrow" | "alignPoint" | "popupHoverStay" | "blurToClose" | "clickToClose" | "clickOutsideToClose" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "popupStyle" | "mouseEnterDelay" | "mouseLeaveDelay" | "focusDelay" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "autoFixPosition" | "popupContainer" | "updateAtScroll" | "autoFitTransformOrigin" | "hideEmpty" | "openedClass" | "autoFitPosition" | "renderToBody" | "preventFocus" | "allowOverflow" | "scrollToClose" | "scrollToCloseDistance")> & import('vue').ShallowUnwrapRef<{
650
+ }>, "hide" | "show" | "updatePosition" | ("disabled" | "position" | "updateAtScroll" | "scrollToClose" | "popupVisible" | "defaultPopupVisible" | "trigger" | "offset" | "popupOffset" | "popupTranslate" | "showArrow" | "alignPoint" | "popupHoverStay" | "blurToClose" | "clickToClose" | "clickOutsideToClose" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "popupStyle" | "animationName" | "duration" | "mouseEnterDelay" | "mouseLeaveDelay" | "focusDelay" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "autoFixPosition" | "popupContainer" | "autoFitTransformOrigin" | "hideEmpty" | "openedClass" | "autoFitPosition" | "renderToBody" | "preventFocus" | "allowOverflow" | "scrollToCloseDistance")> & import('vue').ShallowUnwrapRef<{
651
651
  show: () => void;
652
652
  hide: () => void;
653
653
  updatePosition: () => Promise<void>;
@@ -689,13 +689,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
689
689
  }>, {
690
690
  updatePosition: () => Promise<void> | undefined;
691
691
  }, {}, {}, {}, {
692
- disabled: boolean;
693
692
  content: string;
693
+ disabled: boolean;
694
694
  position: import('../composables/popup').XPopupPlacement;
695
695
  mini: boolean;
696
- trigger: "click" | "hover" | "focus" | "contextMenu" | Array<"click" | "hover" | "focus" | "contextMenu">;
697
696
  popupVisible: boolean;
698
697
  defaultPopupVisible: boolean;
698
+ trigger: "click" | "hover" | "focus" | "contextMenu" | Array<"click" | "hover" | "focus" | "contextMenu">;
699
699
  showArrow: boolean;
700
700
  unmountOnClose: boolean;
701
701
  contentClass: string | string[];
@@ -738,13 +738,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
738
738
  "update:popupVisible": (value: boolean) => any;
739
739
  popupVisibleChange: (value: boolean) => any;
740
740
  }, string, {
741
- disabled: boolean;
742
741
  content: string;
742
+ disabled: boolean;
743
743
  position: import('../composables/popup').XPopupPlacement;
744
744
  mini: boolean;
745
- trigger: "click" | "hover" | "focus" | "contextMenu" | Array<"click" | "hover" | "focus" | "contextMenu">;
746
745
  popupVisible: boolean;
747
746
  defaultPopupVisible: boolean;
747
+ trigger: "click" | "hover" | "focus" | "contextMenu" | Array<"click" | "hover" | "focus" | "contextMenu">;
748
748
  showArrow: boolean;
749
749
  unmountOnClose: boolean;
750
750
  contentClass: string | string[];
@@ -23,9 +23,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
23
23
  onClose?: (() => any) | undefined;
24
24
  }>, {
25
25
  type: MessageDisplayType;
26
+ duration: number;
26
27
  showIcon: boolean;
27
28
  closable: boolean;
28
- duration: number;
29
29
  resetOnUpdate: boolean;
30
30
  resetOnHover: boolean;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
@@ -32,8 +32,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
32
  onClose?: ((...args: any[]) => any) | undefined;
33
33
  onAfterClose?: ((...args: any[]) => any) | undefined;
34
34
  }>, {
35
+ position: "top" | "bottom";
35
36
  zIndex: number;
36
- position: "bottom" | "top";
37
37
  messages: MessageItem[];
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
39
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { App, AppContext, VNodeChild } from 'vue';
2
+ import { XThemeMode } from '../composables/theme-context';
2
3
  export declare const MESSAGE_POSITIONS: readonly ["top", "bottom"];
3
4
  export type MessageType = 'info' | 'success' | 'warning' | 'error';
4
5
  export type MessageDisplayType = MessageType | 'loading' | 'normal';
@@ -8,6 +9,7 @@ export type MessageRenderContent = VNodeChild | (() => VNodeChild);
8
9
  export interface MessageConfig {
9
10
  content: MessageRenderContent;
10
11
  id?: string | number;
12
+ theme?: XThemeMode;
11
13
  icon?: MessageRenderFunction;
12
14
  position?: MessagePosition;
13
15
  showIcon?: boolean;
@@ -62,37 +62,37 @@ declare function __VLS_template(): {
62
62
  };
63
63
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
64
64
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
65
- open: () => any;
66
65
  cancel: (event: Event) => any;
67
66
  close: () => any;
67
+ open: () => any;
68
68
  "update:open": (value: boolean) => any;
69
69
  ok: (event: Event) => any;
70
70
  beforeClose: () => any;
71
71
  "update:visible": (value: boolean) => any;
72
72
  beforeOpen: () => any;
73
73
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
74
- onOpen?: (() => any) | undefined;
75
74
  onCancel?: ((event: Event) => any) | undefined;
76
75
  onClose?: (() => any) | undefined;
76
+ onOpen?: (() => any) | undefined;
77
77
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
78
78
  onOk?: ((event: Event) => any) | undefined;
79
79
  onBeforeClose?: (() => any) | undefined;
80
80
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
81
81
  onBeforeOpen?: (() => any) | undefined;
82
82
  }>, {
83
- top: number | string;
84
- width: number | string;
85
- mask: boolean;
86
83
  footer: boolean;
87
84
  title: string;
85
+ mask: boolean;
86
+ width: number | string;
87
+ top: number | string;
88
88
  visible: boolean;
89
89
  open: boolean;
90
- closable: boolean;
91
- bodyStyle: string | false | CSSProperties | StyleValue[] | null;
92
- draggable: boolean;
93
90
  unmountOnClose: boolean;
94
91
  popupContainer: string | HTMLElement;
95
92
  renderToBody: boolean;
93
+ closable: boolean;
94
+ bodyStyle: string | false | CSSProperties | StyleValue[] | null;
95
+ draggable: boolean;
96
96
  defaultVisible: boolean;
97
97
  maskClosable: boolean;
98
98
  okText: string;
@@ -1,10 +1,12 @@
1
1
  import { AppContext, CSSProperties, StyleValue, VNodeChild } from 'vue';
2
+ import { XThemeMode } from '../composables/theme-context';
2
3
  type MessageType = 'info' | 'success' | 'warning' | 'error';
3
4
  type ModalRenderContent = VNodeChild | (() => VNodeChild);
4
5
  interface ModalButtonProps {
5
6
  [key: string]: unknown;
6
7
  }
7
8
  interface ModalConfig {
9
+ theme?: XThemeMode;
8
10
  title?: ModalRenderContent;
9
11
  content: ModalRenderContent;
10
12
  footer?: boolean | ModalRenderContent;
@@ -1,29 +1,40 @@
1
- type NotificationType = 'info' | 'success' | 'warning' | 'error' | 'normal';
2
- type NotificationPosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3
- interface NotificationProps {
4
- id: string;
1
+ import { NotificationType } from './XNotificationService';
2
+ type __VLS_Props = {
5
3
  type?: NotificationType;
6
- title?: string;
7
- content: string;
8
- duration?: number;
9
- closable?: boolean;
10
4
  showIcon?: boolean;
11
- position?: NotificationPosition;
12
- footer?: string;
13
- onClose?: () => void;
14
- }
15
- declare function close(): void;
16
- declare const _default: import('vue').DefineComponent<NotificationProps, {
17
- close: typeof close;
18
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ closable?: boolean;
6
+ duration?: number;
7
+ resetOnUpdate?: boolean;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ icon?(_: {}): any;
13
+ default?(_: {}): any;
14
+ content?(_: {}): any;
15
+ footer?(_: {}): any;
16
+ closeIconElement?(_: {}): any;
17
+ closeIcon?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLLIElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
24
  close: () => any;
20
- }, string, import('vue').PublicProps, Readonly<NotificationProps> & Readonly<{
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
26
  onClose?: (() => any) | undefined;
22
27
  }>, {
23
- position: NotificationPosition;
24
28
  type: NotificationType;
29
+ duration: number;
25
30
  showIcon: boolean;
26
31
  closable: boolean;
27
- duration: number;
28
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ resetOnUpdate: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
35
  export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,39 @@
1
+ import { PropType } from 'vue';
2
+ import { NotificationItem, NotificationPosition } from './XNotificationService';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ notifications: {
5
+ type: PropType<NotificationItem[]>;
6
+ default: () => never[];
7
+ };
8
+ position: {
9
+ type: PropType<NotificationPosition>;
10
+ default: string;
11
+ };
12
+ zIndex: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
17
+ [key: string]: any;
18
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "afterClose")[], "close" | "afterClose", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ notifications: {
20
+ type: PropType<NotificationItem[]>;
21
+ default: () => never[];
22
+ };
23
+ position: {
24
+ type: PropType<NotificationPosition>;
25
+ default: string;
26
+ };
27
+ zIndex: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ }>> & Readonly<{
32
+ onClose?: ((...args: any[]) => any) | undefined;
33
+ onAfterClose?: ((...args: any[]) => any) | undefined;
34
+ }>, {
35
+ position: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
36
+ zIndex: number;
37
+ notifications: NotificationItem[];
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ export default _default;
@@ -1,20 +1,59 @@
1
- type NotificationPosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
2
- interface NotificationConfig {
3
- title?: string;
4
- content: string;
5
- duration?: number;
1
+ import { App, AppContext, CSSProperties, VNodeChild } from 'vue';
2
+ import { XThemeMode } from '../composables/theme-context';
3
+ export declare const NOTIFICATION_TYPES: readonly ["info", "success", "warning", "error"];
4
+ export declare const NOTIFICATION_POSITIONS: readonly ["topLeft", "topRight", "bottomLeft", "bottomRight"];
5
+ export type NotificationType = typeof NOTIFICATION_TYPES[number];
6
+ export type NotificationPosition = typeof NOTIFICATION_POSITIONS[number];
7
+ export type NotificationRenderFunction = () => VNodeChild;
8
+ export type NotificationRenderContent = VNodeChild | (() => VNodeChild);
9
+ export interface NotificationConfig {
10
+ content: NotificationRenderContent;
11
+ title?: NotificationRenderContent;
12
+ theme?: XThemeMode;
13
+ icon?: NotificationRenderFunction;
14
+ id?: string;
15
+ style?: CSSProperties;
16
+ class?: unknown;
17
+ position?: NotificationPosition;
18
+ showIcon?: boolean;
6
19
  closable?: boolean;
20
+ duration?: number;
21
+ footer?: NotificationRenderFunction;
22
+ closeIcon?: NotificationRenderFunction;
23
+ closeIconElement?: NotificationRenderFunction;
24
+ onClose?: (id: number | string) => void;
25
+ }
26
+ export interface NotificationReturn {
27
+ close: () => void;
28
+ }
29
+ export interface NotificationMethod {
30
+ info: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
31
+ success: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
32
+ warning: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
33
+ error: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
34
+ remove: (id: string) => void;
35
+ clear: (position?: NotificationPosition) => void;
36
+ }
37
+ export interface NotificationItem {
38
+ id: number | string;
39
+ type: NotificationType;
40
+ content: NotificationRenderContent;
41
+ style?: CSSProperties;
42
+ class?: unknown;
43
+ title?: NotificationRenderContent;
44
+ icon?: NotificationRenderFunction;
45
+ footer?: NotificationRenderFunction;
46
+ closeIcon?: NotificationRenderFunction;
47
+ closeIconElement?: NotificationRenderFunction;
7
48
  showIcon?: boolean;
8
- position?: NotificationPosition;
9
- footer?: string;
49
+ closable?: boolean;
50
+ duration?: number;
51
+ resetOnUpdate?: boolean;
52
+ onClose?: (id: number | string) => void;
10
53
  }
11
- export declare const Notification: {
12
- info(config: string | NotificationConfig): string;
13
- success(config: string | NotificationConfig): string;
14
- warning(config: string | NotificationConfig): string;
15
- error(config: string | NotificationConfig): string;
16
- normal(config: string | NotificationConfig): string;
17
- remove(id: string): void;
18
- clear(): void;
54
+ type NotificationService = NotificationMethod & {
55
+ install: (app: App) => void;
56
+ _context: AppContext | null;
19
57
  };
58
+ export declare const Notification: NotificationService;
20
59
  export default Notification;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ theme?: 'light' | 'dark';
2
3
  label?: string;
3
4
  };
4
5
  declare function __VLS_template(): {
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ theme?: 'light' | 'dark';
2
3
  value?: string | number | boolean | Record<string, any>;
3
4
  label?: string;
4
5
  disabled?: boolean;
@@ -1,9 +1,39 @@
1
- type __VLS_Props = {
2
- items?: Array<string | number>;
3
- max?: number;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
- items: Array<string | number>;
7
- max: number;
8
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
1
+ import { PropType, VNode } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ min: {
4
+ type: NumberConstructor;
5
+ default: number;
6
+ };
7
+ margin: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ from: {
12
+ type: PropType<"start" | "end">;
13
+ default: string;
14
+ };
15
+ }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
16
+ [key: string]: any;
17
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ change: (value: number) => boolean;
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
+ min: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ margin: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ from: {
29
+ type: PropType<"start" | "end">;
30
+ default: string;
31
+ };
32
+ }>> & Readonly<{
33
+ onChange?: ((value: number) => any) | undefined;
34
+ }>, {
35
+ margin: number;
36
+ min: number;
37
+ from: "end" | "start";
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
39
  export default _default;