@v1nt1248/3nclient-lib 0.3.27 → 0.3.29

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 (115) hide show
  1. package/dist/chunks/ui3n-notification-Dr_3Td9N.js +279 -0
  2. package/dist/components/index.d.ts +12 -12
  3. package/dist/components/ui3n-autocomplete/types.d.ts +8 -0
  4. package/dist/components/ui3n-autocomplete/ui3n-autocomplete.d.ts +2 -2
  5. package/dist/components/ui3n-badge/types.d.ts +12 -0
  6. package/dist/components/ui3n-badge/ui3n-badge-simple.d.ts +1 -1
  7. package/dist/components/ui3n-badge/ui3n-badge.d.ts +1 -1
  8. package/dist/components/ui3n-breadcrumbs/types.d.ts +1 -1
  9. package/dist/components/ui3n-breadcrumbs/ui3n-breadcrumb.d.ts +2 -2
  10. package/dist/components/ui3n-button/types.d.ts +4 -2
  11. package/dist/components/ui3n-checkbox/types.d.ts +11 -0
  12. package/dist/components/ui3n-checkbox/ui3n-checkbox.d.ts +4 -1
  13. package/dist/components/ui3n-chip/types.d.ts +6 -1
  14. package/dist/components/ui3n-chip/ui3n-chip.d.ts +2 -0
  15. package/dist/components/ui3n-drop-files/types.d.ts +7 -0
  16. package/dist/components/ui3n-drop-files/ui3n-drop-files.d.ts +7 -1
  17. package/dist/components/ui3n-editable/types.d.ts +11 -0
  18. package/dist/components/ui3n-editable/ui3n-editable.d.ts +4 -2
  19. package/dist/components/ui3n-icon/types.d.ts +5 -1
  20. package/dist/components/ui3n-icon/ui3n-icon.d.ts +2 -2
  21. package/dist/components/ui3n-input/types.d.ts +4 -0
  22. package/dist/components/ui3n-input/ui3n-input.d.ts +4 -1
  23. package/dist/components/ui3n-input-file/types.d.ts +11 -0
  24. package/dist/components/ui3n-input-file/ui3n-input-file.d.ts +4 -1
  25. package/dist/components/ui3n-list/types.d.ts +4 -0
  26. package/dist/components/ui3n-menu/types.d.ts +4 -0
  27. package/dist/components/ui3n-menu/ui3n-menu.d.ts +1 -1
  28. package/dist/components/ui3n-notification/ui3n-notification.d.ts +2 -2
  29. package/dist/components/ui3n-progress/ui3n-progress-circular.d.ts +1 -1
  30. package/dist/components/ui3n-progress/ui3n-progress-linear.d.ts +1 -1
  31. package/dist/components/ui3n-radio-group/types.d.ts +18 -0
  32. package/dist/components/ui3n-radio-group/ui3n-radio-group.d.ts +3 -1
  33. package/dist/components/ui3n-radio-group/ui3n-radio.d.ts +6 -7
  34. package/dist/components/ui3n-scrollbar-horizontal/types.d.ts +1 -0
  35. package/dist/components/ui3n-scrollbar-horizontal/ui3n-scroolbar-horizontal.d.ts +1 -0
  36. package/dist/components/ui3n-scrollbar-vertical/types.d.ts +3 -0
  37. package/dist/components/ui3n-scrollbar-vertical/ui3n-scrollbar-vertical.d.ts +3 -0
  38. package/dist/components/ui3n-selector/types.d.ts +11 -0
  39. package/dist/components/ui3n-selector/ui3n-selector.d.ts +2 -2
  40. package/dist/components/ui3n-slider/types.d.ts +11 -0
  41. package/dist/components/ui3n-slider/ui3n-slider.d.ts +4 -1
  42. package/dist/components/ui3n-step-line-bar/types.d.ts +4 -0
  43. package/dist/components/ui3n-switch/types.d.ts +11 -0
  44. package/dist/components/ui3n-switch/ui3n-switch.d.ts +4 -1
  45. package/dist/components/ui3n-table/composables/useTable.d.ts +1 -0
  46. package/dist/components/ui3n-table/types.d.ts +4 -0
  47. package/dist/components/ui3n-table/ui3n-table-sort-icon.d.ts +4 -1
  48. package/dist/components/ui3n-tabs/types.d.ts +4 -0
  49. package/dist/components/ui3n-text/types.d.ts +11 -0
  50. package/dist/components/ui3n-text/ui3n-text.d.ts +4 -1
  51. package/dist/components/ui3n-tooltip/types.d.ts +4 -0
  52. package/dist/components/ui3n-tooltip/ui3n-tooltip.d.ts +4 -2
  53. package/dist/style.css +1 -1
  54. package/dist/ui3n-components.js +2083 -1697
  55. package/dist/ui3n-plugins.js +1 -1
  56. package/package.json +1 -1
  57. package/src/components/index.ts +29 -7
  58. package/src/components/ui3n-autocomplete/types.ts +9 -1
  59. package/src/components/ui3n-autocomplete/ui3n-autocomplete.vue +182 -51
  60. package/src/components/ui3n-badge/types.ts +10 -0
  61. package/src/components/ui3n-badge/ui3n-badge-simple.vue +54 -55
  62. package/src/components/ui3n-badge/ui3n-badge.vue +4 -0
  63. package/src/components/ui3n-breadcrumbs/types.ts +1 -1
  64. package/src/components/ui3n-breadcrumbs/ui3n-breadcrumb.vue +7 -5
  65. package/src/components/ui3n-button/types.ts +4 -2
  66. package/src/components/ui3n-button/ui3n-button.vue +24 -19
  67. package/src/components/ui3n-checkbox/types.ts +12 -0
  68. package/src/components/ui3n-checkbox/ui3n-checkbox.vue +79 -29
  69. package/src/components/ui3n-chip/types.ts +6 -1
  70. package/src/components/ui3n-chip/ui3n-chip.vue +64 -61
  71. package/src/components/ui3n-dialog/ui3n-dialog.vue +3 -3
  72. package/src/components/ui3n-drop-files/types.ts +8 -0
  73. package/src/components/ui3n-drop-files/ui3n-drop-files.vue +73 -29
  74. package/src/components/ui3n-editable/types.ts +12 -0
  75. package/src/components/ui3n-editable/ui3n-editable.vue +56 -24
  76. package/src/components/ui3n-icon/types.ts +5 -1
  77. package/src/components/ui3n-icon/ui3n-icon.vue +45 -50
  78. package/src/components/ui3n-input/types.ts +4 -0
  79. package/src/components/ui3n-input/ui3n-input.vue +14 -1
  80. package/src/components/ui3n-input-file/types.ts +12 -0
  81. package/src/components/ui3n-input-file/ui3n-input-file.vue +33 -16
  82. package/src/components/ui3n-list/types.ts +4 -0
  83. package/src/components/ui3n-list/ui3n-list.vue +3 -1
  84. package/src/components/ui3n-menu/types.ts +4 -0
  85. package/src/components/ui3n-menu/ui3n-menu.vue +43 -32
  86. package/src/components/ui3n-notification/ui3n-notification.vue +190 -175
  87. package/src/components/ui3n-progress/ui3n-progress-circular.vue +40 -22
  88. package/src/components/ui3n-progress/ui3n-progress-linear.vue +14 -7
  89. package/src/components/ui3n-radio-group/types.ts +20 -0
  90. package/src/components/ui3n-radio-group/ui3n-radio-group.vue +61 -48
  91. package/src/components/ui3n-radio-group/ui3n-radio.vue +60 -65
  92. package/src/components/ui3n-scrollbar-horizontal/types.ts +1 -0
  93. package/src/components/ui3n-scrollbar-horizontal/ui3n-scroolbar-horizontal.vue +8 -1
  94. package/src/components/ui3n-scrollbar-vertical/types.ts +3 -0
  95. package/src/components/ui3n-scrollbar-vertical/ui3n-scrollbar-vertical.vue +12 -5
  96. package/src/components/ui3n-selector/types.ts +12 -0
  97. package/src/components/ui3n-selector/ui3n-selector.vue +63 -40
  98. package/src/components/ui3n-slider/types.ts +12 -0
  99. package/src/components/ui3n-slider/ui3n-slider.vue +88 -39
  100. package/src/components/ui3n-step-line-bar/types.ts +4 -0
  101. package/src/components/ui3n-step-line-bar/ui3n-step-line-bar.vue +8 -10
  102. package/src/components/ui3n-switch/types.ts +12 -0
  103. package/src/components/ui3n-switch/ui3n-switch.vue +57 -25
  104. package/src/components/ui3n-table/composables/useTable.ts +17 -0
  105. package/src/components/ui3n-table/types.ts +4 -0
  106. package/src/components/ui3n-table/ui3n-table-sort-icon.vue +9 -8
  107. package/src/components/ui3n-table/ui3n-table.vue +48 -17
  108. package/src/components/ui3n-tabs/types.ts +4 -0
  109. package/src/components/ui3n-tabs/ui3n-tabs.vue +146 -108
  110. package/src/components/ui3n-text/types.ts +12 -0
  111. package/src/components/ui3n-text/ui3n-text.vue +56 -15
  112. package/src/components/ui3n-tooltip/types.ts +4 -0
  113. package/src/components/ui3n-tooltip/ui3n-tooltip.vue +61 -43
  114. package/src/components/ui3n-virtual-scroll/ui3n-virtual-scroll.vue +201 -17
  115. package/dist/chunks/ui3n-notification-DlDM-u-R.js +0 -276
