@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.
Files changed (94) hide show
  1. package/accordion/index.esm.js +2 -2
  2. package/accordion/package.json +1 -1
  3. package/avatar/index.esm.js +28 -1
  4. package/avatar/package.json +1 -1
  5. package/button/index.esm.js +111 -52
  6. package/button/index.umd.js +1 -1
  7. package/button/package.json +1 -1
  8. package/button-edit/index.esm.js +58 -4
  9. package/button-edit/index.umd.js +1 -1
  10. package/button-edit/package.json +1 -1
  11. package/checkbox/index.esm.js +38 -1
  12. package/checkbox/package.json +1 -1
  13. package/combo-list/index.esm.js +125 -5
  14. package/combo-list/package.json +1 -1
  15. package/data-grid/index.esm.js +235 -143
  16. package/data-grid/index.umd.js +1 -1
  17. package/data-grid/package.json +1 -1
  18. package/date-picker/index.esm.js +70 -13
  19. package/date-picker/index.umd.js +1 -1
  20. package/date-picker/package.json +1 -1
  21. package/farris.all.esm.js +1054 -534
  22. package/farris.all.umd.js +1 -1
  23. package/list-view/index.esm.js +3 -3
  24. package/list-view/index.umd.js +1 -1
  25. package/list-view/package.json +1 -1
  26. package/message-box/index.esm.js +35 -35
  27. package/message-box/index.umd.js +1 -1
  28. package/message-box/package.json +1 -1
  29. package/modal/index.esm.js +3 -3
  30. package/modal/index.umd.js +1 -1
  31. package/modal/package.json +1 -1
  32. package/notify/index.esm.js +2 -2
  33. package/notify/package.json +1 -1
  34. package/package.json +3 -2
  35. package/pagination/index.esm.js +4 -4
  36. package/pagination/index.umd.js +1 -1
  37. package/pagination/package.json +1 -1
  38. package/popover/index.esm.js +1 -1
  39. package/popover/package.json +1 -1
  40. package/radio-group/index.esm.js +28 -1
  41. package/radio-group/package.json +1 -1
  42. package/section/index.esm.js +1 -1
  43. package/section/package.json +1 -1
  44. package/style.css +11 -1
  45. package/switch/index.esm.js +4 -1
  46. package/switch/package.json +1 -1
  47. package/tabs/index.esm.js +6 -5
  48. package/tabs/index.umd.js +1 -1
  49. package/tabs/package.json +1 -1
  50. package/text/index.esm.js +4 -1
  51. package/text/package.json +1 -1
  52. package/tooltip/index.esm.js +1 -1
  53. package/tooltip/package.json +1 -1
  54. package/types/accordion/src/accordion.component.d.ts +4 -2
  55. package/types/accordion/src/components/accordion-item.component.d.ts +4 -2
  56. package/types/avatar/src/avatar.component.d.ts +4 -2
  57. package/types/button/index.d.ts +2 -1
  58. package/types/button/src/button-group.component.d.ts +4 -2
  59. package/types/button/src/button.component.d.ts +4 -2
  60. package/types/button-edit/src/button-edit.component.d.ts +141 -0
  61. package/types/checkbox/src/checkbox-group.component.d.ts +4 -2
  62. package/types/combo-list/src/combo-list.component.d.ts +232 -0
  63. package/types/combo-list/src/components/option.component.d.ts +4 -2
  64. package/types/combo-list/src/components/options.component.d.ts +4 -2
  65. package/types/combo-list/src/components/panel.component.d.ts +25 -0
  66. package/types/data-grid/src/components/editors/date-picker.component.d.ts +15 -0
  67. package/types/date-picker/src/components/calendar/calendar.component.d.ts +4 -2
  68. package/types/date-picker/src/components/calendar-navbar/calendar-navbar.component.d.ts +4 -2
  69. package/types/date-picker/src/components/date-picker-container/date-picker-container.component.d.ts +4 -2
  70. package/types/date-picker/src/components/month/month.component.d.ts +4 -2
  71. package/types/date-picker/src/components/year/year.component.d.ts +4 -2
  72. package/types/date-picker/src/date-picker.component.d.ts +336 -0
  73. package/types/list-view/src/components/list-view-checkbox.component.d.ts +4 -2
  74. package/types/list-view/src/list-view.component.d.ts +60 -0
  75. package/types/message-box/src/message-box.component.d.ts +4 -2
  76. package/types/message-box/src/message-box.service.d.ts +20 -0
  77. package/types/modal/src/modal.component.d.ts +4 -2
  78. package/types/notify/src/components/toast.component.d.ts +4 -2
  79. package/types/notify/src/notify.component.d.ts +130 -0
  80. package/types/notify/src/notify.service.d.ts +4 -0
  81. package/types/number-range/src/number-range.component.d.ts +4 -2
  82. package/types/number-spinner/src/number-spinner.component.d.ts +4 -2
  83. package/types/overlay/src/overlay.component.d.ts +4 -2
  84. package/types/pagination/src/pagination.components.d.ts +4 -2
  85. package/types/popover/src/popover.component.d.ts +4 -2
  86. package/types/radio-group/src/radio-group.component.d.ts +4 -2
  87. package/types/section/src/section.component.d.ts +4 -2
  88. package/types/switch/src/switch.component.d.ts +4 -2
  89. package/types/tabs/src/components/tab-page.component.d.ts +4 -2
  90. package/types/tabs/src/tabs.component.d.ts +4 -2
  91. package/types/text/src/text.component.d.ts +4 -2
  92. package/types/tooltip/src/composition/use-adjust-position.d.ts +15 -0
  93. package/types/tooltip/src/tooltip.component.d.ts +4 -2
  94. package/types/tooltip/src/tooltip.directive.d.ts +5 -0
@@ -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],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "combo-list",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.7",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.es.js",
6
6
  "style": "style.css",