vue-devui 1.5.11 → 1.5.12-hotfix.1

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 (43) hide show
  1. package/checkbox/index.es.js +71 -45
  2. package/checkbox/index.umd.js +9 -9
  3. package/date-picker-pro/index.es.js +64 -40
  4. package/date-picker-pro/index.umd.js +11 -11
  5. package/date-picker-pro/style.css +1 -1
  6. package/editor-md/index.es.js +609 -1401
  7. package/editor-md/index.umd.js +47 -47
  8. package/editor-md/style.css +1 -1
  9. package/package.json +1 -1
  10. package/pagination/index.es.js +94 -68
  11. package/pagination/index.umd.js +13 -13
  12. package/radio/index.es.js +65 -30
  13. package/radio/index.umd.js +15 -15
  14. package/radio/style.css +1 -1
  15. package/select/index.es.js +71 -45
  16. package/select/index.umd.js +14 -14
  17. package/slider/index.es.js +2 -2
  18. package/slider/index.umd.js +1 -1
  19. package/style.css +1 -1
  20. package/switch/index.es.js +50 -26
  21. package/switch/index.umd.js +16 -16
  22. package/table/index.es.js +82 -57
  23. package/table/index.umd.js +18 -18
  24. package/time-picker/index.es.js +78 -53
  25. package/time-picker/index.umd.js +13 -13
  26. package/time-picker/style.css +1 -1
  27. package/time-select/index.es.js +71 -45
  28. package/time-select/index.umd.js +11 -11
  29. package/tree/index.es.js +45 -20
  30. package/tree/index.umd.js +9 -9
  31. package/types/checkbox/src/checkbox-button.d.ts +3 -0
  32. package/types/checkbox/src/checkbox-group.d.ts +3 -0
  33. package/types/checkbox/src/checkbox-types.d.ts +4 -2
  34. package/types/checkbox/src/checkbox.d.ts +3 -0
  35. package/types/radio/src/radio-button.d.ts +9 -0
  36. package/types/radio/src/radio-types.d.ts +5 -1
  37. package/types/radio/src/radio.d.ts +9 -0
  38. package/types/transfer/src/components/transfer-panel.d.ts +1 -1
  39. package/types/transfer/src/composables/use-transfer-panel.d.ts +1 -1
  40. package/types/transfer/src/composables/use-transfer.d.ts +2 -2
  41. package/types/transfer/src/transfer.d.ts +1 -1
  42. package/vue-devui.es.js +1111 -1870
  43. package/vue-devui.umd.js +85 -85
@@ -36,6 +36,7 @@ var __publicField = (obj, key, value) => {
36
36
  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, resolveDynamicComponent, getCurrentInstance, onBeforeMount, isVNode, onUpdated, toRaw, watchEffect, render, resolveComponent, vShow, toRef, renderSlot, useSlots } from "vue";
37
37
  import { onClickOutside } from "@vueuse/core";
38
38
  import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