@@ -0,0 +1,279 @@
1
+ import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, mergeProps as s, normalizeClass as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, useCssModule as _, watch as v, withCtx as y, withDirectives as b, withKeys as x } from "vue";
2
+ //#region src/directives/ui3n-ripple.ts
3
+ var S = {}, C = "";
4
+ function w({ el: e, duration: t }) {
5
+ let n = document.createElement("div"), r = Math.max(e.clientWidth, e.clientHeight), i = r / 2;
6
+ n.style.width = n.style.height = `${r}px`, n.style.left = `${Math.round(e.clientWidth / 2 - i)}px`, n.style.top = `${Math.round(e.clientHeight / 2 - i)}px`, n.classList.add("ui3n-ripple"), C && n.style.setProperty("--ui3n-ripple-bg-color", C), t && n.style.setProperty("--ui3n-ripple-duration", `${t}ms`);
7
+ let a = e.getElementsByClassName("ui3n-ripple")[0];
8
+ a && a.remove(), e.appendChild(n);
9
+ }
10
+ function T({ eventName: e, el: t, duration: n }) {
11
+ ["click", "keydown"].includes(e) && (S[e] = new AbortController(), t.addEventListener(e, function() {
12
+ w({
13
+ el: t,
14
+ duration: n
15
+ });
16
+ }, { signal: S[e].signal }));
17
+ }
18
+ var E = {
19
+ mounted(e, t) {
20
+ let { color: n, duration: r, eventsTriggers: i = [], disabled: a = !1 } = t.value || {};
21
+ C = n || "", !a && ((!i.length || i.length && i.includes("click")) && T({
22
+ eventName: "click",
23
+ el: e,
24
+ duration: r
25
+ }), i.length && i.includes("enter") && T({
26
+ eventName: "keydown",
27
+ el: e,
28
+ duration: r
29
+ }));
30
+ },
31
+ beforeUnmount() {
32
+ Object.keys(S).forEach((e) => {
33
+ S[e].abort();
34
+ });
35
+ }
36
+ }, D = ["id", "title"], O = /* @__PURE__ */ o({
37
+ __name: "ui3n-icon",
38
+ props: {
39
+ id: {},
40
+ icon: {},
41
+ title: { default: "" },
42
+ size: {},
43
+ width: {},
44
+ height: {},
45
+ color: { default: "var(--color-icon-control-primary-default)" },
46
+ horizontalFlip: { type: Boolean },
47
+ verticalFlip: { type: Boolean },
48
+ rotate: { default: 0 }
49
+ },
50
+ emits: ["click"],
51
+ setup(t, { emit: n }) {
52
+ let i = t, a = n, o = e(() => i.size || i.width || 16), c = e(() => i.size || i.height || 16), l = e(() => {
53
+ let e = {
54
+ "--ui3n-icon-width": `${o.value}px`,
55
+ "--ui3n-icon-height": `${c.value}px`,
56
+ "--ui3n-icon-color": i.color
57
+ }, t = [];
58
+ return i.horizontalFlip && t.push("rotateY(180deg)"), i.verticalFlip && t.push("rotateX(180deg)"), i.rotate && t.push(`rotate(${i.rotate}deg)`), t.length && (e.transform = t.join(" ")), e;
59
+ });
60
+ return (e, n) => (d(), r("div", s({
61
+ id: t.id,
62
+ class: e.$style.ui3nIcon,
63
+ title: t.title,
64
+ style: l.value
65
+ }, { "data-icon": t.icon }, { onClick: n[0] ||= (e) => a("click", e) }), null, 16, D));
66
+ }
67
+ }), k = { ui3nIcon: "_ui3nIcon_skxns_1" }, A = (e, t) => {
68
+ let n = e.__vccOpts || e;
69
+ for (let [e, r] of t) n[e] = r;
70
+ return n;
71
+ }, j = /* @__PURE__ */ A(O, [["__cssModules", { $style: k }]]), M = {
72
+ small: 12,
73
+ regular: 16,
74
+ large: 24
75
+ }, N = ["id", "disabled"], P = /* @__PURE__ */ A(/* @__PURE__ */ o({
76
+ __name: "ui3n-button",
77
+ props: {
78
+ id: {},
79
+ type: { default: "primary" },
80
+ size: { default: "regular" },
81
+ square: { type: Boolean },
82
+ block: { type: Boolean },
83
+ textColor: {},
84
+ color: {},
85
+ elevation: { type: Boolean },
86
+ icon: {},
87
+ iconSize: {},
88
+ iconColor: {},
89
+ iconPosition: { default: "right" },
90
+ disabled: {
91
+ type: Boolean,
92
+ default: !1
93
+ }
94
+ },
95
+ emits: [
96
+ "init",
97
+ "click",
98
+ "enter",
99
+ "focus",
100
+ "blur"
101
+ ],
102
+ setup(i, { emit: a }) {
103
+ let o = E, s = i, l = a, m = _(), h = f(null), y = e(() => {
104
+ let e = [
105
+ m.ui3nButton,
106
+ m[s.size],
107
+ m[s.type]
108
+ ];
109
+ return s.block && s.type !== "icon" && e.push(m.block), s.square && e.push(m.square), s.icon && e.push(m[`withIcon-${s.iconPosition}`]), s.elevation && e.push(m.elevation), e;
110
+ }), S = e(() => s.iconSize ? s.iconSize : M[s.size]), C = e(() => s.iconColor ? s.iconColor : "inherit");
111
+ async function w(e, t) {
112
+ ["init", "enter"].includes(e) ? l(e, h.value) : l(e, t);
113
+ }
114
+ return v([() => s.color, () => s.textColor], (e, t) => {
115
+ if (!h.value) return;
116
+ let [n, r] = t, [i, a] = e;
117
+ (s.type === "custom" || s.type === "icon") && i !== n && h.value.style.setProperty("--ui3n-button-bg-color", i ?? "var(--color-bg-button-primary-default)"), (s.type === "custom" || s.type === "icon") && a !== r && h.value.style.setProperty("--ui3n-button-text-color", a ?? "var(--color-text-button-primary-default)");
118
+ }), u(() => {
119
+ h.value && ((s.type === "custom" || s.type === "icon") && s.color && h.value.style.setProperty("--ui3n-button-bg-color", s.color), s.type === "custom" && s.textColor && h.value.style.setProperty("--ui3n-button-text-color", s.textColor), w("init"));
120
+ }), (e, a) => b((d(), r("button", {
121
+ ref_key: "buttonEl",
122
+ ref: h,
123
+ id: i.id,
124
+ class: c(y.value),
125
+ type: "button",
126
+ disabled: i.disabled,
127
+ onClick: a[0] ||= (e) => w("click", e),
128
+ onFocusin: a[1] ||= (e) => w("focus", e),
129
+ onFocusout: a[2] ||= (e) => w("blur", e),
130
+ onKeydown: a[3] ||= x((e) => w("enter"), ["enter"])
131
+ }, [i.icon ? (d(), t(j, {
132
+ key: 0,
133
+ class: c(e.$style.buttonIcon),
134
+ icon: i.icon,
135
+ size: S.value,
136
+ color: C.value
137
+ }, null, 8, [
138
+ "class",
139
+ "icon",
140
+ "size",
141
+ "color"
142
+ ])) : n("", !0), i.type === "icon" ? n("", !0) : (d(), r("span", {
143
+ key: 1,
144
+ class: c(e.$style.text)
145
+ }, [p(e.$slots, "default")], 2))], 42, N)), [[g(o)]]);
146
+ }
147
+ }), [["__cssModules", { $style: {
148
+ ui3nButton: "_ui3nButton_5lm0q_3",
149
+ "withIcon-left": "_withIcon-left_5lm0q_35",
150
+ "withIcon-right": "_withIcon-right_5lm0q_38",
151
+ square: "_square_5lm0q_41",
152
+ regular: "_regular_5lm0q_48",
153
+ small: "_small_5lm0q_55",
154
+ large: "_large_5lm0q_62",
155
+ block: "_block_5lm0q_69",
156
+ primary: "_primary_5lm0q_73",
157
+ elevation: "_elevation_5lm0q_96",
158
+ text: "_text_5lm0q_101",
159
+ secondary: "_secondary_5lm0q_133",
160
+ tertiary: "_tertiary_5lm0q_187",
161
+ outline: "_outline_5lm0q_242",
162
+ icon: "_icon_5lm0q_270",
163
+ custom: "_custom_5lm0q_290",
164
+ buttonIcon: "_buttonIcon_5lm0q_319"
165
+ } }]]), F = ["id"], I = /* @__PURE__ */ A(/* @__PURE__ */ o({
166
+ __name: "ui3n-notification",
167
+ props: {
168
+ id: {},
169
+ type: { default: "info" },
170
+ content: {},
171
+ position: { default: "center" },
172
+ duration: { default: 0 },
173
+ withIcon: {
174
+ type: Boolean,
175
+ default: !0
176
+ },
177
+ teleport: {},
178
+ onOpen: {
179
+ type: Function,
180
+ default: () => void 0
181
+ },
182
+ onClose: {
183
+ type: Function,
184
+ default: () => void 0
185
+ }
186
+ },
187
+ setup(o) {
188
+ let s = o, f = _(), p = {
189
+ success: {
190
+ color: "var(--success-content-default)",
191
+ icon: "round-check-circle",
192
+ iconColor: "var(--success-fill-default)",
193
+ iconRotate: 0
194
+ },
195
+ warning: {
196
+ color: "var(--warning-content-default)",
197
+ icon: "round-warning",
198
+ iconColor: "var(--warning-fill-default)",
199
+ iconRotate: 0
200
+ },
201
+ info: {
202
+ color: "var(--info-content-default)",
203
+ icon: "round-info",
204
+ iconColor: "var(--info-fill-default)",
205
+ iconRotate: 180
206
+ },
207
+ error: {
208
+ color: "var(--error-content-default)",
209
+ icon: "round-info",
210
+ iconColor: "var(--error-fill-default)",
211
+ iconRotate: 180
212
+ }
213
+ }, v = null, b = e(() => {
214
+ let e = [
215
+ f.ui3nNotification,
216
+ f[`${s.type}Type`],
217
+ f[`${s.position}Position`]
218
+ ];
219
+ return s.withIcon && e.push(f.withIcon), e;
220
+ });
221
+ function x() {
222
+ s.onClose && s.onClose();
223
+ }
224
+ return u(() => {
225
+ s.onOpen && s.onOpen(), s.duration > 0 && (v = setTimeout(() => {
226
+ s.onClose();
227
+ }, s.duration));
228
+ }), l(() => {
229
+ v && clearTimeout(v);
230
+ }), (e, s) => (d(), t(m(o.teleport ? "Teleport" : "div"), { to: o.teleport }, {
231
+ default: y(() => [i("div", {
232
+ id: o.id,
233
+ class: c(b.value)
234
+ }, [
235
+ o.withIcon ? (d(), r("div", {
236
+ key: 0,
237
+ class: c(g(f).ui3nNotificationIcon)
238
+ }, [a(j, {
239
+ icon: p[o.type].icon,
240
+ size: "16",
241
+ rotate: p[o.type].iconRotate,
242
+ color: p[o.type].iconColor
243
+ }, null, 8, [
244
+ "icon",
245
+ "rotate",
246
+ "color"
247
+ ])], 2)) : n("", !0),
248
+ i("div", { class: c(g(f).ui3nNotificationContent) }, h(o.content), 3),
249
+ o.duration ? n("", !0) : (d(), t(P, {
250
+ key: 1,
251
+ type: "icon",
252
+ size: "small",
253
+ color: "transparent",
254
+ icon: "round-close",
255
+ "icon-color": p[o.type].color,
256
+ "icon-size": "16",
257
+ class: c(g(f).closeBtn),
258
+ onClick: x
259
+ }, null, 8, ["icon-color", "class"]))
260
+ ], 10, F)]),
261
+ _: 1
262
+ }, 8, ["to"]));
263
+ }
264
+ }), [["__cssModules", { $style: {
265
+ ui3nNotification: "_ui3nNotification_65xrt_1",
266
+ withIcon: "_withIcon_65xrt_20",
267
+ ui3nNotificationIcon: "_ui3nNotificationIcon_65xrt_24",
268
+ ui3nNotificationContent: "_ui3nNotificationContent_65xrt_36",
269
+ closeBtn: "_closeBtn_65xrt_44",
270
+ infoType: "_infoType_65xrt_51",
271
+ successType: "_successType_65xrt_61",
272
+ warningType: "_warningType_65xrt_71",
273
+ errorType: "_errorType_65xrt_81",
274
+ leftPosition: "_leftPosition_65xrt_91",
275
+ centerPosition: "_centerPosition_65xrt_96",
276
+ rightPosition: "_rightPosition_65xrt_101"
277
+ } }]]);
278
+ //#endregion
279
+ export { E as a, A as i, P as n, j as r, I as t };
@@ -5,17 +5,17 @@ import { Ui3nButtonProps, Ui3nButtonEmits } from './ui3n-button/types';
5
5
  import { default as Ui3nChip } from './ui3n-chip/ui3n-chip';
