@itguy614/clean-ui 1.3.0 → 1.3.1

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 (30) hide show
  1. package/dist/clean-ui.css +1 -1
  2. package/dist/components/CuiCombobox.vue.d.ts.map +1 -1
  3. package/dist/components/CuiCombobox.vue.js +2 -2
  4. package/dist/components/CuiCombobox.vue2.js +96 -97
  5. package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -1
  6. package/dist/components/CuiDataGridTable.vue.js +212 -190
  7. package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
  8. package/dist/components/CuiDataGridViewManager.vue.js +5 -4
  9. package/dist/components/CuiDivider.vue.d.ts +1 -3
  10. package/dist/components/CuiDivider.vue.d.ts.map +1 -1
  11. package/dist/components/CuiDivider.vue.js +44 -60
  12. package/dist/components/CuiPagination.vue.d.ts.map +1 -1
  13. package/dist/components/CuiPagination.vue.js +2 -2
  14. package/dist/components/CuiPagination.vue2.js +28 -25
  15. package/dist/components/CuiPopover.vue.d.ts.map +1 -1
  16. package/dist/components/CuiPopover.vue.js +77 -74
  17. package/dist/components/CuiSlider.vue.d.ts.map +1 -1
  18. package/dist/components/CuiSlider.vue.js +5 -167
  19. package/dist/components/CuiSlider.vue2.js +171 -2
  20. package/dist/components/CuiTabs.vue.d.ts.map +1 -1
  21. package/dist/components/CuiTabs.vue.js +2 -2
  22. package/dist/components/CuiTabs.vue2.js +80 -76
  23. package/dist/components/CuiTagInput.vue.d.ts.map +1 -1
  24. package/dist/components/CuiTagInput.vue.js +1 -1
  25. package/dist/components/CuiTagInput.vue2.js +98 -99
  26. package/dist/components/CuiTooltip.vue.d.ts.map +1 -1
  27. package/dist/components/CuiTooltip.vue.js +2 -2
  28. package/dist/components/CuiTooltip.vue2.js +2 -1
  29. package/dist/version.js +1 -1
  30. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { defineComponent as se, ref as c, computed as b, onMounted as de, onUnmounted as ce, watch as ve, nextTick as B, withDirectives as fe, openBlock as r, createElementBlock as v, normalizeStyle as M, toDisplayString as h, createCommentVNode as y, createElementVNode as R, normalizeClass as $, Fragment as O, renderList as U, createBlock as K, withCtx as me, createTextVNode as ge, unref as W, Teleport as pe, createVNode as Y, withModifiers as Z, renderSlot as be, vShow as he } from "vue";
2
- import { INPUT_SIZE_SCALE as ye, nestedSize as we, scaleDensity as xe } from "../utils/sizing.js";
3
- import { useFieldDescribedBy as ke } from "../composables/useFieldDescribedBy.js";
4
- import Ce from "./CuiIcon.vue.js";
5
- import Se from "./CuiBadge.vue.js";
6
- import Te from "./CuiSpinner.vue.js";
1
+ import { defineComponent as de, ref as c, computed as p, onMounted as ce, onUnmounted as ve, watch as fe, nextTick as B, withDirectives as me, openBlock as r, createElementBlock as v, normalizeStyle as M, toDisplayString as b, createCommentVNode as h, createElementVNode as $, normalizeClass as E, Fragment as U, renderList as K, createBlock as W, withCtx as ge, createTextVNode as pe, unref as Y, Teleport as be, createVNode as Z, withModifiers as j, renderSlot as he, vShow as ye } from "vue";
2
+ import { INPUT_SIZE_SCALE as we, nestedSize as xe, scaleDensity as ke } from "../utils/sizing.js";
3
+ import { useFieldDescribedBy as Ce } from "../composables/useFieldDescribedBy.js";
4
+ import Se from "./CuiIcon.vue.js";
5
+ import Te from "./CuiBadge.vue.js";
6
+ import Ve from "./CuiSpinner.vue.js";
7
7
  /* empty css */
