base6-ui 2.0.20 → 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/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/index.css +1 -1
- package/dist/index.umd.js +1 -1
- package/es/components/global-header/index.vue.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/dataTable/dark.mjs +2 -2
- 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/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/dataTable/dark.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
|
+
};
|
|
@@ -3,7 +3,6 @@ import o from "../../token/dark.mjs";
|
|
|
3
3
|
import { DataTableThemeCommon as t } from "./common.mjs";
|
|
4
4
|
import { merge as e } from "../../../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs";
|
|
5
5
|
const p = e(
|
|
6
|
-
{ ...t },
|
|
7
6
|
{
|
|
8
7
|
tdColor: o["bg-color-2"],
|
|
9
8
|
tdColorStriped: o["fill-color-5"],
|
|
@@ -18,7 +17,8 @@ const p = e(
|
|
|
18
17
|
color: o["bg-color-9"]
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
}
|
|
20
|
+
},
|
|
21
|
+
{ ...t }
|
|
22
22
|
);
|
|
23
23
|
export {
|
|
24
24
|
p as DataTableThemeDark
|
|
@@ -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
|
};
|