6
6
  import { Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots } from './ui3n-chip/types';
7
7
  import { default as Ui3nDropFiles } from './ui3n-drop-files/ui3n-drop-files';
8
- import { Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots } from './ui3n-drop-files/types';
8
+ import { Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots, Ui3nDropFilesExpose } from './ui3n-drop-files/types';
9
9
  import { default as Ui3nEmoji } from './ui3n-emoji/ui3n-emoji';
10
10
  import { Ui3nEmojiProps, Ui3nEmojiEmits } from './ui3n-emoji/types';
11
11
  import { default as Ui3nInput } from './ui3n-input/ui3n-input';
12
12
  import { Ui3nInputProps, Ui3nInputEmits, Ui3nInputSlots, Ui3nInputExpose } from './ui3n-input/types';
13
13
  import { default as Ui3nInputFile } from './ui3n-input-file/ui3n-input-file';
14
- import { Ui3nInputFileProps, Ui3nInputFileEmits } from './ui3n-input-file/types';
14
+ import { Ui3nInputFileProps, Ui3nInputFileEmits, Ui3nInputFileExpose } from './ui3n-input-file/types';
15
15
  import { default as Ui3nText } from './ui3n-text/ui3n-text';
16
- import { Ui3nTextProps, Ui3nTextEmits } from './ui3n-text/types';
16
+ import { Ui3nTextProps, Ui3nTextEmits, Ui3nTextExpose } from './ui3n-text/types';
17
17
  import { default as Ui3nCheckbox } from './ui3n-checkbox/ui3n-checkbox';
