x-next 1.12.0 → 1.14.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.
- package/AI_CODING.md +6 -5
- package/AI_USAGE/catalog.md +106 -105
- package/AI_USAGE/components/alert-api.md +48 -0
- package/AI_USAGE/components/alert.md +222 -3
- package/AI_USAGE/components/bar-chart-api.md +177 -0
- package/AI_USAGE/components/bar-chart.md +297 -3
- package/AI_USAGE/components/boxicons.md +147 -0
- package/AI_USAGE/components/button-api.md +144 -0
- package/AI_USAGE/components/button.md +447 -3
- package/AI_USAGE/components/charts.md +81 -0
- package/AI_USAGE/components/checkbox-api.md +145 -0
- package/AI_USAGE/components/checkbox.md +365 -3
- package/AI_USAGE/components/color-picker-api.md +52 -0
- package/AI_USAGE/components/color-picker.md +211 -3
- package/AI_USAGE/components/config-provider-api.md +38 -0
- package/AI_USAGE/components/config-provider.md +250 -3
- package/AI_USAGE/components/date-picker-api.md +1114 -0
- package/AI_USAGE/components/date-picker.md +378 -3
- package/AI_USAGE/components/dialog-api.md +142 -0
- package/AI_USAGE/components/dialog.md +284 -3
- package/AI_USAGE/components/draggable-api.md +146 -0
- package/AI_USAGE/components/draggable.md +259 -0
- package/AI_USAGE/components/drawer-api.md +78 -0
- package/AI_USAGE/components/drawer.md +227 -0
- package/AI_USAGE/components/dropdown-api.md +529 -0
- package/AI_USAGE/components/dropdown.md +392 -3
- package/AI_USAGE/components/empty-api.md +36 -0
- package/AI_USAGE/components/empty.md +227 -3
- package/AI_USAGE/components/finicon.md +88 -0
- package/AI_USAGE/components/form-api.md +524 -0
- package/AI_USAGE/components/form.md +454 -0
- package/AI_USAGE/components/grid-api.md +527 -0
- package/AI_USAGE/components/grid.md +224 -0
- package/AI_USAGE/components/heatmap-api.md +122 -0
- package/AI_USAGE/components/heatmap.md +220 -0
- package/AI_USAGE/components/icon-api.md +4707 -0
- package/AI_USAGE/components/icon.md +257 -0
- package/AI_USAGE/components/image-api.md +440 -0
- package/AI_USAGE/components/image.md +465 -0
- package/AI_USAGE/components/input-api.md +184 -0
- package/AI_USAGE/components/input-number-api.md +66 -0
- package/AI_USAGE/components/input-number.md +294 -0
- package/AI_USAGE/components/input-tag-api.md +114 -0
- package/AI_USAGE/components/input-tag.md +482 -0
- package/AI_USAGE/components/input.md +293 -3
- package/AI_USAGE/components/layout-api.md +147 -0
- package/AI_USAGE/components/layout.md +230 -0
- package/AI_USAGE/components/line-chart-api.md +197 -0
- package/AI_USAGE/components/line-chart.md +279 -3
- package/AI_USAGE/components/link-api.md +42 -0
- package/AI_USAGE/components/link.md +197 -0
- package/AI_USAGE/components/menu-api.md +516 -0
- package/AI_USAGE/components/menu.md +268 -0
- package/AI_USAGE/components/message-api.md +215 -0
- package/AI_USAGE/components/message-box-api.md +108 -0
- package/AI_USAGE/components/message-box.md +268 -3
- package/AI_USAGE/components/message.md +231 -3
- package/AI_USAGE/components/network-api.md +91 -0
- package/AI_USAGE/components/network.md +378 -0
- package/AI_USAGE/components/notification-api.md +236 -0
- package/AI_USAGE/components/notification.md +275 -3
- package/AI_USAGE/components/pagination-api.md +62 -0
- package/AI_USAGE/components/pagination.md +386 -5
- package/AI_USAGE/components/pie-chart-api.md +109 -0
- package/AI_USAGE/components/pie-chart.md +245 -3
- package/AI_USAGE/components/popconfirm-api.md +75 -0
- package/AI_USAGE/components/popconfirm.md +231 -3
- package/AI_USAGE/components/popover-api.md +75 -0
- package/AI_USAGE/components/popover.md +208 -3
- package/AI_USAGE/components/popup-api.md +75 -0
- package/AI_USAGE/components/popup.md +52 -0
- package/AI_USAGE/components/progress-api.md +44 -0
- package/AI_USAGE/components/progress.md +248 -3
- package/AI_USAGE/components/radio-api.md +165 -0
- package/AI_USAGE/components/radio.md +259 -3
- package/AI_USAGE/components/rate-api.md +54 -0
- package/AI_USAGE/components/rate.md +233 -3
- package/AI_USAGE/components/resize-box-api.md +56 -0
- package/AI_USAGE/components/resize-box.md +231 -0
- package/AI_USAGE/components/scrollbar-api.md +77 -0
- package/AI_USAGE/components/scrollbar.md +218 -0
- package/AI_USAGE/components/select-api.md +758 -0
- package/AI_USAGE/components/select.md +640 -3
- package/AI_USAGE/components/skeleton-api.md +85 -0
- package/AI_USAGE/components/skeleton.md +150 -0
- package/AI_USAGE/components/slider-api.md +51 -0
- package/AI_USAGE/components/slider.md +233 -3
- package/AI_USAGE/components/space-api.md +38 -0
- package/AI_USAGE/components/space.md +145 -0
- package/AI_USAGE/components/spin-api.md +43 -0
- package/AI_USAGE/components/spin.md +205 -0
- package/AI_USAGE/components/steps-api.md +111 -0
- package/AI_USAGE/components/steps.md +201 -3
- package/AI_USAGE/components/switch-api.md +58 -0
- package/AI_USAGE/components/switch.md +290 -3
- package/AI_USAGE/components/table-api.md +2919 -0
- package/AI_USAGE/components/table.md +1414 -0
- package/AI_USAGE/components/tabs-api.md +135 -0
- package/AI_USAGE/components/tabs.md +308 -3
- package/AI_USAGE/components/tag-api.md +124 -0
- package/AI_USAGE/components/tag.md +292 -0
- package/AI_USAGE/components/textarea-api.md +55 -0
- package/AI_USAGE/components/textarea.md +326 -3
- package/AI_USAGE/components/time-picker-api.md +137 -0
- package/AI_USAGE/components/time-picker.md +271 -3
- package/AI_USAGE/components/time-range-selector-api.md +44 -0
- package/AI_USAGE/components/time-range-selector.md +355 -0
- package/AI_USAGE/components/timeline-api.md +93 -0
- package/AI_USAGE/components/timeline.md +312 -0
- package/AI_USAGE/components/tooltip-api.md +77 -0
- package/AI_USAGE/components/tooltip.md +182 -0
- package/AI_USAGE/components/trend-chart-api.md +119 -0
- package/AI_USAGE/components/trend-chart.md +335 -0
- package/AI_USAGE/components/trigger-api.md +124 -0
- package/AI_USAGE/components/trigger.md +185 -0
- package/AI_USAGE/components/upload-api.md +200 -0
- package/AI_USAGE/components/upload.md +711 -3
- package/AI_USAGE/components/watermark-api.md +87 -0
- package/AI_USAGE/components/watermark.md +200 -0
- package/AI_USAGE/core.md +1 -1
- package/AI_USAGE/index.md +35 -7
- package/AI_USAGE/recipes/form-on-demand.md +1 -1
- package/AI_USAGE.md +33657 -7
- package/CHANGELOG.md +40 -0
- package/dist/_utils/inherit-component-type.d.ts +11 -0
- package/dist/components/date-picker/index.d.ts +420 -5
- package/dist/components/form-input/index.d.ts +617 -2
- package/dist/components/layout/index.d.ts +689 -1
- package/dist/components/menu/index.d.ts +786 -1
- package/dist/components/network/Network.vue.d.ts +7 -3
- package/dist/components/network/index.d.ts +10 -2
- package/dist/components/network/props.d.ts +5 -0
- package/dist/components/network/utils.d.ts +3 -3
- package/dist/components/pagination/page-item-ellipsis.vue.d.ts +4 -1
- package/dist/components/pagination/page-item-step.vue.d.ts +101 -130
- package/dist/components/pagination/page-item.vue.d.ts +1 -0
- package/dist/components/pagination/page-jumper.vue.d.ts +1 -1
- package/dist/components/pagination/page-options.vue.d.ts +6 -4
- package/dist/components/pagination/utils.d.ts +3 -0
- package/dist/components/time-range-selector/index.d.ts +6 -6
- package/dist/es/_container/resize-observer-v2.js +1 -1
- package/dist/es/_container/resize-observer.js +1 -1
- package/dist/es/_hooks/use-resize-observer.js +1 -1
- package/dist/es/_styles/palette-aliases.js +4 -4
- package/dist/es/_utils/inherit-component-type.js +6 -0
- package/dist/es/_virtual/advancedFormat.js +1 -1
- package/dist/es/_virtual/customParseFormat.js +1 -1
- package/dist/es/_virtual/dayjs.min.js +1 -1
- package/dist/es/_virtual/isBetween.js +1 -1
- package/dist/es/_virtual/quarterOfYear.js +1 -1
- package/dist/es/_virtual/weekOfYear.js +1 -1
- package/dist/es/_virtual/weekYear.js +1 -1
- package/dist/es/_virtual/zh-cn.js +1 -1
- package/dist/es/components/button/Button.js +53 -42
- package/dist/es/components/date-picker/index.js +18 -17
- package/dist/es/components/draggable/useDraggable.js +1 -1
- package/dist/es/components/form/Form.vue2.js +1 -1
- package/dist/es/components/form/FormItem.vue2.js +1 -1
- package/dist/es/components/form-input/index.js +12 -11
- package/dist/es/components/form-input-number/InputNumber.js +1 -1
- package/dist/es/components/form-slider/Slider.vue2.js +1 -1
- package/dist/es/components/form-slider/slider-ticks.vue2.js +1 -1
- package/dist/es/components/form-slider/utils.js +1 -1
- package/dist/es/components/layout/index.js +10 -9
- package/dist/es/components/menu/MenuItem.js +1 -1
- package/dist/es/components/menu/hooks/use-level.js +5 -5
- package/dist/es/components/menu/index.js +13 -10
- package/dist/es/components/menu/overflow-wrap.js +1 -1
- package/dist/es/components/network/Network.vue.js +17 -12
- package/dist/es/components/network/Network.vue2.js +78 -70
- package/dist/es/components/network/utils.js +112 -71
- package/dist/es/components/pagination/Pagination.js +132 -123
- package/dist/es/components/pagination/page-item-ellipsis.vue.js +10 -10
- package/dist/es/components/pagination/page-item-ellipsis.vue2.js +24 -19
- package/dist/es/components/pagination/page-item-step.vue.js +14 -11
- package/dist/es/components/pagination/page-item-step.vue2.js +20 -22
- package/dist/es/components/pagination/page-item.vue.js +10 -9
- package/dist/es/components/pagination/page-item.vue2.js +24 -19
- package/dist/es/components/pagination/page-jumper.vue2.js +23 -23
- package/dist/es/components/pagination/page-options.vue.js +15 -10
- package/dist/es/components/pagination/page-options.vue2.js +21 -17
- package/dist/es/components/pagination/utils.js +4 -2
- package/dist/es/components/progress/circle.vue2.js +1 -1
- package/dist/es/components/progress/line.vue2.js +1 -1
- package/dist/es/components/progress/steps.vue2.js +1 -1
- package/dist/es/components/rate/Rate.js +1 -1
- package/dist/es/components/virtual-list-v2/virtual-list-item.js +1 -1
- package/dist/es/locale/en-US.js +2 -0
- package/dist/es/locale/zh-CN.js +2 -0
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +1 -1
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/locale/interface.d.ts +3 -0
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style/network.css +1 -1
- package/dist/style/pagination.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -5
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js +0 -0
- /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -0
|
@@ -1,73 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getClassNameMixin as
|
|
3
|
-
import { buttonProps as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { buttonGroupInjectionKey as
|
|
7
|
-
import { useSize as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as C, getCurrentInstance as E, inject as M, reactive as R, computed as r, withDirectives as Z, createVNode as d, resolveDirective as $, isVNode as q, Comment as H, Fragment as J, Text as Q } from "vue";
|
|
2
|
+
import { getClassNameMixin as U } from "../../_utils/config.js";
|
|
3
|
+
import { buttonProps as W } from "./props.js";
|
|
4
|
+
import X from "../../icons/animation/animation-loading.js";
|
|
5
|
+
import Y from "../../directives/wave.js";
|
|
6
|
+
import { buttonGroupInjectionKey as _ } from "./context.js";
|
|
7
|
+
import { useSize as G } from "../../_hooks/use-size.js";
|
|
8
|
+
const o = (e) => {
|
|
9
|
+
if (Array.isArray(e)) return e.some(o);
|
|
10
|
+
if (e == null || typeof e == "boolean") return !1;
|
|
11
|
+
if (typeof e == "string") return e.trim().length > 0;
|
|
12
|
+
if (q(e)) {
|
|
13
|
+
if (e.type === H) return !1;
|
|
14
|
+
if (e.type === J || e.type === Q)
|
|
15
|
+
return o(e.children);
|
|
16
|
+
}
|
|
17
|
+
return !0;
|
|
18
|
+
}, re = /* @__PURE__ */ C({
|
|
9
19
|
name: "Button",
|
|
10
|
-
props:
|
|
20
|
+
props: W,
|
|
11
21
|
// 显式导入插槽
|
|
12
22
|
slots: Object,
|
|
13
23
|
directives: {
|
|
14
|
-
wave:
|
|
24
|
+
wave: Y
|
|
15
25
|
},
|
|
16
26
|
emits: ["click"],
|
|
17
27
|
setup(e, {
|
|
18
|
-
slots:
|
|
19
|
-
emit:
|
|
28
|
+
slots: n,
|
|
29
|
+
emit: A
|
|
20
30
|
}) {
|
|
21
|
-
const
|
|
22
|
-
mergedSize:
|
|
23
|
-
} =
|
|
31
|
+
const v = E(), a = M(_, void 0), {
|
|
32
|
+
mergedSize: F
|
|
33
|
+
} = G(void 0, {
|
|
24
34
|
defaultValue: "medium"
|
|
25
|
-
}),
|
|
35
|
+
}), u = R({
|
|
26
36
|
clicked: !1,
|
|
27
37
|
isDebounce: !1
|
|
28
|
-
}), i =
|
|
29
|
-
const
|
|
30
|
-
return Object.prototype.hasOwnProperty.call(
|
|
31
|
-
}, m =
|
|
32
|
-
e.debounce > 0 && !
|
|
33
|
-
|
|
38
|
+
}), i = U("button"), I = (t) => t.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`), f = (t) => {
|
|
39
|
+
const c = (v == null ? void 0 : v.vnode.props) ?? {};
|
|
40
|
+
return Object.prototype.hasOwnProperty.call(c, t) || Object.prototype.hasOwnProperty.call(c, I(t));
|
|
41
|
+
}, m = r(() => f("type") ? e.type : (a == null ? void 0 : a.type) ?? e.type), w = r(() => f("size") ? e.size : (a == null ? void 0 : a.size) ?? F.value), D = r(() => f("status") ? e.status : (a == null ? void 0 : a.status) ?? e.status), y = r(() => f("shape") ? e.shape : (a == null ? void 0 : a.shape) ?? e.shape), s = r(() => f("disabled") ? e.disabled : (a == null ? void 0 : a.disabled) ?? e.disabled), L = r(() => [i.block, m.value && m.value !== "default" && i.modifier(m.value), w.value && i.modifier(w.value), D.value && i.modifier(D.value), s.value && i.is("disabled"), e.block && i.modifier("block"), e.plain && i.modifier("plain"), y.value && i.modifier(y.value), e.link && i.modifier("link"), !e.border && i.modifier("hide-border"), l.value && i.modifier("loading"), e.narrow && i.modifier("narrow")]), N = () => {
|
|
42
|
+
e.debounce > 0 && !u.isDebounce && (u.isDebounce = !0, setTimeout(() => {
|
|
43
|
+
u.isDebounce = !1;
|
|
34
44
|
}, e.debounce));
|
|
35
|
-
},
|
|
36
|
-
var
|
|
37
|
-
|
|
45
|
+
}, l = r(() => e.loading || u.clicked || u.isDebounce), V = r(() => s.value || l.value || e.link || m.value === "text"), B = (t) => {
|
|
46
|
+
var c;
|
|
47
|
+
t.detail > 0 && ((c = t.currentTarget) == null || c.blur()), !(s.value || l.value) && (N(), A("click", t));
|
|
38
48
|
};
|
|
39
49
|
return () => {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
var P, j, O, T;
|
|
51
|
+
const t = (P = n.default) == null ? void 0 : P.call(n), c = (j = n.prefix) == null ? void 0 : j.call(n), S = (O = n.icon) == null ? void 0 : O.call(n), x = (T = n.suffix) == null ? void 0 : T.call(n), b = o(t), g = o(c), h = o(S), p = o(x), z = !b && !g && h && !p, k = e.loadingFill || l.value && (y.value === "circle" || z), K = l.value && !k && (b || g || h || p);
|
|
52
|
+
return Z(d("button", {
|
|
53
|
+
class: [L.value, !b && i.modifier("empty-content"), z && i.modifier("only-icon"), k && i.modifier("loading-fill")],
|
|
43
54
|
type: e.htmlType,
|
|
44
|
-
disabled:
|
|
45
|
-
"aria-busy":
|
|
46
|
-
onClick:
|
|
47
|
-
}, [
|
|
55
|
+
disabled: s.value || l.value,
|
|
56
|
+
"aria-busy": l.value || void 0,
|
|
57
|
+
onClick: B
|
|
58
|
+
}, [d("span", {
|
|
48
59
|
class: i.element("loading"),
|
|
49
60
|
"aria-hidden": "true",
|
|
50
61
|
style: {
|
|
51
62
|
display: "flex",
|
|
52
|
-
opacity:
|
|
53
|
-
width:
|
|
54
|
-
marginRight:
|
|
63
|
+
opacity: l.value ? 1 : 0,
|
|
64
|
+
width: k ? void 0 : l.value ? "1em" : 0,
|
|
65
|
+
marginRight: K ? "4px" : "0",
|
|
55
66
|
overflow: "hidden"
|
|
56
67
|
}
|
|
57
|
-
}, [
|
|
68
|
+
}, [l.value && d(X, null, null)]), g && d("span", {
|
|
58
69
|
class: i.element("prefix")
|
|
59
|
-
}, [
|
|
70
|
+
}, [c]), h && d("span", {
|
|
60
71
|
class: i.element("prefix")
|
|
61
|
-
}, [
|
|
72
|
+
}, [S]), d("span", {
|
|
62
73
|
class: i.element("content")
|
|
63
|
-
}, [
|
|
74
|
+
}, [t]), p && d("span", {
|
|
64
75
|
class: i.element("suffix")
|
|
65
|
-
}, [
|
|
66
|
-
disabled:
|
|
76
|
+
}, [x])]), [[$("wave"), {
|
|
77
|
+
disabled: V.value
|
|
67
78
|
}]]);
|
|
68
79
|
};
|
|
69
80
|
}
|
|
70
81
|
});
|
|
71
82
|
export {
|
|
72
|
-
|
|
83
|
+
re as default
|
|
73
84
|
};
|
|
@@ -3,25 +3,26 @@ import { defineComponent as c, h as k } from "vue";
|
|
|
3
3
|
import { generateComponent as e } from "../../_utils/vue-eco.js";
|
|
4
4
|
import { getComponentPrefix as r } from "../../_utils/config.js";
|
|
5
5
|
import { getRangePickerType as s } from "./utils.js";
|
|
6
|
-
|
|
6
|
+
import { inheritComponentType as P } from "../../_utils/inherit-component-type.js";
|
|
7
|
+
const R = e(r("DatePicker"), n), i = (t, o) => P(c({
|
|
7
8
|
name: t,
|
|
8
9
|
inheritAttrs: !1,
|
|
9
|
-
setup(a, { attrs:
|
|
10
|
-
return () => k(n, { ...
|
|
10
|
+
setup(a, { attrs: m, slots: p }) {
|
|
11
|
+
return () => k(n, { ...m, type: o }, p);
|
|
11
12
|
}
|
|
12
|
-
}),
|
|
13
|
+
})), C = e(
|
|
13
14
|
r("MonthPicker"),
|
|
14
15
|
i("MonthPicker", "month")
|
|
15
|
-
),
|
|
16
|
+
), D = e(
|
|
16
17
|
r("YearPicker"),
|
|
17
18
|
i("YearPicker", "year")
|
|
18
|
-
),
|
|
19
|
+
), M = e(
|
|
19
20
|
r("QuarterPicker"),
|
|
20
21
|
i("QuarterPicker", "quarter")
|
|
21
|
-
),
|
|
22
|
+
), Q = e(
|
|
22
23
|
r("WeekPicker"),
|
|
23
24
|
i("WeekPicker", "week")
|
|
24
|
-
),
|
|
25
|
+
), f = c({
|
|
25
26
|
name: "RangePicker",
|
|
26
27
|
inheritAttrs: !1,
|
|
27
28
|
props: {
|
|
@@ -41,16 +42,16 @@ const l = e(r("DatePicker"), n), i = (t, o) => c({
|
|
|
41
42
|
a
|
|
42
43
|
);
|
|
43
44
|
}
|
|
44
|
-
}),
|
|
45
|
+
}), T = e(
|
|
45
46
|
r("RangePicker"),
|
|
46
|
-
|
|
47
|
+
P(f)
|
|
47
48
|
);
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
R as DatePicker,
|
|
51
|
+
C as MonthPicker,
|
|
52
|
+
M as QuarterPicker,
|
|
53
|
+
T as RangePicker,
|
|
54
|
+
Q as WeekPicker,
|
|
55
|
+
D as YearPicker,
|
|
56
|
+
R as default
|
|
56
57
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sortable as V } from "../../
|
|
1
|
+
import { Sortable as V } from "../../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js";
|
|
2
2
|
import { getCurrentInstance as O, unref as c, watch as W, onMounted as X, nextTick as k, onUnmounted as Z, isRef as D } from "vue";
|
|
3
3
|
import { error as ee } from "./utils/log.js";
|
|
4
4
|
import { isString as ne, getElementBySelector as te, isHTMLElement as oe, forEachObject as M, mergeOptionsEvents as re, isOn as le, extend as ie, insertNodeAt as T, removeNode as E, removeElement as R, isUndefined as ue, insertElement as h, moveArrayElement as B } from "./utils/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as K, ref as U, toRefs as D, computed as m, watch as G, onBeforeUnmount as H, reactive as E, provide as J } from "vue";
|
|
2
|
-
import Q from "../../
|
|
2
|
+
import Q from "../../node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
|
|
3
3
|
import { formInjectionKey as X } from "./context.js";
|
|
4
4
|
import { isArray as Y, isFunction as S } from "../../_utils/is.js";
|
|
5
5
|
import { useSize as Z } from "../../_hooks/use-size.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as be, toRefs as H, inject as U, computed as i, ref as R, reactive as F, useId as me, nextTick as q, provide as ye, toRef as Se, onMounted as he, onBeforeUnmount as Fe, watch as pe } from "vue";
|
|
2
|
-
import { Schema as we } from "../../
|
|
2
|
+
import { Schema as we } from "../../node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js";
|
|
3
3
|
import { formInjectionKey as Be, formItemInjectionKey as G } from "./context.js";
|
|
4
4
|
import { Col as Pe, Row as je } from "../grid/index.js";
|
|
5
5
|
import Ce from "./form-item-label.vue.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import r from "./Input.js";
|
|
2
|
+
import n from "./InputSearch.js";
|
|
3
|
+
import m from "./InputPassword.vue.js";
|
|
4
4
|
import u from "./InputGroup.vue.js";
|
|
5
|
-
import { generateComponent as
|
|
6
|
-
import { getComponentPrefix as
|
|
7
|
-
|
|
5
|
+
import { generateComponent as o } from "../../_utils/vue-eco.js";
|
|
6
|
+
import { getComponentPrefix as t } from "../../_utils/config.js";
|
|
7
|
+
import { inheritComponentType as p } from "../../_utils/inherit-component-type.js";
|
|
8
|
+
const d = o(t("Input"), r), h = o(t("InputSearch"), p(n)), P = o(t("InputPassword"), p(m)), w = o(t("InputGroup"), u);
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
d as Input,
|
|
11
|
+
w as InputGroup,
|
|
12
|
+
P as InputPassword,
|
|
13
|
+
h as InputSearch,
|
|
14
|
+
d as default
|
|
14
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as J, toRefs as Q, ref as V, computed as D, watch as E, onUnmounted as X, createVNode as o, Fragment as Z } from "vue";
|
|
2
|
-
import O from "../../
|
|
2
|
+
import O from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import { isNumber as s, isUndefined as ee } from "../../_utils/is.js";
|
|
4
4
|
import ne from "../../icons/default/up.js";
|
|
5
5
|
import ue from "../../icons/default/down.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as re, computed as c, toRefs as oe, toRef as me, ref as B, watch as ce } from "vue";
|
|
2
|
-
import C from "../../
|
|
2
|
+
import C from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import de from "./slider-button.vue.js";
|
|
4
4
|
import fe from "./slider-dots.vue.js";
|
|
5
5
|
import se from "./slider-marks.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as a } from "vue";
|
|
2
|
-
import o from "../../
|
|
2
|
+
import o from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import { getPositionStyle as l, getOffsetPercent as c } from "./utils.js";
|
|
4
4
|
import { getClassNameMixin as d } from "../../_utils/config.js";
|
|
5
5
|
const S = s({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "../../
|
|
1
|
+
import o from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
2
2
|
const l = (e, [t, r]) => {
|
|
3
3
|
if (r <= t)
|
|
4
4
|
return "0%";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import r from "./Layout.vue.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import e from "./LayoutHeader.vue.js";
|
|
3
|
+
import a from "./LayoutContent.vue.js";
|
|
4
4
|
import m from "./LayoutFooter.vue.js";
|
|
5
5
|
import n from "./LayoutSidebar.vue.js";
|
|
6
6
|
import { generateComponent as o } from "../../_utils/vue-eco.js";
|
|
7
7
|
import { getComponentPrefix as t } from "../../_utils/config.js";
|
|
8
|
-
|
|
8
|
+
import { inheritComponentType as u } from "../../_utils/inherit-component-type.js";
|
|
9
|
+
const c = o(t("Layout"), r), _ = o(t("LayoutHeader"), e), b = o(t("LayoutContent"), a), F = o(t("LayoutFooter"), m), H = o(t("LayoutSidebar"), u(n));
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
c as Layout,
|
|
12
|
+
b as LayoutContent,
|
|
13
|
+
F as LayoutFooter,
|
|
14
|
+
_ as LayoutHeader,
|
|
15
|
+
H as LayoutSidebar,
|
|
16
|
+
c as default
|
|
16
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, createVNode as i, mergeProps as $, ref as E, computed as S, onMounted as h, onUnmounted as I, watch as K } from "vue";
|
|
2
|
-
import N from "../../
|
|
2
|
+
import N from "../../node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
|
|
3
3
|
import { Tooltip as _ } from "../tooltip/index.js";
|
|
4
4
|
import B from "./hooks/use-menu.js";
|
|
5
5
|
import A from "./hooks/use-level.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as n, isRef as r, provide as l, reactive as u, inject as p } from "vue";
|
|
2
2
|
import { LevelInjectionKey as i } from "../context.js";
|
|
3
3
|
function s(e) {
|
|
4
|
-
const o = n(() =>
|
|
5
|
-
|
|
4
|
+
const o = n(() => r(e) ? e.value : e);
|
|
5
|
+
l(
|
|
6
6
|
i,
|
|
7
|
-
|
|
7
|
+
u({
|
|
8
8
|
level: o
|
|
9
9
|
})
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
12
|
function m(e) {
|
|
13
|
-
const { provideNextLevel: o } = e || {}, t =
|
|
13
|
+
const { provideNextLevel: o } = e || {}, t = p(i), c = n(() => (t == null ? void 0 : t.level) || 1);
|
|
14
14
|
if (o) {
|
|
15
15
|
const v = n(() => c.value + 1);
|
|
16
16
|
s(v);
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./Menu.js";
|
|
2
2
|
import t from "./MenuItem.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import m from "./MenuSubMenu.js";
|
|
4
|
+
import u from "./item-group.vue.js";
|
|
5
5
|
import { generateComponent as e } from "../../_utils/vue-eco.js";
|
|
6
|
-
import { getComponentPrefix as
|
|
7
|
-
|
|
6
|
+
import { getComponentPrefix as o } from "../../_utils/config.js";
|
|
7
|
+
import { inheritComponentType as r } from "../../_utils/inherit-component-type.js";
|
|
8
|
+
const a = e(o("Menu"), r(
|
|
9
|
+
n
|
|
10
|
+
)), b = e(o("MenuItem"), t), C = e(o("MenuItemGroup"), u), G = e(o("MenuSubMenu"), m);
|
|
8
11
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
a as Menu,
|
|
13
|
+
b as MenuItem,
|
|
14
|
+
C as MenuItemGroup,
|
|
15
|
+
G as MenuSubMenu,
|
|
16
|
+
a as default
|
|
14
17
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, ref as w, onMounted as _, onUnmounted as $, createVNode as h, cloneVNode as g, mergeProps as L, createTextVNode as E } from "vue";
|
|
2
|
-
import k from "../../
|
|
2
|
+
import k from "../../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
3
3
|
import { getStyle as N } from "../../_utils/style.js";
|
|
4
4
|
import F from "./hooks/use-menu-context.js";
|
|
5
5
|
import P from "./MenuSubMenu.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import d from "./Network.vue2.js";
|
|
2
|
-
import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, Fragment as p, renderList as g, normalizeStyle as S,
|
|
2
|
+
import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, toDisplayString as t, Fragment as p, renderList as g, normalizeStyle as S, createCommentVNode as m } from "vue";
|
|
3
3
|
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
4
|
+
const c = ["aria-label", "aria-live", "title"];
|
|
5
|
+
function f(e, n, v, N, h, k) {
|
|
6
6
|
return s(), r("div", {
|
|
7
7
|
class: a(e.cls),
|
|
8
8
|
role: "status",
|
|
9
9
|
"aria-label": e.mergedAriaLabel,
|
|
10
10
|
"aria-live": e.ariaLive,
|
|
11
|
+
"aria-atomic": "true",
|
|
11
12
|
title: e.showTooltip ? e.mergedAriaLabel : void 0
|
|
12
13
|
}, [
|
|
13
14
|
u(e.$slots, "default", {
|
|
@@ -21,40 +22,44 @@ function c(e, t, v, N, h, k) {
|
|
|
21
22
|
reason: e.mergedStatus.reason,
|
|
22
23
|
refresh: e.refresh
|
|
23
24
|
}, () => [
|
|
25
|
+
l("span", {
|
|
26
|
+
class: a(e.className.element("status-text"))
|
|
27
|
+
}, t(e.mergedAriaLabel), 3),
|
|
24
28
|
l("div", {
|
|
25
29
|
class: a(e.className.element("signal")),
|
|
26
30
|
"aria-hidden": "true"
|
|
27
31
|
}, [
|
|
28
|
-
(s(!0), r(p, null, g(e.lineItems, (o,
|
|
29
|
-
key:
|
|
32
|
+
(s(!0), r(p, null, g(e.lineItems, (o, i) => (s(), r("div", {
|
|
33
|
+
key: i,
|
|
30
34
|
class: a([
|
|
31
35
|
e.className.element("signal--item"),
|
|
32
36
|
o.active && e.className.is("active")
|
|
33
37
|
]),
|
|
34
38
|
style: S({
|
|
35
|
-
height: `${100 / e.lineItems.length * (
|
|
39
|
+
height: `${100 / e.lineItems.length * (i + 1)}%`,
|
|
36
40
|
"--x-network-line-color": o.color
|
|
37
41
|
})
|
|
38
|
-
}, [...
|
|
42
|
+
}, [...n[0] || (n[0] = [
|
|
39
43
|
l("i", null, null, -1)
|
|
40
44
|
])], 6))), 128))
|
|
41
45
|
], 2),
|
|
42
46
|
e.mergedShowMetrics ? (s(), r("span", {
|
|
43
47
|
key: 0,
|
|
44
|
-
class: a(e.className.element("metrics"))
|
|
48
|
+
class: a(e.className.element("metrics")),
|
|
49
|
+
"aria-hidden": "true"
|
|
45
50
|
}, [
|
|
46
51
|
e.mergedStatus.latency !== void 0 ? (s(), r("span", {
|
|
47
52
|
key: 0,
|
|
48
53
|
class: a(e.className.element("latency"))
|
|
49
|
-
},
|
|
54
|
+
}, t(e.mergedStatus.latency) + "ms ", 3)) : m("", !0),
|
|
50
55
|
l("span", {
|
|
51
56
|
class: a(e.className.element("speed"))
|
|
52
|
-
},
|
|
57
|
+
}, t(e.formattedDownloadSpeed), 3)
|
|
53
58
|
], 2)) : m("", !0)
|
|
54
59
|
])
|
|
55
|
-
], 10,
|
|
60
|
+
], 10, c);
|
|
56
61
|
}
|
|
57
|
-
const L = /* @__PURE__ */ y(d, [["render",
|
|
62
|
+
const L = /* @__PURE__ */ y(d, [["render", f]]);
|
|
58
63
|
export {
|
|
59
64
|
L as default
|
|
60
65
|
};
|