vue-devui 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +36 -5
  2. package/alert/style.css +1 -1
  3. package/auto-complete/index.es.js +27 -16
  4. package/auto-complete/index.umd.js +11 -11
  5. package/auto-complete/style.css +1 -1
  6. package/button/index.es.js +7 -6
  7. package/button/index.umd.js +5 -5
  8. package/button/style.css +1 -1
  9. package/card/style.css +1 -1
  10. package/checkbox/index.es.js +19 -14
  11. package/checkbox/index.umd.js +8 -8
  12. package/checkbox/style.css +1 -1
  13. package/date-picker-pro/index.es.js +138 -133
  14. package/date-picker-pro/index.umd.js +13 -13
  15. package/date-picker-pro/style.css +1 -1
  16. package/drawer/index.es.js +22 -5
  17. package/drawer/index.umd.js +1 -1
  18. package/drawer/style.css +1 -1
  19. package/dropdown/index.es.js +16 -3
  20. package/dropdown/index.umd.js +1 -1
  21. package/dropdown/style.css +1 -1
  22. package/editable-select/index.es.js +67 -62
  23. package/editable-select/index.umd.js +1 -1
  24. package/editable-select/style.css +1 -1
  25. package/form/index.es.js +14 -8
  26. package/form/index.umd.js +5 -5
  27. package/form/style.css +1 -1
  28. package/icon/index.es.js +2 -1
  29. package/icon/index.umd.js +1 -1
  30. package/icon/style.css +1 -1
  31. package/image-preview/style.css +1 -1
  32. package/input/index.es.js +22 -11
  33. package/input/index.umd.js +4 -4
  34. package/input/style.css +1 -1
  35. package/input-number/index.es.js +26 -23
  36. package/input-number/index.umd.js +1 -1
  37. package/input-number/style.css +1 -1
  38. package/loading/index.es.js +51 -51
  39. package/loading/index.umd.js +1 -1
  40. package/mention/index.es.js +33 -17
  41. package/mention/index.umd.js +10 -10
  42. package/mention/style.css +1 -1
  43. package/message/index.es.js +2 -1
  44. package/message/index.umd.js +1 -1
  45. package/message/style.css +1 -1
  46. package/modal/index.es.js +158 -43
  47. package/modal/index.umd.js +1 -1
  48. package/modal/style.css +1 -1
  49. package/notification/index.es.js +7 -9
  50. package/notification/index.umd.js +1 -1
  51. package/notification/style.css +1 -1
  52. package/nuxt/components/paginationInjectionKey.js +3 -0
  53. package/overlay/index.es.js +12 -2
  54. package/overlay/index.umd.js +1 -1
  55. package/overlay/style.css +1 -1
  56. package/package.json +2 -2
  57. package/pagination/index.es.js +10160 -278
  58. package/pagination/index.umd.js +27 -1
  59. package/pagination/style.css +1 -1
  60. package/panel/index.es.js +4 -0
  61. package/panel/index.umd.js +1 -1
  62. package/popover/index.es.js +13 -5
  63. package/popover/index.umd.js +9 -9
  64. package/popover/style.css +1 -1
  65. package/radio/index.es.js +14 -8
  66. package/radio/index.umd.js +4 -4
  67. package/radio/style.css +1 -1
  68. package/result/index.es.js +2 -1
  69. package/result/index.umd.js +1 -1
  70. package/result/style.css +1 -1
  71. package/search/index.es.js +23 -12
  72. package/search/index.umd.js +4 -4
  73. package/search/style.css +1 -1
  74. package/select/index.es.js +134 -113
  75. package/select/index.umd.js +10 -10
  76. package/select/style.css +1 -1
  77. package/skeleton/style.css +1 -1
  78. package/splitter/index.es.js +30 -7
  79. package/splitter/index.umd.js +16 -16
  80. package/splitter/style.css +1 -1
  81. package/status/index.es.js +4 -0
  82. package/status/index.umd.js +1 -1
  83. package/steps/index.es.js +2 -1
  84. package/steps/index.umd.js +1 -1
  85. package/steps/style.css +1 -1
  86. package/style.css +1 -1
  87. package/switch/index.es.js +14 -8
  88. package/switch/index.umd.js +13 -13
  89. package/switch/style.css +1 -1
  90. package/table/index.es.js +159 -66
  91. package/table/index.umd.js +7 -7
  92. package/table/style.css +1 -1
  93. package/tabs/index.es.js +95 -44
  94. package/tabs/index.umd.js +1 -1
  95. package/tabs/style.css +1 -1
  96. package/tag/index.es.js +1 -1
  97. package/tag/index.umd.js +1 -1
  98. package/tag/style.css +1 -1
  99. package/textarea/index.es.js +17 -9
  100. package/textarea/index.umd.js +13 -13
  101. package/textarea/style.css +1 -1
  102. package/time-picker/index.es.js +154 -151
  103. package/time-picker/index.umd.js +14 -14
  104. package/time-picker/style.css +1 -1
  105. package/time-select/index.es.js +141 -117
  106. package/time-select/index.umd.js +13 -13
  107. package/time-select/style.css +1 -1
  108. package/timeline/index.es.js +2 -1
  109. package/timeline/index.umd.js +1 -1
  110. package/timeline/style.css +1 -1
  111. package/tooltip/index.es.js +28 -6
  112. package/tooltip/index.umd.js +7 -7
  113. package/tooltip/style.css +1 -1
  114. package/tree/index.es.js +47 -38
  115. package/tree/index.umd.js +7 -7
  116. package/tree/style.css +1 -1
  117. package/upload/index.es.js +9 -10
  118. package/upload/index.umd.js +1 -1
  119. package/upload/style.css +1 -1
  120. package/vue-devui.es.js +3496 -3121
  121. package/vue-devui.umd.js +21 -21
  122. package/alert/index.d.ts +0 -7
  123. package/auto-complete/index.d.ts +0 -7
  124. package/avatar/index.d.ts +0 -7
  125. package/badge/index.d.ts +0 -7
  126. package/button/index.d.ts +0 -7
  127. package/card/index.d.ts +0 -7
  128. package/checkbox/index.d.ts +0 -7
  129. package/collapse/index.d.ts +0 -7
  130. package/countdown/index.d.ts +0 -7
  131. package/date-picker-pro/index.d.ts +0 -7
  132. package/drawer/index.d.ts +0 -7
  133. package/dropdown/index.d.ts +0 -7
  134. package/editable-select/index.d.ts +0 -7
  135. package/form/index.d.ts +0 -7
  136. package/fullscreen/index.d.ts +0 -7
  137. package/grid/index.d.ts +0 -7
  138. package/icon/index.d.ts +0 -7
  139. package/image-preview/index.d.ts +0 -7
  140. package/index.d.ts +0 -7
  141. package/input/index.d.ts +0 -7
  142. package/input-number/index.d.ts +0 -7
  143. package/layout/index.d.ts +0 -7
  144. package/loading/index.d.ts +0 -7
  145. package/mention/index.d.ts +0 -7
  146. package/menu/index.d.ts +0 -7
  147. package/message/index.d.ts +0 -7
  148. package/modal/index.d.ts +0 -7
  149. package/notification/index.d.ts +0 -7
  150. package/nuxt/components/Loading.js +0 -3
  151. package/overlay/index.d.ts +0 -7
  152. package/pagination/index.d.ts +0 -7
  153. package/panel/index.d.ts +0 -7
  154. package/popover/index.d.ts +0 -7
  155. package/progress/index.d.ts +0 -7
  156. package/radio/index.d.ts +0 -7
  157. package/rate/index.d.ts +0 -7
  158. package/result/index.d.ts +0 -7
  159. package/ripple/index.d.ts +0 -7
  160. package/search/index.d.ts +0 -7
  161. package/select/index.d.ts +0 -7
  162. package/skeleton/index.d.ts +0 -7
  163. package/slider/index.d.ts +0 -7
  164. package/splitter/index.d.ts +0 -7
  165. package/statistic/index.d.ts +0 -7
  166. package/status/index.d.ts +0 -7
  167. package/steps/index.d.ts +0 -7
  168. package/switch/index.d.ts +0 -7
  169. package/table/index.d.ts +0 -7
  170. package/tabs/index.d.ts +0 -7
  171. package/tag/index.d.ts +0 -7
  172. package/textarea/index.d.ts +0 -7
  173. package/time-picker/index.d.ts +0 -7
  174. package/time-select/index.d.ts +0 -7
  175. package/timeline/index.d.ts +0 -7
  176. package/tooltip/index.d.ts +0 -7
  177. package/tree/index.d.ts +0 -7
  178. package/upload/index.d.ts +0 -7
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, withModifiers, createTextVNode, onBeforeUnmount, shallowRef } from "vue";
32
+ import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, shallowRef } from "vue";
33
33
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
34
34
  const formProps = {
35
35
  data: {
@@ -5779,6 +5779,10 @@ const flexibleOverlayProps = {
5779
5779
  isArrowCenter: {
5780
5780
  type: Boolean,
5781
5781
  default: true
5782
+ },
5783
+ clickEventBubble: {
5784
+ type: Boolean,
5785
+ default: false
5782
5786
  }
5783
5787
  };
5784
5788
  function getScrollParent(element) {
@@ -5893,6 +5897,9 @@ const FlexibleOverlay = defineComponent({
5893
5897
  expose
5894
5898
  }) {
5895
5899
  const ns2 = useNamespace("flexible-overlay");
5900
+ const {
5901
+ clickEventBubble
5902
+ } = toRefs(props);
5896
5903
  const {
5897
5904
  arrowRef,
5898
5905
  overlayRef,
@@ -5906,7 +5913,10 @@ const FlexibleOverlay = defineComponent({
5906
5913
  return props.modelValue && createVNode("div", mergeProps({
5907
5914
  "ref": overlayRef,
5908
5915
  "class": ns2.b()
5909
- }, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
5916
+ }, attrs, {
5917
+ "onClick": withModifiers(() => ({}), [clickEventBubble.value ? "" : "stop"]),
5918
+ "onPointerup": withModifiers(() => ({}), ["stop"])
5919
+ }), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
5910
5920
  "ref": arrowRef,
5911
5921
  "class": ns2.e("arrow")
5912
5922
  }, null)]);
@@ -6024,7 +6034,7 @@ const TransformOriginMap = {
6024
6034
  function usePopover(props, visible, placement, origin, popoverRef) {
6025
6035
  const { trigger, isOpen } = toRefs(props);
6026
6036
  const overlayStyles = computed(() => ({
6027
- zIndex: 1060,
6037
+ zIndex: "var(--devui-z-index-pop-up, 1060)",
6028
6038
  transformOrigin: TransformOriginMap[placement.value]
6029
6039
  }));
6030
6040
  const onDocumentClick = (e) => {
@@ -6267,8 +6277,6 @@ var Popover = defineComponent({
6267
6277
  "style": overlayStyles.value
6268
6278
  }, attrs, {
6269
6279
  "onPositionChange": handlePositionChange,
6270
- "onClick": withModifiers(() => ({}), ["stop"]),
6271
- "onPointerup": withModifiers(() => ({}), ["stop"]),
6272
6280
  "onMouseenter": onMouseenter,
6273
6281
  "onMouseleave": onMouseleave
6274
6282
  }), {
@@ -6467,9 +6475,7 @@ var FormControl = defineComponent({
6467
6475
  }, {
6468
6476
  default: () => {
6469
6477
  var _a, _b;
6470
- return [createVNode("div", {
6471
- "class": ns2.e("control-content")
6472
- }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]), createTextVNode(",")];
6478
+ return [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)];
6473
6479
  }
6474
6480
  }), showFeedback.value && createVNode("span", {
6475
6481
  "class": [ns2.e("feedback-icon"), ns2.em("feedback-icon", feedbackStatus.value)]
@@ -7942,7 +7948,9 @@ var Textarea = defineComponent({
7942
7948
  });
7943
7949
  return () => {
7944
7950
  var _a;
7945
- return createVNode("div", null, [createVNode("textarea", mergeProps({
7951
+ return createVNode("div", {
7952
+ "style": "width: 100%"
7953
+ }, [createVNode("textarea", mergeProps({
7946
7954
  "ref": textarea2
7947
7955
  }, ctx.attrs, {
7948
7956
  "value": modelValue.value,