18
- import { Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nCheckboxValue } from './ui3n-checkbox/types';
18
+ import { Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nCheckboxExpose, Ui3nCheckboxValue } from './ui3n-checkbox/types';
19
19
  import { default as Ui3nNotification } from './ui3n-notification/ui3n-notification';
20
20
  import { default as Ui3nTableSortIcon } from './ui3n-table/ui3n-table-sort-icon';
21
21
  import { default as Ui3nTable } from './ui3n-table/ui3n-table';
@@ -24,7 +24,7 @@ import { default as Ui3nDialogProvider } from './ui3n-dialog/ui3n-dialog-provide
24
24
  import { default as Ui3nDialog } from './ui3n-dialog/ui3n-dialog';
25
25
  import { Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogComponentSlots, Ui3nDialogEvent } from './ui3n-dialog/types';
26
26
  import { default as Ui3nMenu } from './ui3n-menu/ui3n-menu';
27
- import { Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots } from './ui3n-menu/types';
27
+ import { Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nMenuExpose } from './ui3n-menu/types';
28
28
  import { default as Ui3nList } from './ui3n-list/ui3n-list';
29
29
  import { Ui3nListProps, Ui3nListEmits, Ui3nListSlots } from './ui3n-list/types';
30
30
  import { default as Ui3nVirtualScroll } from './ui3n-virtual-scroll/ui3n-virtual-scroll';