39
+ import "clipboard";
39
40
  const datePickerProCommonProps = {
40
41
  format: {
41
42
  type: String
@@ -395,7 +396,7 @@ const formProps = {
395
396
  }
396
397
  };
397
398
  const FORM_TOKEN = Symbol("dForm");
398
- function createBem(namespace, element, modifier) {
399
+ function createBem$1(namespace, element, modifier) {
399
400
  let cls = namespace;
400
401
  if (element) {
401
402
  cls += `__${element}`;
@@ -405,12 +406,12 @@ function createBem(namespace, element, modifier) {
405
406
  }
406
407
  return cls;
407
408
  }
408
- function useNamespace(block, needDot = false) {
409
+ function useNamespace$1(block, needDot = false) {
409
410
  const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
410
- const b = () => createBem(namespace);
411
- const e = (element) => element ? createBem(namespace, element) : "";
412
- const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
413
- const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
411
+ const b = () => createBem$1(namespace);
412
+ const e = (element) => element ? createBem$1(namespace, element) : "";
413
+ const m = (modifier) => modifier ? createBem$1(namespace, "", modifier) : "";
414
+ const em = (element, modifier) => element && modifier ? createBem$1(namespace, element, modifier) : "";
414
415
  return {
415
416
  b,
416
417
  e,
@@ -5896,7 +5897,7 @@ defineComponent({
5896
5897
  props: formProps,
5897
5898
  emits: ["validate"],
5898
5899
  setup(props, ctx) {
5899
- const ns2 = useNamespace("form");
5900
+ const ns2 = useNamespace$1("form");
5900
5901
  const {
5901
5902
  itemContexts,
5902
5903
  addItemContext,
@@ -6048,7 +6049,7 @@ defineComponent({
6048
6049
  const {
6049
6050
  modelValue
6050
6051
  } = toRefs(props);
6051
- const ns2 = useNamespace("fixed-overlay");
6052
+ const ns2 = useNamespace$1("fixed-overlay");
6052
6053
  const {
6053
6054
  onClick
6054
6055
  } = useFixedOverlay(props, ctx);
@@ -6214,7 +6215,7 @@ const FlexibleOverlay = defineComponent({
6214
6215
  emit,
6215
6216
  expose
6216
6217
  }) {
6217
- const ns2 = useNamespace("flexible-overlay");
6218
+ const ns2 = useNamespace$1("flexible-overlay");
6218
6219
  const {
6219
6220
  clickEventBubble
6220
6221
  } = toRefs(props);
@@ -6243,7 +6244,7 @@ const FlexibleOverlay = defineComponent({
6243
6244
  });
6244
6245
  const POPPER_TRIGGER_TOKEN = Symbol("popper-trigger");
6245
6246
  const isObject = (val) => val !== null && typeof val === "object";
6246
- const ns$1 = useNamespace("popper-trigger");
6247
+ const ns$1 = useNamespace$1("popper-trigger");
6247
6248
  function wrapContent(content) {
6248
6249
  return h("span", { class: ns$1.b() }, content);
6249
6250
  }
@@ -6430,7 +6431,7 @@ function usePopoverEvent(props, visible, origin) {
6430
6431
  });
6431
6432
  return { placement, handlePositionChange, onMouseenter, onMouseleave };
6432
6433
  }
6433
- const ns = useNamespace("popover");
6434
+ const ns = useNamespace$1("popover");
6434
6435
  function SuccessIcon$1() {
6435
6436
  return createVNode("svg", {
6436
6437
  "class": [ns.e("icon"), ns.em("icon", "success")],
@@ -6532,7 +6533,7 @@ var PopoverIcon = defineComponent({
6532
6533
  }
6533
6534
  },
6534
6535
  setup(props) {
6535
- const ns2 = useNamespace("popover");
6536
+ const ns2 = useNamespace$1("popover");
6536
6537
  return () => props.type && props.type !== "default" && createVNode("span", {
6537
6538
  "class": ns2.e("icon-wrap")
6538
6539
  }, [props.type === "success" && createVNode(SuccessIcon$1, null, null), props.type === "warning" && createVNode(WarningIcon, null, null), props.type === "info" && createVNode(InfoIcon, null, null), props.type === "error" && createVNode(ErrorIcon$1, null, null)]);
@@ -6569,7 +6570,7 @@ var Popover = defineComponent({
6569
6570
  const {
6570
6571
  overlayStyles
6571
6572
  } = usePopover(props, visible, placement, origin, popoverRef);
6572
- const ns2 = useNamespace("popover");
6573
+ const ns2 = useNamespace$1("popover");
6573
6574
  provide(POPPER_TRIGGER_TOKEN, origin);
6574
6575
  watch(visible, (newVal) => {
6575
6576
  if (newVal) {
@@ -6702,7 +6703,7 @@ function useFormLabel() {
6702
6703
  const formContext = inject(FORM_TOKEN);
6703
6704
  const formItemContext = inject(FORM_ITEM_TOKEN);
6704
6705
  const labelData = inject(LABEL_DATA);
6705
- const ns2 = useNamespace("form");
6706
+ const ns2 = useNamespace$1("form");
6706
6707
  const labelClasses = computed(() => ({
6707
6708
  [`${ns2.e("label")}`]: true,
6708
6709
  [`${ns2.em("label", "vertical")}`]: labelData.value.layout === "vertical",
@@ -6721,7 +6722,7 @@ var FormLabel = defineComponent({
6721
6722
  name: "DFormLabel",
6722
6723
  props: formLabelProps,
6723
6724
  setup(props, ctx) {
6724
- const ns2 = useNamespace("form");
6725
+ const ns2 = useNamespace$1("form");
6725
6726
  const {
6726
6727
  labelClasses,
6727
6728
  labelInnerClasses
@@ -6756,7 +6757,7 @@ const formControlProps = {
6756
6757
  };
6757
6758
  function useFormControl(props) {
6758
6759
  const labelData = inject(LABEL_DATA);
6759
- const ns2 = useNamespace("form");
6760
+ const ns2 = useNamespace$1("form");
6760
6761
  const { feedbackStatus } = toRefs(props);
6761
6762
  const controlClasses = computed(() => ({
6762
6763
  [ns2.e("control")]: true,
@@ -6786,7 +6787,7 @@ var FormControl = defineComponent({
6786
6787
  props: formControlProps,
6787
6788
  setup(props, ctx) {
6788
6789
  const formControl2 = ref();
6789
- const ns2 = useNamespace("form");
6790
+ const ns2 = useNamespace$1("form");
6790
6791
  const {
6791
6792
  controlClasses,
6792
6793
  controlContainerClasses
@@ -7840,7 +7841,7 @@ function getFieldValue(obj, path) {
7840
7841
  }
7841
7842
  function useFormItem(messageType, _rules, validateState) {
7842
7843
  const formContext = inject(FORM_TOKEN);
7843
- const ns2 = useNamespace("form");
7844
+ const ns2 = useNamespace$1("form");
7844
7845
  const itemClasses = computed(() => ({
7845
7846
  [`${ns2.em("item", "horizontal")}`]: formContext.layout === "horizontal",
7846
7847
  [`${ns2.em("item", "vertical")}`]: formContext.layout === "vertical",
@@ -8221,7 +8222,7 @@ var svgIcon = defineComponent({
8221
8222
  color,
8222
8223
  size
8223
8224
  } = toRefs(props);
8224
- const ns2 = useNamespace("svg-icon");
8225
+ const ns2 = useNamespace$1("svg-icon");
8225
8226
  const iconName = computed(() => `#icon-${name.value}`);
8226
8227
  const iconSize = computed(() => {
8227
8228
  return typeof size.value === "number" ? `${size.value}px` : size.value;
@@ -8253,7 +8254,7 @@ function useIconDom(props, ctx) {
8253
8254
  classPrefix,
8254
8255
  rotate
8255
8256
  } = toRefs(props);
8256
- const ns2 = useNamespace("icon");
8257
+ const ns2 = useNamespace$1("icon");
8257
8258
  const iconSize = computed(() => {
8258
8259
  return typeof size.value === "number" ? `${size.value}px` : size.value;
8259
8260
  });
@@ -8311,7 +8312,7 @@ var Icon = defineComponent({
8311
8312
  const {
8312
8313
  iconDom
8313
8314
  } = useIconDom(props, ctx);
8314
- const ns2 = useNamespace("icon");
8315
+ const ns2 = useNamespace$1("icon");
8315
8316
  const wrapClassed = computed(() => ({
8316
8317
  [ns2.e("container")]: true,
8317
8318
  [ns2.m("disabled")]: disabled.value,
@@ -8378,8 +8379,8 @@ function useInputRender(props, ctx) {
8378
8379
  const formContext = inject(FORM_TOKEN, void 0);
8379
8380
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
8380
8381
  const isValidateError = computed(() => (formItemContext == null ? void 0 : formItemContext.validateState) === "error");
8381
- const ns2 = useNamespace("input");
8382
- const slotNs = useNamespace("input-slot");
8382
+ const ns2 = useNamespace$1("input");
8383
+ const slotNs = useNamespace$1("input-slot");
8383
8384
  const isFocus = ref(false);
8384
8385
  const { error, size, disabled } = toRefs(props);
8385
8386
  const slots = ctx.slots;
@@ -8634,8 +8635,8 @@ var Input = defineComponent({
8634
8635
  const {
8635
8636
  modelValue
8636
8637
  } = toRefs(props);
8637
- const ns2 = useNamespace("input");
8638
- const slotNs = useNamespace("input-slot");
8638
+ const ns2 = useNamespace$1("input");
8639
+ const slotNs = useNamespace$1("input-slot");
8639
8640
  const {
8640
8641
  inputDisabled,
8641
8642
  inputSize,
@@ -10057,7 +10058,7 @@ var CalendarPanel = defineComponent({
10057
10058
  setup(props, ctx) {
10058
10059
  const app = getCurrentInstance();
10059
10060
  const t = createI18nTranslate("DDatePickerPro", app);
10060
- const ns2 = useNamespace("date-picker-pro");
10061
+ const ns2 = useNamespace$1("date-picker-pro");
10061
10062
  const {
10062
10063
  yearScrollRef,
10063
10064
  monthScrollRef,
@@ -10501,6 +10502,29 @@ function useTimeScroll() {
10501
10502
  getScrollWidth
10502
10503
  };
10503
10504
  }
10505
+ function createBem(namespace, element, modifier) {
10506
+ let cls = namespace;
10507
+ if (element) {
10508
+ cls += `__${element}`;
10509
+ }
10510
+ if (modifier) {
10511
+ cls += `--${modifier}`;
10512
+ }
10513
+ return cls;
10514
+ }
10515
+ function useNamespace(block, needDot = false) {
10516
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
10517
+ const b = () => createBem(namespace);
10518
+ const e = (element) => element ? createBem(namespace, element) : "";
10519
+ const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
10520
+ const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
10521
+ return {
10522
+ b,
10523
+ e,
10524
+ m,
10525
+ em
10526
+ };
10527
+ }
10504
10528
  var index$2 = "";
10505
10529
  var TimeScroll = defineComponent({
10506
10530
  name: "DTimeScroll",
@@ -10566,11 +10590,11 @@ var TimeScroll = defineComponent({
10566
10590
  });
10567
10591
  var index$1 = "";
10568
10592
  var DTimeList = defineComponent({
10569
- name: "DTimeList",
10593
+ name: "DPopupLine",
10570
10594
  props: popupLineProps,
10571
10595
  emits: ["change"],
10572
10596
  setup(props, ctx) {
10573
- const ns2 = useNamespace("time-list");
10597
+ const ns2 = useNamespace("popup-line");
10574
10598
  const timeListDom = ref();
10575
10599
  const {
10576
10600
  getNewTime,
@@ -10683,7 +10707,7 @@ var TimerPickerPanel = defineComponent({
10683
10707
  setup(props, ctx) {
10684
10708
  const app = getCurrentInstance();
10685
10709
  const t = createI18nTranslate("DDatePickerPro", app);
10686
- const ns2 = useNamespace("date-picker-pro");
10710
+ const ns2 = useNamespace$1("date-picker-pro");
10687
10711
  const {
10688
10712
  timeListDom,
10689
10713
  hourList,
@@ -10715,7 +10739,7 @@ var iconGroup = "";
10715
10739
  defineComponent({
10716
10740
  name: "DIconGroup",
10717
10741
  setup(_, ctx) {
10718
- const ns2 = useNamespace("icon-group");
10742
+ const ns2 = useNamespace$1("icon-group");
10719
10743
  return () => {
10720
10744
  var _a, _b;
10721
10745
  return createVNode("div", {
@@ -10792,7 +10816,7 @@ var Loading = defineComponent({
10792
10816
  message,
10793
10817
  $slots
10794
10818
  } = this;
10795
- const ns2 = useNamespace("loading");
10819
+ const ns2 = useNamespace$1("loading");
10796
10820
  return isShow && createVNode("div", {
10797
10821
  "class": [ns2.b(), isFull ? ns2.m("full") : ""]
10798
10822
  }, [((_a = $slots.default) == null ? void 0 : _a.call($slots)) || createVNode("div", {
@@ -10965,7 +10989,7 @@ const buttonGroupProps = {
10965
10989
  };
10966
10990
  const buttonGroupInjectionKey = Symbol("d-button-group");
10967
10991
  function useButton(props, ctx) {
10968
- const ns2 = useNamespace("button");
10992
+ const ns2 = useNamespace$1("button");
10969
10993
  const hasContent = computed(() => ctx.slots.default);
10970
10994
  const colorMap = {
10971
10995
  solid: "primary",
@@ -11054,7 +11078,7 @@ defineComponent({
11054
11078
  setup(props, {
11055
11079
  slots
11056
11080
  }) {
11057
- const ns2 = useNamespace("button-group");
11081
+ const ns2 = useNamespace$1("button-group");
11058
11082
  provide(buttonGroupInjectionKey, {
11059
11083
  size: toRef(props, "size")
11060
11084
  });
@@ -11066,7 +11090,7 @@ defineComponent({
11066
11090
  }
11067
11091
  });
11068
11092
  function useYearCalendarPanel(props, ctx) {
11069
- const ns2 = useNamespace("date-picker-pro");
11093
+ const ns2 = useNamespace$1("date-picker-pro");
11070
11094
  const yarListScrollRef = ref();
11071
11095
  const yearList = ref([]);
11072
11096
  const { today, calendarRange, selectDate, rangeSelectDate, minDate, maxDate, fixRangeDate, getToDate, emitSelectedDate } = useCalendarSelected(props, ctx);
@@ -11193,7 +11217,7 @@ var YearCalendarPanel = defineComponent({
11193
11217
  props: datePickerProPanelProps,
11194
11218
  emits: ["selectedDate", "changeRangeFocusType"],
11195
11219
  setup(props, ctx) {
11196
- const ns2 = useNamespace("date-picker-pro");
11220
+ const ns2 = useNamespace$1("date-picker-pro");
11197
11221
  const {
11198
11222
  yarListScrollRef,
11199
11223
  yearList,
@@ -11229,7 +11253,7 @@ var YearCalendarPanel = defineComponent({
11229
11253
  }
11230
11254
  });
11231
11255
  function useMonthCalendarPanel(props, ctx) {
11232
- const ns2 = useNamespace("date-picker-pro");
11256
+ const ns2 = useNamespace$1("date-picker-pro");
11233
11257
  const yearScrollRef = ref();
11234
11258
  const monthScrollRef = ref();
11235
11259
  const yearList = ref([]);
@@ -11418,7 +11442,7 @@ var MonthCalendarPanel = defineComponent({
11418
11442
  setup(props, ctx) {
11419
11443
  const app = getCurrentInstance();
11420
11444
  const t = createI18nTranslate("DDatePickerPro", app);
11421
- const ns2 = useNamespace("date-picker-pro");
11445
+ const ns2 = useNamespace$1("date-picker-pro");
11422
11446
  const {
11423
11447
  yearScrollRef,
11424
11448
  monthScrollRef,
@@ -11632,7 +11656,7 @@ var DatePickerProPanel = defineComponent({
11632
11656
  setup(props, ctx) {
11633
11657
  const app = getCurrentInstance();
11634
11658
  const t = createI18nTranslate("DDatePickerPro", app);
11635
- const ns2 = useNamespace("date-picker-pro");
11659
+ const ns2 = useNamespace$1("date-picker-pro");
11636
11660
  const {
11637
11661
  calendarPanelRef,
11638
11662
  timeData,
@@ -11742,7 +11766,7 @@ var DatePickerPro = defineComponent({
11742
11766
  setup(props, ctx) {
11743
11767
  const app = getCurrentInstance();
11744
11768
  const t = createI18nTranslate("DDatePickerPro", app);
11745
- const ns2 = useNamespace("date-picker-pro");
11769
+ const ns2 = useNamespace$1("date-picker-pro");
11746
11770
  const {
11747
11771
  originRef,
11748
11772
  inputRef,
@@ -11968,7 +11992,7 @@ var DRangeDatePickerPro = defineComponent({
11968
11992
  setup(props, ctx) {
11969
11993
  const app = getCurrentInstance();
11970
11994
  const t = createI18nTranslate("DDatePickerPro", app);
11971
- const ns2 = useNamespace("range-date-picker-pro");
11995
+ const ns2 = useNamespace$1("range-date-picker-pro");
11972
11996
  const {
11973
11997
  originRef,
11974
11998
  startInputRef,