8
- const Ve = {
8
+ const ze = {
9
9
  key: 0,
10
10
  class: "cui-tag-input__label"
11
- }, ze = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "value", "placeholder", "disabled"], Le = ["id"], Be = {
11
+ }, Le = ["id", "name", "autocomplete", "aria-describedby", "aria-required", "aria-labelledby", "value", "placeholder", "disabled"], Re = ["id"], Be = {
12
12
  key: 0,
13
13
  style: { padding: "calc(0.75rem * var(--cui-density-scale, 1))", textAlign: "center" }
14
- }, Me = ["data-index", "onClick", "onMouseenter"], Ae = /* @__PURE__ */ se({
14
+ }, Me = ["data-index", "onClick", "onMouseenter"], Ne = /* @__PURE__ */ de({
15
15
  __name: "CuiTagInput",
16
16
  props: {
17
17
  modelValue: { default: () => [] },
@@ -40,80 +40,80 @@ const Ve = {
40
40
  disabled: { type: Boolean, default: !1 }
41
41
  },
42
42
  emits: ["update:modelValue"],
43
- setup(u, { expose: j, emit: G }) {
44
- const l = u, { errorId: J, describedBy: Q } = ke(l), X = {
43
+ setup(u, { expose: G, emit: J }) {
44
+ const l = u, { errorId: Q, describedBy: X } = Ce(l), ee = {
45
45
  none: "0",
46
46
  sm: "var(--cui-radius-sm, 0.25rem)",
47
47
  md: "var(--cui-button-radius, var(--cui-radius-md, 0.375rem))",
48
48
  lg: "var(--cui-radius-lg, 0.5rem)",
49
49
  full: "9999px"
50
- }, D = G, o = c(""), s = c(!1), i = c(-1), V = c(!1), m = c([]), f = c(null), _ = c(null), w = c(null), E = c(null), I = c({});
51
- let x = null;
52
- const k = b(() => new Set(l.modelValue)), C = b(() => l.maxTags > 0 && l.modelValue.length >= l.maxTags);
53
- function ee(e) {
50
+ }, D = J, o = c(""), s = c(!1), i = c(-1), z = c(!1), m = c([]), f = c(null), _ = c(null), y = c(null), I = c(null), q = c({});
51
+ let w = null;
52
+ const k = p(() => new Set(l.modelValue)), C = p(() => l.maxTags > 0 && l.modelValue.length >= l.maxTags);
53
+ function te(e) {
54
54
  const t = [...l.suggestions, ...m.value].find((a) => a.value === e);
55
55
  return (t == null ? void 0 : t.label) ?? e;
56
56
  }
57
- function te(e) {
57
+ function ae(e) {
58
58
  const t = [...l.suggestions, ...m.value].find((a) => a.value === e);
59
59
  return (t == null ? void 0 : t.color) ?? l.color;
60
60
  }
61
- const d = b(() => {
61
+ const d = p(() => {
62
62
  const t = (l.fetchSuggestions ? m.value : l.suggestions).filter((n) => !k.value.has(n.value));
63
63
  if (!o.value || l.fetchSuggestions) return t;
64
64
  const a = o.value.toLowerCase();
65
65
  return t.filter(
66
66
  (n) => n.value.toLowerCase().includes(a) || n.label && n.label.toLowerCase().includes(a)
67
67
  );
68
- }), g = b(() => {
68
+ }), g = p(() => {
69
69
  if (!l.allowCreate || !o.value.trim() || C.value) return !1;
70
70
  const e = o.value.trim().toLowerCase();
71
71
  return k.value.has(e) || k.value.has(o.value.trim()) ? !1 : ![...l.suggestions, ...m.value].map((a) => a.value.toLowerCase()).includes(e);
72
- }), q = b(() => V.value), ae = xe("0.25rem"), z = b(() => {
73
- const e = ye[l.size];
72
+ }), A = p(() => z.value), le = ke("0.25rem"), L = p(() => {
73
+ const e = we[l.size];
74
74
  return {
75
- tagSize: we(l.size),
75
+ tagSize: xe(l.size),
76
76
  style: {
77
77
  "--_tag-input-font-size": e.fontSize,
78
- "--_tag-input-padding": `${ae} ${e.px}`,
78
+ "--_tag-input-padding": `${le} ${e.px}`,
79
79
  "--_tag-input-min-height": e.height
80
80
  }
81
81
  };
82
82
  });
83
- function p() {
84
- const e = E.value ?? w.value;
83
+ function x() {
84
+ const e = I.value ?? y.value;
85
85
  if (!e) return;
86
- const t = e.getBoundingClientRect(), a = window.innerHeight, n = a - t.bottom, T = t.top, F = n < 200 && T > n, re = Math.max(0, Math.min(240, (F ? T : n) - 16)), L = {
86
+ const t = e.getBoundingClientRect(), a = window.innerHeight, n = a - t.bottom, V = t.top, F = n < 200 && V > n, se = Math.max(0, Math.min(240, (F ? V : n) - 16)), R = {
87
87
  // The panel is teleported to <body>, so it inherits nothing from the component — it
88
88
  // has to carry the size-derived properties itself (#123).
89
- ...z.value.style,
89
+ ...L.value.style,
90
90
  position: "fixed",
91
91
  zIndex: "9990",
92
92
  left: `${t.left}px`,
93
93
  width: `${t.width}px`,
94
- maxHeight: `${re}px`
94
+ maxHeight: `${se}px`
95
95
  // Only the geometry the positioner computes stays inline; the panel's paint lives in
96
96
  // the stylesheet so it can be themed (#123).
97
97
  };
98
- F ? L.bottom = `${a - t.top + 4}px` : L.top = `${t.bottom + 4}px`, I.value = L;
98
+ F ? R.bottom = `${a - t.top + 4}px` : R.top = `${t.bottom + 4}px`, q.value = R;
99
99
  }
100
- function le(e) {
101
- if (o.value = e.target.value, i.value = -1, s.value || (s.value = !0, p()), l.fetchSuggestions) {
100
+ function ue(e) {
101
+ if (o.value = e.target.value, i.value = -1, s.value || (s.value = !0, x()), l.fetchSuggestions) {
102
102
  if (o.value.length < l.minChars) {
103
103
  m.value = [];
104
104
  return;
105
105
  }
106
- x && clearTimeout(x), x = setTimeout(async () => {
107
- V.value = !0;
106
+ w && clearTimeout(w), w = setTimeout(async () => {
107
+ z.value = !0;
108
108
  try {
109
109
  m.value = await l.fetchSuggestions(o.value);
110
110
  } finally {
111
- V.value = !1;
111
+ z.value = !1;
112
112
  }
113
113
  }, l.debounce);
114
114
  }
115
115
  }
116
- function A(e) {
116
+ function N(e) {
117
117
  if (l.disabled || C.value) return;
118
118
  const t = e.trim();
119
119
  !t || k.value.has(t) || (D("update:modelValue", [...l.modelValue, t]), o.value = "", i.value = -1, B(() => {
@@ -121,68 +121,67 @@ const Ve = {
121
121
  return (a = f.value) == null ? void 0 : a.focus();
122
122
  }));
123
123
  }
124
- function N(e) {
125
- A(e.value);
124
+ function H(e) {
125
+ N(e.value);
126
126
  }
127
127
  function S() {
128
- g.value && A(o.value.trim());
128
+ g.value && N(o.value.trim());
129
129
  }
130
- function H(e) {
130
+ function O(e) {
131
131
  l.disabled || (D("update:modelValue", l.modelValue.filter((t) => t !== e)), B(() => {
132
132
  var t;
133
133
  return (t = f.value) == null ? void 0 : t.focus();
134
134
  }));
135
135
  }
136
- function ue(e) {
136
+ function ne(e) {
137
137
  const t = d.value.length + (g.value ? 1 : 0);
138
138
  if (e.key === "ArrowDown") {
139
139
  if (e.preventDefault(), !s.value) {
140
- s.value = !0, p();
140
+ s.value = !0, x();
141
141
  return;
142
142
  }
143
143
  i.value = Math.min(i.value + 1, t - 1);
144
- } else e.key === "ArrowUp" ? (e.preventDefault(), i.value = Math.max(i.value - 1, 0)) : e.key === "Enter" ? (e.preventDefault(), i.value >= 0 && i.value < d.value.length ? N(d.value[i.value]) : (g.value && (i.value === d.value.length || i.value === -1) || g.value && o.value.trim()) && S()) : e.key === "," || e.key === "Tab" ? o.value.trim() && l.allowCreate && (e.preventDefault(), S()) : e.key === "Escape" ? s.value = !1 : e.key === "Backspace" && !o.value && l.modelValue.length > 0 && H(l.modelValue[l.modelValue.length - 1]);
144
+ } else e.key === "ArrowUp" ? (e.preventDefault(), i.value = Math.max(i.value - 1, 0)) : e.key === "Enter" ? (e.preventDefault(), i.value >= 0 && i.value < d.value.length ? H(d.value[i.value]) : (g.value && (i.value === d.value.length || i.value === -1) || g.value && o.value.trim()) && S()) : e.key === "," || e.key === "Tab" ? o.value.trim() && l.allowCreate && (e.preventDefault(), S()) : e.key === "Escape" ? s.value = !1 : e.key === "Backspace" && !o.value && l.modelValue.length > 0 && O(l.modelValue[l.modelValue.length - 1]);
145
145
  }
146
146
  function P(e) {
147
147
  var a, n;
148
148
  const t = e.target;
149
- (a = w.value) != null && a.contains(t) || (n = _.value) != null && n.contains(t) || (s.value = !1);
149
+ (a = y.value) != null && a.contains(t) || (n = _.value) != null && n.contains(t) || (s.value = !1);
150
+ }
151
+ function oe() {
152
+ !l.disabled && !C.value && (s.value = !0, x());
150
153
  }
151
- function ne() {
152
- !l.disabled && !C.value && (s.value = !0, p());
154
+ function T() {
155
+ s.value && x();
153
156
  }
154
- de(() => {
155
- document.addEventListener("mousedown", P), window.addEventListener("scroll", () => {
156
- s.value && p();
157
- }, !0), window.addEventListener("resize", () => {
158
- s.value && p();
159
- });
160
- }), ce(() => {
161
- document.removeEventListener("mousedown", P), x && clearTimeout(x);
162
- }), ve(s, (e) => {
163
- e || (o.value = ""), e && B(p);
157
+ ce(() => {
158
+ document.addEventListener("mousedown", P), window.addEventListener("scroll", T, !0), window.addEventListener("resize", T);
159
+ }), ve(() => {
160
+ document.removeEventListener("mousedown", P), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", T), w && clearTimeout(w);
161
+ }), fe(s, (e) => {
162
+ e || (o.value = ""), e && B(x);
164
163
  });
165
- function oe(e) {
164
+ function ie(e) {
166
165
  var t;
167
- f.value ? f.value.focus(e) : (t = w.value) == null || t.focus(e);
166
+ f.value ? f.value.focus(e) : (t = y.value) == null || t.focus(e);
168
167
  }
169
- function ie() {
168
+ function re() {
170
169
  var e;
171
170
  (e = f.value) == null || e.blur();
172
171
  }
173
- return j({ el: w, focus: oe, blur: ie }), (e, t) => fe((r(), v("div", {
172
+ return G({ el: y, focus: ie, blur: re }), (e, t) => me((r(), v("div", {
174
173
  class: "cui-tag-input",
175
174
  ref_key: "wrapperRef",
176
- ref: w,
177
- style: M(z.value.style)
175
+ ref: y,
176
+ style: M(L.value.style)
178
177
  }, [
179
- u.label ? (r(), v("label", Ve, h(u.label), 1)) : y("", !0),
180
- R("div", {
178
+ u.label ? (r(), v("label", ze, b(u.label), 1)) : h("", !0),
179
+ $("div", {
181
180
  ref_key: "controlRef",
182
- ref: E,
183
- class: $(["cui-tag-input__control", { "cui-tag-input__control--disabled": u.disabled }]),
181
+ ref: I,
182
+ class: E(["cui-tag-input__control", { "cui-tag-input__control--disabled": u.disabled }]),
184
183
  style: M({
185
- "--_tag-input-radius": X[u.rounded],
184
+ "--_tag-input-radius": ee[u.rounded],
186
185
  "--_tag-input-border": u.error ? "var(--cui-error)" : "var(--cui-border-strong, var(--cui-border))"
187
186
  }),
188
187
  onClick: t[0] || (t[0] = (a) => {
@@ -190,24 +189,24 @@ const Ve = {
190
189
  return (n = f.value) == null ? void 0 : n.focus();
191
190
  })
192
191
  }, [
193
- (r(!0), v(O, null, U(u.modelValue, (a) => (r(), K(Se, {
192
+ (r(!0), v(U, null, K(u.modelValue, (a) => (r(), W(Te, {
194
193
  key: a,
195
- color: te(a),
196
- size: z.value.tagSize,
194
+ color: ae(a),
195
+ size: L.value.tagSize,
197
196
  removable: "",
198
- onRemove: (n) => H(a)
197
+ onRemove: (n) => O(a)
199
198
  }, {
200
- default: me(() => [
201
- ge(h(ee(a)), 1)
199
+ default: ge(() => [
200
+ pe(b(te(a)), 1)
202
201
  ]),
203
202
  _: 2
204
203
  }, 1032, ["color", "size", "onRemove"]))), 128)),
205
- C.value ? y("", !0) : (r(), v("input", {
204
+ C.value ? h("", !0) : (r(), v("input", {
206
205
  key: 0,
207
206
  id: u.id,
208
207
  name: u.name,
209
208
  autocomplete: u.autocomplete,
210
- "aria-describedby": W(Q),
209
+ "aria-describedby": Y(X),
211
210
  "aria-required": u.ariaRequired || void 0,
212
211
  "aria-labelledby": u.ariaLabelledby,
213
212
  ref_key: "inputRef",
@@ -216,64 +215,64 @@ const Ve = {
216
215
  placeholder: u.modelValue.length > 0 ? "" : u.placeholder,
217
216
  disabled: u.disabled,
218
217
  class: "cui-tag-input__input",
219
- onInput: le,
220
- onFocus: ne,
221
- onKeydown: ue
222
- }, null, 40, ze))
218
+ onInput: ue,
219
+ onFocus: oe,
220
+ onKeydown: ne
221
+ }, null, 40, Le))
223
222
  ], 6),
224
223
  u.error && u.errorMessage ? (r(), v("div", {
225
224
  key: 1,
226
- id: W(J),
225
+ id: Y(Q),
227
226
  class: "cui-tag-input__error"
228
- }, h(u.errorMessage), 9, Le)) : y("", !0),
229
- (r(), K(pe, { to: "body" }, [
230
- s.value && (d.value.length > 0 || g.value || q.value) ? (r(), v("div", {
227
+ }, b(u.errorMessage), 9, Re)) : h("", !0),
228
+ (r(), W(be, { to: "body" }, [
229
+ s.value && (d.value.length > 0 || g.value || A.value) ? (r(), v("div", {
231
230
  key: 0,
232
231
  ref_key: "dropdownRef",
233
232
  ref: _,
234
233
  class: "cui-tag-input__dropdown",
235
- style: M(I.value)
234
+ style: M(q.value)
236
235
  }, [
237
- q.value && d.value.length === 0 ? (r(), v("div", Be, [
238
- Y(Te, {
236
+ A.value && d.value.length === 0 ? (r(), v("div", Be, [
237
+ Z(Ve, {
239
238
  size: "xs",
240
239
  "show-label": "",
241
240
  label: "Searching..."
242
241
  })
243
- ])) : y("", !0),
244
- (r(!0), v(O, null, U(d.value, (a, n) => (r(), v("div", {
242
+ ])) : h("", !0),
243
+ (r(!0), v(U, null, K(d.value, (a, n) => (r(), v("div", {
245
244
  key: a.value,
246
245
  "data-index": n,
247
- class: $(["cui-tag-input__suggestion", { "cui-tag-input__suggestion--focused": i.value === n }]),
248
- onClick: Z((T) => N(a), ["stop"]),
249
- onMouseenter: (T) => i.value = n
246
+ class: E(["cui-tag-input__suggestion", { "cui-tag-input__suggestion--focused": i.value === n }]),
247
+ onClick: j((V) => H(a), ["stop"]),
248
+ onMouseenter: (V) => i.value = n
250
249
  }, [
251
- be(e.$slots, "suggestion", { suggestion: a }, () => [
252
- R("span", null, h(a.label || a.value), 1)
250
+ he(e.$slots, "suggestion", { suggestion: a }, () => [
251
+ $("span", null, b(a.label || a.value), 1)
253
252
  ], !0)
254
253
  ], 42, Me))), 128)),
255
254
  g.value ? (r(), v("div", {
256
255
  key: 1,
257
- class: $(["cui-tag-input__create", {
256
+ class: E(["cui-tag-input__create", {
258
257
  "cui-tag-input__suggestion--focused": i.value === d.value.length,
259
258
  "cui-tag-input__create--divided": d.value.length > 0
260
259
  }]),
261
- onClick: Z(S, ["stop"]),
260
+ onClick: j(S, ["stop"]),
262
261
  onMouseenter: t[1] || (t[1] = (a) => i.value = d.value.length)
263
262
  }, [
264
- Y(Ce, {
263
+ Z(Se, {
265
264
  name: "plus",
266
265
  size: "0.75rem"
267
266
  }),
268
- R("span", null, h(u.createText) + " “" + h(o.value.trim()) + "”", 1)
269
- ], 34)) : y("", !0)
270
- ], 4)) : y("", !0)
267
+ $("span", null, b(u.createText) + " “" + b(o.value.trim()) + "”", 1)
268
+ ], 34)) : h("", !0)
269
+ ], 4)) : h("", !0)
271
270
  ]))
272
271
  ], 4)), [
273
- [he, !u.hidden]
272
+ [ye, !u.hidden]
274
273
  ]);
275
274
  }
276
275
  });
277
276
  export {
278
- Ae as default
277
+ Ne as default
279
278
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CuiTooltip.vue.d.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1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./CuiTooltip.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-edabcc13"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd44838e"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -22,7 +22,8 @@ const Q = { class: "cui-tooltip__content" }, Z = /* @__PURE__ */ N({
22
22
  () => e.visible,
23
23
  (o) => {
24
24
  o !== void 0 && (i.value = o);
25
- }
25
+ },
26
+ { immediate: !0 }
26
27
  );
27
28
  const { referenceRef: y, floatingRef: w, arrowRef: T, floatingStyles: k, arrowStyle: b, currentSide: _, isPositioned: M } = J({
28
29
  placement: L(e, "placement"),
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "1.3.0";
1
+ const o = "1.3.1";
2
2
  export {
3
3
  o as version
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itguy614/clean-ui",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "A clean, dark-mode-ready Vue 3 component library — 100+ token-driven, themeable, accessible components.",
6
6
  "license": "MIT",