@@ -37,7 +37,7 @@ import { default as Ui3nBreadcrumb } from './ui3n-breadcrumbs/ui3n-breadcrumb';
37
37
  import { default as Ui3nBreadcrumbs } from './ui3n-breadcrumbs/ui3n-breadcrumbs';
38
38
  import { Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots, Ui3nBreadcrumbsProps } from './ui3n-breadcrumbs/types';
39
39
  import { default as Ui3nSwitch } from './ui3n-switch/ui3n-switch';
40
- import { Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots } from './ui3n-switch/types';
40
+ import { Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots, Ui3nSwitchExpose } from './ui3n-switch/types';
41
41
  import { default as Ui3nStepLineBar } from './ui3n-step-line-bar/ui3n-step-line-bar';
42
42
  import { Ui3nStepLineBarProps } from './ui3n-step-line-bar/types';
43
43
  import { default as Ui3nProgressLinear } from './ui3n-progress/ui3n-progress-linear';
@@ -47,15 +47,15 @@ import { default as Ui3nTooltip } from './ui3n-tooltip/ui3n-tooltip';
47
47
  import { Ui3nTooltipEmits, Ui3nTooltipProps, Ui3nTooltipSlots, Ui3nTooltipPlacement } from './ui3n-tooltip/types';
48
48
  import { default as Ui3nRadio } from './ui3n-radio-group/ui3n-radio';
49
49
  import { default as Ui3nRadioGroup } from './ui3n-radio-group/ui3n-radio-group';
50
- import { Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nRadioValue } from './ui3n-radio-group/types';
50
+ import { Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioExpose, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nRadioGroupExpose, Ui3nRadioValue } from './ui3n-radio-group/types';
51
51
  import { default as Ui3nEditable } from './ui3n-editable/ui3n-editable';
52
- import { Ui3nEditableProps, Ui3nEditableEmits } from './ui3n-editable/types';
52
+ import { Ui3nEditableProps, Ui3nEditableEmits, Ui3nEditableExpose } from './ui3n-editable/types';
53
53
  import { default as Ui3nAutocomplete } from './ui3n-autocomplete/ui3n-autocomplete';
54
- import { Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteOptionBase } from './ui3n-autocomplete/types';
54
+ import { Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteExpose, Ui3nAutocompleteOptionBase } from './ui3n-autocomplete/types';
55
55
  import { default as Ui3nSlider } from './ui3n-slider/ui3n-slider';
56
- import { UI3nSliderProps, UI3nSliderEmits } from './ui3n-slider/types';
56
+ import { UI3nSliderProps, UI3nSliderEmits, UI3nSliderExpose } from './ui3n-slider/types';
57
57
  import { default as Ui3nSelector } from './ui3n-selector/ui3n-selector';
58
- import { Ui3nSelectorOptionBase, Ui3nSelectorProps, Ui3nSelectorEmits, Ui3nSelectorSlots, Ui3nSelectorItemDisplayingFunction } from './ui3n-selector/types';
58
+ import { Ui3nSelectorOptionBase, Ui3nSelectorProps, Ui3nSelectorEmits, Ui3nSelectorSlots, Ui3nSelectorExpose, Ui3nSelectorItemDisplayingFunction } from './ui3n-selector/types';
59
59
  import { default as Ui3nMobileMenu } from './ui3n-mobile-menu/ui3n-mobile-menu';
60
60
  import { Ui3nMobileMenuProps, Ui3nMobileMenuEmits, Ui3nMobileMenuSlots } from './ui3n-mobile-menu/types';
