vue-devui 1.0.0-rc.11 → 1.0.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +2 -2
  2. package/auto-complete/index.es.js +29 -8
  3. package/auto-complete/index.umd.js +16 -16
  4. package/auto-complete/style.css +1 -1
  5. package/badge/index.es.js +3 -1
  6. package/badge/index.umd.js +1 -1
  7. package/button/index.es.js +3 -2
  8. package/button/index.umd.js +6 -6
  9. package/collapse/index.es.js +20 -186
  10. package/collapse/index.umd.js +1 -1
  11. package/collapse/style.css +1 -1
  12. package/countdown/index.es.js +56 -13
  13. package/countdown/index.umd.js +1 -1
  14. package/{date-picker → date-picker-pro}/index.d.ts +0 -0
  15. package/date-picker-pro/index.es.js +10856 -0
  16. package/date-picker-pro/index.umd.js +27 -0
  17. package/date-picker-pro/package.json +7 -0
  18. package/date-picker-pro/style.css +1 -0
  19. package/dropdown/index.es.js +1 -1
  20. package/dropdown/index.umd.js +1 -1
  21. package/editable-select/index.es.js +98 -56
  22. package/editable-select/index.umd.js +1 -1
  23. package/editable-select/style.css +1 -1
  24. package/icon/index.es.js +3 -2
  25. package/icon/index.umd.js +1 -1
  26. package/input/index.es.js +35 -8
  27. package/input/index.umd.js +7 -7
  28. package/input/style.css +1 -1
  29. package/modal/index.es.js +3 -2
  30. package/modal/index.umd.js +1 -1
  31. package/modal/style.css +1 -1
  32. package/notification/index.es.js +3 -2
  33. package/notification/index.umd.js +1 -1
  34. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  35. package/nuxt/components/DatePickerPro.js +3 -0
  36. package/nuxt/components/OptionGroup.js +3 -0
  37. package/nuxt/components/Step.js +3 -0
  38. package/nuxt/components/Steps.js +3 -0
  39. package/nuxt/components/TimePicker.js +3 -0
  40. package/nuxt/components/datePickerProCommonProps.js +3 -0
  41. package/nuxt/components/datePickerProPanelProps.js +3 -0
  42. package/nuxt/components/datePickerProProps.js +3 -0
  43. package/nuxt/components/stepProps.js +3 -0
  44. package/nuxt/components/stepsProps.js +3 -0
  45. package/nuxt/components/timerPickerPanelProps.js +3 -0
  46. package/package.json +1 -1
  47. package/pagination/index.es.js +25 -7
  48. package/pagination/index.umd.js +1 -1
  49. package/result/index.es.js +3 -2
  50. package/result/index.umd.js +1 -1
  51. package/search/index.es.js +39 -10
  52. package/search/index.umd.js +7 -7
  53. package/search/style.css +1 -1
  54. package/select/index.es.js +156 -219
  55. package/select/index.umd.js +13 -13
  56. package/select/style.css +1 -1
  57. package/splitter/index.es.js +27 -7
  58. package/splitter/index.umd.js +10 -10
  59. package/steps/index.d.ts +7 -0
  60. package/steps/index.es.js +385 -0
  61. package/steps/index.umd.js +1 -0
  62. package/{date-picker → steps}/package.json +1 -1
  63. package/steps/style.css +1 -0
  64. package/style.css +1 -1
  65. package/table/index.es.js +542 -267
  66. package/table/index.umd.js +15 -15
  67. package/table/style.css +1 -1
  68. package/tabs/index.es.js +1 -1
  69. package/tabs/index.umd.js +1 -1
  70. package/tabs/style.css +1 -1
  71. package/time-picker/index.d.ts +7 -0
  72. package/{date-picker → time-picker}/index.es.js +1371 -1038
  73. package/time-picker/index.umd.js +27 -0
  74. package/time-picker/package.json +7 -0
  75. package/time-picker/style.css +1 -0
  76. package/time-select/index.es.js +157 -219
  77. package/time-select/index.umd.js +14 -14
  78. package/time-select/style.css +1 -1
  79. package/timeline/index.es.js +3 -2
  80. package/timeline/index.umd.js +1 -1
  81. package/tooltip/index.es.js +1 -1
  82. package/tooltip/index.umd.js +1 -1
  83. package/tree/index.es.js +186 -59
  84. package/tree/index.umd.js +16 -16
  85. package/tree/style.css +1 -1
  86. package/upload/index.es.js +51 -25
  87. package/upload/index.umd.js +1 -1
  88. package/upload/style.css +1 -1
  89. package/vue-devui.es.js +3963 -1421
  90. package/vue-devui.umd.js +23 -23
  91. package/date-picker/index.umd.js +0 -27
  92. package/date-picker/style.css +0 -1
  93. package/nuxt/components/DatePicker.js +0 -3
  94. package/nuxt/components/StickSlider.js +0 -3
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="center">
2
- <a href="https://devui.design/home" target="_blank" rel="noopener noreferrer">
3
- <img alt="DevUI Logo" src="https://github.com/DevCloudFE/vue-devui/raw/dev/packages/devui-vue/public/logo.svg" width="180" style="max-width:100%;">
2
+ <a href="https://devui.design/" target="_blank" rel="noopener noreferrer">
3
+ <img alt="DevUI Logo" src="https://vue-devui.github.io/assets/logo.svg" width="180" style="max-width:100%;">
4
4
  </a>
5
5
  </p>
6
6
 
