@das-fed/upf-ui 6.4.0-dev.136 → 6.4.0-dev.137
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/package.json +5 -5
- package/packages/components/cascader/index.d.ts +2 -0
- package/packages/components/cascader/index.js +54 -54
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/type.d.ts +3 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.d.ts +2 -0
- package/packages/components/checkbox/index.js +45 -45
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/src/type.d.ts +4 -1
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/color-picker/index.js +8 -7
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/type.d.ts +3 -0
- package/packages/components/date-picker/index.js +345 -341
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/type.d.ts +15 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/form/index.d.ts +0 -1
- package/packages/components/form/index.js +41 -50
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form-item/index.js +531 -524
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +39 -39
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/src/type.d.ts +3 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/radio/index.d.ts +2 -0
- package/packages/components/radio/index.js +44 -44
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/src/type.d.ts +5 -2
- package/packages/components/select-input/index.js +36 -36
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/type.d.ts +6 -3
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/switch/index.js +22 -23
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/src/type.d.ts +3 -0
- package/packages/components/switch/style.css +1 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/form/hooks/use-form-size.d.ts +0 -3
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/select-input/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { computed as
|
|
2
|
+
import { withInstall as H } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
+
import { setThemeRule as z } from "@das-fed/upf-web/packages/theme/index";
|
|
4
|
+
import { computed as S, ref as b, defineComponent as D, createBlock as k, openBlock as L, unref as e, normalizeClass as x, isRef as v, createSlots as E, withCtx as y, createVNode as B } from "vue";
|
|
5
5
|
import { DasInput as W } from "@das-fed/upf-ui/packages/components/input/index";
|
|
6
6
|
import { DasIconSearch as K } from "@das-fed/upf-ui/packages/icons/search/index";
|
|
7
7
|
import { DasSelect as N } from "@das-fed/upf-ui/packages/components/select/index";
|
|
8
8
|
import { useModelValue as C } from "@das-fed/upf-utils/vue";
|
|
9
|
-
import { useFormSize as P } from "@das-fed/upf-ui/packages/components/form";
|
|
10
9
|
import "@das-fed/upf-ui/packages/global/theme";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
a("update:modelValue",
|
|
14
|
-
},
|
|
10
|
+
const P = (n, a) => {
|
|
11
|
+
const s = C(n, "modelValue"), i = C(n, "optionValue"), l = C(n, "isExpandAtFocus"), u = S(() => typeof n.width == "number" ? n.width + "px" : n == null ? void 0 : n.width), m = () => {
|
|
12
|
+
a("update:modelValue", s.value);
|
|
13
|
+
}, f = (o) => {
|
|
15
14
|
a("update:modelValue", o), a("inputChange", o);
|
|
16
15
|
}, h = (o) => {
|
|
17
16
|
a("update:modelValue", o), a("dasInput", o);
|
|
@@ -19,27 +18,27 @@ const A = (n, a) => {
|
|
|
19
18
|
a("update:optionValue", o), a("selectChange", o);
|
|
20
19
|
}, d = b(""), r = b(!1);
|
|
21
20
|
return {
|
|
22
|
-
innerValue:
|
|
21
|
+
innerValue: s,
|
|
23
22
|
selectValue: i,
|
|
24
|
-
inputChangeHandler:
|
|
23
|
+
inputChangeHandler: f,
|
|
25
24
|
selectChangeHandler: V,
|
|
26
25
|
inputInputHandler: h,
|
|
27
|
-
searchHandler:
|
|
26
|
+
searchHandler: m,
|
|
28
27
|
inputWidth: d,
|
|
29
28
|
isFocus: r,
|
|
30
29
|
onFocus: () => {
|
|
31
30
|
var p;
|
|
32
31
|
if (!l.value) return;
|
|
33
|
-
let o = (p =
|
|
34
|
-
d.value =
|
|
32
|
+
let o = (p = u.value) == null ? void 0 : p.replace("px", "");
|
|
33
|
+
d.value = u.value && o * 1 > 400 ? u.value : "400px", r.value = !0;
|
|
35
34
|
},
|
|
36
35
|
onBlur: () => {
|
|
37
36
|
l.value && (d.value = "", r.value = !1);
|
|
38
37
|
},
|
|
39
38
|
isExpandInput: l,
|
|
40
|
-
selectInputWidth:
|
|
39
|
+
selectInputWidth: u
|
|
41
40
|
};
|
|
42
|
-
},
|
|
41
|
+
}, A = /* @__PURE__ */ D({
|
|
43
42
|
__name: "Index",
|
|
44
43
|
props: {
|
|
45
44
|
options: { default: [] },
|
|
@@ -55,15 +54,16 @@ const A = (n, a) => {
|
|
|
55
54
|
error: { type: Boolean },
|
|
56
55
|
isSearch: { type: Boolean, default: !1 },
|
|
57
56
|
isExpandAtFocus: { type: Boolean, default: !1 },
|
|
58
|
-
width: { default: "268px" }
|
|
57
|
+
width: { default: "268px" },
|
|
58
|
+
formSize: {}
|
|
59
59
|
},
|
|
60
60
|
emits: ["update:modelValue", "update:optionValue", "inputChange", "dasInput", "selectChange"],
|
|
61
61
|
setup(n, { emit: a }) {
|
|
62
|
-
const
|
|
62
|
+
const s = n, i = a, {
|
|
63
63
|
innerValue: l,
|
|
64
|
-
selectValue:
|
|
65
|
-
inputChangeHandler:
|
|
66
|
-
selectChangeHandler:
|
|
64
|
+
selectValue: u,
|
|
65
|
+
inputChangeHandler: m,
|
|
66
|
+
selectChangeHandler: f,
|
|
67
67
|
inputInputHandler: h,
|
|
68
68
|
searchHandler: V,
|
|
69
69
|
inputWidth: d,
|
|
@@ -72,8 +72,8 @@ const A = (n, a) => {
|
|
|
72
72
|
onBlur: w,
|
|
73
73
|
isExpandInput: o,
|
|
74
74
|
selectInputWidth: p
|
|
75
|
-
} =
|
|
76
|
-
return (t, c) => (L(),
|
|
75
|
+
} = P(s, i), F = S(() => s.formSize);
|
|
76
|
+
return (t, c) => (L(), k(e(W), {
|
|
77
77
|
class: x(["das-select-input", { "is-error": t.error, "is-search": t.isSearch, "is-disabled": t.disabled }]),
|
|
78
78
|
modelValue: e(l),
|
|
79
79
|
"onUpdate:modelValue": c[1] || (c[1] = (g) => v(l) ? l.value = g : null),
|
|
@@ -84,10 +84,10 @@ const A = (n, a) => {
|
|
|
84
84
|
filterSpace: !1,
|
|
85
85
|
isTitle: !t.isExpandAtFocus,
|
|
86
86
|
onInput: e(h),
|
|
87
|
-
onChange: e(
|
|
87
|
+
onChange: e(m),
|
|
88
88
|
onFocus: e(I),
|
|
89
89
|
onBlur: e(w),
|
|
90
|
-
size:
|
|
90
|
+
size: F.value || "default"
|
|
91
91
|
}, E({
|
|
92
92
|
prepend: y(() => [
|
|
93
93
|
B(e(N), {
|
|
@@ -95,8 +95,8 @@ const A = (n, a) => {
|
|
|
95
95
|
disabled: t.disabled,
|
|
96
96
|
isView: t.isView,
|
|
97
97
|
dropdownClassName: "das-select-input-select-container",
|
|
98
|
-
modelValue: e(
|
|
99
|
-
"onUpdate:modelValue": c[0] || (c[0] = (g) => v(
|
|
98
|
+
modelValue: e(u),
|
|
99
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => v(u) ? u.value = g : null),
|
|
100
100
|
width: "auto",
|
|
101
101
|
dropdownMatchSelectWidth: !1,
|
|
102
102
|
"border-type": "none",
|
|
@@ -106,7 +106,7 @@ const A = (n, a) => {
|
|
|
106
106
|
value: t.optionsValueKey,
|
|
107
107
|
label: t.optionsLabelKey
|
|
108
108
|
},
|
|
109
|
-
onChange: e(
|
|
109
|
+
onChange: e(f)
|
|
110
110
|
}, null, 8, ["disabled", "isView", "modelValue", "options", "getPopupContainer", "fieldNames", "onChange"])
|
|
111
111
|
]),
|
|
112
112
|
_: 2
|
|
@@ -124,17 +124,17 @@ const A = (n, a) => {
|
|
|
124
124
|
} : void 0
|
|
125
125
|
]), 1032, ["class", "modelValue", "width", "disabled", "isView", "maxLength", "isTitle", "onInput", "onChange", "onFocus", "onBlur", "size"]));
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
128
|
-
const
|
|
127
|
+
}), T = (n, a) => {
|
|
128
|
+
const s = n.__vccOpts || n;
|
|
129
129
|
for (const [i, l] of a)
|
|
130
|
-
|
|
131
|
-
return
|
|
132
|
-
},
|
|
130
|
+
s[i] = l;
|
|
131
|
+
return s;
|
|
132
|
+
}, M = /* @__PURE__ */ T(A, [["__scopeId", "data-v-23848c4a"]]), R = {
|
|
133
133
|
"--das-ui-select-input-border-color": { light: "#999" },
|
|
134
134
|
"--das-ui-select-input-border-color-search": { light: "#D9D9D9" }
|
|
135
|
-
},
|
|
136
|
-
|
|
135
|
+
}, Y = H(M);
|
|
136
|
+
z(R);
|
|
137
137
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
Y as DasSelectInput,
|
|
139
|
+
Y as default
|
|
140
140
|
};
|
|
Binary file
|
|
@@ -35,10 +35,13 @@ export interface Props {
|
|
|
35
35
|
|
|
36
36
|
isSearch?: boolean
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
isExpandAtFocus?: boolean
|
|
40
|
+
|
|
41
|
+
width?: string | number
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
|
|
44
|
+
formSize?: 'small' | 'default' | 'large'
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
export interface Emits {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-input.only-border-bottom[data-v-
|
|
1
|
+
.das-ui-input.only-border-bottom[data-v-23848c4a]{transition:width .3s ease}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input{height:24px}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group{border-color:var(--das-ui-select-input-border-color)}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group.is-search{border-color:var(--das-ui-select-input-border-color-search)}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group.input-focus-color,.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group:hover{border-color:var(--das-ui-input-only-bottom-active-border-color)}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group.is-disabled{border-color:var(--das-ui-select-input-border-color-search)}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group.is-error{border-color:var(--das-ui-input-error-color)}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group .el-input-group__prepend{padding-right:8px!important}.das-ui-input.only-border-bottom[data-v-23848c4a] .das-select-input.el-input.el-input-group .el-input-group__prepend .ant-select-selection-item{padding-right:18px}[data-v-23848c4a] .el-input__icon{font-size:16px}.das-select-input-select-container.ant-select-dropdown{min-width:100px!important;padding:8px 0;max-height:328px;max-width:180px}.das-select-input-select-container.ant-select-dropdown .rc-virtual-list-holder{max-height:160px!important}.das-select-input .das-ui-select{min-width:68px}
|
|
Binary file
|
|
@@ -1,65 +1,64 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/switch/style.css';
|
|
2
2
|
import { withInstall as f } from "@das-fed/upf-utils/with-install/index";
|
|
3
3
|
import { setThemeRule as p } from "@das-fed/upf-web/packages/theme/index";
|
|
4
|
-
import { defineComponent as h, computed as
|
|
4
|
+
import { defineComponent as h, computed as r, ref as _, onMounted as w, createElementBlock as S, openBlock as v, normalizeStyle as x, createVNode as z, unref as y, mergeProps as B } from "vue";
|
|
5
5
|
import { ElSwitch as V } from "element-plus";
|
|
6
6
|
import "element-plus/es/components/switch/style/css";
|
|
7
|
-
|
|
8
|
-
const g = {
|
|
7
|
+
const b = {
|
|
9
8
|
inheritAttrs: !1
|
|
10
|
-
},
|
|
11
|
-
...
|
|
9
|
+
}, g = /* @__PURE__ */ h({
|
|
10
|
+
...b,
|
|
12
11
|
__name: "Index",
|
|
13
12
|
props: {
|
|
14
13
|
modelValue: { type: [Boolean, String, Number], default: !0 },
|
|
15
14
|
size: { default: "small" }
|
|
16
15
|
},
|
|
17
|
-
setup(o, { expose:
|
|
18
|
-
const e = o, s =
|
|
19
|
-
var t,
|
|
20
|
-
const l = (
|
|
16
|
+
setup(o, { expose: i }) {
|
|
17
|
+
const e = o, s = r(() => e.modelValue), c = r(() => e.size ? e.size : "small"), n = _(null), d = () => {
|
|
18
|
+
var t, a;
|
|
19
|
+
const l = (a = (t = n.value) == null ? void 0 : t.$el) == null ? void 0 : a.querySelector(".el-switch__input");
|
|
21
20
|
l && l.setAttribute("tabindex", "-1");
|
|
22
|
-
}, u =
|
|
21
|
+
}, u = r(() => e.formSize), m = r(() => ({
|
|
23
22
|
"--switch-height": u.value && {
|
|
24
23
|
small: "24px",
|
|
25
24
|
default: "32px",
|
|
26
25
|
large: "40px"
|
|
27
26
|
}[u.value]
|
|
28
27
|
}));
|
|
29
|
-
return w(
|
|
30
|
-
$refSwitch:
|
|
28
|
+
return w(d), i({
|
|
29
|
+
$refSwitch: n
|
|
31
30
|
}), (l, t) => (v(), S(
|
|
32
31
|
"div",
|
|
33
32
|
{
|
|
34
33
|
class: "das-ui-switch",
|
|
35
|
-
style: x(
|
|
34
|
+
style: x(m.value)
|
|
36
35
|
},
|
|
37
36
|
[
|
|
38
37
|
z(y(V), B({
|
|
39
38
|
ref_key: "$refSwitch",
|
|
40
|
-
ref:
|
|
39
|
+
ref: n,
|
|
41
40
|
modelValue: s.value,
|
|
42
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
43
|
-
}, l.$attrs, { size:
|
|
41
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a)
|
|
42
|
+
}, l.$attrs, { size: c.value }), null, 16, ["modelValue", "size"])
|
|
44
43
|
],
|
|
45
44
|
4
|
|
46
45
|
/* STYLE */
|
|
47
46
|
));
|
|
48
47
|
}
|
|
49
|
-
}),
|
|
48
|
+
}), D = (o, i) => {
|
|
50
49
|
const e = o.__vccOpts || o;
|
|
51
|
-
for (const [s,
|
|
52
|
-
e[s] =
|
|
50
|
+
for (const [s, c] of i)
|
|
51
|
+
e[s] = c;
|
|
53
52
|
return e;
|
|
54
|
-
},
|
|
53
|
+
}, k = /* @__PURE__ */ D(g, [["__scopeId", "data-v-f60acac9"]]), I = {
|
|
55
54
|
"--das-ui-switch-on-color": "#5582F3",
|
|
56
55
|
"--das-ui-switch-off-color": "#B2B2B2",
|
|
57
56
|
"--das-ui-switch-on-color-disabled": "#B5CAFF",
|
|
58
57
|
"--das-ui-switch-off-color-disabled": "#D9D9D9"
|
|
59
58
|
};
|
|
60
59
|
p(I);
|
|
61
|
-
const
|
|
60
|
+
const N = f(k);
|
|
62
61
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
N as DasSwitch,
|
|
63
|
+
N as default
|
|
65
64
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-switch[data-v-
|
|
1
|
+
.das-ui-switch[data-v-f60acac9]{display:inline-flex;height:var(--switch-height);align-items:center}.das-ui-switch[data-v-f60acac9] .el-switch{--el-switch-on-color: var(--das-ui-switch-on-color);--el-switch-off-color: var(--das-ui-switch-off-color)}.das-ui-switch[data-v-f60acac9] .el-switch.is-disabled{--el-switch-on-color: var(--das-ui-switch-on-color-disabled);--el-switch-off-color: var(--das-ui-switch-off-color-disabled);opacity:1}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--small{height:16px}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--small .el-switch__core{min-width:32px}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--small .el-switch__core .el-switch__action{width:14px;height:14px;left:0}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 14px)}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--default{height:20px}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--default .el-switch__core .el-switch__action{width:18px;height:18px;left:0}.das-ui-switch[data-v-f60acac9] .el-switch.el-switch--default.is-checked .el-switch__core .el-switch__action{left:calc(100% - 18px)}.das-ui-switch[data-v-f60acac9] .el-switch .el-switch__core .el-switch__action .el-icon{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1686210106297'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11699'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%2064c247.424%200%20448%20200.576%20448%20448%200%2093.76-28.928%20183.296-81.92%20258.304a32%2032%200%200%201-52.256-36.96A382.048%20382.048%200%200%200%20896%20512c0-212.064-171.936-384-384-384a32%2032%200%200%201%200-64z'%20p-id='11700'%20fill='%235480F0'%3e%3c/path%3e%3c/svg%3e");background-size:cover}.das-ui-switch[data-v-f60acac9] .el-switch .el-switch__core .el-switch__action .el-icon.is-loading{animation:rotating 1s linear infinite}.das-ui-switch[data-v-f60acac9] .el-switch .el-switch__core .el-switch__action .el-icon svg{display:none}
|
|
Binary file
|