61
61
  import { default as Ui3nMobileMenuItem } from './ui3n-mobile-menu-item/ui3n-mobile-menu-item';
@@ -64,4 +64,4 @@ import { default as Ui3nScrollbarVertical } from './ui3n-scrollbar-vertical/ui3n
64
64
  import { Ui3nScrollbarVerticalProps, Ui3nScrollbarVerticalEmits, Ui3nScrollbarVerticalSlots, Ui3nScrollbarVerticalExpose } from './ui3n-scrollbar-vertical/types';
65
65
  import { default as Ui3nScrollbarHorizontal } from './ui3n-scrollbar-horizontal/ui3n-scroolbar-horizontal';
66
66
  import { Ui3nScrollbarHorizontalProps, Ui3nScrollbarHorizontalEmits, Ui3nScrollbarHorizontalSlots, Ui3nScrollbarHorizontalExpose } from './ui3n-scrollbar-horizontal/types';
67
- export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nInputSlots, Ui3nInputExpose, Ui3nInputFile, Ui3nInputFileProps, Ui3nInputFileEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nCheckboxValue, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nTableExpose, Ui3nDialogProvider, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogComponentSlots, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots, Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots, Ui3nBadge, Ui3nBadgeProps, Ui3nBreadcrumb, Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots, Ui3nBreadcrumbs, Ui3nBreadcrumbsProps, Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots, Ui3nStepLineBar, Ui3nStepLineBarProps, Ui3nProgressLinear, Ui3nProgressLinearProps, Ui3nProgressCircular, Ui3nProgressCircularProps, Ui3nTooltip, Ui3nTooltipEmits, Ui3nTooltipProps, Ui3nTooltipSlots, Ui3nTooltipPlacement, Ui3nRadio, Ui3nRadioGroup, Ui3nRadioValue, Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nEditable, Ui3nEditableProps, Ui3nEditableEmits, Ui3nAutocomplete, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteOptionBase, Ui3nSlider, UI3nSliderProps, UI3nSliderEmits, Ui3nSelector, Ui3nSelectorProps, Ui3nSelectorEmits, Ui3nSelectorSlots, Ui3nSelectorOptionBase, Ui3nSelectorItemDisplayingFunction, Ui3nMobileMenu, Ui3nMobileMenuProps, Ui3nMobileMenuEmits, Ui3nMobileMenuSlots, Ui3nMobileMenuItem, Ui3nMobileMenuItemBase, Ui3nMobileMenuItemProps, Ui3nMobileMenuItemEmits, Ui3nScrollbarVertical, Ui3nScrollbarVerticalProps, Ui3nScrollbarVerticalEmits, Ui3nScrollbarVerticalSlots, Ui3nScrollbarVerticalExpose, Ui3nScrollbarHorizontal, Ui3nScrollbarHorizontalProps, Ui3nScrollbarHorizontalEmits, Ui3nScrollbarHorizontalSlots, Ui3nScrollbarHorizontalExpose, };
67
+ export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nDropFilesSlots, Ui3nDropFilesExpose, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nInputSlots, Ui3nInputExpose, Ui3nInputFile, Ui3nInputFileProps, Ui3nInputFileEmits, Ui3nInputFileExpose, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nTextExpose, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nCheckboxExpose, Ui3nCheckboxValue, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nTableExpose, Ui3nDialogProvider, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogComponentSlots, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nMenuExpose, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots, Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots, Ui3nBadge, Ui3nBadgeProps, Ui3nBreadcrumb, Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots, Ui3nBreadcrumbs, Ui3nBreadcrumbsProps, Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots, Ui3nSwitchExpose, Ui3nStepLineBar, Ui3nStepLineBarProps, Ui3nProgressLinear, Ui3nProgressLinearProps, Ui3nProgressCircular, Ui3nProgressCircularProps, Ui3nTooltip, Ui3nTooltipEmits, Ui3nTooltipProps, Ui3nTooltipSlots, Ui3nTooltipPlacement, Ui3nRadio, Ui3nRadioGroup, Ui3nRadioValue, Ui3nRadioEmits, Ui3nRadioProps, Ui3nRadioSlots, Ui3nRadioExpose, Ui3nRadioGroupEmits, Ui3nRadioGroupProps, Ui3nRadioGroupSlots, Ui3nRadioGroupExpose, Ui3nEditable, Ui3nEditableProps, Ui3nEditableEmits, Ui3nEditableExpose, Ui3nAutocomplete, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteExpose, Ui3nAutocompleteOptionBase, Ui3nSlider, UI3nSliderProps, UI3nSliderEmits, UI3nSliderExpose, Ui3nSelector, Ui3nSelectorProps, Ui3nSelectorEmits, Ui3nSelectorSlots, Ui3nSelectorExpose, Ui3nSelectorOptionBase, Ui3nSelectorItemDisplayingFunction, Ui3nMobileMenu, Ui3nMobileMenuProps, Ui3nMobileMenuEmits, Ui3nMobileMenuSlots, Ui3nMobileMenuItem, Ui3nMobileMenuItemBase, Ui3nMobileMenuItemProps, Ui3nMobileMenuItemEmits, Ui3nScrollbarVertical, Ui3nScrollbarVerticalProps, Ui3nScrollbarVerticalEmits, Ui3nScrollbarVerticalSlots, Ui3nScrollbarVerticalExpose, Ui3nScrollbarHorizontal, Ui3nScrollbarHorizontalProps, Ui3nScrollbarHorizontalEmits, Ui3nScrollbarHorizontalSlots, Ui3nScrollbarHorizontalExpose, };
@@ -22,6 +22,10 @@ export type Ui3nAutocompleteValue<T extends Ui3nAutocompleteOptionBase> = {
22
22
  * Autocomplete component properties
23
23
  */
24
24
  export interface Ui3nAutocompleteProps<T extends Ui3nAutocompleteOptionBase> {
25
+ /**
26
+ * HTML name attribute for form submission
27
+ */
28
+ name?: string;
25
29
  /**
26
30
  * Whether to show chips
27
31
  * @default false
@@ -133,6 +137,7 @@ export interface Ui3nAutocompleteSlots<T extends Ui3nAutocompleteOptionBase> {
133
137
  chip: (props: {
134
138
  item: T | T[keyof T];
135
139
  index: number;
140
+ isHighlighted: boolean;
136
141
  }) => VNode;
137
142
  /**
138
143
  * No data text slot
@@ -145,3 +150,6 @@ export interface Ui3nAutocompleteSlots<T extends Ui3nAutocompleteOptionBase> {
145
150
  value: T[] | Array<T[keyof T]>;
146
151
  }) => VNode;
147
152
  }
153
+ export interface Ui3nAutocompleteExpose {
154
+ clear: () => void;
155
+ }
@@ -1,4 +1,4 @@
1
- import { Ui3nAutocompleteOptionBase, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots } from './types';
1
+ import { Ui3nAutocompleteOptionBase, Ui3nAutocompleteProps, Ui3nAutocompleteEmits, Ui3nAutocompleteSlots, Ui3nAutocompleteExpose } from './types';
2
2
  declare const _default: <T extends Ui3nAutocompleteOptionBase>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:modelValue"?: ((value: T[keyof T][] | T[]) => any) | undefined;
@@ -6,7 +6,7 @@ declare const _default: <T extends Ui3nAutocompleteOptionBase>(__VLS_props: NonN
6
6
  readonly "onUpdate:focused"?: ((value: boolean) => any) | undefined;
7
7
  readonly "onValid:new-value"?: ((value: boolean) => any) | undefined;
8
8
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:search" | "onUpdate:focused" | "onValid:new-value"> & Ui3nAutocompleteProps<T> & Partial<{}>> & import('vue').PublicProps;
9
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<Ui3nAutocompleteExpose>): void;
10
10
  attrs: any;
11
11
  slots: Readonly<Ui3nAutocompleteSlots<T>> & Ui3nAutocompleteSlots<T>;
12
12
  emit: Ui3nAutocompleteEmits<T>;
@@ -1,5 +1,9 @@
1
1
  import { VNode } from 'vue';
2
2
  export interface Ui3nBadgeSimpleProps {
3
+ /**
4
+ * Root element id
5
+ */
6
+ id?: string;
3
7
  /** For simple display as a circle */
4
8
  dot?: boolean;
5
9
  /** Text displayed inside the circle */
@@ -9,7 +13,15 @@ export interface Ui3nBadgeSimpleProps {
9
13
  /** Text color */
10
14
  textColor?: string;
11
15
  }
16
+ export interface Ui3nBadgeSimpleEmits {
17
+ (event: 'change:size', val: {
18
+ width: number;
19
+ height: number;
20
+ }): void;
21
+ }
12
22
  export interface Ui3nBadgeProps {
23
+ /** Root element id*/
24
+ id?: string;
13
25
  /** For simple display as a circle */
14
26
  dot?: boolean;
15
27
  /** Text displayed inside the circle */
@@ -11,8 +11,8 @@ declare const _default: import('vue').DefineComponent<Ui3nBadgeSimpleProps, {},
11
11
  }) => any) | undefined;