@@ -33,7 +33,7 @@ var __publicField = (obj, key, value) => {
33
33
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
34
34
  return value;
35
35
  };
36
- import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
36
+ import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
37
37
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
38
38
  const defaultFormatter = (item) => {
39
39
  if (typeof item === "string") {
@@ -1582,7 +1582,7 @@ var lodash = { exports: {} };
1582
1582
  function baseAt(object4, paths) {
1583
1583
  var index2 = -1, length = paths.length, result2 = Array2(length), skip = object4 == null;
1584
1584
  while (++index2 < length) {
1585
- result2[index2] = skip ? undefined$1 : get(object4, paths[index2]);
1585
+ result2[index2] = skip ? undefined$1 : get2(object4, paths[index2]);
1586
1586
  }
1587
1587
  return result2;
1588
1588
  }
@@ -2027,7 +2027,7 @@ var lodash = { exports: {} };
2027
2027
  return matchesStrictComparable(toKey(path), srcValue);
2028
2028
  }
2029
2029
  return function(object4) {
2030
- var objValue = get(object4, path);
2030
+ var objValue = get2(object4, path);
2031
2031
  return objValue === undefined$1 && objValue === srcValue ? hasIn(object4, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2032
2032
  };
2033
2033
  }
@@ -4760,7 +4760,7 @@ var lodash = { exports: {} };
4760
4760
  function functionsIn(object4) {
4761
4761
  return object4 == null ? [] : baseFunctions(object4, keysIn(object4));
4762
4762
  }
4763
- function get(object4, path, defaultValue) {
4763
+ function get2(object4, path, defaultValue) {
4764
4764
  var result2 = object4 == null ? undefined$1 : baseGet(object4, path);
4765
4765
  return result2 === undefined$1 ? defaultValue : result2;
4766
4766
  }
@@ -5615,7 +5615,7 @@ var lodash = { exports: {} };
5615
5615
  lodash2.forInRight = forInRight;
5616
5616
  lodash2.forOwn = forOwn;
5617
5617
  lodash2.forOwnRight = forOwnRight;
5618
- lodash2.get = get;
5618
+ lodash2.get = get2;
5619
5619
  lodash2.gt = gt;
5620
5620
  lodash2.gte = gte;
5621
5621
  lodash2.has = has;
@@ -8368,12 +8368,32 @@ const loadingDirective = {
8368
8368
  toggleLoading(el, binding);
8369
8369
  }
8370
8370
  };
8371
+ const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
8372
+ function get(object4, path) {
8373
+ const keys = path.split(".");
8374
+ let result = object4;
8375
+ keys.forEach((key) => {
8376
+ var _a;
8377
+ result = (_a = result[key]) != null ? _a : "";
8378
+ });
8379
+ return result;
8380
+ }
8381
+ function createI18nTranslate(name, app, newPrefix) {
8382
+ const prefix = newPrefix || camelize(name) + ".";
8383
+ return (path) => {
8384
+ const messages2 = app == null ? void 0 : app.appContext.config.globalProperties.langMessages.value;
8385
+ const message = get(messages2, prefix + path) || get(messages2, path);
8386
+ return message;
8387
+ };
8388
+ }
8371
8389
  var DAutoCompleteDropdown = defineComponent({
8372
8390
  name: "DAutoCompleteDropdown",
8373
8391
  directives: {
8374
8392
  dLoading: loadingDirective
8375
8393
  },
8376
8394
  setup(props, ctx2) {
8395
+ const app = getCurrentInstance();
8396
+ const t = createI18nTranslate("DAutoCompleteDropdown", app);
8377
8397
  const propsData = inject(DropdownPropsKey);
8378
8398
  const {
8379
8399
  visible,
@@ -8424,7 +8444,7 @@ var DAutoCompleteDropdown = defineComponent({
8424
8444
  "class": noDataNs.b()
8425
8445
  }, [ctx2.slots.searchingTemplate()])]), latestSource.value && !modelValue.value && createVNode("li", {
8426
8446
  "class": ns2.e("popup-tips")
8427
- }, [createTextVNode("\u6700\u8FD1\u8F93\u5165")]), !showNoResultItemTemplate.value && !(searchStatus == null ? void 0 : searchStatus.value) && searchList != null && searchList.value.length > 0 && searchList.value.map((item, index2) => {
8447
+ }, [t("latestInput")]), !showNoResultItemTemplate.value && !(searchStatus == null ? void 0 : searchStatus.value) && searchList != null && searchList.value.length > 0 && searchList.value.map((item, index2) => {
8428
8448
  return createVNode("li", {
8429
8449
  "onClick": () => onSelect(item),
8430
8450
  "class": [dropdownItemNs.b(), selectedIndex.value === index2 && "selected", {
@@ -8638,6 +8658,7 @@ function useIconDom(props, ctx2) {
8638
8658
  var Icon = defineComponent({
8639
8659
  name: "DIcon",
8640
8660
  props: iconProps,
8661
+ emits: ["click"],
8641
8662
  setup(props, ctx2) {
8642
8663
  const {
8643
8664
  disabled,
@@ -8653,10 +8674,10 @@ var Icon = defineComponent({
8653
8674
  [ns2.m("operable")]: operable.value
8654
8675
  }));
8655
8676
  const onClick = (e) => {
8656
- e.stopImmediatePropagation();
8657
8677
  if (disabled.value) {
8658
- e.preventDefault();
8678
+ return;
8659
8679
  }
8680
+ ctx2.emit("click", e);
8660
8681
  };
8661
8682
  return () => {
8662
8683
  var _a, _b, _c, _d;