base6-ui 2.0.19 → 2.0.21
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/dist/components/input-number/index.vue.d.ts +1 -0
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/src/cssVar.d.ts +4 -0
- package/dist/components/select/src/interface.d.ts +585 -0
- package/dist/components/select/src/select.d.ts +1203 -0
- package/dist/config/themes/components/dialog/dark.d.ts +1 -0
- package/dist/config/themes/components/dropdown/common.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1 -1
- package/es/components/global-header/index.vue.mjs +1 -1
- package/es/components/input-number/index.vue.d.ts +1 -0
- package/es/components/input-number/index.vue.mjs +2 -2
- package/es/components/input-number/index.vue2.mjs +1 -1
- package/es/components/layout/components/{WrapHeader.vue.mjs → WrapHeader.vue2.mjs} +1 -1
- package/es/components/layout/index.vue2.mjs +1 -1
- package/es/components/select/index.d.ts +2 -1
- package/es/components/select/src/cssVar.d.ts +4 -0
- package/es/components/select/src/cssVar.mjs +60 -0
- package/es/components/select/src/interface.d.ts +585 -0
- package/es/components/select/src/interface.mjs +5 -0
- package/es/components/select/src/select.d.ts +1203 -0
- package/es/components/select/src/select.mjs +66 -0
- package/es/config/themes/components/baseComponent/dark.mjs +0 -6
- package/es/config/themes/components/baseComponent/light.mjs +0 -6
- package/es/config/themes/components/button/common.mjs +13 -10
- package/es/config/themes/components/dataTable/common.mjs +4 -3
- package/es/config/themes/components/dataTable/dark.mjs +20 -14
- package/es/config/themes/components/dialog/common.mjs +1 -1
- package/es/config/themes/components/dialog/dark.d.ts +1 -0
- package/es/config/themes/components/dialog/dark.mjs +4 -3
- package/es/config/themes/components/dropdown/common.d.ts +2 -0
- package/es/config/themes/components/dropdown/common.mjs +6 -0
- package/es/config/themes/components/dropdown/dark.mjs +6 -3
- package/es/config/themes/components/dropdown/light.mjs +4 -2
- package/es/config/themes/components/form/common.mjs +3 -0
- package/es/config/themes/components/input/dark.mjs +1 -1
- package/es/config/themes/components/input/light.mjs +1 -1
- package/es/config/themes/components/select/dark.mjs +3 -6
- package/es/config/themes/components/select/light.mjs +1 -4
- package/es/config/themes/components/transfer/dark.mjs +10 -6
- package/es/config/themes/components/transfer/light.mjs +4 -3
- package/es/index.css +1 -1
- package/es/index.mjs +60 -58
- package/lib/components/global-header/index.vue.js +1 -1
- package/lib/components/input-number/index.vue.d.ts +1 -0
- package/lib/components/input-number/index.vue.js +1 -1
- package/lib/components/input-number/index.vue2.js +1 -1
- package/lib/components/layout/components/WrapHeader.vue2.js +1 -0
- package/lib/components/layout/index.vue2.js +1 -1
- package/lib/components/select/index.d.ts +2 -1
- package/lib/components/select/src/cssVar.d.ts +4 -0
- package/lib/components/select/src/cssVar.js +1 -0
- package/lib/components/select/src/interface.d.ts +585 -0
- package/lib/components/select/src/interface.js +1 -0
- package/lib/components/select/src/select.d.ts +1203 -0
- package/lib/components/select/src/select.js +1 -0
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/common.js +1 -1
- package/lib/config/themes/components/dataTable/common.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dialog/common.js +1 -1
- package/lib/config/themes/components/dialog/dark.d.ts +1 -0
- package/lib/config/themes/components/dialog/dark.js +1 -1
- package/lib/config/themes/components/dropdown/common.d.ts +2 -0
- package/lib/config/themes/components/dropdown/common.js +1 -0
- package/lib/config/themes/components/dropdown/dark.js +1 -1
- package/lib/config/themes/components/dropdown/light.js +1 -1
- package/lib/config/themes/components/form/common.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/input/light.js +1 -1
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/select/light.js +1 -1
- package/lib/config/themes/components/transfer/dark.js +1 -1
- package/lib/config/themes/components/transfer/light.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/dist/components/cascader/index.vue.d.ts +0 -7
- package/dist/components/select/index.vue.d.ts +0 -25
- package/es/components/cascader/index.vue.d.ts +0 -7
- package/es/components/select/index.vue.d.ts +0 -25
- package/es/components/select/index.vue.mjs +0 -8
- package/es/components/select/index.vue2.mjs +0 -67
- package/lib/components/cascader/index.vue.d.ts +0 -7
- package/lib/components/layout/components/WrapHeader.vue.js +0 -1
- package/lib/components/select/index.vue.d.ts +0 -25
- package/lib/components/select/index.vue.js +0 -1
- package/lib/components/select/index.vue2.js +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as f, createVNode as b, mergeProps as g, computed as t, h as i } from "vue";
|
|
2
|
+
import { NSelect as p, NCheckbox as h, NTag as T } from "naive-ui";
|
|
3
|
+
import { bodenSelectProps as C } from "./interface.mjs";
|
|
4
|
+
import { getSelectCssVar as v } from "./cssVar.mjs";
|
|
5
|
+
import L from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
6
|
+
/* empty css */
|
|
7
|
+
const N = "BodenSelect", x = /* @__PURE__ */ f({
|
|
8
|
+
name: N,
|
|
9
|
+
props: C,
|
|
10
|
+
setup(e) {
|
|
11
|
+
const n = L(), l = t(() => {
|
|
12
|
+
const {
|
|
13
|
+
name: r = "light"
|
|
14
|
+
} = n?.mergedThemeRef.value || {};
|
|
15
|
+
return r !== "light";
|
|
16
|
+
}), o = t(() => v(l.value)), d = (r, s) => [i(h, {
|
|
17
|
+
checked: s,
|
|
18
|
+
disabled: r.disabled
|
|
19
|
+
}, {
|
|
20
|
+
default: () => r.label
|
|
21
|
+
})], u = ({
|
|
22
|
+
option: r,
|
|
23
|
+
handleClose: s
|
|
24
|
+
}) => i(T, {
|
|
25
|
+
type: "default",
|
|
26
|
+
closable: !0,
|
|
27
|
+
bordered: !1,
|
|
28
|
+
disabled: e.disabled,
|
|
29
|
+
size: e.size,
|
|
30
|
+
onMousedown: (a) => {
|
|
31
|
+
a.preventDefault();
|
|
32
|
+
},
|
|
33
|
+
onClose: (a) => {
|
|
34
|
+
a.stopPropagation(), s();
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
default: () => r.label
|
|
38
|
+
}), c = t(() => e.renderLabel ? e.renderLabel : e.multiple ? d : void 0), m = t(() => e.renderTag ? e.renderTag : e.multiple ? u : void 0);
|
|
39
|
+
return {
|
|
40
|
+
cssVarStyle: o,
|
|
41
|
+
renderLabel: c,
|
|
42
|
+
renderTag: m
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
render() {
|
|
46
|
+
const {
|
|
47
|
+
$attrs: e,
|
|
48
|
+
$props: n,
|
|
49
|
+
$slots: l,
|
|
50
|
+
renderLabel: o,
|
|
51
|
+
renderTag: d
|
|
52
|
+
} = this;
|
|
53
|
+
return b(p, g(e, n, {
|
|
54
|
+
renderLabel: o,
|
|
55
|
+
renderTag: d,
|
|
56
|
+
class: "boden-select",
|
|
57
|
+
style: this.cssVarStyle,
|
|
58
|
+
"menu-props": {
|
|
59
|
+
class: "boden-select-menu"
|
|
60
|
+
}
|
|
61
|
+
}), l);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
x as default
|
|
66
|
+
};
|
|
@@ -192,14 +192,8 @@ const l = {
|
|
|
192
192
|
tabRoundBorderRadius: e.tabRoundBorderRadius
|
|
193
193
|
// closeBorderRadius: string; /* 关闭按钮圆角 */
|
|
194
194
|
}, p = {
|
|
195
|
-
indicatorColorWait: "transparent",
|
|
196
|
-
/* 等待状态指示器背景色 */
|
|
197
195
|
indicatorColorProcess: r["color-primary-6"],
|
|
198
196
|
/* 进行状态指示器背景色 */
|
|
199
|
-
indicatorColorFinish: "transparent",
|
|
200
|
-
/* 完成状态指示器背景色 */
|
|
201
|
-
indicatorColorError: "transparent",
|
|
202
|
-
/* 错误状态指示器背景色 */
|
|
203
197
|
indicatorTextColorWait: r["color-gray-6"],
|
|
204
198
|
/* 等待状态指示器文字颜色 */
|
|
205
199
|
indicatorTextColorProcess: o["color-text-5"],
|
|
@@ -290,14 +290,8 @@ const l = {
|
|
|
290
290
|
tabRoundBorderRadius: r.tabRoundBorderRadius
|
|
291
291
|
// closeBorderRadius: commonBase.tabBorderRadius /* 关闭按钮圆角 */
|
|
292
292
|
}, p = {
|
|
293
|
-
indicatorColorWait: e["color-text-1"],
|
|
294
|
-
/* 等待状态指示器背景色 */
|
|
295
293
|
indicatorColorProcess: o["color-primary-6"],
|
|
296
294
|
/* 进行状态指示器背景色 */
|
|
297
|
-
indicatorColorFinish: e["color-text-1"],
|
|
298
|
-
/* 完成状态指示器背景色 */
|
|
299
|
-
indicatorColorError: e["color-text-1"],
|
|
300
|
-
/* 错误状态指示器背景色 */
|
|
301
295
|
indicatorTextColorWait: o["color-gray-6"],
|
|
302
296
|
/* 等待状态指示器文字颜色 */
|
|
303
297
|
indicatorTextColorProcess: e["color-text-1"],
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { commonBase as
|
|
2
|
-
const
|
|
3
|
-
borderRadiusLarge:
|
|
4
|
-
borderRadiusMedium:
|
|
5
|
-
borderRadiusSmall:
|
|
6
|
-
heightMedium:
|
|
1
|
+
import { commonBase as d } from "../../common.mjs";
|
|
2
|
+
const a = {
|
|
3
|
+
borderRadiusLarge: d.borderRadiusLarge,
|
|
4
|
+
borderRadiusMedium: d.borderRadiusMedium,
|
|
5
|
+
borderRadiusSmall: d.borderRadiusSmall,
|
|
6
|
+
heightMedium: d.heightMedium,
|
|
7
7
|
heightSmall: "24px",
|
|
8
|
-
fontSizeLarge:
|
|
9
|
-
fontSizeSmall:
|
|
8
|
+
fontSizeLarge: d.fontSizeLarge,
|
|
9
|
+
fontSizeSmall: d.fontSizeSmall,
|
|
10
10
|
opacityDisabled: "1",
|
|
11
11
|
paddingLarge: "0 24px",
|
|
12
12
|
paddingMedium: "0 16px",
|
|
13
|
-
paddingSmall: "0 12px"
|
|
13
|
+
paddingSmall: "0 12px",
|
|
14
|
+
paddingRoundLarge: "0 24px",
|
|
15
|
+
paddingRoundMedium: "0 16px",
|
|
16
|
+
paddingRoundSmall: "0 12px"
|
|
14
17
|
};
|
|
15
18
|
export {
|
|
16
|
-
|
|
19
|
+
a as ButtonThemeCommon
|
|
17
20
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
tdColorSorting: "
|
|
1
|
+
const t = {
|
|
2
|
+
tdColorSorting: "transparent",
|
|
3
|
+
thColorSorting: "transparent",
|
|
3
4
|
peers: {
|
|
4
5
|
Scrollbar: {
|
|
5
6
|
railInsetHorizontalBottom: "auto 2px 0px 2px",
|
|
@@ -8,5 +9,5 @@ const o = {
|
|
|
8
9
|
}
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
t as DataTableThemeCommon
|
|
12
13
|
};
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import r from "../../color/dark.mjs";
|
|
2
2
|
import o from "../../token/dark.mjs";
|
|
3
3
|
import { DataTableThemeCommon as t } from "./common.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
import { merge as e } from "../../../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs";
|
|
5
|
+
const p = e(
|
|
6
|
+
{
|
|
7
|
+
tdColor: o["bg-color-2"],
|
|
8
|
+
tdColorStriped: o["fill-color-5"],
|
|
9
|
+
tdTextColor: r["color-gray-10"],
|
|
10
|
+
thColor: o["bg-color-2"],
|
|
11
|
+
thFontWeight: "400",
|
|
12
|
+
thPaddingMedium: "6px 12px",
|
|
13
|
+
thTextColor: o["color-text-2"],
|
|
14
|
+
borderColor: r["color-gray-3"],
|
|
15
|
+
peers: {
|
|
16
|
+
Popover: {
|
|
17
|
+
color: o["bg-color-9"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{ ...t }
|
|
22
|
+
);
|
|
17
23
|
export {
|
|
18
|
-
|
|
24
|
+
p as DataTableThemeDark
|
|
19
25
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import o from "../../color/dark.mjs";
|
|
2
2
|
import r from "../../token/dark.mjs";
|
|
3
|
-
import { DialogThemeCommon as
|
|
3
|
+
import { DialogThemeCommon as l } from "./common.mjs";
|
|
4
4
|
const i = {
|
|
5
|
-
...
|
|
5
|
+
...l,
|
|
6
6
|
closeIconColor: r["color-text-1"],
|
|
7
7
|
titleTextColor: r["color-text-1"],
|
|
8
8
|
textColor: r["color-text-1"],
|
|
9
9
|
iconColorError: o["color-red-6"],
|
|
10
10
|
iconColorInfo: o["color-primary-6"],
|
|
11
11
|
iconColorSuccess: o["color-green-6"],
|
|
12
|
-
iconColorWarning: o["color-origin-6"]
|
|
12
|
+
iconColorWarning: o["color-origin-6"],
|
|
13
|
+
color: r["bg-color-3"]
|
|
13
14
|
};
|
|
14
15
|
export {
|
|
15
16
|
i as DialogThemeDark
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import o from "../../token/dark.mjs";
|
|
2
|
-
|
|
2
|
+
import { DropdownThemeCommon as r } from "./common.mjs";
|
|
3
|
+
const l = {
|
|
4
|
+
...r,
|
|
3
5
|
optionColorHover: o["fill-color-5"],
|
|
4
|
-
optionTextColor: o["color-text-1"]
|
|
6
|
+
optionTextColor: o["color-text-1"],
|
|
7
|
+
color: o["bg-color-9"]
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
l as DropdownThemeDark
|
|
8
11
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
-
|
|
2
|
+
import { DropdownThemeCommon as r } from "./common.mjs";
|
|
3
|
+
const e = {
|
|
4
|
+
...r,
|
|
3
5
|
optionColorHover: o["color-primary-2"],
|
|
4
6
|
optionTextColor: o["color-gray-10"]
|
|
5
7
|
};
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
e as DropdownThemeLight
|
|
8
10
|
};
|
|
@@ -6,7 +6,7 @@ const d = {
|
|
|
6
6
|
border: `1px solid ${r["color-gray-4"]}`,
|
|
7
7
|
borderDisabled: "1px solid #0000",
|
|
8
8
|
borderError: `1px solid ${r["color-red-6"]}`,
|
|
9
|
-
borderFocus: `
|
|
9
|
+
borderFocus: `1px solid ${r["color-primary-6"]}`,
|
|
10
10
|
borderHover: `1px solid ${r["color-primary-5"]}`,
|
|
11
11
|
color: o["bg-color-3"],
|
|
12
12
|
colorDisabled: o["fill-color-1"],
|
|
@@ -5,7 +5,7 @@ const a = {
|
|
|
5
5
|
border: `1px solid ${o["color-gray-4"]}`,
|
|
6
6
|
borderDisabled: "1px solid #0000",
|
|
7
7
|
borderError: `1px solid ${o["color-red-6"]}`,
|
|
8
|
-
borderFocus: `
|
|
8
|
+
borderFocus: `1px solid ${o["color-primary-6"]}`,
|
|
9
9
|
borderHover: `1px solid ${o["color-primary-5"]}`,
|
|
10
10
|
colorDisabled: o["color-gray-2"],
|
|
11
11
|
groupLabelBorder: `1px solid ${o["color-gray-4"]}`,
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import r from "../../color/dark.mjs";
|
|
2
2
|
import o from "../../token/dark.mjs";
|
|
3
|
-
import { commonBase as
|
|
3
|
+
import { commonBase as l } from "../../common.mjs";
|
|
4
4
|
const c = {
|
|
5
5
|
peers: {
|
|
6
6
|
InternalSelection: {
|
|
7
7
|
arrowColor: o["color-text-1"],
|
|
8
8
|
arrowColorDisabled: o["color-text-4"],
|
|
9
9
|
border: `1px solid ${r["color-gray-4"]}`,
|
|
10
|
-
borderActive: `
|
|
10
|
+
borderActive: `1px solid ${r["color-primary-6"]}`,
|
|
11
11
|
borderHover: `1px solid ${r["color-primary-5"]}`,
|
|
12
12
|
borderFocus: `1px solid ${r["color-primary-5"]}`,
|
|
13
|
-
borderRadius:
|
|
14
|
-
boxShadowActive: "none",
|
|
15
|
-
boxShadowFocus: "none",
|
|
16
|
-
boxShadowHover: "none",
|
|
13
|
+
borderRadius: l.borderRadiusMedium,
|
|
17
14
|
color: o["bg-color-3"],
|
|
18
15
|
colorActive: o["bg-color-2"],
|
|
19
16
|
colorDisabled: o["fill-color-1"],
|
|
@@ -6,13 +6,10 @@ const i = {
|
|
|
6
6
|
arrowColor: o["color-gray-10"],
|
|
7
7
|
arrowColorDisabled: o["color-gray-4"],
|
|
8
8
|
border: `1px solid ${o["color-gray-4"]}`,
|
|
9
|
-
borderActive: `
|
|
9
|
+
borderActive: `1px solid ${o["color-primary-6"]}`,
|
|
10
10
|
borderHover: `1px solid ${o["color-primary-5"]}`,
|
|
11
11
|
borderFocus: `1px solid ${o["color-primary-5"]}`,
|
|
12
12
|
borderRadius: r.borderRadiusMedium,
|
|
13
|
-
boxShadowActive: "none",
|
|
14
|
-
boxShadowFocus: "none",
|
|
15
|
-
boxShadowHover: "none",
|
|
16
13
|
colorDisabled: o["color-gray-2"],
|
|
17
14
|
placeholderColor: o["color-gray-6"],
|
|
18
15
|
placeholderColorDisabled: o["color-gray-4"],
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import o from "../../color/dark.mjs";
|
|
2
|
+
import r from "../../token/dark.mjs";
|
|
3
|
+
import { commonBase as e } from "../../common.mjs";
|
|
4
|
+
const a = {
|
|
5
|
+
borderColor: o["color-gray-3"],
|
|
6
|
+
borderRadius: e.borderRadiusMedium,
|
|
7
|
+
itemColorPending: o["color-primary-1"],
|
|
8
|
+
itemTextColor: r["color-text-1"],
|
|
9
|
+
listColor: r["bg-color-2"]
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
a as TransferThemeDark
|
|
9
13
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import r from "../../color/light.mjs";
|
|
2
2
|
import { commonBase as o } from "../../common.mjs";
|
|
3
|
-
const
|
|
3
|
+
const m = {
|
|
4
4
|
borderColor: r["color-gray-4"],
|
|
5
|
-
borderRadius: o.borderRadiusMedium
|
|
5
|
+
borderRadius: o.borderRadiusMedium,
|
|
6
|
+
itemColorPending: r["color-primary-1"]
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
m as TransferThemeLight
|
|
9
10
|
};
|