12
12
  }>, {
13
13
  color: string;
14
- textColor: string;
15
14
  value: string | number;
15
+ textColor: string;
16
16
  dot: boolean;
17
17
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
18
  element: HTMLDivElement;
@@ -8,8 +8,8 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<Ui3nBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Ui3nBadgeProps> & Readonly<{}>, {
10
10
  color: string;
11
- textColor: string;
12
11
  value: string | number;
12
+ textColor: string;
13
13
  dot: boolean;
14
14
  position: "right-top" | "right-bottom" | "left-top" | "left-bottom";
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -26,7 +26,7 @@ export interface Ui3nBreadcrumbEmits {
26
26
  /**
27
27
  * Called when the breadcrumb is clicked
28
28
  */
29
- (ev: 'click', value: Event): void;
29
+ (ev: 'click', value: MouseEvent): void;
30
30
  }
31
31
  /**
32
32
  * Breadcrumb component slots
@@ -7,9 +7,9 @@ declare function __VLS_template(): {
7
7
  };
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<Ui3nBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
- click: (value: Event) => any;
10
+ click: (value: MouseEvent) => any;
11
11
  }, string, import('vue').PublicProps, Readonly<Ui3nBreadcrumbProps> & Readonly<{
12
- onClick?: ((value: Event) => any) | undefined;
12
+ onClick?: ((value: MouseEvent) => any) | undefined;
13
13
  }>, {
14
14
  disabled: boolean;
15
15
  separator: string;
@@ -1,5 +1,7 @@
1
- import { VNode } from 'vue';
2
- export interface Ui3nButtonProps {
1
+ import { ButtonHTMLAttributes, VNode } from 'vue';
2
+ export interface Ui3nButtonProps extends /*@vue-ignore */ Omit<ButtonHTMLAttributes, 'type'> {
3
+ /** Root element id*/
4
+ id?: string;
3
5
  /** Button type */
4
6
  type?: 'primary' | 'secondary' | 'tertiary' | 'outline' | 'icon' | 'custom';
5
7
  /** Button size */
@@ -7,6 +7,14 @@ export type Ui3nCheckboxValue = boolean | string | number;
7
7
  * Checkbox component properties
8
8
  */
9
9
  export interface Ui3nCheckboxProps {
10
+ /**
11
+ * Root element id
12
+ */
13
+ id?: string;
14
+ /**
15
+ * HTML name attribute for form submission
16
+ */
17
+ name?: string;
10
18
  /**
11
19
  * Current checkbox value
12
20
  */
@@ -60,3 +68,6 @@ export interface Ui3nCheckboxSlots {
60
68
  */
61
69
  default: () => VNode;
62
70
  }
71
+ export interface Ui3nCheckboxExpose {
72
+ clear: () => void;
73
+ }
@@ -8,7 +8,9 @@ declare function __VLS_template(): {
8
8
  rootEl: HTMLDivElement;
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<Ui3nCheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ declare const __VLS_component: import('vue').DefineComponent<Ui3nCheckboxProps, {
12
+ clear: () => void;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
14
  change: (value: Ui3nCheckboxValue) => any;
13
15
  "update:modelValue": (value: Ui3nCheckboxValue) => any;
14
16
  }, string, import('vue').PublicProps, Readonly<Ui3nCheckboxProps> & Readonly<{
@@ -18,6 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<Ui3nCheckboxProps,
18
20
  size: number | string;
19
21
  color: string;
20
22
  disabled: boolean;
23
+ name: string;
21
24
  modelValue: Ui3nCheckboxValue;
22
25
  checkedValue: Ui3nCheckboxValue;
23
26
  uncheckedValue: Ui3nCheckboxValue;
@@ -3,6 +3,10 @@ import { VNode } from 'vue';
3
3
  * Chip component properties
4
4
  */
5
5
  export interface Ui3nChipProps {
6
+ /**
7
+ * Root element id
8
+ */
9
+ id?: string;
6
10
  /**
7
11
  * Chip height
8
12
  */
@@ -51,7 +55,8 @@ export interface Ui3nChipEmits {
51
55
  /**
52
56
  * Called when chip is closed
53
57
  */
54
- (ev: 'close'): void;
58
+ (event: 'close'): void;
59
+ (event: 'click', value: MouseEvent): void;
55
60
  }
56
61
  /**
57
62
  * Chip component slots
@@ -7,8 +7,10 @@ declare function __VLS_template(): {
7
7
  };
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<Ui3nChipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ click: (value: MouseEvent) => any;
10
11
  close: () => any;
11
12
  }, string, import('vue').PublicProps, Readonly<Ui3nChipProps> & Readonly<{
13
+ onClick?: ((value: MouseEvent) => any) | undefined;
12
14
  onClose?: (() => any) | undefined;
13
15
  }>, {
14
16
  height: number | string;
@@ -3,6 +3,10 @@ import { VNode } from 'vue';
3
3
  * Drop files component properties
4
4
  */
5
5
  export interface Ui3nDropFilesProps {
6
+ /**
7
+ * HTML name attribute for form submission
8
+ */
9
+ name?: string;
6
10
  /**
7
11
  * Drop files title
8
12
  */
@@ -43,3 +47,6 @@ export interface Ui3nDropFilesSlots {
43
47
  */
44
48
  'additional-text': () => VNode;
45
49
  }
50
+ export interface Ui3nDropFilesExpose {
51
+ clear: () => void;
52
+ }
@@ -4,20 +4,26 @@ declare function __VLS_template(): {
4
4
  slots: Readonly<Ui3nDropFilesSlots> & Ui3nDropFilesSlots;
5
5
  refs: {
6
6
  wrapperElement: HTMLDivElement;
7
+ fileInput: HTMLInputElement;
7
8
  };
8
9
  rootEl: any;
9
10
  };
10
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<Ui3nDropFilesProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ declare const __VLS_component: import('vue').DefineComponent<Ui3nDropFilesProps, {
13
+ clear: () => void;
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
15
  select: (fileList: FileList) => any;
13
16
  }, string, import('vue').PublicProps, Readonly<Ui3nDropFilesProps> & Readonly<{
14
17
  onSelect?: ((fileList: FileList) => any) | undefined;
15
18
  }>, {
16
19
  title: string;
17
20
  text: string;
21
+ name: string;
18
22
  additionalText: string;
23
+ permanentDisplay: boolean;
19
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
25
  wrapperElement: HTMLDivElement;
26
+ fileInput: HTMLInputElement;
21
27
  }, any>;
22
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
29
  export default _default;
@@ -77,6 +77,14 @@ export interface Ui3nContentEditableEmits {
77
77
  * Properties of the Ui3nEditable component
78
78
  */
79
79
  export interface Ui3nEditableProps {
80
+ /**
81
+ * Root element id
82
+ */
83
+ id?: string;
84
+ /**
85
+ * HTML name attribute for form submission
86
+ */
87
+ name?: string;
80
88
  /**
81
89
  * Current value of the editable content
82
90
  */
@@ -139,3 +147,6 @@ export interface Ui3nEditableEmits {
139
147
  */
140
148
  (event: 'focusout'): void;
141
149
  }
150
+ export interface Ui3nEditableExpose {
151
+ clear: () => void;
152
+ }
@@ -1,6 +1,8 @@
1
- import { Ui3nEditableProps } from './types';
2
1
  import { Nullable } from '../../types';
3
- declare const _default: import('vue').DefineComponent<Ui3nEditableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
+ import { Ui3nEditableProps } from './types';
3
+ declare const _default: import('vue').DefineComponent<Ui3nEditableProps, {
4
+ clear: () => void;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
4
6
  done: () => any;
5
7
  cancel: () => any;
6
8
  focusin: (value: FocusEvent) => any;
@@ -1,4 +1,8 @@
1
1
  export interface Ui3nIconProps {
2
+ /**
3
+ * Root element id
4
+ */
5
+ id?: string;
2
6
  /** Icon name */
3
7
  icon: string;
4
8
  /** Icon title */
@@ -20,5 +24,5 @@ export interface Ui3nIconProps {
20
24
  }
21
25
  export interface Ui3nIconEmits {
22
26
  /** Called when the icon is clicked */
23
- (ev: 'click', value: Event): void;
27
+ (ev: 'click', value: MouseEvent): void;
24
28
  }