@das-fed/ui 6.4.0-dev.55.7 → 6.4.0-dev.55.9
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/business-components/change-pwd/index.js +6 -6
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/index.js +100 -100
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +1 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +38 -38
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1 -1
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +1 -1
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +26 -26
- package/packages/components/calendar/index.js +109 -109
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/popover/index.js +9 -9
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/search/index.d.ts +9 -0
- package/packages/components/search/index.js +58 -42
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +15 -0
- package/packages/components/search/src/type.d.ts +2 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/index.js +200 -185
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +1 -6
- package/packages/components/select/index.js +355 -373
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.d.ts +1 -0
- package/packages/components/select-input/index.js +67 -60
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +1 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
- package/packages/components/select-input/src/type.d.ts +3 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +5 -10
- package/packages/components/table/index.js +3664 -3582
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/hooks/use-operation.d.ts +6 -5
- package/packages/components/table/src/type.d.ts +2 -2
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/search/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { defineComponent as
|
|
2
|
+
import { withInstall as S } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { defineComponent as B, ref as o, watch as k, computed as E, openBlock as h, createElementBlock as C, normalizeClass as F, normalizeStyle as z, createVNode as A, unref as u, mergeProps as $, isRef as L, withCtx as v, createBlock as y, createCommentVNode as b } from "vue";
|
|
4
4
|
import "element-plus/es/components/input/style/css";
|
|
5
|
-
import { ElInput as
|
|
6
|
-
import { DasAutoRegisterIcon as
|
|
7
|
-
import { setThemeRule as
|
|
8
|
-
const
|
|
5
|
+
import { ElInput as w } from "element-plus";
|
|
6
|
+
import { DasAutoRegisterIcon as D, DasIcon as x } from "@das-fed/ui/packages/components/icon/index";
|
|
7
|
+
import { setThemeRule as R } from "@das-fed/web/packages/theme/index";
|
|
8
|
+
const N = {
|
|
9
9
|
inheritAttrs: !1
|
|
10
|
-
},
|
|
11
|
-
...
|
|
10
|
+
}, T = /* @__PURE__ */ B({
|
|
11
|
+
...N,
|
|
12
12
|
__name: "Index",
|
|
13
13
|
props: {
|
|
14
14
|
modelValue: {
|
|
@@ -71,51 +71,67 @@ const L = {
|
|
|
71
71
|
border: {
|
|
72
72
|
type: Boolean,
|
|
73
73
|
default: !1
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* 聚焦是否需要展开输入框宽度
|
|
77
|
+
*/
|
|
78
|
+
isExpandAtFocus: {
|
|
79
|
+
type: [Boolean, String],
|
|
80
|
+
default: !1
|
|
74
81
|
}
|
|
75
82
|
},
|
|
76
83
|
emits: ["update:modelValue", "change", "blur", "press-enter", "search"],
|
|
77
84
|
setup(e, { emit: i }) {
|
|
78
|
-
|
|
85
|
+
D({
|
|
79
86
|
search: import("@das-fed/ui/packages/icons/search"),
|
|
80
87
|
empty: import("@das-fed/ui/packages/icons/empty")
|
|
81
88
|
});
|
|
82
|
-
const
|
|
83
|
-
let
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
}, c = (
|
|
87
|
-
|
|
88
|
-
() =>
|
|
89
|
-
(
|
|
90
|
-
|
|
89
|
+
const t = e, n = i;
|
|
90
|
+
let a = o(t.modelValue), s = o(t.modelValue);
|
|
91
|
+
const g = () => {
|
|
92
|
+
n("update:modelValue", a.value), s.value = a.value, n("change", a.value);
|
|
93
|
+
}, c = (l) => l === null || typeof l > "u" || l === "";
|
|
94
|
+
k(
|
|
95
|
+
() => t.modelValue,
|
|
96
|
+
(l, r) => {
|
|
97
|
+
a.value = l, !c(r) && !c(s.value) && c(l) && (s.value = "", n("change", a.value));
|
|
91
98
|
},
|
|
92
99
|
{
|
|
93
100
|
immediate: !0,
|
|
94
101
|
deep: !0
|
|
95
102
|
}
|
|
96
|
-
)
|
|
103
|
+
);
|
|
104
|
+
const d = o(""), f = o(!1), m = E(() => (t == null ? void 0 : t.isExpandAtFocus) === !0 || (t == null ? void 0 : t.isExpandAtFocus) === "true"), I = () => {
|
|
105
|
+
m.value && (d.value = "400px", f.value = !0);
|
|
106
|
+
}, V = () => {
|
|
107
|
+
m.value && (d.value = "", f.value = !1);
|
|
108
|
+
};
|
|
109
|
+
return (l, r) => (h(), C(
|
|
97
110
|
"div",
|
|
98
111
|
{
|
|
99
|
-
class:
|
|
112
|
+
class: F(`das-ui-search ${e.size}`),
|
|
113
|
+
style: z({ width: m.value && f.value ? d.value : "" })
|
|
100
114
|
},
|
|
101
115
|
[
|
|
102
|
-
|
|
116
|
+
A(u(w), $({ ref: "$refSearch" }, l.$attrs, {
|
|
103
117
|
type: "text",
|
|
104
118
|
class: `main-input ${e.size} ${e.border ? "border" : ""} ${e.isIconLeft ? "left" : ""}`,
|
|
105
|
-
modelValue:
|
|
106
|
-
"onUpdate:modelValue":
|
|
119
|
+
modelValue: u(a),
|
|
120
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => L(a) ? a.value = p : a = p),
|
|
107
121
|
disabled: e.disabled,
|
|
108
|
-
onChange:
|
|
109
|
-
clearable:
|
|
122
|
+
onChange: g,
|
|
123
|
+
clearable: t.clearable,
|
|
124
|
+
onFocus: I,
|
|
125
|
+
onBlur: V
|
|
110
126
|
}), {
|
|
111
|
-
prefix:
|
|
112
|
-
e.isIconLeft ? (
|
|
127
|
+
prefix: v(() => [
|
|
128
|
+
e.isIconLeft ? (h(), y(u(x), {
|
|
113
129
|
key: 0,
|
|
114
130
|
icon: e.prefixIcon ? e.prefixIcon : "search"
|
|
115
|
-
}, null, 8, ["icon"])) :
|
|
131
|
+
}, null, 8, ["icon"])) : b("v-if", !0)
|
|
116
132
|
]),
|
|
117
|
-
suffix:
|
|
118
|
-
e.isIconLeft ?
|
|
133
|
+
suffix: v(() => [
|
|
134
|
+
e.isIconLeft ? b("v-if", !0) : (h(), y(u(x), {
|
|
119
135
|
key: 0,
|
|
120
136
|
icon: e.suffixIcon ? e.suffixIcon : "search",
|
|
121
137
|
style: { cursor: "pointer" }
|
|
@@ -125,16 +141,16 @@ const L = {
|
|
|
125
141
|
/* STABLE */
|
|
126
142
|
}, 16, ["class", "modelValue", "disabled", "clearable"])
|
|
127
143
|
],
|
|
128
|
-
|
|
129
|
-
/* CLASS */
|
|
144
|
+
6
|
|
145
|
+
/* CLASS, STYLE */
|
|
130
146
|
));
|
|
131
147
|
}
|
|
132
|
-
}),
|
|
133
|
-
const
|
|
134
|
-
for (const [
|
|
135
|
-
|
|
136
|
-
return
|
|
137
|
-
},
|
|
148
|
+
}), O = (e, i) => {
|
|
149
|
+
const t = e.__vccOpts || e;
|
|
150
|
+
for (const [n, a] of i)
|
|
151
|
+
t[n] = a;
|
|
152
|
+
return t;
|
|
153
|
+
}, P = /* @__PURE__ */ O(T, [["__scopeId", "data-v-f13d97d2"]]), U = {
|
|
138
154
|
"--demo-alert-bg": {
|
|
139
155
|
light: "#fff",
|
|
140
156
|
dark: "rgba(255,255,255,.2)"
|
|
@@ -144,9 +160,9 @@ const L = {
|
|
|
144
160
|
"--das-ui-search-text": "#212121",
|
|
145
161
|
"--das-ui-search-border-active": "#5582F3"
|
|
146
162
|
};
|
|
147
|
-
|
|
148
|
-
const
|
|
163
|
+
R(U);
|
|
164
|
+
const K = S(P);
|
|
149
165
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
166
|
+
K as DasSearch,
|
|
167
|
+
K as default
|
|
152
168
|
};
|
|
Binary file
|
|
@@ -60,6 +60,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* 聚焦是否需要展开输入框宽度
|
|
65
|
+
*/
|
|
66
|
+
isExpandAtFocus: {
|
|
67
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
63
70
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
71
|
search: (...args: any[]) => void;
|
|
65
72
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -127,6 +134,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
127
134
|
type: BooleanConstructor;
|
|
128
135
|
default: boolean;
|
|
129
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* 聚焦是否需要展开输入框宽度
|
|
139
|
+
*/
|
|
140
|
+
isExpandAtFocus: {
|
|
141
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
130
144
|
}>> & Readonly<{
|
|
131
145
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
132
146
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -141,6 +155,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
141
155
|
suffixIcon: string;
|
|
142
156
|
prefixIcon: string;
|
|
143
157
|
isIconLeft: boolean;
|
|
158
|
+
isExpandAtFocus: string | boolean;
|
|
144
159
|
border: boolean;
|
|
145
160
|
searchType: string;
|
|
146
161
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-search[data-v-
|
|
1
|
+
.das-ui-search[data-v-f13d97d2]{position:relative}.das-ui-search[data-v-f13d97d2] .el-input__inner{font-size:12px}.das-ui-search.small[data-v-f13d97d2]{width:200px}.das-ui-search.small[data-v-f13d97d2] .el-input__inner{font-size:12px}.das-ui-search.large[data-v-f13d97d2]{width:320px}.das-ui-search.large[data-v-f13d97d2] .el-input__inner{font-size:16px}.das-ui-search.middle[data-v-f13d97d2]{width:260px}.das-ui-search[data-v-f13d97d2] .el-input{border-width:0 0 1px 0!important;border-color:var(--das-ui-search-border);box-shadow:none!important;outline:none}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper{border-radius:0;box-shadow:none!important;padding:0 0 1px}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper.is-focus .el-input__prefix .el-input__prefix-inner .das-icon,.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper.is-focus .el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon){color:var(--das-ui-search-border-active)}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__inner{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--das-ui-search-text)}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear{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='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23d9d9d9'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e");background-size:cover;width:16px;height:16px}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear:hover{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='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23999999'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e")}.das-ui-search[data-v-f13d97d2] .el-input.border{border-radius:2px;border-width:1px!important}.das-ui-search[data-v-f13d97d2] .el-input.border .el-input__wrapper{padding:0 5px 0 8px}.das-ui-search[data-v-f13d97d2] .el-input:hover,.das-ui-search[data-v-f13d97d2] .el-input:active,.das-ui-search[data-v-f13d97d2] .el-input:focus{border-color:var(--das-ui-search-border-active)}.das-ui-search[data-v-f13d97d2] .el-input:hover.el-input__prefix .el-input__suffix-inner .das-icon,.das-ui-search[data-v-f13d97d2] .el-input:hover.el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon),.das-ui-search[data-v-f13d97d2] .el-input:active.el-input__prefix .el-input__suffix-inner .das-icon,.das-ui-search[data-v-f13d97d2] .el-input:active.el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon),.das-ui-search[data-v-f13d97d2] .el-input:focus.el-input__prefix .el-input__suffix-inner .das-icon,.das-ui-search[data-v-f13d97d2] .el-input:focus.el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon){color:var(--das-ui-search-border-active)}.das-ui-search[data-v-f13d97d2] .el-input.el-input__suffix{padding:0 0 1px;box-sizing:border-box}.das-ui-search[data-v-f13d97d2] .el-input.el-input__suffix.border{padding:5px}.das-ui-search[data-v-f13d97d2] .el-input.el-input__suffix.left .el-input__suffix .das-icon.close-icon{margin-right:0}.das-ui-search[data-v-f13d97d2] .el-input.el-input__suffix .el-input__prefix .das-icon{color:var(--das-ui-search-icon)}.das-ui-search[data-v-f13d97d2] .el-input.el-input__suffix .el-input__prefix .das-icon:hover{color:var(--das-ui-search-border-active)}.das-ui-search[data-v-f13d97d2] .el-input.small .el-input__inner{height:22px}.das-ui-search[data-v-f13d97d2] .el-input.middle .el-input__inner,.das-ui-search[data-v-f13d97d2] .el-input.custom .el-input__inner{height:26px}.das-ui-search[data-v-f13d97d2] .el-input.middle-l .el-input__inner{height:28px}.das-ui-search[data-v-f13d97d2] .el-input.middle-xl .el-input__inner{height:30px}.das-ui-search[data-v-f13d97d2] .el-input.large .el-input__inner{height:34px}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__inner{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear{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='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23d9d9d9'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e");background-size:cover;width:16px;height:16px}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear:hover{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='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23999999'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e")}.das-ui-search[data-v-f13d97d2] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear svg{display:none}
|
|
Binary file
|