@farris/ui-vue 1.0.0-beta.4 → 1.0.0-beta.6
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/accordion/index.esm.js +2 -2
- package/accordion/package.json +1 -1
- package/avatar/index.esm.js +28 -1
- package/avatar/package.json +1 -1
- package/button/index.esm.js +111 -52
- package/button/index.umd.js +1 -1
- package/button/package.json +1 -1
- package/button-edit/index.esm.js +58 -4
- package/button-edit/index.umd.js +1 -1
- package/button-edit/package.json +1 -1
- package/checkbox/index.esm.js +38 -1
- package/checkbox/package.json +1 -1
- package/combo-list/index.esm.js +125 -5
- package/combo-list/package.json +1 -1
- package/data-grid/index.esm.js +235 -143
- package/data-grid/index.umd.js +1 -1
- package/data-grid/package.json +1 -1
- package/date-picker/index.esm.js +70 -13
- package/date-picker/index.umd.js +1 -1
- package/date-picker/package.json +1 -1
- package/farris.all.esm.js +1054 -534
- package/farris.all.umd.js +1 -1
- package/list-view/index.esm.js +3 -3
- package/list-view/index.umd.js +1 -1
- package/list-view/package.json +1 -1
- package/message-box/index.esm.js +35 -35
- package/message-box/index.umd.js +1 -1
- package/message-box/package.json +1 -1
- package/modal/index.esm.js +3 -3
- package/modal/index.umd.js +1 -1
- package/modal/package.json +1 -1
- package/notify/index.esm.js +2 -2
- package/notify/package.json +1 -1
- package/package.json +3 -2
- package/pagination/index.esm.js +4 -4
- package/pagination/index.umd.js +1 -1
- package/pagination/package.json +1 -1
- package/popover/index.esm.js +1 -1
- package/popover/package.json +1 -1
- package/radio-group/index.esm.js +28 -1
- package/radio-group/package.json +1 -1
- package/section/index.esm.js +1 -1
- package/section/package.json +1 -1
- package/style.css +11 -1
- package/switch/index.esm.js +4 -1
- package/switch/package.json +1 -1
- package/tabs/index.esm.js +6 -5
- package/tabs/index.umd.js +1 -1
- package/tabs/package.json +1 -1
- package/text/index.esm.js +4 -1
- package/text/package.json +1 -1
- package/tooltip/index.esm.js +1 -1
- package/tooltip/package.json +1 -1
- package/types/accordion/src/accordion.component.d.ts +4 -2
- package/types/accordion/src/components/accordion-item.component.d.ts +4 -2
- package/types/avatar/src/avatar.component.d.ts +4 -2
- package/types/button/index.d.ts +2 -1
- package/types/button/src/button-group.component.d.ts +4 -2
- package/types/button/src/button.component.d.ts +4 -2
- package/types/button-edit/src/button-edit.component.d.ts +141 -0
- package/types/checkbox/src/checkbox-group.component.d.ts +4 -2
- package/types/combo-list/src/combo-list.component.d.ts +232 -0
- package/types/combo-list/src/components/option.component.d.ts +4 -2
- package/types/combo-list/src/components/options.component.d.ts +4 -2
- package/types/combo-list/src/components/panel.component.d.ts +25 -0
- package/types/data-grid/src/components/editors/date-picker.component.d.ts +15 -0
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +4 -2
- package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +4 -2
- package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +4 -2
- package/types/date-picker/src/components/month/month.component.d.ts +4 -2
- package/types/date-picker/src/components/year/year.component.d.ts +4 -2
- package/types/date-picker/src/date-picker.component.d.ts +336 -0
- package/types/list-view/src/components/list-view-checkbox.component.d.ts +4 -2
- package/types/list-view/src/list-view.component.d.ts +60 -0
- package/types/message-box/src/message-box.component.d.ts +4 -2
- package/types/message-box/src/message-box.service.d.ts +20 -0
- package/types/modal/src/modal.component.d.ts +4 -2
- package/types/notify/src/components/toast.component.d.ts +4 -2
- package/types/notify/src/notify.component.d.ts +130 -0
- package/types/notify/src/notify.service.d.ts +4 -0
- package/types/number-range/src/number-range.component.d.ts +4 -2
- package/types/number-spinner/src/number-spinner.component.d.ts +4 -2
- package/types/overlay/src/overlay.component.d.ts +4 -2
- package/types/pagination/src/pagination.components.d.ts +4 -2
- package/types/popover/src/popover.component.d.ts +4 -2
- package/types/radio-group/src/radio-group.component.d.ts +4 -2
- package/types/section/src/section.component.d.ts +4 -2
- package/types/switch/src/switch.component.d.ts +4 -2
- package/types/tabs/src/components/tab-page.component.d.ts +4 -2
- package/types/tabs/src/tabs.component.d.ts +4 -2
- package/types/text/src/text.component.d.ts +4 -2
- package/types/tooltip/src/composition/use-adjust-position.d.ts +15 -0
- package/types/tooltip/src/tooltip.component.d.ts +4 -2
- package/types/tooltip/src/tooltip.directive.d.ts +5 -0
package/combo-list/index.esm.js
CHANGED
|
@@ -1,40 +1,160 @@
|
|
|
1
1
|
import { ref as S, watch as R, defineComponent as N, computed as w, createVNode as f, Teleport as K, inject as q, withModifiers as _, withDirectives as G, vModelCheckbox as J, toRefs as Q, reactive as D, provide as U, resolveComponent as W, Fragment as X, mergeProps as Y } from "vue";
|
|
2
2
|
var x = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(x || {}), O = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(O || {});
|
|
3
3
|
const Z = {
|
|
4
|
+
/**
|
|
5
|
+
* 组件标识
|
|
6
|
+
*/
|
|
4
7
|
id: { type: String },
|
|
8
|
+
/**
|
|
9
|
+
* 可选,是否可编辑
|
|
10
|
+
* 默认`false`
|
|
11
|
+
*/
|
|
5
12
|
editable: { default: !1, type: Boolean },
|
|
13
|
+
/**
|
|
14
|
+
* 可选,是否禁用
|
|
15
|
+
* 默认为`false`
|
|
16
|
+
*/
|
|
6
17
|
disabled: { default: !1, type: Boolean },
|
|
18
|
+
/**
|
|
19
|
+
* 可选,是否只读
|
|
20
|
+
* 默认为`false`
|
|
21
|
+
*/
|
|
7
22
|
readonly: { default: !1, type: Boolean },
|
|
23
|
+
/**
|
|
24
|
+
* 最大输入长度
|
|
25
|
+
*/
|
|
8
26
|
maxLength: { type: Number },
|
|
27
|
+
/**
|
|
28
|
+
* 占位符
|
|
29
|
+
*/
|
|
9
30
|
placeholder: { type: String },
|
|
31
|
+
/**
|
|
32
|
+
* 可选,强制显示占位符
|
|
33
|
+
* 默认`false`
|
|
34
|
+
*/
|
|
10
35
|
forcePlaceholder: { default: !1, type: Boolean },
|
|
36
|
+
/**
|
|
37
|
+
* 可选,是否启用清空
|
|
38
|
+
* 默认启用
|
|
39
|
+
*/
|
|
11
40
|
enableClear: { default: !0, type: Boolean },
|
|
41
|
+
/**
|
|
42
|
+
* 可选,鼠标悬停时是否显示控件值
|
|
43
|
+
* 默认显示
|
|
44
|
+
*/
|
|
12
45
|
enableTitle: { default: !0, type: Boolean },
|
|
46
|
+
/**
|
|
47
|
+
* 可选,下拉列表值展示方式
|
|
48
|
+
* 支持text | tag,即文本或标签,默认为`ViewType.Text`,即文本方式`text`
|
|
49
|
+
*/
|
|
13
50
|
viewType: { default: x.Text, type: String },
|
|
51
|
+
/**
|
|
52
|
+
* 可选,字段映射
|
|
53
|
+
*/
|
|
14
54
|
mapFields: { type: Object },
|
|
55
|
+
/**
|
|
56
|
+
* 下拉数据源
|
|
57
|
+
*/
|
|
15
58
|
data: { type: Array },
|
|
59
|
+
/**
|
|
60
|
+
* 可选,数据源id字段
|
|
61
|
+
* 默认为`id`
|
|
62
|
+
*/
|
|
16
63
|
idField: { default: "id", type: String },
|
|
64
|
+
/**
|
|
65
|
+
* 可选,数据源值字段
|
|
66
|
+
* 默认为`id`
|
|
67
|
+
*/
|
|
17
68
|
valueField: { default: "id", type: String },
|
|
69
|
+
/**
|
|
70
|
+
* 可选,数据源显示字段
|
|
71
|
+
* 默认为`label`
|
|
72
|
+
*/
|
|
18
73
|
textField: { default: "label", type: String },
|
|
74
|
+
/**
|
|
75
|
+
* 可选,是否支持多选
|
|
76
|
+
* 默认`false`
|
|
77
|
+
*/
|
|
19
78
|
multiSelect: { default: !1, type: Boolean },
|
|
79
|
+
/**
|
|
80
|
+
* 远端数据源信息
|
|
81
|
+
*/
|
|
20
82
|
remote: { default: null, type: Object },
|
|
83
|
+
/**
|
|
84
|
+
* 可选,最大高度
|
|
85
|
+
* 默认`350`
|
|
86
|
+
*/
|
|
21
87
|
maxHeight: { default: 350, type: Number },
|
|
88
|
+
/**
|
|
89
|
+
* 可选,是否支持远端过滤
|
|
90
|
+
* 默认`false`
|
|
91
|
+
*/
|
|
22
92
|
remoteSearch: { default: !1, type: Boolean },
|
|
93
|
+
/**
|
|
94
|
+
* 可选,清空值时隐藏面板
|
|
95
|
+
* 默认`true`
|
|
96
|
+
*/
|
|
23
97
|
hidePanelOnClear: { default: !0, type: Boolean },
|
|
98
|
+
/**
|
|
99
|
+
* 可选,分隔符
|
|
100
|
+
* 默认`,`
|
|
101
|
+
*/
|
|
24
102
|
separator: { default: ",", type: String },
|
|
103
|
+
/**
|
|
104
|
+
* 可选,展示文本
|
|
105
|
+
* 默认为空字符串
|
|
106
|
+
*/
|
|
25
107
|
displayText: { type: String, default: "" },
|
|
108
|
+
/**
|
|
109
|
+
* 绑定值
|
|
110
|
+
*/
|
|
26
111
|
modelValue: { type: [String, Number] },
|
|
112
|
+
/**
|
|
113
|
+
* 可选,下拉图标
|
|
114
|
+
* 默认为'<span class="f-icon f-icon-arrow-60-down"></span>'
|
|
115
|
+
*/
|
|
27
116
|
dropDownIcon: { type: String, default: '<span class="f-icon f-icon-arrow-60-down"></span>' },
|
|
117
|
+
/**
|
|
118
|
+
* tabIndex
|
|
119
|
+
*/
|
|
28
120
|
tabIndex: { type: Number, default: -1 },
|
|
121
|
+
/**
|
|
122
|
+
* 可选,启用搜索
|
|
123
|
+
* 默认为`false`
|
|
124
|
+
*/
|
|
29
125
|
enableSearch: { type: Boolean, default: !1 },
|
|
126
|
+
/**
|
|
127
|
+
* 可选,下拉面板展示位置
|
|
128
|
+
* 默认为`auto`
|
|
129
|
+
*/
|
|
30
130
|
placement: { type: String, default: O.auto }
|
|
31
131
|
}, E = {
|
|
132
|
+
/**
|
|
133
|
+
* 必须,值
|
|
134
|
+
*/
|
|
32
135
|
value: { required: !0, type: [String, Number] },
|
|
136
|
+
/**
|
|
137
|
+
* 必须,名称
|
|
138
|
+
*/
|
|
33
139
|
name: { required: !0, type: [String, Number] },
|
|
140
|
+
/**
|
|
141
|
+
* 可选,是否禁用
|
|
142
|
+
* 默认`false`
|
|
143
|
+
*/
|
|
34
144
|
disabled: { default: !1, type: Boolean },
|
|
145
|
+
/**
|
|
146
|
+
* 是否已经勾选
|
|
147
|
+
*/
|
|
35
148
|
checked: { default: !1, type: Boolean }
|
|
36
149
|
}, L = {
|
|
150
|
+
/**
|
|
151
|
+
* 下拉面板是否可见
|
|
152
|
+
*/
|
|
37
153
|
isPanelVisible: { type: Boolean, default: !1 },
|
|
154
|
+
/**
|
|
155
|
+
* 可选,下拉列表展示位置
|
|
156
|
+
* 默认为`bottom`
|
|
157
|
+
*/
|
|
38
158
|
position: { type: String, default: O.bottom }
|
|
39
159
|
}, ee = {
|
|
40
160
|
options: {
|
|
@@ -103,7 +223,7 @@ function te(e) {
|
|
|
103
223
|
}
|
|
104
224
|
const ae = {
|
|
105
225
|
popupContentPosition: { type: Object, default: { left: 0, top: 0 } }
|
|
106
|
-
}, ne = N({
|
|
226
|
+
}, ne = /* @__PURE__ */ N({
|
|
107
227
|
name: "FOverlay",
|
|
108
228
|
props: ae,
|
|
109
229
|
emits: ["click"],
|
|
@@ -178,7 +298,7 @@ function oe(e, n) {
|
|
|
178
298
|
defaultOptionSlot: p
|
|
179
299
|
};
|
|
180
300
|
}
|
|
181
|
-
const ie = N({
|
|
301
|
+
const ie = /* @__PURE__ */ N({
|
|
182
302
|
name: "FOption",
|
|
183
303
|
props: E,
|
|
184
304
|
emits: [],
|
|
@@ -213,7 +333,7 @@ const ie = N({
|
|
|
213
333
|
name: l.value
|
|
214
334
|
}) : l.value])]);
|
|
215
335
|
}
|
|
216
|
-
}), re = N({
|
|
336
|
+
}), re = /* @__PURE__ */ N({
|
|
217
337
|
name: "FOptions",
|
|
218
338
|
props: ee,
|
|
219
339
|
emits: [],
|
|
@@ -319,7 +439,7 @@ function ce(e, n = 300) {
|
|
|
319
439
|
}, n);
|
|
320
440
|
};
|
|
321
441
|
}
|
|
322
|
-
const fe = N({
|
|
442
|
+
const fe = /* @__PURE__ */ N({
|
|
323
443
|
name: "FPanel",
|
|
324
444
|
props: L,
|
|
325
445
|
emits: [H.panelHidden, H.panelShow],
|
|
@@ -376,7 +496,7 @@ const fe = N({
|
|
|
376
496
|
}, null)])])])]
|
|
377
497
|
});
|
|
378
498
|
}
|
|
379
|
-
}), M = N({
|
|
499
|
+
}), M = /* @__PURE__ */ N({
|
|
380
500
|
name: "FComboList",
|
|
381
501
|
props: Z,
|
|
382
502
|
emits: [j.clear, j.update],
|